/* The pages after the live home page: sign-in and sign-up, the example report, About and the whole
   workspace (owner, 2026-10-24: "the cabinet must look like the new home page").
   Same colors, fonts and buttons as landing.css; class names stay those of the templates.
   Loaded through live_styles.html instead of app.css, so the classic home page keeps app.css as is.
   Fonts are local files (fonts/README.md); Russian letters come from Roboto and Fira Sans Extra Condensed. */

@font-face { font-family: 'Scanner Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/barlow/barlow-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Scanner Text'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/barlow/barlow-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Scanner Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/barlow/barlow-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Scanner Text'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/roboto/roboto-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Scanner Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/barlow/barlow-condensed-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Scanner Display'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/barlow/barlow-condensed-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Scanner Display'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/fira-sans-extra-condensed/fira-sans-extra-condensed-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Scanner Display'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('fonts/fira-sans-extra-condensed/fira-sans-extra-condensed-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #111418;
  --text: #14171C;
  --muted: #4B5563;
  --faint: #6B7280;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --soft: #F3F4F6;
  --paper: #FFFFFF;
  --yellow: #FFC93C;
  --yellow-hover: #FFD666;
  --yellow-tint: #FFF6DB;
  --on-dark: #E5E7EB;
  --on-dark-muted: #C9CED6;
  --dark-line: #2B323C;
  --ok-bg: #E3F2E7;
  --ok-ink: #1C6434;
  --warn-bg: #FFF1CC;
  --warn-ink: #6B4A00;
  --bad-bg: #FDECEC;
  --bad-ink: #9B1C1C;
  --font-text: 'Scanner Text', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Scanner Display', 'Arial Narrow', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --side: 264px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--font-text); font-size: 18px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: 0.005em;
  text-transform: uppercase; color: var(--ink);
}
h3 { font-family: var(--font-text); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ink); }
/* Headings wrap between words; only a word longer than the whole line may break. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(38px, 4.4vw, 60px); }
h2 { font-size: clamp(26px, 2.4vw, 32px); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
/* On the dark surfaces (side bar, the report card, the photo block, chat questions) the ring turns yellow,
   so a keyboard user always sees where they are. A new dark surface joins this list (test_live_pages_style). */
:is(.sidebar, .next-step, .auth-aside, .chat-question) :focus-visible { outline-color: var(--yellow); }
/* The skip link opens over the dark side bar (desktop) or the dark top bar (phones) of the workspace. */
.workspace .skip:focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20; padding: 10px 16px; border-radius: 8px;
  background: var(--yellow); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }
