:root { --paper: #f6f5f0; --white: #fffefa; --ink: #20332d; --muted: #66716a; --line: #dde2d8; --green: #184e42; --green-soft: #e8eee4; --sage: #a6bba2; --amber: #8b6737; --error: #914633; --radius: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
html { scroll-padding-top: 30px; }
body { margin: 0; min-width: 280px; }
button, textarea, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, summary:focus-visible, a:focus-visible, textarea:focus-visible { outline: 3px solid #b49557; outline-offset: 4px; }
button, textarea { border-radius: 10px; }
p { margin: 0; line-height: 1.65; }
h1, h2, h3 { margin: 0; }
a { color: var(--green); }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 15px; z-index: 10; padding: 15px; background: white; }
.skip-link:focus { top: 10px; }
.initial-loading { min-height: 75vh; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 24px; color: var(--muted); }
.noscript { padding: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 7px; font-size: 24px; line-height: 1; font-weight: 750; letter-spacing: 5px; color: var(--ink); }
.brand-dot { width: 7px; height: 7px; background: var(--green); border-radius: 100%; margin-top: 13px; }
.app-header { max-width: 1180px; margin: auto; padding: max(28px, env(safe-area-inset-top)) 40px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.header-controls { display: flex; align-items: center; gap: 22px; min-width: 0; }
.header-label { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: var(--muted); }
.company-pill { background: var(--green-soft); padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; max-width: 160px; white-space: nowrap; }
.account-menu { position: relative; }
.account-trigger { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 13px; color: var(--muted); gap: 7px; list-style: none; }
.account-trigger::after { content: '⌄'; }
.account-trigger::-webkit-details-marker { display: none; }
.account-panel { position: absolute; right: 0; top: 48px; background: var(--white); padding: 22px; min-width: 265px; max-width: 80vw; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px #16332816; }
.account-name { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.account-role { font-size: 12px; color: var(--muted); margin: 3px 0 16px; }
.offline-banner { background: #efe1c7; color: #5a4225; padding: 12px max(20px, calc((100vw - 1100px) / 2)); font-size: 13px; line-height: 1.6; }
.button { min-height: 48px; border: 1px solid transparent; padding: 13px 21px; font-size: 14px; font-weight: 650; letter-spacing: .05px; line-height: 1.45; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover:not(:disabled) { background: #123d34; }
.button-secondary { background: transparent; border-color: #c6cec2; color: var(--ink); }
.button-text { color: var(--muted); background: none; font-weight: 500; }
.full-width { width: 100%; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 2.4px; color: var(--green); display: inline-block; }
.login-layout { max-width: 1120px; min-height: 68vh; margin: auto; padding: 90px 40px 35px; display: grid; grid-template-columns: 1.13fr 1fr; gap: 105px; align-items: start; }
.login-introduction { position: relative; }
.login-introduction h1 { font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; line-height: 1.08; letter-spacing: -2.9px; max-width: 450px; margin: 20px 0 24px; }
.login-description { font-size: 17px; color: var(--muted); max-width: 390px; }
.login-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 35px; margin-top: 5px; box-shadow: 0 12px 40px #243c2e05; }
.section-marker { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1.7px; margin-bottom: 20px; }
.login-panel h2 { font-size: 26px; line-height: 1.3; font-weight: 550; letter-spacing: -.8px; margin-bottom: 14px; }
.login-panel > .muted { font-size: 14px; margin-bottom: 26px; }
.auth-assurance { font-size: 12px; color: var(--muted); padding: 17px 4px; }
.login-help { border-top: 1px solid var(--line); }
.login-help summary { min-height: 48px; padding-top: 15px; font-size: 12px; cursor: pointer; }
.login-help p { color: var(--muted); font-size: 12px; padding-bottom: 4px; }
.notice, .error-message { background: #f2ecdd; color: #665637; border-radius: 10px; padding: 13px 15px; margin: 12px 0 18px; font-size: 13px; line-height: 1.6; }
.error-message { background: #f5e9e3; color: var(--error); }
.orbit-motif { position: relative; width: 230px; height: 180px; margin: 30px 0 0; overflow: hidden; opacity: .65; }
.orbit { position: absolute; border: 1px solid #aebfb0; border-radius: 100%; width: 170px; height: 170px; left: 20px; top: 5px; }
.orbit-two { transform: rotate(-45deg) scaleX(.57); }
.orbit-three { transform: rotate(45deg) scaleX(.57); }
.orbit-center { position: absolute; left: 90px; top: 67px; font-family: Georgia, serif; color: var(--green); font-size: 40px; }
.feed-layout { max-width: 1100px; margin: auto; padding: 48px 0 0; }
.feed-intro { max-width: 750px; }
.feed-intro h1 { font-size: clamp(30px, 3.5vw, 43px); font-weight: 500; letter-spacing: -1.7px; line-height: 1.15; margin: 15px 0 14px; }
.intro-copy { font-size: 15px; color: var(--muted); }
.snapshot-banner { display: flex; gap: 13px; align-items: flex-start; border: 1px solid #daddcf; border-radius: 12px; padding: 16px 20px; background: #edeee5; margin: 30px 0 26px; }
.snapshot-icon { font-size: 21px; line-height: 1.3; color: #78826b; }
.snapshot-banner strong { font-size: 13px; font-weight: 650; }
.snapshot-banner p { font-size: 12px; color: #66725e; margin-top: 3px; }
.feed-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 25px; }
.filters { display: flex; gap: 5px; background: #eaece3; border: 1px solid #e4e7dc; border-radius: 12px; padding: 4px; }
.filter { min-height: 42px; padding: 9px 17px; background: none; border: 0; color: var(--muted); font-size: 13px; font-weight: 550; border-radius: 8px; white-space: nowrap; }
.filter.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px #183b2210; }
.reviewed-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.card-feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.insight-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 27px 28px 0; overflow: hidden; }
.primary-card { border-top: 3px solid #78967b; padding-top: 25px; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 21px; }
.area-label { font-size: 10px; font-weight: 750; letter-spacing: 1.4px; color: var(--green); text-transform: uppercase; }
.horizon-label { font-size: 10px; border: 1px solid #e1e3d9; border-radius: 20px; padding: 6px 9px; color: var(--muted); white-space: nowrap; }
.horizon-today { background: #edf1e8; border-color: #edf1e8; color: var(--green); }
.card-title { font-size: 25px; line-height: 1.25; letter-spacing: -.8px; font-weight: 550; overflow-wrap: anywhere; }
.card-finding { font-size: 14px; line-height: 1.7; color: #5c6a60; margin-top: 15px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 21px 0; margin: 23px 0; }
.metric { min-width: 0; }
.metric-value { font-size: clamp(23px, 2.4vw, 30px); font-weight: 550; line-height: 1.3; letter-spacing: -1px; margin: 0 0 6px; color: var(--green); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric-value.long-value { font-size: 23px; letter-spacing: -.7px; }
.metric-unit { font-size: 11px; font-weight: 550; letter-spacing: 0; color: var(--muted); display: inline-block; margin-left: 5px; }
.metric-label { font-size: 11px; line-height: 1.55; color: var(--muted); max-width: 230px; }
.card-section { margin: 21px 0; }
.card-section h3, .next-action h3 { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.card-section p, .next-action p { font-size: 13px; line-height: 1.65; color: #56655a; }
.next-action { display: flex; gap: 12px; padding: 17px; background: #edf2e8; border-radius: 12px; margin-bottom: 19px; }
.action-marker { font-size: 22px; color: var(--green); line-height: 1.1; }
.caveat { padding: 0 0 20px; }
.caveat strong { display: block; font-size: 11px; font-weight: 700; color: var(--amber); margin-bottom: 5px; }
.caveat p { font-size: 12px; color: var(--muted); line-height: 1.7; }
.source-details { border-top: 1px solid var(--line); }
.source-details > summary { color: var(--muted); font-size: 11px; min-height: 48px; cursor: pointer; padding: 16px 0; line-height: 1.5; }
.source-body { border-bottom: 1px solid var(--line); padding: 0 0 18px; }
.source-scope { font-size: 12px; color: var(--muted); }
.source-list { padding: 0 0 0 17px; font-size: 12px; line-height: 1.7; color: var(--muted); margin: 12px 0; }
.source-list li + li { margin-top: 8px; }
.source-identifiers > summary { cursor: pointer; min-height: 44px; font-size: 11px; padding: 15px 0 11px; }
.provenance { margin: 5px 0 20px; }
.provenance dt { margin-top: 12px; color: var(--muted); font-size: 10px; }
.provenance dd { margin: 4px 0 0; font-size: 11px; overflow-wrap: anywhere; line-height: 1.6; }
.reference { border-top: 1px dashed var(--line); padding: 12px 0; }
.reference strong { font-size: 11px; }
.source-path, .source-hash { font-size: 10px; overflow-wrap: anywhere; color: var(--muted); margin-top: 5px; }
.source-hash { font-family: ui-monospace, monospace; }
.feedback-section { border-top: 1px solid var(--line); margin: 0 -28px; padding: 0 28px; background: #fafaf4; }
.feedback-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; list-style: none; cursor: pointer; font-size: 12px; font-weight: 650; min-height: 64px; padding: 14px 0; }
.feedback-summary::-webkit-details-marker { display: none; }
.feedback-summary-mark { font-size: 20px; font-weight: 400; color: var(--green); }
.feedback-explanation { font-size: 12px; color: var(--muted); margin: 0 0 24px; }
.feedback-form { padding: 0 0 24px; }
.rating-group { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.rating-group legend { font-size: 14px; font-weight: 650; line-height: 1.5; padding: 0; margin: 0 0 13px; }
.rating-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.rating-choice { min-width: 0; min-height: 44px; border: 1px solid #ced7c9; background: var(--white); color: var(--ink); font-size: 16px; border-radius: 8px; padding: 9px 3px; }
.rating-choice[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; box-shadow: 0 0 0 2px #c9d9c3; }
.rating-ends { display: flex; justify-content: space-between; gap: 16px; margin: 9px 0 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.rating-ends > span:last-child { text-align: right; }
.rating-extras { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; }
.unable-choice, .clear-choice { font-size: 11px; min-height: 44px; padding: 10px 8px; border: 1px solid transparent; background: none; color: var(--muted); border-radius: 8px; }
.unable-choice { margin-left: -8px; }
.unable-choice[aria-pressed="true"] { color: var(--green); border-color: var(--sage); background: var(--green-soft); margin-left: 0; }
.clear-choice { text-decoration: underline; text-underline-offset: 3px; }
.rating-selection { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.note-label { display: block; font-size: 13px; font-weight: 650; line-height: 1.6; }
.note-input { display: block; background: var(--white); border: 1px solid #cbd4c6; width: 100%; min-height: 108px; padding: 13px 14px; margin-top: 10px; resize: vertical; font-size: 16px; line-height: 1.5; color: var(--ink); scroll-margin-bottom: 35vh; }
.note-input::placeholder { color: #8d9789; }
.field-hint { font-size: 10px; color: var(--muted); margin-top: 6px; }
.save-status { font-size: 12px; margin: 18px 0 12px; color: var(--muted); line-height: 1.6; }
.save-status.is-saved { color: var(--green); }
.save-status.is-error { color: var(--error); }
.feedback-save { width: 100%; }
.feedback-version-note { font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 14px; }
.empty-state { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 30px 0; grid-column: 1 / -1; background: var(--white); }
.empty-state h2 { font-size: 22px; font-weight: 550; letter-spacing: -.5px; margin-bottom: 14px; }
.empty-state .button { margin-top: 20px; }
.feed-boundary { max-width: 660px; margin: 28px auto 0; color: var(--muted); font-size: 11px; text-align: center; }
.app-footer { max-width: 1100px; margin: 55px auto 0; padding: 28px 0 max(32px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; align-items: start; gap: 22px; flex-wrap: wrap; }
.footer-brand { font-size: 11px; font-weight: 750; letter-spacing: 2px; }
.footer-copy { color: var(--muted); font-size: 11px; }
.install-help { margin-left: auto; max-width: 345px; font-size: 11px; color: var(--muted); }
.install-help summary { cursor: pointer; min-height: 44px; padding-bottom: 15px; }
.install-help p { padding-bottom: 15px; }
@media (min-width: 1100px) { .rating-options { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1190px) { .feed-layout, .app-footer { margin-left: 40px; margin-right: 40px; } }
@media (max-width: 850px) { .login-layout { gap: 35px; padding-top: 65px; } .login-panel { padding: 25px; } .card-feed { gap: 16px; } .insight-card { padding-left: 22px; padding-right: 22px; } .feedback-section { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; } .card-meta { flex-wrap: wrap; } .card-title { font-size: 23px; } .metrics { grid-template-columns: 1fr; gap: 15px; } }
@media (max-width: 650px) {
  .app-header { padding: max(23px, env(safe-area-inset-top)) 21px 17px; gap: 10px; }
  .wordmark { font-size: 20px; letter-spacing: 4px; gap: 5px; }
  .brand-dot { width: 5px; height: 5px; margin-top: 11px; }
  .header-controls { gap: 12px; }
  .company-pill { font-size: 11px; padding: 7px 10px; max-width: 105px; }
  .header-label { font-size: 8px; letter-spacing: 1.5px; }
  .account-trigger { font-size: 11px; }
  .login-layout { padding: 38px 22px 0; display: block; min-height: auto; }
  .login-introduction h1 { font-size: 43px; letter-spacing: -2px; max-width: 315px; margin: 17px 0 17px; }
  .login-description { font-size: 14px; }
  .orbit-motif { display: none; }
  .login-panel { padding: 25px 23px; margin-top: 31px; }
  .login-panel h2 { font-size: 24px; }
  .feed-layout { margin: 0; padding: 32px 17px 0; }
  .feed-intro { padding: 0 5px; }
  .feed-intro h1 { font-size: 33px; letter-spacing: -1.4px; max-width: 310px; margin: 14px 0 15px; }
  .intro-copy { font-size: 13px; max-width: 330px; }
  .eyebrow { font-size: 9px; letter-spacing: 2px; }
  .snapshot-banner { margin: 24px 0 21px; padding: 14px 15px; gap: 10px; }
  .snapshot-banner strong { font-size: 12px; }
  .snapshot-banner p { font-size: 11px; line-height: 1.7; }
  .feed-toolbar { flex-wrap: wrap; gap: 12px; margin-bottom: 17px; }
  .filters { width: 100%; justify-content: space-between; }
  .filter { flex: 1; min-height: 44px; padding: 9px 7px; font-size: 12px; }
  .reviewed-count { font-size: 10px; margin-left: 5px; }
  .card-feed { grid-template-columns: 1fr; gap: 20px; }
  .insight-card { padding: 24px 22px 0; border-radius: 17px; }
  .primary-card { padding-top: 22px; }
  .card-meta { flex-wrap: nowrap; margin-bottom: 19px; }
  .area-label { font-size: 9px; letter-spacing: 1px; }
  .horizon-label { font-size: 9px; padding: 6px 8px; }
  .card-title { font-size: 25px; line-height: 1.25; letter-spacing: -.85px; }
  .card-finding { font-size: 13px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 0; margin: 21px 0; }
  .metric-value { font-size: 25px; letter-spacing: -.9px; }
  .metric-value.long-value { font-size: 20px; letter-spacing: -.55px; }
  .metric-label { font-size: 10px; }
  .metric-unit { font-size: 10px; }
  .card-section p, .next-action p { font-size: 12px; }
  .next-action { padding: 15px 14px; gap: 9px; }
  .caveat p { font-size: 11px; }
  .feedback-summary { min-height: 62px; font-size: 12px; }
  .rating-options { gap: 6px; }
  .rating-choice { min-height: 44px; }
  .rating-group legend { font-size: 13px; }
  .app-footer { margin: 37px 22px 0; padding-top: 23px; gap: 8px 18px; }
  .install-help { width: 100%; margin: 10px 0 0; max-width: none; }
  .feed-boundary { padding: 0 8px; font-size: 10px; }
  .empty-state { padding: 25px 22px; }
}
@media (max-width: 350px) { .rating-options { grid-template-columns: repeat(5, minmax(0, 1fr)); } .insight-card { padding-left: 18px; padding-right: 18px; } .feedback-section { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; } .metric-value { font-size: 22px; } .card-meta { align-items: start; flex-wrap: wrap; } .wordmark { font-size: 18px; } .header-controls { gap: 8px; } .company-pill { max-width: 80px; } }
@media (prefers-reduced-motion: no-preference) { .button, .rating-choice { transition: background-color .12s, border-color .12s; } }
@media (display-mode: standalone) { .install-help { display: none; } }

/* Device policy and content freshness are part of the app, not breakpoint gates. */
.phone-required { max-width: 620px; margin: 70px auto 90px; padding: 0 28px; text-align: center; }
.phone-required h1 { font-size: clamp(31px, 5vw, 44px); font-weight: 500; letter-spacing: -1.6px; line-height: 1.15; margin: 20px 0; }
.phone-required > p { max-width: 460px; margin: auto; font-size: 15px; line-height: 1.8; }
.phone-symbol { width: 74px; height: 124px; border: 2px solid #a2b6a4; border-radius: 17px; margin: 0 auto 32px; display: grid; place-items: center; position: relative; color: var(--green); font-family: Georgia, serif; font-size: 36px; }
.phone-symbol::after { content: ''; width: 24px; height: 3px; border-radius: 3px; background: #a2b6a4; position: absolute; bottom: 10px; }
.freshness-panel { margin: -10px 0 25px; }
.freshness-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.last-checked { font-size: 11px; line-height: 1.6; color: var(--muted); }
.refresh-button { min-height: 44px; padding: 10px 15px; background: transparent; border-color: #c6cec2; color: var(--green); white-space: nowrap; font-size: 12px; }
.freshness-hint { font-size: 10px; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.update-notice { padding: 19px 20px; margin-top: 17px; border: 1px solid #b7cbb6; border-radius: 12px; background: #eaf2e8; }
.update-notice strong { display: block; font-size: 15px; color: var(--green); }
.update-notice p { color: #4b6250; font-size: 12px; line-height: 1.7; margin-top: 8px; }
.update-notice .draft-update-warning { color: #665637; }
.update-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.update-actions .button { font-size: 12px; }
.standalone-note { font-size: 11px; color: var(--muted); margin-left: auto; }
@media (max-width: 650px) {
  .phone-required { margin-top: 45px; margin-bottom: 60px; padding: 0 24px; }
  .phone-required > p { font-size: 14px; }
  .freshness-panel { margin: -8px 4px 23px; }
  .update-notice { padding: 17px 16px; }
  .update-actions { flex-direction: column; }
  .update-actions .button { width: 100%; }
  .standalone-note { width: 100%; margin: 8px 0 0; }
}
