:root {
  --ink: #183329;
  --ink-soft: #65746d;
  --forest: #173d2e;
  --forest-deep: #0d2a20;
  --moss: #7d8f62;
  --orange: #dd6b32;
  --orange-dark: #b95023;
  --cream: #f3f1e9;
  --paper: #fbfaf6;
  --line: #dfe2d8;
  --white: #fff;
  --shadow: 0 16px 44px rgba(25, 48, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }
[hidden] { display: none !important; }
.noscript { padding: 14px; background: #ffe2c8; color: #69300f; text-align: center; }

.topbar { height: 76px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; background: var(--forest-deep); color: white; position: sticky; top: 0; z-index: 30; }
.brand { color: white; text-decoration: none; display: inline-flex; align-items: center; gap: 13px; font-size: 18px; letter-spacing: -.03em; }
.brand b { color: #f39a66; font-weight: 700; }
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-copy > span { display: block; }
.brand-copy small { color: #9eb2a8; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark { width: 28px; height: 31px; position: relative; display: inline-block; }
.brand-mark i { position: absolute; left: 13px; width: 2px; background: #f39a66; border-radius: 2px; transform-origin: bottom; }
.brand-mark i:nth-child(1) { height: 27px; bottom: 0; }
.brand-mark i:nth-child(2) { height: 17px; bottom: 12px; transform: rotate(38deg); }
.brand-mark i:nth-child(3) { height: 15px; bottom: 12px; transform: rotate(-39deg); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.account-chip { min-height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 13px; color:#f5f4ec; border:1px solid rgba(255,255,255,.24); border-radius:8px; background:rgba(255,255,255,.08); font:700 10px/1 Arial,sans-serif; cursor:pointer; }
.account-chip span:first-child { color:#9fbe79; font-size:8px; }
.header-guide-link { color: #d4dfd9; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-guide-link:hover, .header-guide-link.active { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.saved-status { color: #b9c8c1; font-size: 12px; display: flex; align-items: center; gap: 7px; }
.saved-status i { width: 7px; height: 7px; border-radius: 50%; background: #9fbe79; box-shadow: 0 0 0 4px rgba(159,190,121,.12); }

.quick-tools-bar { border-bottom: 1px solid #d5dbd1; background: #e9ece4; }
.quick-tools { max-width: 1540px; margin: 0 auto; padding: 10px 22px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.quick-tool { min-width: 0; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid #d0d7cc; border-radius: 9px; color: var(--forest); background: rgba(255,255,255,.66); text-align: left; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.quick-tool:hover { border-color: #b7c1b4; background: white; transform: translateY(-1px); box-shadow: 0 5px 13px rgba(25,48,39,.06); }
.quick-tool:focus-visible { outline: 3px solid rgba(221,107,50,.25); outline-offset: 2px; }
.quick-tool-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--orange-dark); background: #f8e3d5; }
.quick-tool-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-tool-copy { min-width: 0; display: grid; gap: 3px; }
.quick-tool-copy strong { color: var(--forest); font-size: 10px; line-height: 1.2; }
.quick-tool-copy small { color: #7b8880; font-size: 8px; line-height: 1.25; }

.button { min-height: 42px; padding: 0 18px; border-radius: 7px; border: 1px solid transparent; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--orange); box-shadow: 0 7px 18px rgba(179,76,34,.2); }
.button-primary:hover { background: var(--orange-dark); }
.button:disabled { cursor: wait; opacity: .65; box-shadow: none; transform: none; }
.button-secondary { color: var(--forest); background: transparent; border-color: #cbd1c6; }
.button-secondary:hover { background: white; border-color: #aab4a6; }
.button-danger-outline { color: #9d3f2b; background: white; border-color: #d9a897; box-shadow: none; }
.button-danger-outline:hover { color: white; background: #a7432d; border-color: #a7432d; }

.workspace { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: calc(100vh - 148px); max-width: 1540px; margin: 0 auto; }
.deer-panel { background: #ecebe3; border-right: 1px solid #d9ddd2; padding: 30px 22px; display: flex; flex-direction: column; min-height: calc(100vh - 148px); }
.panel-heading, .section-heading, .record-header, .card-topline, .modal-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-heading { flex-wrap: wrap; }
.panel-heading h2, .section-heading h2, .modal-heading h2 { margin: 4px 0 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
.panel-heading h2 { font-size: 21px; }
.eyebrow { display: block; color: #7a8a82; font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: #bacbc3; }
.create-deer-button { width: 100%; min-height: 40px; border: 1px solid #c5cec1; border-radius: 7px; color: var(--forest); background: rgba(255,255,255,.7); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 7px; }
.create-deer-button span { color: var(--orange-dark); font-size: 18px; line-height: 1; }
.create-deer-button:hover { background: white; border-color: #aebaaa; }

.deer-list { display: flex; flex-direction: column; gap: 6px; margin: 15px -7px 16px; }
.deer-item { width: 100%; padding: 11px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; text-align: left; color: var(--ink); }
.deer-item:hover { background: rgba(255,255,255,.55); }
.deer-item.selected { background: white; border-color: #d8ddd2; box-shadow: 0 8px 20px rgba(24,51,41,.07); }
.deer-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: white; display: grid; place-items: center; font-family: Georgia,serif; font-size: 17px; }
.deer-item.selected .deer-avatar { background: var(--orange); }
.deer-item-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.deer-item-copy strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.deer-item-copy small, .deer-item-date { color: #79837d; font-size: 10px; }
.deer-item-date { align-self: start; padding-top: 3px; }
.sidebar-empty { color: var(--ink-soft); font-size: 13px; line-height: 1.6; padding: 18px; border: 1px dashed #c8cec2; border-radius: 8px; }
.storage-meter { display: flex; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid #d8ddd3; border-radius: 7px; color: #78847d; background: #f1f3ee; font-size: 9px; }
.storage-meter strong { color: #52655b; font-size: 8px; text-align: right; }

.main-panel { padding: 36px 42px 50px; min-width: 0; max-width: 100%; overflow: hidden; }
.record-header { align-items: end; margin-bottom: 26px; }
.record-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.deer-profile-large { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 50%; background: var(--forest); color: white; display: grid; place-items: center; overflow: hidden; font-family: Georgia,serif; font-size: 29px; box-shadow: 0 8px 20px rgba(24,51,41,.12); }
.deer-profile-large img, .deer-avatar img, .photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.record-header h1 { font-family: Georgia, serif; font-size: clamp(36px, 4vw, 49px); font-weight: 500; line-height: 1; letter-spacing: -.04em; margin: 6px 0 10px; }
.record-header p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--orange); margin-right: 5px; }
.record-actions { display: flex; gap: 8px; }

.dashboard-guide { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -8px 0 10px; padding: 11px 13px; border: 1px solid #dbe0d7; border-radius: 8px; background: rgba(251,250,246,.72); }
.guide-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.guide-step { display: inline-flex; align-items: center; gap: 7px; color: #78857d; font-size: 9px; font-weight: 750; }
.guide-step b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e1e5dd; color: #78857d; font-size: 9px; }
.guide-step.complete { color: #315c47; }
.guide-step.complete b { background: #dcebd8; color: #315c47; }
.location-filter-control { min-width: 205px; display: grid; grid-template-columns: auto minmax(120px,1fr); align-items: center; gap: 8px; color: #65746d; font-size: 9px; font-weight: 800; }
.location-filter-control select { width: 100%; min-height: 34px; border: 1px solid #cbd2c7; border-radius: 6px; background: white; color: var(--ink); padding: 0 9px; font-size: 10px; }
.section-jumps { display: flex; align-items: center; gap: 5px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.section-jumps::-webkit-scrollbar { display: none; }
.section-jumps > span { color: #8d9891; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-right: 3px; white-space: nowrap; }
.section-jumps button { min-height: 31px; padding: 0 11px; border: 1px solid #d6dbd2; border-radius: 16px; background: rgba(255,255,255,.62); color: #586b61; font-size: 9px; font-weight: 750; white-space: nowrap; }
.section-jumps button:hover { background: white; border-color: #b8c2b5; }
#forecast-section, #general-forecast-section, #patterns-section, #movement-section, #history-section { scroll-margin-top: 92px; }

.summary-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.summary-card, .card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 6px 24px rgba(20,44,34,.035); }
.summary-card { min-height: 142px; padding: 19px 20px; }
.prediction-card { grid-column: 1 / -1; min-height: 176px; color: white; background: linear-gradient(135deg,#153d2d,#254e3b); border: 0; position: relative; overflow: hidden; }
.prediction-card::after { content:""; position:absolute; width:170px; height:170px; border:1px solid rgba(255,255,255,.07); border-radius:50%; right:-68px; bottom:-96px; box-shadow: 0 0 0 28px rgba(255,255,255,.025); }
.confidence { position: relative; z-index: 1; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 4px; background: rgba(255,255,255,.11); color: #d7e2dc; }
.confidence.stronger { background: rgba(153,190,112,.22); color: #dff1cc; }
.prediction-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px,.9fr) minmax(330px,1.1fr); gap: 26px; height: 100%; }
.prediction-primary { min-width: 0; }
.prediction-time { display: block; font-family: Georgia,serif; font-size: 24px; font-weight: 500; letter-spacing: -.03em; margin: 14px 0 4px; position: relative; z-index: 1; }
.prediction-card p { color: #d1ddd7; margin: 0 0 12px; font-size: 11px; position: relative; z-index: 1; }
.prediction-card small { color: #98aea4; font-size: 9px; position: relative; z-index: 1; }
.prediction-runners { min-width: 0; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.prediction-runners > span { display: block; color: #bacbc3; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 1px 0 9px; }
.prediction-alternatives { display: grid; gap: 7px; }
.prediction-alternatives > p { margin: 8px 0 0; color: #adc0b7; font-size: 10px; line-height: 1.5; }
.prediction-option { min-width: 0; display: grid; grid-template-columns: 23px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 8px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 7px; background: rgba(255,255,255,.055); }
.prediction-option > b { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #d8e4de; font-size: 9px; }
.prediction-option div { min-width: 0; }
.prediction-option strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: white; font-size: 10px; }
.prediction-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.prediction-option > span { color: #d2ddd7; font-size: 9px; font-weight: 800; white-space: nowrap; }
.prediction-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-top: 11px; color: #a9beb4; font-size: 8px; line-height: 1.4; position: relative; z-index: 1; }
.prediction-proof strong { color: #dce8e2; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.metric-card { display: flex; flex-direction: column; position: relative; }
.metric-icon { position: absolute; right: 17px; top: 15px; color: #9ba69d; font-size: 20px; }
.metric-label { color: #7b8781; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.metric-card > strong { margin-top: auto; font-family: Georgia,serif; font-size: 22px; font-weight: 500; color: var(--forest); }
.metric-card small { color: #8a938d; font-size: 9px; margin-top: 5px; }

.general-forecast-card { margin-bottom: 14px; }
.general-forecast-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(310px,.55fr); align-items: end; gap: 24px; }
.general-forecast-heading h2 { margin: 4px 0 7px; color: var(--forest); font-family: Georgia,serif; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.general-forecast-heading p { max-width: 690px; margin: 0; color: #74817a; font-size: 10px; line-height: 1.55; }
.general-forecast-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.general-forecast-controls label { display: grid; gap: 6px; min-width: 0; color: #65746d; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.general-forecast-controls select { width: 100%; min-height: 40px; border: 1px solid #cbd2c7; border-radius: 7px; background: white; color: var(--ink); padding: 0 10px; font-size: 10px; text-transform: none; }
.general-forecast-controls .button { min-height: 40px; padding: 0 13px; font-size: 10px; }
.general-forecast-status { min-height: 74px; display: grid; place-items: center; margin-top: 20px; border: 1px dashed #cbd4c8; border-radius: 8px; color: #74817a; background: #f4f5f0; font-size: 11px; text-align: center; }
.general-forecast-status.error { color: #93472e; border-color: #e3b49d; background: #fff6ef; }
.general-forecast-best { display: grid; grid-template-columns: auto minmax(180px,.7fr) minmax(260px,1.3fr); gap: 16px; align-items: center; margin-top: 20px; padding: 15px 17px; border-radius: 9px; color: white; background: linear-gradient(125deg,#173d2e,#2b5742); }
.forecast-best-score { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.08); }
.forecast-best-score strong { font-family: Georgia,serif; font-size: 31px; font-weight: 500; line-height: 1; }
.forecast-best-score small { color: #c7d8cf; font-size: 8px; }
.forecast-best-copy span, .forecast-best-factors > span { display: block; color: #b9cdc3; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.forecast-best-copy strong { display: block; margin: 6px 0 4px; font-family: Georgia,serif; font-size: 19px; font-weight: 500; }
.forecast-best-copy small { color: #c5d5cd; font-size: 9px; line-height: 1.45; }
.forecast-best-factors { min-width: 0; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.14); }
.forecast-best-factors p { margin: 6px 0 0; color: #d2dfd8; font-size: 10px; line-height: 1.5; }
.general-forecast-days { margin-top: 16px; }
.forecast-timeline-note { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: #7a8780; font-size: 8px; line-height: 1.4; }
.forecast-timeline-note strong { color: var(--forest); }
.forecast-timeline-scroll { width: 100%; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.forecast-timeline-grid { display: grid; grid-template-columns: 142px repeat(24,58px); min-width: 1606px; gap: 3px; align-items: stretch; }
.forecast-time-heading { min-height: 38px; display: grid; place-items: center; padding: 4px; color: #78857e; background: #eef1eb; border-radius: 5px; font-size: 8px; font-weight: 800; line-height: 1.15; text-align: center; }
.forecast-corner { position: sticky; left: 0; z-index: 4; align-content: center; justify-items: start; padding-left: 10px; color: #687870; }
.forecast-day-label { position: sticky; left: 0; z-index: 3; min-height: 62px; display: flex; justify-content: center; flex-direction: column; padding: 8px 10px; border: 1px solid #dfe4dc; border-radius: 6px; background: #f8f9f5; box-shadow: 5px 0 10px rgba(24,51,41,.035); }
.forecast-day-label strong { color: var(--forest); font-size: 10px; }
.forecast-day-label span { color: #7b8881; font-size: 8px; margin-top: 2px; }
.forecast-day-label b { color: var(--orange-dark); font-size: 9px; margin-top: 5px; }
.forecast-window { min-width: 0; min-height: 62px; display: grid; place-items: center; align-content: center; gap: 3px; padding: 5px 3px; border: 2px solid transparent; border-radius: 6px; color: #53645b; transition: transform .15s ease, border-color .15s ease; }
.forecast-window:hover { transform: translateY(-1px); }
.forecast-window.selected { border-color: var(--forest); box-shadow: 0 0 0 2px rgba(23,61,46,.1); }
.forecast-window strong { font-family: Georgia,serif; font-size: 20px; font-weight: 600; line-height: 1; }
.forecast-window small { font-size: 7px; line-height: 1.15; text-align: center; }
.forecast-score-1 { color:#fff; background:#7f1d1d; } .forecast-score-2 { color:#fff; background:#9d2c2c; } .forecast-score-3 { color:#fff; background:#bb4540; }
.forecast-score-4 { color:#3f1715; background:#d9776f; } .forecast-score-5 { color:#4b211e; background:#efaaa2; } .forecast-score-6 { color:#173d2e; background:#c9dfb8; }
.forecast-score-7 { color:#173d2e; background:#97c37e; } .forecast-score-8 { color:#fff; background:#64a55c; }
.forecast-score-9 { color:#fff; background:#3f8647; } .forecast-score-10 { color:#fff; background:#1f6335; }
.general-forecast-detail { margin-top: 13px; padding: 15px; border: 1px solid #dce2d9; border-radius: 8px; background: #f5f7f2; }
.forecast-detail-top { display: grid; grid-template-columns: auto minmax(180px,.7fr) minmax(280px,1.3fr); gap: 14px; align-items: center; }
.forecast-detail-rating { width: 58px; height: 58px; display: grid; place-items: center; align-content: center; border-radius: 8px; color: white; background: var(--forest); }
.forecast-detail-rating strong { font-family: Georgia,serif; font-size: 25px; line-height: 1; }
.forecast-detail-rating small { margin-top: 2px; color: #ccdad2; font-size: 7px; }
.forecast-detail-rating.forecast-score-1, .forecast-best-score.forecast-score-1 { color:#fff; background:#7f1d1d; }
.forecast-detail-rating.forecast-score-2, .forecast-best-score.forecast-score-2 { color:#fff; background:#9d2c2c; }
.forecast-detail-rating.forecast-score-3, .forecast-best-score.forecast-score-3 { color:#fff; background:#bb4540; }
.forecast-detail-rating.forecast-score-4, .forecast-best-score.forecast-score-4 { color:#3f1715; background:#d9776f; }
.forecast-detail-rating.forecast-score-5, .forecast-best-score.forecast-score-5 { color:#4b211e; background:#efaaa2; }
.forecast-detail-rating.forecast-score-6, .forecast-best-score.forecast-score-6 { color:#173d2e; background:#c9dfb8; }
.forecast-detail-rating.forecast-score-7, .forecast-best-score.forecast-score-7 { color:#173d2e; background:#97c37e; }
.forecast-detail-rating.forecast-score-8, .forecast-best-score.forecast-score-8 { color:#fff; background:#64a55c; }
.forecast-detail-rating.forecast-score-9, .forecast-best-score.forecast-score-9 { color:#fff; background:#3f8647; }
.forecast-detail-rating.forecast-score-10, .forecast-best-score.forecast-score-10 { color:#fff; background:#1f6335; }
.forecast-detail-rating.forecast-score-4 small, .forecast-detail-rating.forecast-score-5 small, .forecast-detail-rating.forecast-score-6 small, .forecast-detail-rating.forecast-score-7 small { color:currentColor; opacity:.72; }
.forecast-detail-title strong { display: block; color: var(--forest); font-family: Georgia,serif; font-size: 18px; font-weight: 500; }
.forecast-detail-title span { display: block; margin-top: 4px; color: #738179; font-size: 9px; line-height: 1.4; }
.forecast-condition-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
.forecast-condition { min-width: 0; padding: 8px; border: 1px solid #e0e5dd; border-radius: 6px; background: white; }
.forecast-condition span { display: block; color: #929c96; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.forecast-condition strong { display: block; margin-top: 3px; overflow-wrap: anywhere; color: #53665c; font-size: 9px; line-height: 1.3; }
.forecast-factor-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 12px; }
.forecast-factor { display: grid; grid-template-columns: 45px minmax(0,1fr); gap: 8px; align-items: start; padding: 8px 9px; border-radius: 6px; background: white; color: #6e7c74; font-size: 8px; line-height: 1.4; }
.forecast-factor b { width: 45px; min-height: 21px; display: grid; place-items: center; border-radius: 4px; background: #e9eee5; color: #4e695b; font-size: 7px; }
.forecast-factor.negative b { background: #f5dfd3; color: #9a492b; }
.forecast-factor.neutral b { background: #e8ebed; color: #68747b; }
.forecast-legal-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; color: #83502f; background: #fff0e2; font-size: 8px; line-height: 1.45; }
.forecast-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; color: #78857e; font-size: 8px; }
.forecast-key span { padding: 5px 7px; border-radius: 5px; background: #eef1eb; }
.forecast-key b { color: var(--forest); }
.forecast-key span:nth-child(-n+2) b { color:#a33631; }
.forecast-key span:nth-child(n+3) b { color:#2f7740; }
.daily-score-1, .daily-score-2, .daily-score-3, .daily-score-4, .daily-score-5 { color:#a33631 !important; }
.daily-score-6, .daily-score-7, .daily-score-8, .daily-score-9, .daily-score-10 { color:#2f7740 !important; }
.forecast-range-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:11px; }
.forecast-range-actions span { color:#7b8780; font-size:8px; font-weight:750; }
.forecast-range-toggle { min-height:36px; padding:0 12px; font-size:9px; }
.forecast-method { margin-top: 11px; border-top: 1px solid #e1e5dd; padding-top: 10px; color: #74817a; font-size: 9px; line-height: 1.55; }
.forecast-method summary { color: var(--forest); cursor: pointer; font-weight: 800; }
.forecast-method p { margin: 8px 0 0; }
.forecast-source-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.forecast-source-links strong { color: #52675c; }
.forecast-source-links a { padding: 3px 6px; border-radius: 4px; color: var(--orange-dark); background: #f1eee7; font-weight: 750; text-decoration: none; }
.forecast-source-links a:hover { text-decoration: underline; }

.insight-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-bottom: 14px; }
.secondary-insights { grid-template-columns: .85fr 1.15fr; }
.card { padding: 24px 26px; }
.section-heading { align-items: center; }
.section-heading h2 { font-size: 22px; color: var(--forest); }
.title-with-hint, .label-with-hint { display: flex; align-items: center; gap: 7px; min-width: 0; }
.title-with-hint h2 { min-width: 0; }
.hint-button { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 1px solid #c8d0c5; border-radius: 50%; color: #5d7166; background: #f5f7f2; font-size: 10px; font-weight: 900; line-height: 1; }
.hint-button:hover { color: white; border-color: var(--forest); background: var(--forest); }
.hint-button-light { color: #e5eee9; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.hint-button-light:hover { color: var(--forest); border-color: white; background: white; }
.section-heading > p { color: #87918b; font-size: 10px; max-width: 270px; line-height: 1.5; text-align: right; margin: 0; }
.subtle-tag, .stage-tag { color: #607066; font-size: 9px; background: #eaede5; border-radius: 4px; padding: 5px 8px; font-style: normal; }
.activity-chart { height: 200px; display: grid; grid-template-columns: repeat(12,minmax(38px,1fr)); gap: 7px; align-items: stretch; padding-top: 25px; overflow-x: auto; scrollbar-width: thin; }
.activity-column { display: grid; grid-template-rows: 14px 1fr 20px; align-items: end; justify-items: center; gap: 7px; min-width: 0; }
.activity-value { color: #607068; font-size: 10px; }
.bar-track { width: min(30px,72%); height: 100%; background: repeating-linear-gradient(to bottom,transparent 0,transparent 24%,#eaede6 25%); border-bottom: 1px solid #ccd3c8; display: flex; align-items: end; }
.bar-fill { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(#e47a43,#bd5528); transition: height .4s ease; }
.activity-label { color: #758079; font-size: 9px; white-space: nowrap; }
.chart-note { margin: 14px 0 0; border-top: 1px solid #e5e7e0; padding-top: 13px; color: #89938d; font-size: 9px; }
.chart-note span { display:inline-block; width:6px; height:6px; background:var(--orange); border-radius:50%; margin-right:5px; }
.solar-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; margin-top: 15px; }
.solar-item { min-width: 0; padding: 8px 6px; border: 1px solid #e1e5dc; border-radius: 6px; background: #fff; text-align: center; }
.solar-item strong { display: block; color: var(--forest); font-family: Georgia,serif; font-size: 15px; font-weight: 500; }
.solar-item span { display: block; color: #7f8b84; font-size: 7px; line-height: 1.25; margin-top: 3px; }
.solar-empty { grid-column: 1 / -1; color: #8a948d; font-size: 9px; line-height: 1.5; padding: 8px 0; }
.rut-chart { padding: 25px 0 8px; min-height: 224px; }
.rut-histogram { height: 155px; display: grid; grid-template-columns: repeat(7,minmax(34px,1fr)); gap: 8px; align-items: end; border-bottom: 1px solid #ccd3c8; }
.rut-column { height: 100%; display: grid; grid-template-rows: 16px 1fr; gap: 5px; align-items: end; justify-items: center; }
.rut-count { color: #68776f; font-size: 10px; }
.rut-bar-wrap { width: min(34px,72%); height: 100%; display: flex; align-items: end; }
.rut-bar { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; transition: height .35s ease; }
.rut-color-0 { background: #7d8f62; } .rut-color-1 { background: #9a9b68; } .rut-color-2 { background: #d69b52; }
.rut-color-3 { background: #dd6b32; } .rut-color-4 { background: #a95c45; } .rut-color-5 { background: #667f72; } .rut-color-6 { background: #8b78a1; }
.rut-legend { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; margin-top: 15px; }
.rut-legend span { display: flex; align-items: center; gap: 6px; color: #68776f; font-size: 8px; min-width: 0; }
.rut-legend i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.moon-chart { padding: 23px 0 5px; }
.moon-histogram { min-height: 165px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 8px; }
.moon-column { --phase-color:#71897d; min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); grid-template-rows: auto auto; gap: 3px 8px; align-items: center; padding: 9px; border: 1px solid #e1e5dc; border-radius: 8px; background: white; }
.moon-glyph { grid-row: 1 / 3; position: relative; width: 38px; height: 38px; overflow: hidden; border: 2px solid var(--phase-color); border-radius: 50%; background: var(--phase-color); box-shadow: 0 2px 8px rgba(26,48,39,.16); }
.moon-glyph::after { content:""; position:absolute; inset:-2px; border-radius:50%; background:#172a23; }
.moon-count { color: var(--phase-color); font-size: 16px; font-weight: 800; }
.moon-column small { color: #68776f; font-size: 8px; line-height: 1.2; overflow-wrap: anywhere; }
.moon-phase-0 { --phase-color:#68736e; } .moon-phase-1 { --phase-color:#a997d1; } .moon-phase-2 { --phase-color:#7698c5; } .moon-phase-3 { --phase-color:#6baaa0; }
.moon-phase-4 { --phase-color:#d99a43; } .moon-phase-5 { --phase-color:#d17763; } .moon-phase-6 { --phase-color:#9a7db5; } .moon-phase-7 { --phase-color:#617fa2; }
.moon-phase-0 .moon-glyph { background:#172a23; }
.moon-phase-0 .moon-glyph::after, .moon-phase-4 .moon-glyph::after { display:none; }
.moon-phase-1 .moon-glyph::after { transform:translateX(-7px); }
.moon-phase-2 .moon-glyph::after { inset:-2px 50% -2px -2px; border-radius:20px 0 0 20px; }
.moon-phase-3 .moon-glyph::after { transform:translateX(-23px); }
.moon-phase-5 .moon-glyph::after { transform:translateX(23px); }
.moon-phase-6 .moon-glyph::after { inset:-2px -2px -2px 50%; border-radius:0 20px 20px 0; }
.moon-phase-7 .moon-glyph::after { transform:translateX(7px); }
.moon-legend { display: none; }
.hint-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 22px; }
.movement-hint { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 10px; align-items: start; padding: 11px; border: 1px solid #e1e5dc; border-radius: 7px; background: white; }
.movement-hint > span { min-height: 28px; display: grid; place-items: center; border-radius: 5px; background: #eaf0e8; color: var(--orange-dark); padding: 4px 6px; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.movement-hint strong { display: block; color: var(--forest); font-size: 10px; margin-bottom: 3px; }
.movement-hint small { display: block; color: #77847d; font-size: 9px; line-height: 1.45; }

.pattern-card { margin-bottom: 14px; }
.pattern-list { margin-top: 23px; border-top: 1px solid #e4e7df; }
.pattern-row { display: grid; grid-template-columns: 32px minmax(240px,1.8fr) minmax(120px,1fr) 40px; gap: 15px; align-items: center; padding: 15px 0; border-bottom: 1px solid #e8eae4; }
.rank { color: #a0aaa3; font-family: Georgia,serif; font-size: 13px; }
.pattern-row > div:nth-child(2) { min-width: 0; }
.pattern-row strong { display: block; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.pattern-row small { display: block; color: #8e9791; font-size: 9px; margin-top: 4px; }
.pattern-meter { height: 5px; border-radius: 4px; background: #e7e9e3; overflow: hidden; }
.pattern-meter i { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.pattern-row > b { color: #53635a; font-size: 10px; text-align: right; }
.muted-copy { color: #8a948d; font-size: 11px; line-height: 1.7; margin: 24px 0 4px; }

.movement-card { margin-bottom: 14px; }
.movement-map-card { margin-top: 20px; padding: 12px; border: 1px solid #e0e4dc; border-radius: 8px; background: #f6f7f2; overflow: hidden; }
.movement-map-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 0 3px 9px; }
.movement-map-heading strong { color: var(--forest); font-size: 10px; }
.movement-map-heading span { color: #87928c; font-size: 8px; text-align: right; }
.movement-map-card svg { width: 100%; height: auto; min-height: 180px; display: block; border-radius: 6px; background: #edf2eb; }
.map-grid-line { stroke: #dfe6dc; stroke-width: 1; }
.map-route { fill: none; stroke: #d46a34; stroke-width: 3; stroke-linecap: round; opacity: .58; }
.map-route-label { fill: #8b624c; font: 700 12px Inter, sans-serif; }
.map-location-dot { fill: #173d2e; stroke: #fbfaf6; stroke-width: 4; }
.map-location-label { fill: #183329; font: 700 13px Inter, sans-serif; paint-order: stroke; stroke: #f6f7f2; stroke-width: 5; stroke-linejoin: round; }
.map-location-count { fill: #687870; font: 11px Inter, sans-serif; paint-order: stroke; stroke: #f6f7f2; stroke-width: 4; }
.map-empty-copy { fill: #718078; font: 13px Inter, sans-serif; text-anchor: middle; }
.movement-summary { display: grid; grid-template-columns: minmax(180px,.8fr) minmax(220px,1.2fr); gap: 12px; margin-top: 22px; }
.movement-research-note { grid-column: 1 / -1; margin: 0; padding: 11px 13px; border-radius: 7px; background: #eef1ea; color: #68766f; font-size: 9px; line-height: 1.55; }
.movement-research-note strong { color: var(--forest); }
.movement-prediction { border-radius: 8px; background: #eaf0e8; padding: 17px; }
.movement-prediction span { color: #7b8781; display: block; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.movement-prediction strong { display: block; margin: 8px 0 5px; font-family: Georgia,serif; font-size: 21px; font-weight: 500; color: var(--forest); }
.movement-prediction small { color: #718078; font-size: 9px; line-height: 1.5; }
.transition-list { display: grid; gap: 7px; }
.transition-row { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) 28px; gap: 8px; align-items: center; min-height: 38px; padding: 8px 10px; border: 1px solid #e1e5dc; border-radius: 7px; background: white; }
.transition-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.transition-arrow { color: var(--orange); font-weight: 800; }
.transition-row b { color: #617067; font-size: 10px; text-align: right; }

.history-card { padding-bottom: 13px; }
.history-actions { display: flex; align-items: center; gap: 14px; }
.text-button { color: var(--orange-dark); font-size: 11px; font-weight: 800; border: 0; background: transparent; }
.danger-text { color: #9d4b38; }
.history-table { margin-top: 20px; }
.history-head, .history-row { display: grid; grid-template-columns: 1.15fr 1.05fr .9fr 1fr 68px; gap: 13px; align-items: center; }
.history-head { color: #99a19c; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 0 4px 8px; }
.history-row { border-top: 1px solid #e6e8e2; padding: 13px 4px; }
.history-row > span { min-width: 0; }
.history-row strong { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-row small { display: block; color: #929b95; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.history-date-inner { min-width: 0; }
.history-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-edit { min-height: 30px; padding: 0 8px; border: 1px solid #d6dbd2; border-radius: 5px; background: white; color: #52675d; font-size: 9px; font-weight: 800; }
.row-delete { border: 0; background: transparent; color: #aab0ac; font-size: 17px; opacity: .6; }
.row-delete:hover { color: #a64d31; opacity: 1; }
.weather-retry { color: var(--orange-dark); border: 0; background: transparent; padding: 0; font-size: 8px; font-weight: 800; }
.no-history { min-height: 140px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #7d8982; font-size: 12px; gap: 8px; }
.disclaimer { text-align: center; color: #909991; font-size: 9px; line-height: 1.6; margin: 20px auto 0; max-width: 690px; }

.empty-state { min-height: calc(100vh - 170px); display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; max-width: 900px; margin: auto; padding: 38px; }
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid #b9c2b4; color: var(--orange); font-size: 27px; border-radius: 50%; margin-bottom: 20px; }
.empty-state h1 { font-family: Georgia,serif; font-weight: 500; letter-spacing: -.04em; line-height: 1.06; font-size: clamp(37px,5vw,59px); max-width: 730px; margin: 12px 0 17px; }
.empty-state > p { color: var(--ink-soft); max-width: 630px; line-height: 1.7; font-size: 14px; margin: 0; }
.empty-actions { display: flex; gap: 10px; margin-top: 26px; }
.how-it-works { display: grid; grid-template-columns: repeat(3,1fr); width: 100%; gap: 0; margin-top: 56px; border-top: 1px solid #d7dbd1; border-bottom: 1px solid #d7dbd1; text-align: left; }
.how-it-works > div { display: flex; align-items: center; gap: 14px; padding: 19px; border-right: 1px solid #d7dbd1; }
.how-it-works > div:last-child { border: 0; }
.how-it-works b { color: var(--orange); font-family: Georgia,serif; font-size: 17px; }
.how-it-works span { color: #79847e; font-size: 9px; line-height: 1.45; }
.how-it-works strong { display: block; color: var(--forest); font-size: 11px; }
.alert { background: #fff5e8; border: 1px solid #efd4b0; color: #8a5428; padding: 11px 14px; border-radius: 7px; font-size: 11px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }

dialog.modal { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 36px); overflow-y: auto; color: var(--ink); background: var(--paper); border: 0; border-radius: 10px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.28); }
dialog.modal::backdrop { background: rgba(7,26,19,.68); backdrop-filter: blur(5px); }
.account-dialog { width:min(520px,calc(100% - 26px)); }
.backup-dialog { width: min(690px,calc(100% - 26px)) !important; }
.backup-intro { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 13px; align-items: center; margin: 16px 0 13px; padding: 15px; border-radius: 9px; color: white; background: linear-gradient(135deg,#173d2e,#2b5641); }
.backup-intro-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; color: #f2a271; background: rgba(255,255,255,.09); }
.backup-intro-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.backup-intro strong { display: block; margin-bottom: 4px; font: 500 18px/1.2 Georgia,serif; }
.backup-intro p { margin: 0; color: #c7d4cd; font-size: 9px; line-height: 1.5; }
.backup-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 13px; border: 1px solid #dce1d8; border-radius: 9px; background: #f2f4ef; overflow: hidden; }
.backup-stats > div { min-width: 0; display: grid; gap: 3px; padding: 13px 15px; border-right: 1px solid #dce1d8; }
.backup-stats > div:last-child { border-right: 0; }
.backup-stats strong { color: var(--forest); font-family: Georgia,serif; font-size: 19px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.backup-stats span { color: #7e8a83; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.backup-action-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.backup-action { min-width: 0; min-height: 145px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 15px; border: 1px solid #d8ddd3; border-radius: 9px; color: var(--ink); background: white; text-align: left; transition: .18s ease; }
.backup-action:hover { border-color: #b3c0b1; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(25,48,39,.07); }
.backup-action > span { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 8px; color: var(--orange-dark); background: #fae8db; }
.backup-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.backup-action strong { color: var(--forest); font-size: 11px; }
.backup-action small { color: #77847d; font-size: 9px; line-height: 1.45; }
.backup-warning { display: grid; gap: 4px; margin-top: 10px; padding: 11px 12px; border: 1px solid #ebcfb9; border-radius: 7px; background: #fff5ed; }
.backup-warning strong { color: #9b4a2e; font-size: 10px; }
.backup-warning span { color: #7d6b63; font-size: 9px; line-height: 1.45; }
.install-dialog { width: min(570px,calc(100% - 26px)) !important; }
.install-intro { display: grid; gap: 5px; margin: 16px 0 12px; padding: 14px 15px; border-radius: 8px; color: white; background: var(--forest); }
.install-intro strong { font-family: Georgia,serif; font-size: 17px; font-weight: 500; }
.install-intro span { color: #c7d4cd; font-size: 9px; line-height: 1.5; }
.install-steps { display: grid; gap: 7px; }
.install-steps > div { display: grid; grid-template-columns: 31px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #dce1d8; border-radius: 8px; background: white; }
.install-steps b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #a74726; background: #fae4d6; font: 500 14px Georgia,serif; }
.install-steps span { min-width: 0; display: grid; gap: 3px; }
.install-steps strong { color: var(--forest); font-size: 10px; }
.install-steps small { color: #78857e; font-size: 8px; line-height: 1.4; }
.install-note { margin: 11px 1px 0; color: #748179; font-size: 9px; line-height: 1.5; }
.account-benefit { display:grid; gap:5px; margin:5px 0 20px; padding:15px 16px; color:#f7f5ee; border-radius:9px; background:var(--forest); }
.account-benefit strong { font:500 20px/1.2 Georgia,serif; }
.account-benefit span,.account-fine-print { color:#748078; font-size:10px; line-height:1.55; }
.account-benefit span { color:#cbd5ce; }
.account-tabs { display:grid; grid-template-columns:1fr 1fr; margin-bottom:18px; padding:4px; border-radius:9px; background:#e9ede5; }
.account-tabs button { min-height:40px; border:0; border-radius:7px; color:#647168; background:transparent; font:700 11px Arial,sans-serif; cursor:pointer; }
.account-tabs button.active { color:var(--forest); background:#fff; box-shadow:0 2px 8px rgba(13,42,32,.09); }
#account-auth-form { display:grid; gap:15px; }
.account-dialog .field { display:grid; gap:7px; color:#56665e; font-size:10px; font-weight:700; }
.account-dialog .field input { width:100%; min-width:0; padding:11px 12px; color:var(--ink); border:1px solid #ccd2c8; border-radius:6px; background:#fff; outline:none; font-size:12px; }
.account-dialog .field input:focus { border-color:#7c917f; box-shadow:0 0 0 3px rgba(106,132,111,.12); }
.account-submit { width:100%; }
.account-fine-print { margin:16px 2px 0; }
.account-user-card { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:12px; align-items:center; margin-bottom:16px; padding:14px; border:1px solid #d9ddd2; border-radius:9px; }
.account-avatar { width:48px; height:48px; display:grid; place-items:center; color:#fff; border-radius:50%; background:var(--forest); font:500 22px Georgia,serif; }
.account-user-card > span:nth-child(2) { display:grid; min-width:0; gap:3px; }
.account-user-card strong,.account-user-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-user-card strong { color:var(--forest); font-size:13px; }
.account-user-card small { color:#78857d; font-size:9px; }
.account-user-card > b { padding:5px 7px; color:#527145; border-radius:5px; background:#e8f0e2; font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.account-sync-card { display:grid; grid-template-columns:minmax(0,1fr) 12px; gap:12px; align-items:center; padding:16px; border:1px solid #dde1d8; border-radius:9px; background:#f2f4ef; }
.account-sync-card > span { display:grid; gap:4px; }
.account-sync-card strong { color:var(--forest); font-size:12px; }
.account-sync-card small { color:#738078; font-size:9px; line-height:1.45; }
.account-sync-card i { width:10px; height:10px; border-radius:50%; background:#6f9c5e; box-shadow:0 0 0 5px rgba(111,156,94,.12); }
.account-sync-card i[data-kind="working"] { background:#db8a3f; animation:account-pulse 1s infinite alternate; }
.account-sync-card i[data-kind="offline"],.account-sync-card i[data-kind="warning"] { background:#c95637; }
@keyframes account-pulse { to { opacity:.35; } }
.account-actions,.account-conflict > div { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:14px; }
.account-conflict { margin-top:14px; padding:15px; border:1px solid #efc29d; border-radius:9px; background:#fff3e8; }
.account-conflict strong { color:#8f3e26; font-size:12px; }
.account-conflict p { margin:5px 0 0; color:#7d685f; font-size:9px; line-height:1.5; }
.account-danger { margin-top:19px; padding-top:14px; border-top:1px solid #dde1d8; }
.account-danger summary { color:#8c4b39; font-size:10px; font-weight:700; cursor:pointer; }
.account-danger p { color:#7b857f; font-size:9px; }
.account-danger .field { margin:10px 0; }
.danger-text { color:#a7432d !important; }
.form-message[data-kind="error"] { color:#b2452d; }
.hint-dialog { width: min(430px,calc(100% - 32px)); color: var(--ink); border: 0; border-radius: 11px; background: var(--paper); padding: 25px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.hint-dialog::backdrop { background: rgba(7,26,19,.68); backdrop-filter: blur(5px); }
.hint-dialog-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.hint-symbol { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:white; background:var(--orange); font-family:Georgia,serif; font-size:18px; }
.hint-dialog h2 { margin: 6px 0 10px; color:var(--forest); font-family:Georgia,serif; font-size:27px; font-weight:500; letter-spacing:-.025em; }
.hint-dialog p { margin:0 0 19px; color:#68776f; font-size:11px; line-height:1.65; }
.hint-dialog .button { width:100%; }
.modal-heading { border-bottom: 1px solid #e1e4dc; padding-bottom: 19px; margin-bottom: 5px; }
.modal-heading h2 { font-size: 27px; }
.icon-button { width: 34px; height: 34px; border: 1px solid #d5d9d0; border-radius: 50%; background: transparent; color: #657269; font-size: 20px; }
.form-stack { display: grid; gap: 15px; }
.form-stack label { display: grid; gap: 7px; color: #56665e; font-size: 10px; font-weight: 700; }
.form-stack label > span { display: flex; justify-content: space-between; align-items: center; }
.form-stack label b { color: var(--orange-dark); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.form-stack label small, fieldset small { color: #929b95; font-weight: 500; }
.form-stack input, .form-stack select, .form-stack textarea { width: 100%; border: 1px solid #ccd2c8; border-radius: 6px; background: white; color: var(--ink); padding: 11px 12px; outline: none; font-size: 12px; }
.form-stack input[readonly] { background: #e9ede6; border-color: #d7dcd3; color: #647169; cursor: default; }
.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: #7c917f; box-shadow: 0 0 0 3px rgba(106,132,111,.12); }
.form-stack textarea { resize: vertical; }
.form-stack fieldset { border: 1px solid #d9ddd4; border-radius: 7px; padding: 13px; margin: 0; }
.form-stack legend { color: #56665e; font-size: 10px; font-weight: 700; padding: 0 7px; }
.form-stack legend small { margin-left: 7px; }
.profile-danger { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; margin-top: 3px; padding: 12px; border: 1px solid #e6c2b4; border-radius: 8px; background: #fff6f1; }
.profile-danger > div { min-width: 0; display: grid; gap: 3px; }
.profile-danger strong { color: #913f2b; font-size: 10px; }
.profile-danger span { color: #806d66; font-size: 9px; line-height: 1.4; }
.profile-danger .button { min-height: 38px; padding: 0 13px; font-size: 10px; }
.coordinate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; padding: 2px 0; }
.check-label input { width: 16px !important; height: 16px; margin: 0; accent-color: var(--orange); }
.check-label span { display: block !important; }
.upload-photo-field { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 15px; align-items: center; padding: 12px; border: 1px solid #d9ddd4; border-radius: 7px; background: #f1f3ed; }
.upload-photo-preview { width: 82px; height: 82px; overflow: hidden; display: grid; place-items: center; border: 1px solid #cdd3c9; border-radius: 8px; background: #dfe5dc; color: #79857e; font-size: 9px; }
.upload-photo-preview.profile-shape { border-radius: 50%; }
.upload-photo-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.temporary-photo-field { background: #edf1ea; }
.photo-controls { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.photo-upload-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #56665e; font-size: 10px; font-weight: 700; }
.photo-upload-title small { color: #929b95; font-weight: 500; }
.recommended-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #8b3d19 !important; background: #ffe0cd; font-size: 7px !important; font-weight: 900 !important; letter-spacing: .08em; text-transform: uppercase; }
.photo-recommendation { margin: 0; color: #64746c; font-size: 9px; line-height: 1.45; }
.photo-recommendation strong { color: var(--forest); }
.photo-picker-button { position: relative; overflow: hidden; width: 100%; min-width: 0; min-height: 44px; display: inline-flex !important; align-items: center; justify-content: center; border: 1px solid #c7cec3; border-radius: 7px; background: white; color: var(--forest) !important; padding: 0 14px; font-size: 11px !important; font-weight: 800 !important; line-height: 1.2; text-align: center; cursor: pointer; touch-action: manipulation; }
.recommended-picker { border: 2px solid var(--orange); background: #fff9f4; box-shadow: 0 0 0 3px rgba(221,107,50,.09); }
.photo-picker-button:active { background: #edf0e9; }
.photo-picker-button input[type="file"] { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 100px; }
.photo-status { min-width: 0; color: #7b8781; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.photo-status.success { color: #3f6f51; font-weight: 700; }
.photo-status.error { color: #9b4d31; font-weight: 700; }
.upload-photo-field .location-button { align-self: flex-start; padding-top: 2px; }
.batch-review { padding: 12px; border: 1px solid #d4dcd0; border-radius: 8px; background: #f1f5ee; }
.batch-review-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--forest); font-size: 10px; }
.batch-review-heading span { color: var(--orange-dark); font-size: 9px; font-weight: 800; }
.batch-review > p { margin: 6px 0 10px; color: #718078; font-size: 9px; line-height: 1.45; }
.batch-review-list { display: grid; gap: 7px; max-height: 230px; overflow-y: auto; }
.batch-review-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.8fr); gap: 8px; align-items: center; padding: 8px; border: 1px solid #dfe4db; border-radius: 6px; background: white; }
.batch-review-row span { min-width: 0; color: #5e6e66; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-review-row input { padding: 8px 9px; font-size: 10px; }
.batch-review-row.missing { border-color: #e6b59b; background: #fff8f3; }
.location-button { border: 0; background: transparent; color: var(--orange-dark); padding: 10px 2px 0; font-size: 10px; font-weight: 800; }
.coordinate-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 15px; }
.place-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; padding: 12px; border: 1px solid #d9ddd4; border-radius: 7px; background: #f1f3ed; }
.place-search > label { min-width: 0; }
.place-search > .button { min-height: 39px; }
.place-results { grid-column: 1 / -1; width: 100%; border: 1px solid #aeb9ac; border-radius: 6px; background: white; color: var(--ink); padding: 10px 11px; font-size: 11px; }
.saved-location-list { display: grid; gap: 7px; max-height: 210px; overflow-y: auto; }
.camera-monitoring-help { padding: 11px 12px; border-radius: 7px; background: #eaf0e8; color: #68776f; font-size: 9px; line-height: 1.5; }
.camera-monitoring-help strong { display: block; color: var(--forest); font-size: 10px; margin-bottom: 2px; }
.camera-monitoring-help .label-with-hint { justify-content: space-between; margin-bottom: 2px; }
.camera-monitoring-help .label-with-hint strong { margin: 0; }
.saved-location-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 11px; border: 1px solid #e0e4dc; border-radius: 7px; background: white; }
.saved-location-item strong { display: block; font-size: 11px; }
.saved-location-item small { display: block; color: #8a948d; font-size: 9px; line-height: 1.45; }
.saved-location-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 190px; }
.saved-location-item button { min-height: 29px; padding: 0 8px; border: 1px solid #d6dcd2; border-radius: 5px; background: #f8faf6; color: #476356; font-size: 8px; font-weight: 800; }
.saved-location-item button[data-delete-location] { color: #9d4b38; }
.saved-location-empty { padding: 15px; border: 1px dashed #cbd1c6; border-radius: 7px; color: #7d8982; font-size: 10px; }
.form-divider { display: flex; align-items: center; gap: 10px; color: #8c9690; font-size: 8px; text-transform: uppercase; letter-spacing: .12em; }
.form-divider::before, .form-divider::after { content:""; height: 1px; flex: 1; background: #dfe3da; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.auto-fill-note { border-radius: 7px; background: #eaf0e8; color: #607067; display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.auto-fill-note > span { color: var(--orange); font-size: 18px; }
.auto-fill-note p { margin: 0; font-size: 9px; line-height: 1.45; }
.auto-fill-note strong { display: block; color: var(--forest); font-size: 10px; }
.form-message { min-height: 14px; margin: -3px 0; color: #8a5428; font-size: 10px; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: 390px; display: flex; align-items: center; gap: 10px; background: var(--forest-deep); color: white; padding: 13px 16px; border-radius: 7px; box-shadow: 0 20px 50px rgba(0,0,0,.22); font-size: 11px; }
.toast span { width: 22px; height: 22px; border-radius: 50%; background: #8eaa70; display: grid; place-items: center; flex: 0 0 auto; }
.toast p { margin: 0; }

/* How-to page */
.guide-page { min-height: 100vh; }
.guide-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 54px 0 70px; }
.guide-hero { padding: 58px clamp(22px,6vw,72px); border-radius: 14px; color: white; background: radial-gradient(circle at 90% 20%,rgba(255,255,255,.08),transparent 28%),linear-gradient(135deg,#153d2d,#254e3b); box-shadow: var(--shadow); }
.guide-hero .eyebrow { color: #c3d4cb; }
.guide-hero h1 { max-width: 760px; margin: 13px 0 18px; font-family: Georgia,serif; font-size: clamp(39px,6vw,66px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.guide-hero p { max-width: 720px; margin: 0; color: #cedbd5; font-size: 14px; line-height: 1.75; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.guide-hero .button-secondary { color: white; border-color: rgba(255,255,255,.32); }
.guide-hero .button-secondary:hover { background: rgba(255,255,255,.09); }
.guide-nav { position: sticky; top: 88px; z-index: 10; display: flex; gap: 6px; margin: 16px 0 0; padding: 9px; overflow-x: auto; border: 1px solid #daddd4; border-radius: 9px; background: rgba(243,241,233,.94); backdrop-filter: blur(10px); scrollbar-width: none; }
.guide-nav::-webkit-scrollbar { display:none; }
.guide-nav a { flex: 0 0 auto; padding: 9px 12px; border-radius: 6px; color: #52675c; font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.guide-nav a:hover { color: var(--forest); background: white; }
.guide-section { scroll-margin-top: 145px; padding: 62px 0 4px; }
.guide-section-heading { max-width: 710px; margin-bottom: 22px; }
.guide-section-heading h2 { margin: 6px 0 8px; color: var(--forest); font-family: Georgia,serif; font-size: clamp(29px,4vw,42px); font-weight: 500; letter-spacing: -.035em; }
.guide-section-heading p { margin: 0; color: #718078; font-size: 12px; line-height: 1.6; }
.guide-step-list { display: grid; gap: 9px; }
.guide-step-card { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 17px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); box-shadow: 0 5px 18px rgba(20,44,34,.025); }
.guide-step-card > b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--orange); font-family: Georgia,serif; font-size: 18px; }
.guide-step-card h3, .guide-card h3, .guide-comparison h3 { margin: 1px 0 6px; color: var(--forest); font-size: 14px; }
.guide-step-card p, .guide-card p, .guide-comparison p { margin: 0; color: #6c7b73; font-size: 10px; line-height: 1.65; }
.guide-callout { display: grid; grid-template-columns: minmax(180px,.4fr) minmax(280px,1fr); gap: 18px; margin-top: 12px; padding: 18px 20px; border-radius: 9px; color: #617168; background: #e4ede0; font-size: 10px; line-height: 1.55; }
.guide-callout strong { color: var(--forest); font-size: 11px; }
.guide-callout.warning { color: #7b4b32; background: #fff0e3; }
.guide-callout.warning strong { color: #8f3f21; }
.guide-grid { display: grid; gap: 11px; }
.guide-grid.two-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
.guide-grid.three-column { grid-template-columns: repeat(3,minmax(0,1fr)); }
.guide-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.guide-card-number { display: block; margin-bottom: 18px; color: var(--orange-dark); font-family: Georgia,serif; font-size: 18px; }
.guide-tip { display: grid; grid-template-columns: minmax(160px,.32fr) minmax(0,1fr); gap: 20px; margin-top: 12px; padding: 18px 20px; border: 1px solid #d8dfd3; border-radius: 9px; background: #eef2eb; }
.guide-tip strong { color: var(--forest); font-size: 11px; }
.guide-tip p { margin: 0; color: #66766d; font-size: 10px; line-height: 1.6; }
.guide-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.guide-comparison article { padding: 25px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.guide-comparison article:first-child { color: white; border: 0; background: linear-gradient(135deg,#173d2e,#2c5a44); }
.guide-comparison article > span { display: block; margin-bottom: 13px; color: var(--orange-dark); font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.guide-comparison article:first-child > span { color: #f2a271; }
.guide-comparison article:first-child h3 { color: white; }
.guide-comparison article:first-child p { color: #bfd0c7; }
.guide-comparison article > strong { display: block; margin-top: 17px; color: var(--forest); font-size: 10px; line-height: 1.45; }
.guide-comparison article:first-child > strong { color: #e3ede8; }
.guide-rating-row { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 5px; margin: 12px 0; }
.guide-rating-row span { min-height: 66px; display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 7px; font-size: 8px; text-align: center; }
.guide-rating-row b { font-family: Georgia,serif; font-size: 21px; }
.guide-faq { display: grid; gap: 7px; }
.guide-faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 0 18px; }
.guide-faq summary { padding: 17px 0; color: var(--forest); cursor: pointer; font-size: 11px; font-weight: 800; }
.guide-faq p { margin: 0; padding: 0 0 18px; color: #6b7972; font-size: 10px; line-height: 1.65; }
.guide-footer-cta { margin-top: 70px; padding: 44px 30px; border-radius: 12px; color: white; background: var(--forest-deep); text-align: center; }
.guide-footer-cta h2 { max-width: 650px; margin: 10px auto 20px; font-family: Georgia,serif; font-size: clamp(27px,4vw,42px); font-weight: 500; letter-spacing: -.035em; }
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 235px minmax(0,1fr); }
  .main-panel { padding: 30px 26px 45px; }
  .summary-grid { grid-template-columns: repeat(3,1fr); }
  .prediction-card { grid-column: 1/-1; }
  .prediction-layout { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 16px; }
  .brand { font-size: 15px; }
  .brand-mark { transform: scale(.85); }
  .brand-copy small { display:none; }
  .saved-status { display: none; }
  .header-actions { gap: 11px; }
  .account-chip { min-height:38px; padding:0 10px; }
  .header-guide-link { font-size: 9px; }
  .header-actions .button { min-height: 38px; padding: 0 13px; font-size: 11px; }
  .quick-tools { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 8px 12px; gap: 6px; }
  .quick-tool { min-height: 50px; gap: 7px; padding: 7px 8px; }
  .quick-tool-icon { width: 27px; height: 27px; border-radius: 7px; }
  .quick-tool-icon svg { width: 16px; height: 16px; }
  .quick-tool-copy strong { font-size: 8px; }
  .quick-tool-copy small { display: none; }
  .workspace { display: block; }
  .deer-panel { min-height: auto; border: 0; border-bottom: 1px solid #d9ddd2; padding: 18px 16px 14px; }
  .deer-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 76vw); overflow-x: auto; margin: 16px -16px 10px; padding: 0 16px 5px; }
  .deer-item-date { display: none; }
  .main-panel { padding: 26px 16px 38px; }
  .record-header { display: block; }
  .record-identity { align-items: flex-start; }
  .deer-profile-large { width: 58px; height: 58px; font-size: 23px; }
  .record-header h1 { font-size: 40px; }
  .record-actions { margin-top: 19px; }
  .record-actions { width: 100%; }
  .record-actions .button { flex: 1; }
  .dashboard-guide { align-items: stretch; flex-direction: column; gap: 10px; }
  .location-filter-control { grid-template-columns: auto minmax(0,1fr); min-width: 0; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .prediction-card { grid-column: 1/-1; }
  .prediction-layout { grid-template-columns: 1fr; gap: 18px; }
  .prediction-runners { padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .summary-card { min-height: 126px; }
  .metric-card:last-child { grid-column: 1/-1; min-height: 112px; }
  .card { padding: 21px 17px; overflow: hidden; }
  .general-forecast-heading { grid-template-columns: 1fr; gap: 15px; }
  .general-forecast-controls { grid-template-columns: minmax(0,1fr) auto; }
  .general-forecast-best { grid-template-columns: auto minmax(0,1fr); gap: 12px; }
  .forecast-best-factors { grid-column: 1/-1; padding: 11px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .forecast-timeline-note { align-items: flex-start; flex-direction: column; }
  .forecast-detail-top { grid-template-columns: auto minmax(0,1fr); }
  .forecast-condition-grid { grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-factor-list { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading > p { display: none; }
  .activity-chart { grid-template-columns: repeat(6,minmax(0,1fr)); grid-template-rows: repeat(2,150px); gap: 18px 5px; height: auto; overflow: visible; padding: 22px 0 4px; }
  .activity-column { height: 150px; }
  .activity-label { font-size: 7px; }
  .bar-track { width: min(25px,65%); }
  .rut-chart { overflow: visible; }
  .rut-histogram { min-width: 0; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
  .rut-legend { min-width: 0; }
  .moon-histogram { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .moon-legend { min-width: 0; }
  .hint-list { grid-template-columns: 1fr; }
  .movement-summary { grid-template-columns: 1fr; }
  .movement-map-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .movement-map-heading span { text-align: left; }
  .pattern-row { grid-template-columns: 24px minmax(0,1fr) 32px; gap: 9px; }
  .pattern-meter { display: none; }
  .history-head { display: none; }
  .history-table { min-width: 0; width: 100%; }
  .history-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 28px; gap: 11px 8px; padding: 16px 2px; width: 100%; overflow: hidden; }
  .history-row > span { grid-column: 1; min-width: 0; }
  .history-row > span::before { display: block; color: #a0a7a2; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
  .history-date::before { content: "Date & time"; }
  .history-location::before { content: "Location"; }
  .history-weather::before { content: "Weather"; }
  .history-rut::before { content: "Rut stage"; }
  .history-row strong, .history-row small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .history-date-inner { grid-template-columns: 46px minmax(0,1fr); }
  .trail-thumb { width: 46px; height: 46px; }
  .history-row .history-row-actions { grid-column: 2; grid-row: 1; align-self: start; flex-direction: column; }
  .history-actions .danger-text { display: none; }
  .empty-state { min-height: auto; padding: 45px 0 18px; }
  .empty-state h1 { font-size: 39px; }
  .empty-actions { flex-direction: column; width: 100%; }
  .how-it-works { grid-template-columns: 1fr; margin-top: 42px; }
  .how-it-works > div { border-right: 0; border-bottom: 1px solid #d7dbd1; }
  .how-it-works > div:last-child { border-bottom: 0; }
  .alert { align-items: flex-start; flex-direction: column; }
  dialog.modal { padding: 22px 18px; }
  .account-dialog { width:calc(100% - 18px); }
  .backup-action-grid { grid-template-columns: 1fr; }
  .backup-action { min-height: 0; display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; gap: 3px 10px; }
  .backup-action > span { grid-row: 1 / 3; margin: 0; }
  .backup-action small { grid-column: 2; }
  .profile-danger { grid-template-columns: 1fr; }
  .profile-danger .button { width: 100%; }
  .coordinate-row { gap: 7px; }
  .batch-review-row { grid-template-columns: 1fr; }
  .saved-location-item { grid-template-columns: 1fr; }
  .saved-location-actions { justify-content: flex-start; max-width: none; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
  .guide-shell { width: min(100% - 24px,1120px); padding: 18px 0 45px; }
  .guide-hero { padding: 38px 22px; }
  .guide-hero h1 { font-size: 41px; }
  .guide-hero p { font-size: 12px; }
  .guide-nav { top: 72px; margin-top: 10px; }
  .guide-section { scroll-margin-top: 128px; padding-top: 48px; }
  .guide-grid.two-column, .guide-grid.three-column, .guide-comparison { grid-template-columns: 1fr; }
  .guide-callout, .guide-tip { grid-template-columns: 1fr; gap: 7px; }
  .guide-rating-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 420px) {
  .brand-copy { max-width: 90px; line-height: 1.05; }
  .header-actions .button { padding: 0 10px; }
  .quick-tools { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-tool { min-height: 48px; }
  .backup-intro { grid-template-columns: 38px minmax(0,1fr); padding: 12px; }
  .backup-intro-icon { width: 38px; height: 38px; }
  .backup-stats > div { padding: 11px 8px; }
  .backup-stats strong { font-size: 15px; }
  .backup-stats span { font-size: 6px; }
  .guide-page .topbar { padding: 0 12px; }
  .guide-page .header-actions { gap: 8px; }
  .guide-page .header-actions .button { padding: 0 9px; }
  .summary-grid { grid-template-columns: 1fr; }
  .prediction-card, .metric-card:last-child { grid-column: auto; }
  .coordinate-row { grid-template-columns: 1fr; }
  .upload-photo-field { grid-template-columns: 68px minmax(0,1fr); gap: 10px; padding: 10px; }
  .upload-photo-preview { width: 68px; height: 68px; }
  .photo-upload-title { align-items: flex-start; }
  .place-search { grid-template-columns: 1fr; }
  .place-results { grid-column: 1; }
  .moon-column { grid-template-columns: 34px minmax(0,1fr); padding: 7px; }
  .moon-glyph { width: 32px; height: 32px; font-size: 25px; }
  .movement-hint { grid-template-columns: 56px minmax(0,1fr); }
  .solar-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .general-forecast-controls { grid-template-columns: 1fr; }
  .general-forecast-controls .button { width: 100%; }
  .general-forecast-best { grid-template-columns: 1fr; text-align: center; }
  .forecast-best-score { margin: auto; }
  .forecast-best-factors { text-align: left; }
  .forecast-detail-top { grid-template-columns: 1fr; }
  .forecast-detail-rating { margin: auto; }
  .forecast-detail-title { text-align: center; }
  .guide-hero-actions { flex-direction: column; }
  .guide-step-card { grid-template-columns: 38px minmax(0,1fr); gap: 12px; padding: 17px 15px; }
  .guide-step-card > b { width: 36px; height: 36px; }
}

@media (max-width: 600px) {
  .summary-grid { grid-template-columns: 1fr; }
  .prediction-card, .metric-card:last-child { grid-column: auto; }
  .summary-card { min-height: 112px; }
  .record-identity { gap: 12px; }
  .record-header h1 { font-size: 35px; }
  .movement-prediction strong { font-size: 19px; }
  .transition-row { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) 24px; gap: 5px; padding: 8px 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
