/* The original query keeps its own layout and blue controls. */
.decision-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 12px; padding: 6px 12px; border-radius: 9px; background: #eaf3ed; color: #226345; text-decoration: none; font-size: 14px; font-weight: 600; }
.decision-entry:hover { background: #deeee3; }
body.decision-mode > .topbar, body.decision-mode > .app-shell { display: none; }
body.decision-mode { --dc-green: #226345; --dc-soft: #eaf3ed; --dc-ink: #24332b; --dc-muted: #66726a; --dc-line: #e5eae5; background: #f6f8f5; color: var(--dc-ink); }
#decision-app { max-width: 900px; min-height: 100dvh; margin: auto; padding: 0 24px 32px; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
#decision-app * { min-width: 0; }
#decision-app a { color: var(--dc-green); }
#decision-app :is(button, input, select, a, summary):focus-visible { outline: 3px solid #7ea990; outline-offset: 3px; }
#decision-app ::selection { background: #dceee1; }
.dc-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; border-bottom: 1px solid var(--dc-line); }
.dc-brand { color: var(--dc-ink) !important; font-weight: 600; text-decoration: none; }
.dc-header nav, .dc-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.dc-header nav a { font-size: 13px; text-decoration: none; padding: 10px 0; }
.dc-back { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--dc-muted); font-size: 14px; }
.dc-title { margin: 6px 0 20px; }
.dc-title h1 { font-size: clamp(25px, 4vw, 32px); font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.dc-title h1:focus { outline: none; }
.dc-title p { margin-top: 6px; color: var(--dc-muted); font-size: 13px; }
.dc-panel, .dc-card { border-radius: 16px; background: #fff; padding: 24px; margin-bottom: 16px; }
.dc-panel h2, .dc-section-title h2 { font-size: 18px; font-weight: 600; }
.dc-panel > h2 { margin-bottom: 16px; }
.dc-form { max-width: 640px; margin: auto; }
.dc-form .dc-panel { padding-top: 20px; }
.dc-field { display: block; margin-bottom: 22px; }
.dc-field:last-child { margin-bottom: 0; }
.dc-label, .dc-field legend { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.dc-field legend { padding: 0; }
.dc-label small, .dc-field legend small { font-size: 12px; font-weight: 400; color: var(--dc-muted); margin-left: 6px; }
fieldset.dc-field { border: 0; padding: 0; }
.dc-budget { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--dc-green); padding: 0 0 5px; }
.dc-budget input { width: 100%; border: 0; background: transparent; padding: 0; color: var(--dc-ink); font-size: 38px; font-weight: 500; font-variant-numeric: tabular-nums; outline-offset: 0; }
.dc-budget span { flex-shrink: 0; color: var(--dc-muted); }
.dc-input, .dc-select { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--dc-line); border-radius: 9px; color: var(--dc-ink); background: #fff; font-size: 15px; }
.dc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-choice { position: relative; flex: 1 1 auto; text-align: center; }
.dc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dc-choice span { display: block; padding: 10px 12px; border: 1px solid var(--dc-line); border-radius: 9px; font-size: 13px; }
.dc-choice input:checked + span { color: var(--dc-green); background: var(--dc-soft); border-color: #a5c6af; font-weight: 600; }
.dc-choice input:focus-visible + span { outline: 3px solid #7ea990; outline-offset: 2px; }
.dc-custom { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.dc-custom input { max-width: 180px; }
.dc-two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dc-two-fields .dc-field { margin-bottom: 0; }
.dc-school-options > summary { min-height: 44px; padding: 8px 0; color: var(--dc-green); font-size: 14px; font-weight: 500; }
.dc-school-options[open] > summary { margin-bottom: 12px; }
.dc-note { color: var(--dc-muted); font-size: 12px; margin-top: 10px; line-height: 1.65; }
.dc-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--dc-line); border-radius: 10px; background: #fff; color: var(--dc-green); font-size: 14px; font-weight: 500; text-decoration: none; }
.dc-button:hover { background: var(--dc-soft); }
.dc-button[aria-pressed="true"] { background: var(--dc-soft); border-color: #a5c6af; }
.dc-button.dc-primary { background: var(--dc-green); border-color: var(--dc-green); color: #fff !important; }
.dc-button.dc-primary:hover { background: #194d34; }
.dc-button:disabled { color: #89938d; background: #f1f3f0; border-color: transparent; cursor: default; }
.dc-submit { width: 100%; min-height: 50px; }
.dc-form-footer { padding: 4px 0 20px; }
.dc-fold { margin-top: 16px; border-top: 1px solid var(--dc-line); padding-top: 12px; }
.dc-fold > summary { min-height: 44px; padding: 8px 0; font-size: 14px; font-weight: 500; color: var(--dc-green); }
.dc-archive { list-style: none; margin: 8px 0 0; padding: 0; }
.dc-archive li + li { border-top: 1px solid var(--dc-line); }
.dc-archive a { display: block; padding: 12px 0; text-decoration: none; }
.dc-archive small { display: block; color: var(--dc-muted); }
.dc-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.dc-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--dc-muted); font-size: 13px; }
.dc-toolbar select { width: auto; max-width: 210px; }
.dc-filters { color: var(--dc-muted); font-size: 13px; margin-bottom: 14px; }
.dc-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.dc-section-title span { font-size: 13px; color: var(--dc-muted); white-space: nowrap; }
.dc-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dc-card h3 { font-size: 20px; font-weight: 600; line-height: 1.45; }
.dc-card h3 a { color: var(--dc-ink) !important; text-decoration: none; }
.dc-save { flex-shrink: 0; min-height: 44px; margin-top: -8px; padding: 8px 4px; border: 0; background: none; font-size: 13px; color: var(--dc-muted); }
.dc-save[aria-pressed="true"] { color: var(--dc-green); }
.dc-address { color: var(--dc-muted); font-size: 12px; margin: 4px 0 8px; }
.dc-schools { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; margin: 8px 0; }
.dc-pending { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: #eef0ed; color: #69716b; font-size: 11px; font-weight: 400; vertical-align: 1px; }
.dc-heat { color: var(--dc-muted); font-size: 12px; margin: 4px 0 10px; }
.dc-price { margin: 12px 0; }
.dc-price-label { font-size: 12px; color: var(--dc-muted); }
.dc-price-value { font-size: 27px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.5; }
.dc-price-value small { font-size: 13px; font-weight: 400; margin-left: 4px; }
.dc-price .dc-note { margin-top: 1px; }
.dc-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0; font-size: 13px; }
.dc-reasons { margin-top: 12px; font-size: 13px; }
.dc-reasons strong { font-weight: 500; }
.dc-reasons ul { margin: 5px 0 0; padding-left: 18px; color: var(--dc-muted); }
.dc-card .dc-actions { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--dc-line); }
.dc-card .dc-actions a { flex: 1; }
.dc-empty, .dc-error { border-radius: 14px; background: #fff; padding: 24px; margin-bottom: 16px; }
.dc-empty h2, .dc-error h2 { font-size: 18px; font-weight: 600; }
.dc-empty p, .dc-error p { color: var(--dc-muted); font-size: 14px; margin: 8px 0 16px; }
.dc-relaxations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dc-loading { padding: 36px 0; color: var(--dc-muted); text-align: center; }
.dc-loading::before { content: ''; display: inline-block; width: 16px; height: 16px; border: 2px solid #d7e5dc; border-top-color: var(--dc-green); border-radius: 50%; margin-right: 10px; vertical-align: -3px; animation: dc-spin 1s linear infinite; }
@keyframes dc-spin { to { transform: rotate(360deg); } }
.dc-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0; font-size: 13px; }
.dc-detail-top .dc-title { margin-top: 0; margin-bottom: 12px; }
.dc-detail-top .dc-price-value { font-size: 34px; }
.dc-definition { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px 16px; font-size: 14px; }
.dc-definition dt { color: var(--dc-muted); }
.dc-observation + .dc-observation, .dc-relation + .dc-relation { border-top: 1px solid var(--dc-line); margin-top: 16px; padding-top: 16px; }
.dc-observation strong { font-size: 17px; font-weight: 500; }
.dc-observation p, .dc-relation p { margin-top: 6px; font-size: 13px; }
.dc-source { padding: 12px 0; font-size: 13px; }
.dc-source + .dc-source { border-top: 1px solid var(--dc-line); }
.dc-source small { display: block; color: var(--dc-muted); margin-top: 5px; }
.dc-source a { overflow-wrap: anywhere; }
.dc-compare-names { display: grid; gap: 8px; margin-bottom: 24px; }
.dc-compare-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: 10px; }
.dc-compare-name a { text-decoration: none; font-size: 14px; }
.dc-compare-name button { border: 0; background: none; min-height: 44px; color: var(--dc-muted); font-size: 12px; }
.dc-compare-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1.3fr); gap: 16px; padding: 16px 0; font-size: 14px; }
.dc-compare-row + .dc-compare-row { border-top: 1px solid var(--dc-line); }
.dc-compare-row > dt { color: var(--dc-muted); }
.dc-compare-row .dc-price-value { font-size: 22px; }
.dc-compare-row .dc-price { margin: 0; }
.dc-compare-row ul { margin: 0; padding-left: 16px; }
.dc-dock { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; padding: 12px 16px; border: 1px solid #d9e6dc; border-radius: 14px; background: #f4f9f4; box-shadow: 0 4px 20px #203a2610; }
.dc-dock span { color: var(--dc-muted); font-size: 13px; }
.dc-footer { padding: 16px 0; color: var(--dc-muted); font-size: 12px; text-align: center; }
.dc-toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); z-index: 10; background: #243c2e; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 6px 24px #0002; font-size: 14px; }
@media (max-width: 600px) {
  #decision-app { padding: 0 16px max(20px, env(safe-area-inset-bottom)); }
  .dc-header { min-height: 60px; }
  .dc-header nav { gap: 14px; }
  .dc-panel, .dc-card { padding: 20px 18px; border-radius: 14px; }
  .dc-field { margin-bottom: 20px; }
  .dc-choice span { padding: 10px 9px; }
  .dc-title { margin-bottom: 18px; }
  .dc-two-fields { grid-template-columns: 1fr; gap: 20px; }
  .dc-compare-row { grid-template-columns: 1fr; gap: 6px; }
  .dc-compare-row > dt { font-size: 12px; }
  .dc-dock { bottom: max(8px, env(safe-area-inset-bottom)); padding: 10px 12px; }
  .dc-definition { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .dc-loading::before { animation: none; } }
