/* ── Input grid ── */
.dd-input-grid {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dd-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dd-label {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

.dd-date {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #222;
  width: 170px;
}

.dd-date:focus { border-color: #1a6fc4; outline: none; box-shadow: 0 0 0 2px rgba(26,111,196,0.12); }

.dd-today-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #666;
  font-size: 0.72rem;
  padding: 2px 8px;
  cursor: pointer;
  margin-top: 3px;
  width: fit-content;
}
.dd-today-btn:hover { border-color: #1a6fc4; color: #1a6fc4; background: #f0f5ff; }

.dd-arrow {
  font-size: 1.4rem;
  color: #bbb;
  padding-bottom: 8px;
  align-self: flex-end;
}

.dd-calc-btn { justify-content: flex-end; }

/* ── Presets ── */
.dd-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.dd-preset-label {
  font-size: 0.78rem;
  color: #888;
  font-weight: bold;
}

/* ── Big result ── */
.dd-big-result {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 12px;
}

.dd-big-number {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  color: #1a6fc4;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dd-big-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

.dd-sentence {
  text-align: center;
  color: #444;
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.dd-breakdown-line {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* ── Table ── */
.dd-table { max-width: 400px; }
.dd-table td:first-child { color: #555; }
.diff-val {
  font-weight: bold;
  color: #267326;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .dd-input-grid { flex-direction: column; align-items: stretch; }
  .dd-arrow { display: none; }
  .dd-date { width: 100%; }
  .dd-big-number { font-size: 3rem; }
  .dd-table { max-width: 100%; }
}
