/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Manrope","arguments":[{"subsets":["latin","cyrillic"],"weight":["400","500","600","700","800"],"display":"swap","variable":"--font-manrope"}],"variableName":"manrope"} ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/a1f87af3f44fadbb-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/86f65e8637cc94e3-s.p.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/39f449c8730c2295-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/9fabb9c65b63d798-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/f9e1dbe9676d9bb6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/8760c4774489e4ba-s.p.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/a1f87af3f44fadbb-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/86f65e8637cc94e3-s.p.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/39f449c8730c2295-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/9fabb9c65b63d798-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/f9e1dbe9676d9bb6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/8760c4774489e4ba-s.p.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/a1f87af3f44fadbb-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/86f65e8637cc94e3-s.p.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/39f449c8730c2295-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/9fabb9c65b63d798-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/f9e1dbe9676d9bb6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/8760c4774489e4ba-s.p.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/a1f87af3f44fadbb-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/86f65e8637cc94e3-s.p.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/39f449c8730c2295-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/9fabb9c65b63d798-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/f9e1dbe9676d9bb6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8760c4774489e4ba-s.p.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/a1f87af3f44fadbb-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/86f65e8637cc94e3-s.p.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/39f449c8730c2295-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/9fabb9c65b63d798-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/f9e1dbe9676d9bb6-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/8760c4774489e4ba-s.p.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: 'Manrope Fallback';src: local("Arial");ascent-override: 103.31%;descent-override: 29.07%;line-gap-override: 0.00%;size-adjust: 103.19%
}.__className_681ec2 {font-family: 'Manrope', 'Manrope Fallback';font-style: normal
}.__variable_681ec2 {--font-manrope: 'Manrope', 'Manrope Fallback'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --ink: #0d1b2a;
  --ink-2: #1b2b40;
  --ink-soft: #42526b;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --bg: #fbfaf7;
  --card: #ffffff;
  --sand: #f3efe6;
  --accent: #ff5a36;
  --accent-ink: #c73a1b;
  --accent-soft: #ffe8e0;
  --green: #16a36a;
  --green-soft: #ddf5ea;
  --amber: #c98a00;
  --amber-soft: #fff3d1;
  --red: #d33a3a;
  --red-soft: #fde4e4;
  --blue: #2f6fec;
  --blue-soft: #e3ecff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13, 27, 42, .06), 0 8px 24px rgba(13, 27, 42, .06);
  --font: var(--font-manrope), "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* long legal texts (agreements) read in a serif with Cyrillic; headings stay in --font */
  --display: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.serif { font-weight: 800; letter-spacing: -.02em; }
.em { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; grid-gap: 16px; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sand); color: var(--ink-soft); white-space: nowrap; }
.b-low, .b-ok, .b-published, .b-approved, .b-done, .b-confirmed { background: var(--green-soft); color: #0d7a4d; }
.b-medium, .b-needs_editor, .b-draft, .b-running, .b-queued { background: var(--amber-soft); color: #8a5d00; }
.b-high, .b-failed, .b-rejected, .b-needs_expert { background: var(--red-soft); color: #a32424; }
.b-pending_owner { background: var(--blue-soft); color: #1d4fb8; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; }
.kpi { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.delta-up { color: var(--green); font-weight: 700; }
.delta-down { color: var(--red); font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.flash { padding: 12px 16px; border-radius: 10px; background: var(--blue-soft); color: #1d4fb8; margin-bottom: 16px; font-size: 14px; }
.flash.err { background: var(--red-soft); color: #a32424; }
pre.body, .prose { white-space: pre-wrap; font-family: var(--font); font-size: 15px; line-height: 1.6; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; overflow-wrap: anywhere; }
.finding { border-left: 3px solid var(--amber); padding: 8px 12px; background: var(--amber-soft); border-radius: 0 8px 8px 0; font-size: 14px; margin-bottom: 8px; }
.finding.high { border-color: var(--red); background: var(--red-soft); }
/* a small finding is still a finding: neutral, never the green of a passed check */
.finding.low { border-color: #9aa7b8; background: #f1f4f8; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #c9d3e1; padding: 20px 14px; position: -webkit-sticky; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { color: #fff; margin: 4px 8px 20px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 600; color: #c9d3e1; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.side .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d8ba1; margin: 18px 10px 6px; }
.side .count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.main { padding: 28px 32px 90px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 28px; margin: 0; }
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 16px 96px; }
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--ink); z-index: 20; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottom-nav a { color: #c9d3e1; text-decoration: none; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; border-radius: 8px; }
  .bottom-nav a.on { color: #fff; background: rgba(255,255,255,.1); }
  .mobile-top { display: flex !important; }
}
.mobile-top { display: none; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; line-height: 1; }

/* Approve feed */
.approve-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.approve-card .meta { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.approve-card .preview { padding: 18px; max-height: 420px; overflow: auto; }
.approve-card .actions { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; background: #fcfcfd; }
.quick-edits { display: flex; gap: 6px; flex-wrap: wrap; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 6px; gap: 6px; }
.cal .day { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 96px; padding: 6px; font-size: 12px; }
.cal .day .n { font-weight: 800; color: var(--muted); }
.cal .item { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; background: var(--sand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .item.has { background: var(--green-soft); }
@media (max-width: 860px) { .cal { grid-template-columns: 1fr; } .cal .day { min-height: auto; } .cal .dow { display: none; } }

/* Bars */
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar.ok > span { background: var(--green); }

/* small label above a page title */
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 420px; padding: 32px; }

/* =====================================================================
   Cabinet v2: topbar, stats, tabs, agents, plan views, SEO, analytics,
   company account, print. Same tokens as above; no external CSS.
   ===================================================================== */
:root { --side-w: 248px; --radius-lg: 18px; --ink-3: #26384f; --shadow-lg: 0 2px 4px rgba(13,27,42,.05), 0 18px 40px rgba(13,27,42,.10); }
.block { display: block; }
.grow { flex: 1 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.mono, pre.code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
/* URLs and tokens in code must break on phones instead of widening the page */
code.mono, pre.mono, .code { overflow-wrap: anywhere; }
pre.mono { white-space: pre-wrap; }
/* a badge holding a sentence (legal review notes) wraps like text */
.badge.wrap { white-space: normal; display: inline; line-height: 1.7; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sub { margin: 6px 0 0; max-width: 720px; }
.sec-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; font-weight: 800; }
.g3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .g3-2 { grid-template-columns: 1fr; } }
.grid + .grid, .card + .grid, .grid + .card, .stat-row + .card, .stat-row + .grid { margin-top: 16px; }
/* a note above a card or a row of numbers keeps its distance */
.card.note + .card, .card.note + .stat-row { margin-top: 16px; }
.note { background: linear-gradient(180deg, #fff, #fffaf6); border-color: #f6dccf; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 700; cursor: pointer; font-family: var(--font); }

/* Shell */
.shell { grid-template-columns: var(--side-w) 1fr; background: linear-gradient(to right, var(--ink) var(--side-w), var(--bg) var(--side-w)); }
.side { background: var(--ink); display: flex; flex-direction: column; padding: 18px 12px; }
.side nav { flex: 1 1; }
.side nav a svg { opacity: .8; flex: none; }
.side nav a.on { background: linear-gradient(90deg, rgba(255,90,54,.22), rgba(255,255,255,.06)); box-shadow: inset 3px 0 0 var(--accent); }
.side nav a.on svg { opacity: 1; color: #ff8a6b; }
.side-foot { display: flex; gap: 6px; padding: 12px 6px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 12px; }
.side-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border: 0; color: #c9d3e1; font: 700 12px var(--font); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.side-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.main { padding: 0 32px 90px; }
.topbar { display: flex; align-items: center; gap: 12px; height: 64px; margin: 0 -32px 24px; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(251,250,247,.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); position: -webkit-sticky; position: sticky; top: 0; z-index: 15; }
.mobile-logo, .mobile-only { display: none; }
.biz-switch { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.biz-switch:hover { border-color: #cfd7e3; }
.biz-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.biz-dot.big { width: 40px; height: 40px; font-size: 17px; background: linear-gradient(135deg, var(--accent), #ff9a5a); }
.biz-name { font-weight: 800; font-size: 14px; }
.biz-plan { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 99px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.demo-pill { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--amber-soft); color: #8a5d00; padding: 4px 10px; border-radius: 99px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font: 800 12px var(--font); text-decoration: none; }
.dot-count { position: absolute; top: -3px; right: -3px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ink-3); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.bn-icon { position: relative; display: inline-flex; }
.bn-count { position: absolute; top: -5px; right: -9px; background: var(--accent); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; }
@media (max-width: 860px) {
  .shell { background: var(--bg); }
  .main { padding: 0 16px 96px; }
  .topbar { margin: 0 -16px 16px; padding: 0 16px; height: 58px; }
  .mobile-logo, .mobile-only { display: block; }
  .biz-name, .biz-plan { display: none; }
  .biz-switch { padding: 4px; }
}
/* narrow phones: the top bar holds the logo, the site switcher, the demo mark, the language, the bell and the avatar; the brand word gives way first */
@media (max-width: 480px) { .mobile-logo .logo-word { display: none; } .topbar { gap: 8px; } }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); grid-gap: 14px; gap: 14px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.stat.score { display: flex; align-items: center; gap: 14px; }
.stat-top { display: flex; align-items: center; gap: 8px; }
.stat-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--sand); color: var(--ink-soft); }
.stat-accent .stat-icon { background: var(--accent-soft); color: var(--accent-ink); }
.stat-green .stat-icon { background: var(--green-soft); color: #0d7a4d; }
.stat-blue .stat-icon { background: var(--blue-soft); color: #1d4fb8; }
.stat-amber .stat-icon { background: var(--amber-soft); color: #8a5d00; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; line-height: 1.1; }
.stat-sub { font-size: 12px; color: var(--muted); }
.stat-sub a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.spark { display: block; margin-top: 6px; }
.meter { display: inline-block; width: 60px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; vertical-align: middle; }
.meter > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* Tabs, chips, segmented */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-color: var(--accent); }
.tab-count { background: var(--accent); color: #fff; font-size: 11px; border-radius: 99px; padding: 0 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-check { display: inline-flex; margin: 0; font-weight: 600; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.chip-check input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; margin-bottom: 14px; }
.seg a { padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.seg a.on { background: var(--ink); color: #fff; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 4px; }
.seg-radio label { margin: 0; font-weight: 600; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; }
.seg-radio span { display: inline-block; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; }
.seg-radio input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 6px 0 14px; }
.toggle input { position: absolute; opacity: 0; width: 1px; }
.toggle span { width: 40px; height: 24px; border-radius: 99px; background: #cfd7e3; position: relative; flex: none; transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(16px); }
.settings .card { margin-bottom: 16px; }
.settings fieldset { border: 1px solid var(--line); margin: 0; min-width: 0; }
.save-bar { position: -webkit-sticky; position: sticky; bottom: 16px; display: flex; justify-content: flex-end; z-index: 5; }
.save-bar .btn { box-shadow: var(--shadow-lg); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.tier { margin: 0; cursor: pointer; }
.tier input { position: absolute; opacity: 0; }
.tier span { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tier input:checked + span { border: 2px solid var(--accent); background: var(--accent-soft); }
.plan-edit { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; text-transform: capitalize; }

/* Dashboard */
.hello { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 4px; }
.hello .eyebrow { margin-bottom: 10px; text-transform: capitalize; }
.hello p { margin: 0; }
.hello-cta { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 20px 14px 14px; border-radius: 18px; font-weight: 700; box-shadow: var(--shadow-lg); }
.hello-cta:hover { background: var(--ink-2); }
.hello-n { width: 48px; height: 48px; border-radius: 14px; background: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.onboard { margin-bottom: 16px; }
.onboard-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
@media (max-width: 860px) { .onboard-steps { grid-template-columns: 1fr 1fr; } }
.ob-step { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; }
.ob-step.done { background: var(--green-soft); border-color: transparent; color: #0d7a4d; }
.ob-n { width: 26px; height: 26px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 13px; flex: none; }
.ob-step.done .ob-n { background: var(--green); color: #fff; }
.agent-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 8px; gap: 8px; margin-top: 4px; }
.mini-agent { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 700; }
.mini-name { flex: 1 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-agent.st-working { border-color: var(--green); background: var(--green-soft); }
.mini-agent.st-error { border-color: #f3b4b4; background: var(--red-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cfd7e3; flex: none; }
.dot.s-working { background: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.18); animation: pulse 1.4s infinite; }
.dot.s-queued { background: var(--amber); }
.dot.s-error { background: var(--red); }
.last-event { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.next-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.next-row:last-child { border-bottom: 0; }
.next-day { width: 54px; flex: none; font-weight: 800; font-size: 13px; text-transform: capitalize; color: var(--accent-ink); }
.seo-mini { text-decoration: none; display: block; }
.seo-mini:hover { border-color: #cfd7e3; }
.note-row { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.note-row.unread { font-weight: 700; }
.note-row.unread::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }

/* Agents */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.live-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font: 800 12px var(--font); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.live-pill.on { color: #0d7a4d; border-color: #b9e8d3; background: var(--green-soft); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.2s infinite; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); grid-gap: 22px 18px; gap: 22px 18px; }
.pipe-step { position: relative; display: flex; flex-direction: column; gap: 6px; }
.pipe-arrow { position: absolute; right: -15px; top: 44px; color: #b8c3d3; font-weight: 800; }
.agent-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; min-height: 178px; transition: border-color .2s, box-shadow .2s; }
.agent-card.st-working { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.12), var(--shadow); }
.agent-card.st-error { border-color: #f3b4b4; }
.agent-card.st-queued { border-color: #f1d79a; }
.agent-icon { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.st-working .agent-icon { background: var(--green); }
.st-error .agent-icon { background: var(--red); }
.agent-state { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.agent-state.s-working { color: var(--green); }
.agent-state.s-error { color: var(--red); }
.agent-state.s-queued { color: var(--amber); }
.agent-name { font-weight: 800; font-size: 15px; }
.agent-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; flex: 1 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.agent-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 700; }
.agent-run { margin-top: 4px; width: 100%; }
.gate { font-size: 11px; font-weight: 800; display: inline-flex; gap: 5px; align-items: center; padding: 4px 9px; border-radius: 99px; align-self: flex-start; }
.gate-owner { background: var(--blue-soft); color: #1d4fb8; }
.gate-people { background: var(--amber-soft); color: #8a5d00; }
.feed { max-height: 560px; overflow-y: auto; }
.feed-row { display: grid; grid-template-columns: 10px 64px 120px 1fr; grid-gap: 10px; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid #f0f2f6; font-size: 13px; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8c3d3; align-self: center; }
.lv-success .feed-dot { background: var(--green); }
.lv-warn .feed-dot { background: var(--amber); }
.lv-error .feed-dot { background: var(--red); }
.lv-error .feed-msg { color: var(--red); }
.feed-time { color: var(--muted); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; font-size: 12px; }
.feed-agent { font-weight: 800; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .feed-row { grid-template-columns: 10px 56px 1fr; } .feed-agent { display: none; } }
.tl-row { display: grid; grid-template-columns: 120px 1fr; grid-gap: 8px; gap: 8px; align-items: center; margin-bottom: 6px; }
.tl-name { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; height: 14px; background: repeating-linear-gradient(90deg, #f3f5f8 0 calc(25% - 1px), #e6eaf0 calc(25% - 1px) 25%); border-radius: 4px; }
.tl-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: var(--green); min-width: 3px; }
.tl-failed { background: var(--red); }
.tl-running { background: var(--blue); animation: pulse 1.2s infinite; }
.tl-queued { background: var(--amber); }
.tl-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding-left: 128px; }

/* Plan views */
.plan-progress { margin-bottom: 14px; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ff9a5a); border-radius: 99px; }
.legend-c::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c, #b8c3d3); }
.c-planned { --c: #b8c3d3; } .c-writing { --c: var(--amber); } .c-review { --c: #8a5cf6; } .c-owner { --c: var(--blue); }
.c-scheduled { --c: #17a2b8; } .c-published { --c: var(--green); } .c-problem { --c: var(--red); }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); grid-gap: 12px; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.k-col { background: #f3f5f8; border-radius: 14px; padding: 10px; border-top: 3px solid var(--c); min-height: 200px; }
.k-head { display: flex; justify-content: space-between; font-weight: 800; font-size: 13px; margin: 2px 4px 10px; }
.k-head span { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; }
.k-empty { text-align: center; padding: 20px 0; }
.p-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(13,27,42,.04); }
.p-topic { font-weight: 700; font-size: 13px; margin: 4px 0 6px; line-height: 1.35; }
.p-item a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-gap: 6px; gap: 6px; }
.m-wd { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.m-day { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-day.past { background: #fafbfc; }
.m-day.today { border: 2px solid var(--accent); }
.m-num { font-size: 12px; font-weight: 800; color: var(--muted); }
.m-ev { font-size: 11px; padding: 3px 6px; border-radius: 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 3px solid var(--c); }
@media (max-width: 860px) { .month { grid-template-columns: 1fr; } .m-wd { display: none; } .m-day { min-height: auto; } .m-day.past { display: none; } }
.roadmap-wrap { overflow-x: auto; padding: 14px; }
.roadmap { display: grid; min-width: 860px; }
.rm-corner, .rm-wk { font-size: 11px; font-weight: 800; color: var(--muted); padding: 22px 6px 8px; border-bottom: 1px solid var(--line); position: relative; }
.rm-wk.m-start { border-left: 1px solid var(--line); }
.rm-wk.now { color: var(--accent-ink); }
.rm-month { position: absolute; top: 2px; left: 6px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.rm-lane { display: contents; }
.rm-name { font-weight: 800; font-size: 13px; padding: 12px 6px; border-bottom: 1px solid #f0f2f6; text-transform: capitalize; }
.rm-cell { border-bottom: 1px solid #f0f2f6; padding: 10px 4px; display: flex; flex-wrap: wrap; gap: 4px; align-content: center; }
.rm-cell.now { background: rgba(255,90,54,.06); }
.rm-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--c); display: block; }
.rm-dot:hover { transform: scale(1.3); }

/* Integrations & site access */
.conn-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.conn-row:last-child { border-bottom: 0; }
.conn-row.off { opacity: .55; }
.mark { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; flex: none; letter-spacing: -.02em; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); grid-gap: 12px; gap: 12px; }
.int-card, .kind-card { padding: 0; }
.int-card > summary, .kind-card > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 16px; cursor: pointer; }
.int-card > summary::-webkit-details-marker, .kind-card > summary::-webkit-details-marker { display: none; }
.int-card[open] > summary, .kind-card[open] > summary { border-bottom: 1px solid var(--line); }
.int-card > form, .kind-card > form, .kind-card > p { padding: 0 16px; }
.int-card > form, .kind-card > form { padding-bottom: 16px; padding-top: 12px; }
.kind-card > p { margin-top: 12px; }
.ev-edit summary { cursor: pointer; color: var(--accent-ink); font-weight: 700; margin-top: 4px; }
.ev-edit form { margin-top: 8px; }
pre.code { background: var(--ink); color: #d8e1ee; padding: 14px; border-radius: 12px; overflow-x: auto; margin: 0; white-space: pre-wrap; word-break: break-all; }

/* SEO */
.change { border-left: 4px solid #cfd7e3; }
.change.pr-high { border-left-color: var(--accent); }
.change.pr-medium { border-left-color: var(--amber); }
.change .url { font-size: 13px; color: var(--blue); text-decoration: none; font-family: ui-monospace, monospace; }
.change .why { margin: 10px 0; font-size: 14px; }
.area-seo { background: var(--blue-soft); color: #1d4fb8; }
.area-geo { background: var(--accent-soft); color: var(--accent-ink); }
.evidence { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-soft); background: #f7f8fa; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.compare2 { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-bottom: 10px; }
@media (max-width: 760px) { .compare2 { grid-template-columns: 1fr; } }
.compare2 > div { border-radius: 12px; padding: 10px 12px; min-width: 0; }
.compare2 .was { background: #f7f8fa; border: 1px solid var(--line); }
.compare2 .was pre { color: var(--muted); }
.compare2 .now { background: var(--green-soft); border: 1px solid #bfe8d4; }
.compare2 .lbl, .lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.compare2 pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 14px; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; }
.change .actions { margin-top: 12px; }
.edit summary { list-style: none; }
.edit summary::-webkit-details-marker { display: none; }
.edit[open] { flex-basis: 100%; }
.edit form { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.check-row > span:nth-child(2) { flex: 1 1; }
.ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.ck.ok { background: var(--green-soft); color: #0d7a4d; }
.ck.no { background: var(--accent-soft); color: var(--accent-ink); }
.ai-num { color: var(--accent-ink); }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.b-applied, .b-rolled_back { background: var(--green-soft); color: #0d7a4d; }
.b-rolled_back { background: var(--sand); color: var(--ink-soft); }
.b-proposed, .b-approved.change { background: var(--blue-soft); color: #1d4fb8; }
.b-applying { background: var(--amber-soft); color: #8a5d00; }

/* Analytics */
.legend { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.legend i, .src-row i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.stacked { display: flex; align-items: flex-end; gap: 3px; height: 180px; margin: 14px 0 6px; }
.st-col { flex: 1 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.st-bar { width: 100%; background: var(--ink-2); border-radius: 4px 4px 0 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; min-height: 2px; }
.st-ai { background: var(--accent); display: block; }
.srcbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; margin: 6px 0 12px; background: var(--line); }
.src-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f2f6; font-size: 14px; }
.ai-card { background: linear-gradient(180deg, #fff 0%, #fff6f2 100%); border-color: #f6dccf; }
.bars { display: flex; align-items: flex-end; gap: 8px; }
.bars-col { flex: 1 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.bars-v { font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.bars-b { width: 100%; max-width: 46px; background: #d6dde8; border-radius: 6px 6px 2px 2px; }
.bars-l { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Company */
.brand-card { display: flex; flex-direction: column; gap: 12px; }
.brand-card.current { border-color: var(--accent); }
.brand-card.add { align-items: center; justify-content: center; border-style: dashed; color: var(--muted); font-weight: 700; text-decoration: none; min-height: 150px; box-shadow: none; }
.doc-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.doc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: #1d4fb8; flex: none; }
.doc-ic.k-act { background: var(--green-soft); color: #0d7a4d; }
.doc-ic.k-contract { background: var(--accent-soft); color: var(--accent-ink); }
pre.contract { white-space: pre-wrap; font-family: var(--display); font-size: 15px; line-height: 1.65; margin: 0; max-height: 640px; overflow-y: auto; }

/* Print pages */
.paper { max-width: 820px; margin: 30px auto; background: #fff; padding: 48px; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-lg); }
.paper-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 20px; margin-bottom: 24px; }
.paper-head .right { text-align: right; }
.paper-head h1 { font-size: 30px; margin: 0; letter-spacing: .04em; text-transform: uppercase; }
.paper-parties { display: grid; grid-template-columns: 2fr 1fr; grid-gap: 20px; gap: 20px; font-size: 14px; margin-bottom: 24px; }
.paper-table tfoot td { font-weight: 700; border-bottom: 0; }
.paper-table tfoot .total td { font-size: 18px; border-top: 2px solid var(--ink); }
.paper-table td:last-child, .paper-table th:last-child { text-align: right; }
.paper-foot { margin-top: 28px; font-size: 14px; }
.paper-foot pre { font-family: var(--font); margin: 0; white-space: pre-wrap; }
.stamp { display: inline-block; margin-top: 10px; border: 2px solid var(--accent); color: var(--accent); padding: 4px 12px; border-radius: 6px; font-weight: 800; text-transform: uppercase; transform: rotate(-4deg); }
.stamp.s-paid { border-color: var(--green); color: var(--green); }
.doc-title { font-size: 22px; margin-bottom: 18px; }
.sign-row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 30px; gap: 30px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.paper .no-print { margin-top: 30px; }
@media print {
  body { background: #fff; }
  .paper { margin: 0; border: 0; box-shadow: none; padding: 0; max-width: none; }
  .no-print { display: none !important; }
}
@media (max-width: 640px) { .paper { padding: 22px; margin: 0; } .paper-parties, .sign-row { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .hello-cta { width: 100%; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat.score { grid-column: span 2; }
  .tiers { grid-template-columns: 1fr; }
}
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
/* a closed menu must not take part in layout: browsers that hide <details> content with content-visibility keep its box, and a wide popup then scrolls the page sideways on phones */
.menu:not([open]) > .menu-pop { display: none; }
.menu-pop { position: absolute; right: 0; top: 46px; width: 280px; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--ink); color: #c9d3e1; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; z-index: 40; }
.menu-who { display: flex; flex-direction: column; padding: 4px 8px 10px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 6px; color: #fff; }
.menu-pop nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 600; color: #c9d3e1; }
.menu-pop nav a.on { background: rgba(255,255,255,.1); color: #fff; }
.menu-pop .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #7d8ba1; margin: 12px 10px 4px; }
.menu-pop .count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.menu-item { width: 100%; display: flex; gap: 8px; align-items: center; background: none; border: 0; color: #c9d3e1; font: 600 14px var(--font); padding: 10px; border-radius: 9px; cursor: pointer; }
.menu-item:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Grids with a wide column ---------- */
.g2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
@media (max-width: 860px) { .g2-1, .g1-2 { grid-template-columns: 1fr; } }

/* ---------- Setup guides ---------- */
.guide-steps { padding-left: 22px; margin: 12px 0; }
.guide-steps > li { margin-bottom: 16px; }
.guide-steps > li p { margin: 4px 0; }
.shot { margin: 8px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f6f8fb; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 6px 10px; }
.shot.empty { padding: 18px; text-align: center; border-style: dashed; }
.caps { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-gap: 6px; gap: 6px; font-size: 14px; }
.conn-row.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Autopilot approval levels ---------- */
.badge.ap-auto { background: #e5f6ee; color: #0f7a4f; }
.badge.ap-owner { background: var(--accent-soft); color: var(--accent-ink); }
.badge.ap-owner_double { background: var(--amber-soft); color: #8a5d00; }
.badge.ap-human_only { background: #fde8e8; color: #a22a2a; }
.ap-card { border-left: 4px solid var(--line); }
.ap-card.ap-auto { border-left-color: var(--green); }
.ap-card.ap-owner { border-left-color: var(--accent); }
.ap-card.ap-owner_double { border-left-color: var(--amber); }
.ap-card.ap-human_only { border-left-color: var(--red); }
.ap-card blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line); background: #f6f8fb; border-radius: 0 8px 8px 0; }

/* ---------- Prompt editor ---------- */
.pr-text { width: 100%; min-height: 220px; font-size: 13px; line-height: 1.5; }
.pr-ok { color: var(--green); font-weight: 700; }
.pr-warn { color: #8a5d00; font-weight: 700; }
.pr-bad { color: var(--red); font-weight: 700; }
.pr-findings { margin: 6px 0 0; padding-left: 18px; }
.pr-how ol { margin: 6px 0 0; padding-left: 20px; }
.pr-how + .grid { margin-top: 16px; }
.pr-ver { border-top: 1px solid var(--line); padding: 8px 0; }
.pr-pre { white-space: pre-wrap; max-height: 160px; overflow: auto; background: #f6f8fb; padding: 8px; border-radius: 8px; margin: 6px 0 0; }

/* ---------- Live bell and toasts ---------- */
.bell { position: relative; }
.bell > summary { list-style: none; }
.bell > summary::-webkit-details-marker { display: none; }
.bell-pop { background: #fff; color: var(--ink); width: min(360px, calc(100vw - 32px)); padding: 12px; display: grid; grid-gap: 6px; gap: 6px; }
.bell-pop a { color: inherit; }
.bell-item { display: grid; grid-gap: 2px; gap: 2px; padding: 8px; border-radius: 8px; text-decoration: none; }
.bell-item:hover { background: #f3f6fa; }
.bell-item.unread { background: var(--accent-soft); }
.live-dot { position: absolute; bottom: 1px; right: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.toast { position: fixed; right: 16px; bottom: 84px; z-index: 60; max-width: min(380px, calc(100vw - 32px)); background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 20, 40, .25); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; cursor: pointer; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.note-row:has(> .grow) { display: flex; gap: 12px; align-items: center; }

/* Site switcher: several sites per user, grouped by topic */
.biz-menu { position: relative; }
.biz-menu > summary { list-style: none; cursor: pointer; }
.biz-menu > summary::-webkit-details-marker { display: none; }
.biz-pop { left: 0; right: auto; width: 340px; }
.biz-group + .biz-group { border-top: 1px solid rgba(255,255,255,.08); margin-top: 6px; padding-top: 6px; }
.biz-topic { text-transform: uppercase; letter-spacing: .08em; margin: 6px 10px 2px; color: #7d8ba1; }
.biz-pop .menu-item { text-align: left; }
.biz-pop .menu-item.on { background: rgba(255,255,255,.1); color: #fff; }
.biz-pop .menu-item .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-dot.sm { width: 22px; height: 22px; font-size: 11px; flex: none; }
@media (max-width: 720px) { .biz-pop { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; } }

/* Keywords and site type */
.badge.intent-buy { background: #e6f6ec; color: #17693a; }
.badge.intent-info { background: #e8f0fe; color: #1a4fa0; }
.badge.intent-compare { background: #fff3da; color: #8a5a00; }
.badge.intent-local { background: #f3e8ff; color: #6b2fb3; }
.badge.intent-brand { background: #eceff3; color: #3c4654; }
.site-type select { min-width: 220px; }
.table details > summary { cursor: pointer; list-style: none; }
.table details > summary::-webkit-details-marker { display: none; }

/* Competitors */
.share-row { display: grid; grid-template-columns: minmax(150px, 1.5fr) minmax(80px, 2fr) 58px minmax(120px, 1.1fr) auto; grid-gap: 12px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.share-row:last-child { border-bottom: 0; }
.share-row.own .share-name { font-weight: 800; }
.share-name { min-width: 0; overflow-wrap: anywhere; }
.share-bar { height: 10px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.share-bar > span { display: block; height: 100%; border-radius: 99px; background: #8b98ad; }
.share-row.own .share-bar > span { background: var(--accent); }
.share-row.platform .share-bar > span { background: #cfd7e3; }
.share-pct { font-weight: 800; text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.serp-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.serp-pos { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 600; }
.serp-pos b { color: var(--muted); }
.serp-pos.own { background: var(--accent-soft); border-color: var(--accent); }
.serp-pos.tracked { border-color: var(--ink); }
.serp-pos.platform { color: var(--muted); }
.rival { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.factor { padding: 5px 0 5px 12px; border-left: 3px solid #cfd7e3; margin: 6px 0; font-size: 14px; }
.factor.w3 { border-color: var(--accent); }
.factor.w2 { border-color: var(--amber); }
.factor .tiny { display: block; margin-top: 2px; }
.plan-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan-step:last-child { border-bottom: 0; }
.plan-step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.comp-card h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.comp-card ul { margin: 4px 0 10px; padding-left: 18px; font-size: 14px; }
.comp-card .label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 10px; }
.chg { display: grid; grid-template-columns: 150px 1fr; grid-gap: 12px; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.chg:last-child { border-bottom: 0; }
.chg .was { color: var(--muted); text-decoration: line-through; -webkit-text-decoration-color: #c9d1dc; text-decoration-color: #c9d1dc; }
.badge.v-ahead { background: var(--green-soft); color: #0d7a4d; }
.badge.v-behind { background: var(--red-soft); color: #a32424; }
.badge.v-equal { background: var(--blue-soft); color: #1d4fb8; }
@media (max-width: 720px) {
  .share-row { grid-template-columns: 1fr 58px; }
  .share-row .share-bar, .share-row .share-top { grid-column: 1 / -1; }
  .chg { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Motion: page enter, cards, tabs, flashes. Everything stops for prefers-reduced-motion. ---------- */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --t-fast: .15s; --t: .28s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -400px 0; } to { background-position: 400px 0; } }
.page-in { animation: pageIn var(--t) var(--ease) both; }
.fade-in { animation: fadeIn var(--t) ease both; }
.pop-in { animation: popIn .35s var(--ease); }
.flash { animation: slideDown var(--t) var(--ease) both; }
.main .card { transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) ease; }
.main .card.change:hover, .main .stat:hover { box-shadow: 0 2px 4px rgba(13,27,42,.06), 0 14px 34px rgba(13,27,42,.09); transform: translateY(-1px); }
.main .stat { transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease); }
/* staggered entrance of list cards */
.main .card, .main .stat { animation: pageIn var(--t) var(--ease) both; }
.main .card:nth-child(2), .main .stat:nth-child(2) { animation-delay: .03s; }
.main .card:nth-child(3), .main .stat:nth-child(3) { animation-delay: .06s; }
.main .card:nth-child(4), .main .stat:nth-child(4) { animation-delay: .09s; }
.main .card:nth-child(n+5), .main .stat:nth-child(n+5) { animation-delay: .12s; }
.btn { transition: transform .08s ease, background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, opacity var(--t-fast) ease; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; }
.tab { transition: color var(--t-fast) ease, border-color var(--t) var(--ease); }
.chip, .badge { transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease; }
.side nav a { transition: background var(--t-fast) ease, color var(--t-fast) ease; }
input, select, textarea { transition: border-color var(--t-fast) ease, outline-color var(--t-fast) ease, box-shadow var(--t-fast) ease; }
details[open] > :not(summary) { animation: slideDown var(--t) var(--ease); }
.bar > span, .meter > span { transition: width .6s var(--ease); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.flip { transform: scaleX(-1); }
.back-link { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; margin-bottom: 6px; }
.back-link:hover { color: var(--ink); }

/* ---------- Page preview with the change in place ---------- */
.pv { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-gap: 18px; gap: 18px; align-items: start; margin-bottom: 16px; }
.pv-main { min-width: 0; }
.pv-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sand); border-radius: 999px; padding: 3px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; font: 700 13px/1 var(--font); color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: color var(--t) ease; white-space: nowrap; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg button:disabled { opacity: .45; cursor: default; }
.seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); transform: translateX(calc(100% * var(--i))); background: #fff; border-radius: 999px; box-shadow: 0 1px 3px rgba(13,27,42,.12); transition: transform var(--t) var(--ease); }
.pv-stage { position: relative; background: repeating-linear-gradient(45deg, #f4f1ea, #f4f1ea 10px, #f8f6f1 10px, #f8f6f1 20px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; justify-content: center; }
.pv-device { position: relative; overflow: hidden; background: #fff; box-shadow: 0 10px 40px rgba(13,27,42,.12); transition: width .45s var(--ease); }
.pv-device.d-phone, .pv-device.d-tablet { border-radius: 18px; }
.pv-device iframe { border: 0; display: block; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity .35s ease, width .45s var(--ease), transform .45s var(--ease); }
.pv-device iframe.in { opacity: 1; }
.pv-skeleton { position: absolute; inset: 0; padding: 32px; display: grid; grid-gap: 14px; gap: 14px; align-content: start; pointer-events: none; }
.pv-skeleton span { height: 18px; border-radius: 8px; background: linear-gradient(90deg, #eef1f5 0, #f7f8fa 120px, #eef1f5 240px) 0 0 / 800px 100%; animation: shimmer 1.2s linear infinite; }
.pv-skeleton span:first-child { height: 34px; width: 70%; }
.pv-skeleton span:last-child { width: 45%; }
.pv-safe { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.pv-side { position: -webkit-sticky; position: sticky; top: 16px; display: grid; grid-gap: 12px; gap: 12px; }
.pv-form { display: grid; grid-gap: 8px; gap: 8px; }
.pv-form textarea { resize: vertical; min-height: 96px; }
.pv-save { gap: 8px; }
.pv-wait { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.pv-actions { margin: 4px 0 16px; }
.pv-others { margin-top: 8px; }
.counter { display: grid; grid-gap: 6px; gap: 6px; }
.counter-bar { position: relative; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.counter-bar .zone { position: absolute; top: 0; bottom: 0; background: var(--green-soft); }
.counter-bar .fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 99px; transition: width .25s var(--ease), background .25s ease; }
.fill.c-good { background: var(--green); } .fill.c-short { background: var(--amber); } .fill.c-long { background: var(--red); }
b.c-good { color: var(--green); } b.c-short { color: var(--amber); } b.c-long, .c-long { color: var(--red); }
.serp-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; font-family: Arial, ui-sans-serif, sans-serif; }
.serp-site { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #4d5156; }
.serp-host { font-size: 14px; color: #202124; line-height: 1.2; }
.serp-path { font-size: 12px; color: #4d5156; line-height: 1.3; overflow-wrap: anywhere; }
.serp-title { color: #1a0dab; font-size: 19px; line-height: 1.3; margin-bottom: 4px; transition: color var(--t-fast); overflow-wrap: anywhere; }
.serp-desc { color: #4d5156; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .pv { grid-template-columns: 1fr; } .pv-side { position: static; } }
@media (max-width: 520px) { .seg button { padding: 8px 10px; } .pv-stage { height: 520px !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.kw-tools { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.kw-search { display: flex; gap: 6px; min-width: 240px; flex: 0 1 320px; }
.kw-search input { padding: 8px 12px; border-radius: 999px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px 0 4px; }
.pager [aria-disabled] { opacity: .4; pointer-events: none; }
@media (max-width: 1100px) { .pv-side-first .pv-side { order: -1; } }

/* ---------- AI visibility ---------- */
.vis-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.vis-row:last-child { border-bottom: 0; }
.vis-row .meter { width: 120px; flex: 0 0 120px; }
.vis-num { min-width: 52px; text-align: right; }
.vis-q.open { background: #fcfbf8; border-radius: 10px; }
.vis-answers { display: grid; grid-gap: 10px; gap: 10px; padding: 4px 0 14px; }
.vis-answer { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.vis-answer.hit { border-color: var(--green); }
.vis-answer p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.ok { background: var(--green); } .dot.miss { background: var(--red); }
.grid > * { min-width: 0; }
.vis-trend { overflow-x: auto; }

/* ---------- Listings and reviews ---------- */
.dir-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-gap: 6px; gap: 6px; }
.dir-row:last-child { border-bottom: 0; }
.dir-row.neg { border-left: 3px solid var(--red); padding-left: 10px; }
.dir-form input { flex: 1 1; min-width: 160px; padding: 7px 10px; }
.dir-row blockquote { margin: 0; padding-left: 10px; border-left: 2px solid var(--line); }
.dir-row textarea { margin: 6px 0; }
.stars { color: var(--amber); letter-spacing: 1px; }
.reply { padding-left: 10px; }
.pre { white-space: pre-wrap; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0; }
label.check input { width: auto; }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; grid-gap: 16px; gap: 16px; margin-bottom: 16px; align-items: start; }
.inbox > * { min-width: 0; }
.inbox-list { display: grid; grid-gap: 4px; gap: 4px; max-height: 72vh; overflow: auto; align-content: start; }
.inbox-list .chips { margin-bottom: 8px; }
.conv { display: grid; grid-gap: 3px; gap: 3px; padding: 10px 10px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid transparent; transition: background .18s ease, border-color .18s ease; }
.conv:hover { background: var(--sand); }
.conv.on { background: #fff; border-color: var(--ink); }
.conv.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.conv-tags { gap: 6px; flex-wrap: wrap; }
.badge.st-waiting { background: #fff3dc; color: #8a5a00; }
.badge.st-human { background: #e8eefc; color: #2a4aa8; }
.badge.st-closed { opacity: .7; }
.inbox-thread { display: grid; grid-gap: 12px; gap: 12px; min-height: 360px; align-content: start; }
.inbox-thread .empty { display: grid; place-items: center; grid-gap: 6px; gap: 6px; min-height: 300px; text-align: center; }
.msgs { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; padding: 4px 2px; }
.msg { max-width: 80%; padding: 9px 12px; border-radius: 14px; display: grid; grid-gap: 4px; gap: 4px; animation: fadeIn .22s ease both; }
.msg.in { align-self: flex-start; background: var(--sand); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #e5f6ee; border-bottom-right-radius: 4px; }
.msg.failed { background: #fdecec; }
.inbox-draft { display: grid; grid-gap: 8px; gap: 8px; padding: 12px; border: 1px dashed var(--accent); border-radius: 12px; background: #fffaf2; }
.inbox-reply { display: flex; gap: 8px; align-items: flex-end; }
.inbox-reply textarea { flex: 1 1; }
@media (max-width: 860px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 46vh; }
  .msg { max-width: 92%; }
}
.dir-row > * { min-width: 0; }
.dir-row code { overflow-wrap: anywhere; word-break: break-all; }
.inbox-thread > .row.between { flex-wrap: wrap; gap: 8px; }
.inbox-thread > .row.between > div { min-width: 0; }
.inbox-back { display: none; }
@media (max-width: 860px) {
  .inbox.has-conv .inbox-list { display: none; }
  .inbox.has-conv .inbox-back { display: inline-flex; }
}

/* ---------- Money chain ---------- */
.table.money td, .table.money th { white-space: nowrap; }
.table.money tfoot td { border-top: 2px solid var(--line); font-weight: 700; }
.badge.pay-ok { background: #e5f6ee; color: #0f7a4f; }
.badge.pay-bad { background: #fdecec; color: #b42318; }
.stage-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stage-form select, .stage-form input { width: auto; min-width: 0; padding: 6px 10px; font-size: 13px; }
.stage-form input { width: 110px; }
.costs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 10px; gap: 10px; }

/* ---------- Start from a site address ---------- */
.quick-start { border: 2px solid var(--accent); }
.quick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-row input { flex: 1 1 240px; font-size: 16px; }
.more-form summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.more-form[open] summary { margin-bottom: 14px; }
.launch-meter { display: grid; text-align: right; }
.launch-meter b { font-size: 28px; }
.launch-progress { margin: 0 0 16px; }
.launch-progress > span { transition: width .6s var(--ease, ease); }
.launch-step { display: flex; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .18s ease; }
.launch-step:hover { background: var(--sand); }
.launch-step .grow { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.launch-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line); color: var(--ink-soft); }
.launch-step.s-done .launch-dot { background: #e5f6ee; color: #0f7a4f; }
.launch-step.s-work .launch-dot { background: #fff3dc; color: #8a5a00; animation: pulse 1.4s ease-in-out infinite; }
.launch-step.s-todo .launch-dot { background: #ffe9e2; color: var(--accent-ink); }
.launch-code { display: block; margin-top: 6px; overflow-wrap: anywhere; word-break: break-all; }
@media (prefers-reduced-motion: reduce) { .launch-step.s-work .launch-dot { animation: none; } .launch-progress > span { transition: none; } }

/* Returning customers: one collapsible block per campaign */
.cust-camp { border-top: 1px solid var(--line); padding: 10px 0; }
.cust-camp summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; cursor: pointer; list-style: none; }
.cust-camp summary::-webkit-details-marker { display: none; }
.cust-camp[open] summary { margin-bottom: 6px; }