.wrap { width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.quiet, .count-label { font-size: 15px; color: var(--muted); }
.count-label { white-space: nowrap; }
.subtle { color: var(--muted); }
.full-width { width: 100%; }
/* Text a customer controls (a business, city or competitor name) may be one long word: it breaks
   instead of pushing the page sideways. */
.workspace-main, .sample-main, .about-page, .auth-panel, .sidebar { overflow-wrap: anywhere; }
.section-label, .badge { max-width: 100%; }
/* Plain links inside page text, and folded sections */
:where(.workspace-main, .sample-main, .about-page) a:not([class]) {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
:where(.workspace-main, .sample-main, .about-page) a:not([class]):hover { text-decoration-color: var(--ink); }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
summary::marker { color: var(--ink); }

/* Brand: the same yellow tag mark as the home page */
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: var(--yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.brand-mark i { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 22px;
  border: 2px solid var(--yellow); border-radius: 8px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 18px; line-height: 1.15; text-align: center; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.button:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: var(--ink); }
.button.small { min-height: 44px; padding: 8px 16px; font-size: 16px; }
.button.secondary { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.button.secondary:hover { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 17px;
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--ink); }
.plain-button {
  padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 16px;
  text-decoration: underline; text-underline-offset: 3px;
}
.plain-button:hover { color: var(--ink); }

/* Small labels above headings: the home page's pill with a yellow dot */
.section-label {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3;
}
.section-label::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* Forms */
form > label { display: block; margin-bottom: 20px; }
label { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
label > small { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--muted); }
form > .quiet { margin: 4px 0 16px; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  display: block; width: 100%; margin-top: 8px; min-height: 54px; padding: 12px 14px;
  border: 2px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--text);
  font-size: 18px; font-weight: 400; line-height: 1.4;
}
textarea { resize: vertical; }
input:not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--ink); outline: 3px solid var(--yellow); outline-offset: 0;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111418' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type=radio], input[type=checkbox] { accent-color: var(--ink); width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-row > label { margin: 0; }
form .settings-grid + label { display: block; margin-top: 20px; }
.notice-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: -8px 0 24px; }
fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
fieldset > label:not(.goal-option) { display: block; margin-top: 12px; }
legend { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0; }
.check-label, .checkbox-label { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 400; color: var(--muted); }
.goal-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-weight: 400; }
.goal-option span { display: block; }
.goal-option strong { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.goal-option small { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }

/* Messages */
.notice {
  padding: 14px 18px; border-radius: 12px; font-size: 16px; line-height: 1.55; margin-bottom: 24px;
  border: 1px solid transparent; overflow-wrap: anywhere;
}
.notice.error { color: var(--bad-ink); background: var(--bad-bg); border-color: #F5C9C9; }
.notice.success { color: var(--ok-ink); background: var(--ok-bg); border-color: #C6E5CF; }
.notice.info { color: var(--text); background: var(--yellow-tint); border-color: #F6DE95; }
.notice strong { color: inherit; }
.badge {
  display: inline-flex; align-items: center; border-radius: 999px; background: var(--soft); padding: 3px 11px;
  font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ink);
}
.badge.green { background: var(--ok-bg); color: var(--ok-ink); }
.badge + .badge { margin-left: 6px; }
.badge.amber { background: var(--warn-bg); color: var(--warn-ink); }

/* Public pages: header like the home page */
.site-top { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.site-header .brand { margin-right: auto; }
.site-header .text-link { font-size: 16px; }

/* Language choice */
.language-choice { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 0; }
.language-choice label { display: block; margin: 0; }
.language-choice label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language-choice select { width: auto; max-width: 190px; min-height: 40px; margin: 0; padding: 4px 34px 4px 12px; font-size: 15px; font-weight: 600; background-position: right 12px center; }
.language-choice button { font-size: 15px; white-space: normal; }

/* Sign-in and sign-up */
.auth-page { background: var(--paper); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 69px); }
.auth-aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); color: #FFFFFF;
  background: var(--ink) url('landing/hero-installer.jpg') 78% center / cover no-repeat;
}
.auth-aside::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 13, 18, 0.94) 0%, rgba(10, 13, 18, 0.86) 55%, rgba(10, 13, 18, 0.66) 100%);
}
.auth-aside > * { position: relative; max-width: 560px; }
.auth-aside .section-label { align-self: flex-start; background: rgba(255, 255, 255, 0.12); border-color: transparent; color: #FFFFFF; }
.auth-aside h1 { color: #FFFFFF; font-size: clamp(44px, 5.4vw, 84px); line-height: 1.02; }
.auth-aside > p:not(.section-label) { margin-top: 22px; color: var(--on-dark); font-size: clamp(18px, 1.5vw, 21px); }
.auth-assurance { display: flex; gap: 14px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.2); font-size: 18px; }
.auth-assurance > span {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.auth-assurance strong { color: #FFFFFF; }
.auth-assurance p { margin-top: 4px; font-size: 16px; color: var(--on-dark-muted); }
.auth-panel { align-self: center; justify-self: center; width: min(500px, calc(100% - 2 * var(--gutter))); margin: 48px 0; }
.auth-panel h2 { font-size: clamp(34px, 3vw, 44px); }
.auth-panel > p, .auth-panel h2 + p { margin: 12px 0 24px; font-size: 18px; color: var(--muted); }
.auth-panel > .notice { margin: 16px 0 20px; }
.auth-panel form .text-link { margin: -4px 0 22px; font-size: 16px; }
.auth-panel .button { width: 100%; }
.auth-switch { text-align: center; font-size: 16px; color: var(--muted); margin: 22px 0 0; }
.auth-switch a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.auth-panel .check-label { margin-bottom: 24px; }

/* Workspace shell: a dark side bar like the home page's dark bands, a light working surface */
.workspace { background: linear-gradient(90deg, var(--ink) var(--side), var(--soft) var(--side)); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 10; width: var(--side); display: flex; flex-direction: column;
  padding: 20px 16px; overflow-y: auto; background: var(--ink); color: var(--on-dark);
}
.sidebar .brand { color: #FFFFFF; padding: 0 6px; font-size: 23px; }
.workspace-identity {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}
.avatar {
  display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--yellow); color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 22px;
}
.workspace-identity > div { min-width: 0; }
.workspace-identity strong { display: block; color: #FFFFFF; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.workspace-identity > div > span { display: block; margin-top: 2px; color: var(--on-dark-muted); font-size: 14px; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 8px;
  color: var(--on-dark); font-size: 16px; font-weight: 600; line-height: 1.25;
}
.sidebar nav a > span { display: none; }
.sidebar nav a:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.sidebar nav a[aria-current=page] { background: var(--yellow); color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar .language-choice { margin-bottom: 16px; flex-wrap: wrap; }
.sidebar .language-choice select {
  border-color: rgba(255, 255, 255, 0.3); background-color: transparent; color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sidebar .language-choice option { color: var(--ink); background: #FFFFFF; }
.early-access { padding: 12px; border-radius: 12px; border: 1px solid var(--dark-line); font-size: 15px; font-weight: 600; color: #FFFFFF; }
.early-access p { margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--on-dark-muted); }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
.account-email { margin-top: 14px; padding: 0 4px; font-size: 14px; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.sidebar .plain-button { padding: 6px 4px; color: #FFFFFF; font-size: 15px; font-weight: 600; }
.sidebar .plain-button:hover { color: var(--yellow); }
.workspace-body { margin-left: var(--side); }
.workspace-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 40px;
  background: var(--paper); border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; color: var(--ink);
}
.topbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 24px; }
.topbar-actions form { margin: 0; }
.topbar-actions > a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.topbar-actions .plain-button { color: var(--ink); font-size: 16px; font-weight: 700; }
@media (min-width: 901px) {
  .sidebar-bottom form[action="/logout"], .account-email { display: none; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .workspace-identity { margin: 14px 0 10px; padding: 8px 10px; }
  .sidebar nav a { min-height: 36px; padding: 6px 12px; font-size: 15px; }
  .sidebar-bottom { padding-top: 16px; }
  .early-access { padding: 8px 10px; }
}
.workspace-main { max-width: 1320px; margin: 0 auto; padding: 36px 40px 64px; min-height: calc(100vh - 120px); }
.workspace-footer { padding: 0 40px 28px; font-size: 14px; color: var(--muted); }

/* Page heading */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; max-width: 100%; }
.page-heading h1 { font-size: clamp(38px, 4.2vw, 58px); }
.page-heading p:last-child:not(.section-label) { margin-top: 12px; max-width: 40em; font-size: 18px; color: var(--muted); }
.page-heading > .button { flex: 0 0 auto; }

/* Vertical rhythm: blocks in a page column keep one distance, so panels never touch */
.workspace-main > :is(.panel, section, article, details, form, .settings-grid, .dashboard-grid, .report-layout, .market-offers, .welcome-panel) + * { margin-top: 20px; }
.workspace-main > .quiet { margin-bottom: 16px; }
.settings-grid > div > * + * { margin-top: 20px; }
.panel > :is(p, form, .notice, ul, ol, details, .button, a) + :is(p, form, .notice, ul, ol, details, .button, a, .coverage-row) { margin-top: 12px; }
.panel .notice { margin-bottom: 0; }
.help-note :is(p, .reviewed-list) + h3 { margin-top: 26px; }

/* Panels */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-width: 0; }
.panel > h2, .panel-heading h2 { font-size: clamp(26px, 2.2vw, 30px); }
.panel > h2 { margin-bottom: 18px; }
.panel-heading { display: flex; justify-content: space-between; gap: 12px 16px; align-items: baseline; flex-wrap: wrap; }
.panel-description { margin: 10px 0 8px; font-size: 16px; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
/* Without a side note (Account and plan, the journal's status and date) the columns share the width. */
.settings-grid:not(:has(> .help-note)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A filter form (Price history): its fields and button stand in one row. */
form.panel.settings-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; }
form.panel.settings-grid > label { flex: 1 1 240px; margin: 0; }
:is(form.panel.settings-grid, .market-filter) > .button { flex: 0 0 auto; min-height: 54px; }
.help-note { padding: 8px 4px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.help-note h3 { margin-bottom: 10px; font-size: 18px; }
.help-note p + p { margin-top: 14px; }
.help-note p + .reviewed-list { margin-top: 18px; }

/* Overview */
.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.summary-strip > div { display: flex; flex-direction: column; padding: 18px 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.summary-strip span { display: block; font-size: 15px; font-weight: 600; color: var(--muted); line-height: 1.3; }
.summary-strip strong {
  display: block; margin-top: auto; padding-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 0.95;
  color: var(--ink); font-variant-numeric: lining-nums tabular-nums;
}
.summary-strip small { font-size: 22px; font-weight: 700; color: var(--faint); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.finding { border-top: 1px solid var(--line); padding: 18px 0 4px; margin-top: 18px; }
.finding-top { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; margin-bottom: 10px; flex-wrap: wrap; }
.finding > p { font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.source-link {
  display: inline-flex; gap: 6px; margin-top: 12px; color: var(--ink); font-size: 16px; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px;
}
.next-step { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.next-step .section-label { background: rgba(255, 255, 255, 0.12); border-color: transparent; color: #FFFFFF; margin-bottom: 0; }
.next-step h2 { margin: 16px 0 12px; color: #FFFFFF; font-size: clamp(30px, 2.6vw, 38px); line-height: 1.06; }
.next-step p { margin-bottom: 22px; font-size: 16px; color: var(--on-dark-muted); }
.next-step .text-link { color: #FFFFFF; }
.dashboard-help { padding: 24px 8px; }
.dashboard-help .text-link { margin-top: 12px; font-size: 16px; }
.empty { text-align: center; padding: 36px 20px; }
.empty-symbol {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 18px; border-radius: 14px;
  background: var(--yellow); color: var(--ink); font-size: 28px; line-height: 1;
}
.empty > .empty-symbol { margin-left: auto; margin-right: auto; }
.empty h3 { font-size: 20px; }
.empty h2 { font-size: 28px; }
.empty p { max-width: 30em; margin: 12px auto 22px; font-size: 17px; color: var(--muted); }
.roomy { padding: 64px 20px; }
.welcome-panel {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: clamp(24px, 3.4vw, 44px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.welcome-panel h2 { font-size: clamp(30px, 3vw, 42px); }
.welcome-panel p { margin: 14px 0 24px; font-size: 18px; color: var(--muted); }
.welcome-steps { padding: 20px 24px; border-radius: 14px; background: var(--soft); }
.welcome-steps > p { display: flex; align-items: center; gap: 12px; margin: 10px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.welcome-steps > p > span {
  flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong); font-size: 14px; font-weight: 700; color: var(--ink);
}

/* Competitors */
.watchlist { margin-top: 18px; }
.watch-row { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.watch-details { flex: 1 1 240px; min-width: 0; }
.watch-details h3 { font-size: 18px; }
.watch-details a { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.watch-details p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.watch-state { display: grid; justify-items: end; gap: 8px; }
.watch-state { max-width: 45%; }
.watch-state .plain-button { white-space: nowrap; }
@media (min-width: 1151px) {
  .watchlist .watch-state .badge { white-space: nowrap; }
}
.reviewed-button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font-size: 16px; font-weight: 600;
}
.reviewed-button small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.reviewed-button b {
  flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--yellow); color: var(--ink); font-size: 20px; font-weight: 700;
}
.reviewed-list { margin-bottom: 20px; }
.candidate { align-items: flex-start; }
.candidate .pick { display: flex; align-items: center; padding-top: 4px; }
.candidate.unavailable .watch-details { opacity: 0.72; }
.candidate .watch-details p { margin: 4px 0 0; }
.panel.finder { margin-bottom: 0; }
.avatar.subtle { background: var(--soft); color: var(--ink); }
.panel.candidates .button { margin-top: 16px; }

/* Reports */
.report-list-row { display: flex; gap: 20px; align-items: center; padding: 16px 0; }
.report-list-row + .report-list-row { border-top: 1px solid var(--line); }
.document-symbol {
  flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: var(--yellow); color: var(--ink); font-size: 26px;
}
.report-list-row > div { flex: 1; min-width: 0; }
.report-list-row h2 { font-size: 24px; }
.report-list-row p { margin: 6px 0; font-size: 16px; color: var(--muted); }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.report-finding { margin-bottom: 18px; }
.report-finding > h3 { margin-top: 22px; }
.report-finding > h3 + p { margin-top: 4px; }
.report-finding h2 { margin: 6px 0 14px; font-size: clamp(28px, 2.6vw, 36px); }
.report-fact { font-size: 19px; line-height: 1.55; overflow-wrap: anywhere; }
blockquote {
  margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--yellow); border-radius: 0 10px 10px 0;
  background: var(--soft); font-size: 17px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere;
}
.evidence-line { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.evidence-line a {
  color: var(--ink); font-size: 16px; font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px;
}
.decision-box { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.decision-box p { margin: 4px 0 14px; font-size: 16px; color: var(--muted); }
.decision-box p > strong { color: var(--ink); font-size: 17px; }
.decision-box form { display: flex; gap: 12px 20px; align-items: center; flex-wrap: wrap; }
.report-aside {
  padding: 24px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  font-size: 16px; color: var(--muted); overflow-wrap: anywhere;
}
.report-aside h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.report-aside p { margin-bottom: 24px; }
.coverage-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.coverage-row strong { font-size: 16px; color: var(--ink); }
.coverage-row span, .coverage-row small { font-size: 14px; }
.repeat-finding { margin-bottom: 14px; }
.repeat-finding > summary, .report-evidence > summary {
  padding: 14px 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line);
  font-weight: 700; color: var(--ink); cursor: pointer;
}
.repeat-finding[open] > summary, .report-evidence[open] > summary { margin-bottom: 14px; }
.report-evidence { margin-top: 24px; }

/* Example report and About: public pages on the light surface */
.sample-main { padding: 36px 0 80px; }
.sample-main > div > .page-heading h1 { font-size: clamp(40px, 4.6vw, 64px); }
.about-page { max-width: 820px; padding: 48px 0 96px; }
.about-page h1 { font-size: clamp(40px, 4.6vw, 64px); }
.about-page p { margin: 18px 0 28px; font-size: 18px; color: var(--muted); }
.about-page h2 { margin-top: 32px; font-size: clamp(26px, 2.4vw, 32px); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 14px; font-weight: 700; color: var(--muted); }

/* Prices and offers, assistant */
.market-filter { display: flex; align-items: end; gap: 16px; margin-bottom: 24px; }
.market-filter label { margin: 0; min-width: 220px; }
.market-filter button { margin-bottom: 0; }
.market-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.market-offer { min-width: 0; }
.market-offer h2 { margin-bottom: 8px; }
.market-own { border-top: 4px solid var(--yellow); }
.market-price { margin: 12px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink); }
.market-offer blockquote { margin: 16px 0; }
.market-dates { margin-top: 24px; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); gap: 32px; }
.chat-conversation { min-width: 0; max-width: 780px; }
.chat-turn { margin-bottom: 28px; overflow-wrap: anywhere; }
.chat-question { margin: 0 0 18px 32px; padding: 16px 20px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #FFFFFF; }
.chat-question p, .chat-answer p { white-space: pre-wrap; }
.chat-answer { padding: 16px 20px; border-radius: 14px 14px 14px 4px; background: var(--paper); border: 1px solid var(--line); }
.chat-compose textarea { min-height: 112px; }
.chat-conversation > * + * { margin-top: 20px; }
.chat-compose .button { margin-top: 16px; }

/* Laptops */
@media (max-width: 1150px) {
  :root { --side: 228px; }
  .sidebar { padding: 18px 12px; }
  .workspace-main { padding: 30px 28px 52px; }
  .workspace-topbar { padding: 10px 28px; }
  .workspace-footer { padding: 0 28px 24px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr) 240px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
  .report-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; }
  .summary-strip strong { font-size: 44px; }
  .watch-row { flex-wrap: wrap; }
  .watch-state { margin-left: 54px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; max-width: none; }
  .panel { padding: 24px; }
}

/* Tablets and phones: the side bar becomes a dark top bar, the menu one sideways row */
@media (max-width: 900px) {
  /* Logo, then language and sign-out; when a long "Sign out" (French, Spanish) leaves no room, they move to
     their own line instead of covering the logo. The menu is always the last line. */
  .sidebar {
    position: static; width: auto; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 10px 12px; padding: 10px var(--gutter) 12px; overflow: visible;
  }
  .sidebar .brand { order: 1; flex: 0 0 auto; padding: 0; font-size: 21px; }
  .sidebar .brand-mark { width: 32px; height: 32px; }
  .workspace-identity { display: none; }
  .sidebar nav {
    order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scroll-padding: 0 var(--gutter);
  }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav { padding-right: 56px; -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .sidebar nav a { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; font-size: 15px; white-space: nowrap; border: 1px solid var(--dark-line); }
  .sidebar-bottom { order: 2; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 12px; }
  .sidebar .language-choice { margin: 0; flex-wrap: nowrap; }
  .sidebar .language-choice select { max-width: 150px; min-height: 38px; }
  .early-access, .account-email { display: none; }
  .workspace { background: var(--soft); }
  .workspace-body { margin-left: 0; }
  .workspace-topbar { display: none; }
  .workspace-main { padding: 24px var(--gutter) 48px; }
  .workspace-footer { padding: 0 var(--gutter) 24px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-aside { padding: 32px var(--gutter) 36px; }
  .auth-aside h1 { font-size: clamp(40px, 9vw, 60px); }
  .auth-assurance { display: none; }
  .auth-panel { margin: 32px 0 56px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  /* One long German word (WETTBEWERBSÜBERSICHT) must still fit a 360px phone. */
  .page-heading h1 { font-size: clamp(30px, 9vw, 44px); }
  .page-heading p:last-child:not(.section-label) { font-size: 17px; }
  .settings-grid, .settings-grid:not(:has(> .help-note)), .dashboard-grid, .report-layout, .welcome-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .settings-grid > .help-note { padding: 0 4px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .summary-strip > div { padding: 14px 16px; }
  .summary-strip strong { font-size: 40px; }
  .summary-strip span { font-size: 14px; }
  .panel { padding: 20px 18px; border-radius: 14px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .report-fact { font-size: 18px; }
  .report-aside { padding: 20px 18px; }
  .report-list-row { flex-wrap: wrap; gap: 14px; }
  .report-list-row > div { flex: 1 1 calc(100% - 76px); }
  .report-list-row > .button { margin-left: 70px; }
  .report-list-row h2 { font-size: 21px; }
  .sample-main { padding-top: 24px; }
  .about-page { padding-top: 28px; }
  .market-offers { grid-template-columns: minmax(0, 1fr); }
  .market-filter { flex-wrap: wrap; }
  .market-filter label { min-width: 0; flex: 1 1 100%; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-question { margin-left: 12px; }
  .watch-row { display: grid; grid-template-columns: 41px minmax(0, 1fr); align-items: start; gap: 10px 12px; }
  .watch-row.candidate { grid-template-columns: 28px minmax(0, 1fr); }
  .watch-details { grid-column: 2; min-width: 0; }
  .watch-details h3, .watch-details p { overflow-wrap: anywhere; }
  .watch-state { grid-column: 2; margin-left: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; max-width: none; }
  .candidate .pick { grid-column: 1; grid-row: 1; }
  .watch-state .badge { white-space: normal; font-size: 13px; }
  /* Twelve found businesses in a row stay a short scroll on a phone. */
  .watch-row { padding: 12px 0; gap: 6px 12px; }
  .watch-details h3 { font-size: 17px; line-height: 1.25; }
  .watch-details a { font-size: 14px; }
  .watch-details p { margin-top: 2px; font-size: 14px; line-height: 1.4; }
  .button { white-space: normal; }
}

/* Narrow phones: logo, language and sign-out share one line */
@media (max-width: 480px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding-bottom: 10px; }
  .site-header .language-choice { grid-column: 2; grid-row: 1; }
  .site-header .language-choice select { max-width: 130px; min-height: 38px; font-size: 14px; }
  .site-header .text-link { grid-column: 1 / -1; grid-row: 2; justify-self: start; font-size: 15px; }
  /* The sister product (owner request 2026-11-11) sits on its own line above the sign-up button: keep it clear. */
  .site-header .text-link + .button { margin-top: 6px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .sidebar .brand-name { font-size: 19px; }
  .sidebar .language-choice select { max-width: 120px; font-size: 14px; padding-left: 10px; padding-right: 30px; background-position: right 10px center; }
  .sidebar .plain-button { font-size: 14px; }
}

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