.card h1 { margin-bottom: 4px; }

.dt-intro {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.dt-mode-toggle, .dt-op-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--key-bg);
  margin-bottom: 20px;
  width: fit-content;
}
.dt-op-toggle { margin-bottom: 16px; }

.dt-mode-btn, .dt-op-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  cursor: pointer;
}
.dt-mode-btn:hover, .dt-op-btn:hover { color: var(--text-primary); }
.dt-mode-btn.active, .dt-op-btn.active {
  color: var(--accent-primary);
  background: var(--panel);
  box-shadow: 0 1px 4px rgba(31, 35, 51, 0.12);
}

/* [hidden] and .dt-panel/.dt-results { display: ... } would be equal CSS
   specificity if either ever gets a display rule - this file loads after
   the UA stylesheet, so without this override a hidden PROPERTY set in JS
   has no visual effect (a real bug that shipped once already, in the
   geometry calculator). */
.dt-panel[hidden],
.dt-results[hidden] { display: none; }

.dt-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.bd-field-wide { margin-bottom: 14px; }
.bd-field-narrow { max-width: 160px; margin-bottom: 20px; }

.dt-field input {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-primary);
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
.dt-field input:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.bd-holidays {
  border-top: 1px solid var(--panel-border);
  padding-top: 16px;
  margin-bottom: 6px;
}

.bd-holidays-header span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.bd-holiday-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.bd-holiday-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bd-holiday-row input {
  flex: 1;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
}
.bd-holiday-row input:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.bd-remove-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.bd-remove-btn:hover { background: var(--key-bg); color: var(--accent-error); }

.bd-add-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-primary-dim);
  border: 1px dashed var(--accent-primary);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  width: 100%;
}
.bd-add-btn:hover { background: rgba(124, 92, 255, 0.22); }

.dt-results {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dt-direction {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.dt-direction strong { color: var(--text-primary); }

.dt-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}

.dt-stat {
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent-primary);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dt-stat strong { font-family: var(--mono); font-size: 20px; color: var(--text-primary); }
.dt-stat span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }

.dt-result-big {
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--accent-primary);
  border-radius: 12px;
  padding: 16px;
}
.dt-result-big .dt-result-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.dt-result-big strong { font-family: var(--mono); font-size: 20px; color: var(--text-primary); display: block; }

.dt-echo {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.dt-echo strong { color: var(--text-primary); }

.gc-info-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gc-info-list li {
  padding: 14px 16px;
  border-left: 3px solid var(--accent-primary);
  background: var(--key-bg);
  border-radius: 0 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gc-info-list strong { font-size: 13px; color: var(--text-primary); }
.gc-info-list span { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
