/* Data Communication Timer (DCT) — scoped by .dct-wrap */
.dct-wrap {
  /* UQ 用（青）— 他シミュレータと揃える */
  --dct-accent: #1473d1;
  --dct-accent-soft: #eff6ff;

  /* Xモバイル 用（黄緑）に戻す場合: --dct-accent: #8DF701; --dct-accent-soft: #f4fde8; */

  --dct-bg: #f6f8fc;
  --dct-card: #ffffff;
  --dct-text: #1f2937;
  --dct-sub: #6b7280;
  --dct-border: #e5e7eb;

  font-family: system-ui, -apple-system, "Hiragino Sans", sans-serif;
  color: var(--dct-text);
  background: var(--dct-bg);
  padding: 24px 16px;
  border-radius: 12px;
  max-width: 420px;
  margin: 24px auto;
  box-sizing: border-box;
}

.dct-wrap *, .dct-wrap *::before, .dct-wrap *::after { box-sizing: border-box; }

.dct-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
  color: var(--dct-text);
}

.dct-card {
  background: var(--dct-card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.dct-label {
  display: block;
  font-size: 13px;
  color: var(--dct-sub);
  margin-bottom: 6px;
}

.dct-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.dct-row:last-child { margin-bottom: 0; }

.dct-wrap input[type="number"] {
  flex: 1;
  font-size: 18px;
  padding: 10px 12px;
  border: 1px solid var(--dct-border);
  border-radius: 8px;
  outline: none;
  width: 100%;
  background: #fff;
  color: var(--dct-text);
  -moz-appearance: textfield;
}
.dct-wrap input[type="number"]:focus { border-color: var(--dct-accent); }

.dct-unit {
  color: var(--dct-sub);
  font-size: 14px;
  min-width: 24px;
}

.dct-auto {
  background: none;
  border: 1px solid var(--dct-border);
  color: var(--dct-accent);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.dct-auto:hover { background: var(--dct-accent-soft); }

.dct-main {
  text-align: center;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--dct-border);
  margin-bottom: 16px;
}
.dct-main-label { font-size: 12px; color: var(--dct-sub); }
.dct-main-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--dct-accent);
  margin-top: 4px;
  line-height: 1.2;
}
.dct-main-value .dct-unit-s {
  font-size: 14px;
  color: var(--dct-sub);
  font-weight: 400;
  margin-left: 4px;
}

.dct-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}
.dct-item + .dct-item { border-top: 1px dashed var(--dct-border); }
.dct-item-name { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.dct-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.dct-item-val { font-size: 16px; font-weight: 600; }

.dct-note {
  font-size: 11px;
  color: var(--dct-sub);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

.dct-more-wrap {
  position: relative;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.dct-more-wrap.is-collapsed { max-height: 140px; }
.dct-more-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--dct-card));
  pointer-events: none;
}

.dct-toggle {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: none;
  border: 1px solid var(--dct-border);
  border-radius: 8px;
  color: var(--dct-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dct-toggle:hover { background: var(--dct-accent-soft); }

