/* Sentosa Marketing Portal uses the VantageBI design system: white header with the Sentosa logo and
   gradient badge, icon sidebar, underlined tabs, white boxes on a light grey page. */
/* Light and dark tokens from the VantageBI design system. */
:root {
  --bg: #FFFFFF; --card: #FFFFFF; --soft: #F7F6F5; --soft2: #EEEDEC; --ctl: #EEEDEC;
  --ink: #151515; --tx: #5F5F5F; --mut: #737373; --line: #E4E2E0;
  --btn: #151515; --btnt: #FFFFFF;
  --pos: #12B76A; --pos-t: #079455; --neg: #F04438; --neg-t: #B42318;
  --s1: #2A2725; --s2: #9E9790; --s3: #D6D3D0;
  --grad: linear-gradient(90deg, #E5183F, #FDA82E);
  --tipbg: #151515; --tipfg: #FFFFFF;
  --barpos: #12B76A; --barneg: #F04438; --bar1: #2A2725; --bar2: #D6D3D0;
}
html.dark {
  --bg: #151515; --card: #1E1E1E; --soft: #252525; --soft2: #2B2B2B; --ctl: #2B2B2B;
  --ink: #F2F4F7; --tx: #CFCBC6; --mut: #9A9590; --line: #2E2E2E;
  --btn: #F2F4F7; --btnt: #151515;
  --pos: #47CD89; --pos-t: #47CD89; --neg: #F97066; --neg-t: #F97066;
  --s1: #E4E2E0; --s2: #8A847E; --s3: #4A4744;
  --tipbg: #F2F4F7; --tipfg: #151515;
  --barpos: #0A6B3F; --barneg: #8F2620; --bar1: #8A8580; --bar2: #2E2E2E;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; font-size: 14px; line-height: 1.5; }
a { color: inherit; }
small { color: var(--mut); }
code { background: var(--bg); padding: 2px 6px; border-radius: 2px; font-size: 12.5px; color: var(--ink); }

/* header */
.hdr { background: var(--card); padding: 0 32px; height: 63px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.hdr .home { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { height: 26px; width: auto; display: block; }
.bi { font-weight: 700; font-size: 14px; line-height: 1; letter-spacing: .01em; color: #fff; background: var(--grad); padding: 6px 8px; border-radius: 3px; }
html.dark .brand .logo [fill="#100C0A"] { fill: #F2F4F7; }
.hdr .sp { flex: 1; }
.hdr .jump { width: auto; max-width: 260px; font-size: 13px; padding: 7px 10px; }
.who { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.who small { font-size: 11.5px; }
.mode { border: 1px solid var(--line); background: var(--card); color: var(--tx); width: 36px; height: 36px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mode:hover { color: var(--ink); }
.mode .sun { display: none; }
html.dark .mode .sun { display: block; }
html.dark .mode .moon { display: none; }

/* shell, icon sidebar and tabs */
.shell { display: grid; grid-template-columns: 64px 1fr; min-height: calc(100vh - 63px); }
body.nodash .shell { grid-template-columns: 1fr; }
.side { background: var(--soft); border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 63px; height: calc(100vh - 63px); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 30; }
.side a { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--mut); border-radius: 3px; }
.side a svg { width: 20px; height: 20px; }
.side a:hover { background: var(--soft2); color: var(--ink); }
.side a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.side .nm { position: absolute; left: 54px; top: 50%; transform: translate(-4px,-50%); background: var(--tipbg); color: var(--tipfg); font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 3px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; box-shadow: 0 4px 12px rgba(16,24,40,.18); }
.side a:hover .nm { opacity: 1; transform: translate(0,-50%); }
.content { min-width: 0; }
.tabs { background: var(--card); border-bottom: 1px solid var(--line); padding: 0 28px; display: flex; gap: 24px; position: sticky; top: 63px; z-index: 19; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; font-size: 13px; font-weight: 400; color: var(--mut); padding: 12px 0 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
main { max-width: none; margin: 0; padding: 24px 28px 64px; }

/* page title row */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.top h2 { margin: 0; font-family: Newsreader, Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.top .per { font-size: 14px; color: var(--tx); margin: 4px 0 0; }
.top .per a { color: var(--tx); text-decoration: none; }
.tc, .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--mut); margin: 0 0 2px; }
.note { font-size: 12.5px; color: var(--mut); margin: 4px 0 14px; line-height: 1.5; max-width: 920px; }

/* boxes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 20px 24px; margin-top: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.card h2 { font-size: 16px; font-weight: 600; margin: 0 0 2px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 16px 16px 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); min-width: 0; }
.tile .lbl { font-size: 13px; font-weight: 500; color: var(--mut); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .val { font-size: 28px; font-weight: 600; margin: 8px 0 6px; letter-spacing: -.02em; white-space: nowrap; }
.tile .cmp { margin: 0 0 4px; font-size: 12.5px; color: var(--mut); display: flex; align-items: center; gap: 6px; }

/* change lines */
.chg { font-weight: 600; font-size: 12.5px; color: var(--tx); white-space: nowrap; }
.chg.up, .up { color: var(--pos-t); }
.chg.down, .down { color: var(--neg-t); }

/* buttons and controls */
.btn { border: 0; border-radius: 3px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: var(--btn); color: var(--btnt); text-decoration: none; display: inline-block; line-height: 1.5; }
.btn.gh { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.warn { background: var(--card); color: var(--neg-t); border: 1px solid var(--line); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.btn.wide { width: 100%; padding: 10px 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; color: var(--mut); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; padding: 0; }
.period, .seg { display: inline-flex; background: var(--ctl); border-radius: 3px; padding: 3px; margin: 0 0 6px; flex-wrap: wrap; gap: 2px; }
.period button, .seg a { border: 0; background: none; color: var(--tx); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 3px; cursor: pointer; text-decoration: none; }
.period .on, .seg .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.seg { margin: 16px 0 12px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
input, select, textarea { font: inherit; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); width: 100%; }
html.dark input, html.dark select, html.dark textarea { background: var(--soft); border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.danger { margin-top: 16px; }
.flash { background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--pos); color: var(--ink); padding: 10px 14px; border-radius: 3px; font-size: 13px; margin-bottom: 16px; }
.flash.error { border-left-color: var(--neg); }

/* tables */
.tablewrap { overflow: auto; max-height: 720px; border: 1px solid var(--line); border-radius: 4px; margin-top: 12px; }
.card > .tablewrap:first-child { margin-top: 0; }
.t { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.t th, .t td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.t thead th { font-size: 12px; color: var(--mut); font-weight: 500; background: var(--soft); position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--soft); }
.t .n { text-align: right; white-space: nowrap; }
.t.mini { border: 1px solid var(--line); border-radius: 4px; }
.t.mini td { padding: 6px 12px; }
.pg { color: var(--mut); font-size: 12.5px; font-weight: 300; text-decoration: none; word-break: break-all; }
.pg:hover { color: var(--ink); text-decoration: underline; }
.pill { display: inline-flex; font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 3px; background: var(--soft2); color: var(--tx); white-space: nowrap; }
.pill.st, .pill.lp, .pill.ap, .pill.hu { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.pill.ok { color: var(--pos-t); }
.pill.warn { color: var(--neg-t); }
.pill.g-protect { background: var(--s1); color: var(--card); }
.pill.g-improve, .pill.g-grow { background: var(--soft2); color: var(--ink); }
.src { white-space: nowrap; }
.dot { font-size: 12px; color: var(--mut); margin-right: 10px; }
.dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--ctl); margin-right: 5px; }
.dot.ok { color: var(--ink); }
.dot.ok::before { background: var(--pos); }

/* charts */
.chartbox { position: relative; height: 320px; margin-top: 8px; }
.wf { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.wf div { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.wf small { font-size: 12px; }
.wf b { font-size: 16px; font-weight: 600; }
.cann { border-top: 1px solid var(--line); padding: 12px 0; }
.cann p { margin: 0 0 6px; }

/* insights */
.ai .aiform { display: flex; gap: 10px; align-items: flex-end; margin-top: 10px; flex-wrap: wrap; }
.ai .aiform label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.ai .aiform select { width: auto; }
.ai .aiform.ask label { flex: 1; min-width: 280px; }
.insight header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
.insight .eyebrow { font-weight: 500; }
.md { max-width: 860px; color: var(--ink); }
.md h2 { font-size: 16px; margin: 18px 0 6px; }
.md h3 { font-size: 14px; margin: 14px 0 4px; }
.md li { margin-bottom: 6px; }
.empty { background: var(--card); border: 1px dashed var(--line); border-radius: 4px; padding: 26px; color: var(--mut); text-align: center; margin-top: 12px; }

/* login */
.loginpage { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.setup { width: min(440px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 30px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.setup h2 { margin: 24px 0 4px; font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.setup p { font-size: 14px; color: var(--tx); margin: 0 0 18px; }
.setup label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; margin: 0 0 14px; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .nm { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .wf { grid-template-columns: repeat(2, 1fr); }
  .who { display: none; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .hdr, main, .tabs { padding-left: 16px; padding-right: 16px; }
  .hdr .jump { display: none; }
}

/* info tips: explanations live here, not in visible text */
.inf { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; font-size: 9.5px; font-weight: 700; font-style: normal; font-family: Inter, sans-serif; margin-left: 2px; color: var(--mut); cursor: help; flex-shrink: 0; letter-spacing: 0; }
.inf .tipbox { display: none; position: absolute; left: -10px; top: 20px; width: 320px; background: var(--tipbg); color: var(--tipfg); font-size: 12px; font-weight: 400; line-height: 1.5; padding: 9px 11px; border-radius: 3px; z-index: 40; text-align: left; box-shadow: 0 6px 16px rgba(16,24,40,.2); }
.inf .tipbox b { font-weight: 600; }
.inf .tipbox a, .inf .tipbox code { color: inherit; background: transparent; }
.inf:hover .tipbox, .inf:focus .tipbox { display: block; }

/* sortable tables */
.t thead th.sortable { cursor: pointer; user-select: none; }
.t thead th.sortable:hover { color: var(--ink); }
.t thead th .arr { margin-left: 4px; color: var(--ink); }

/* insights page uses Outfit */
.ai, .insight { font-family: Outfit, Inter, sans-serif; }
.insight .md { font-size: 15px; line-height: 1.6; }

/* numbered setup steps */
.steps { margin: 12px 0 18px; padding-left: 20px; color: var(--tx); font-size: 13.5px; line-height: 1.6; max-width: 860px; }
.steps li { margin-bottom: 10px; padding-left: 4px; }
.steps b { color: var(--ink); }
.steps a { color: var(--ink); }
.steps code { display: inline-block; margin: 4px 0; user-select: all; }

/* client favicon next to the page title */
.top h2.cname { display: flex; align-items: center; gap: 12px; }
.top h2.cname .fav { width: 28px; height: 28px; border-radius: 4px; flex-shrink: 0; }

/* main menu in the header */
.topnav { display: flex; align-items: center; gap: 4px; margin-left: 20px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--mut); font-size: 13.5px; font-weight: 500; padding: 7px 10px; border-radius: 3px; }
.topnav a svg { width: 16px; height: 16px; }
.topnav a:hover { color: var(--ink); background: var(--soft); }
.topnav a.on { color: var(--ink); background: var(--soft2); font-weight: 600; }
@media (max-width: 1100px) { .topnav a span { display: none; } }

.tiles.net { grid-template-columns: minmax(220px, 320px); margin-bottom: 0; }

/* selected client badge at the top of the sidebar */
.side a.cbadge { position: sticky; top: 0; width: 44px; height: 44px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.side a.cbadge img { width: 24px; height: 24px; border-radius: 3px; }
.side a.cbadge b { font-size: 16px; font-weight: 700; color: var(--ink); }
.side .sdiv { width: 28px; height: 1px; background: var(--line); margin: 6px 0; flex-shrink: 0; }


/* Sentosa logo with "Marketing Portal" set small underneath, aligned with the wordmark */
.brand.stack { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand.stack .logo { height: 24px; }
.brand.stack .tagline { margin-left: 33.3px; font-size: 12px; font-weight: 500; color: var(--mut); line-height: 1; }

/* card title row with a control on the right */
.ch2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ch2 .period { margin: 0; }

/* chart legend with tick boxes */
.tlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.tlegend button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 13px; color: var(--mut); cursor: pointer; }
.tlegend button.on { color: var(--tx); }
.tlegend .tb { width: 15px; height: 15px; border-radius: 3px; border: 1.5px solid var(--c); background: transparent; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tlegend button.on .tb { background: var(--c); }
.tlegend button.on .tb::after { content: ""; width: 4px; height: 8px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* per-query attribution */
.t td.n.lead { font-weight: 700; color: var(--ink); }
.t thead tr.sub th { position: static; font-size: 11px; padding-top: 0; color: var(--mut); background: var(--soft); }
.t thead tr:first-child th { border-bottom: 0; }

/* reports */
.rpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 8px; }
.rpcard h3 { font-size: 17px; font-weight: 600; margin: 8px 0 4px; }
.rpcard .per { margin: 0 0 16px; color: var(--tx); }
/* report templates */
.rth { font-size: 15px; margin: 22px 0 10px; } .rth small { font-weight: 500; }
details.rt { margin-bottom: 10px; padding: 0; } details.rt summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; gap: 6px; align-items: center; }
details.rt summary .rtn { margin-left: auto; color: var(--mut); font-size: 13px; } details.rt form { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.rtl { list-style: none; margin: 8px 0 16px; padding: 0; counter-reset: rt; } .rtl li { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border: 1px solid var(--line); border-radius: 3px; margin-bottom: 4px; background: var(--card); cursor: grab; }
.rtl li label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; } .rtl .mv .btn { padding: 2px 8px; margin-left: 4px; }
.form .rtl li { padding: 4px 8px; min-height: 0; }
.form .rtl li label { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0; font-size: 13.5px; line-height: 1.3; }
.form .rtl li label input[type="checkbox"] { width: 16px !important; height: 16px; margin: 0 !important; padding: 0; flex: none; order: -1; }
/* Zoho CRM */
.zsrc { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; margin: 6px 0 14px; }
.form label.zs { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.form label.zs input { width: 16px; height: 16px; margin: 0; padding: 0; flex: none; }
.form label.zs small { margin-left: auto; }
pre.code { background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; font-size: 12.5px; overflow-x: auto; white-space: pre; }
/* AI SEO */
.ais { display: inline-flex; align-items: center; gap: 6px; }
.tile .lbl.ais img, .ais img { flex: none; }
html.dark .ais img[src*="openai"], html.dark .ais img[src*="grok"], html.dark .ais img[src*="copilot"] { filter: invert(1); }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.costrow { display: flex; gap: 8px; } .costrow select { width: 70px; flex: none; }
details.costmonths { margin: -6px 0 14px; } details.costmonths summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 12px; }
.form .cgrid label { font-weight: 500; font-size: 12.5px; margin: 0; gap: 4px; }
.costperiods { margin: -4px 0 16px; } .costperiods .lbl2 { font-size: 13px; font-weight: 600; margin: 0 0 6px; } .costperiods .lbl2 small { font-weight: 400; }
.form .ctab input { padding: 6px 8px; font-size: 13px; } .ctab td { padding: 4px 6px; } .ctab { margin-bottom: 8px; max-width: 640px; }
/* Compact client header */
.top { align-items: center; margin-bottom: 12px; }
.top h2.cname { font-size: 24px; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.top h2.cname .cdom { font-family: Inter, system-ui, sans-serif; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--mut); text-decoration: none; }
.top h2.cname .cdom:hover { color: var(--ink); text-decoration: underline; }
.top .tc .btn { padding: 6px 12px; font-size: 12.5px; }
.note { max-width: none; }
/* Sentosa KPI tile style: soft grey card, no border, rounded corners */
.tile { background: #F4F2F0; border: 0; border-radius: 10px; box-shadow: none; padding: 18px 20px 16px; }
html.dark .tile { background: var(--soft); }
.tile .lbl { font-size: 14px; font-weight: 500; color: var(--mut); }
.tile .val { font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px; }
.tile .cmp { font-size: 13px; }
.tile.rpcard { background: var(--card); border: 1px solid var(--line); }
/* Client switcher (hover or click the client badge) */
.cswitch { position: relative; }
.cswitch .cmenu { display: none; position: absolute; left: 52px; top: -6px; min-width: 260px; max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.14); padding: 6px; z-index: 50; }
.cswitch::after { content: ""; position: absolute; left: 44px; top: 0; width: 10px; height: 44px; }
.cswitch:hover .cmenu, .cswitch.open .cmenu, .cswitch:focus-within .cmenu { display: block; }
.cmenu .cmh { margin: 4px 8px 6px; font-size: 11.5px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.side .cmenu a { width: auto; height: auto; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; box-shadow: none; background: none; }
.side .cmenu a:hover { background: var(--soft); }
.side .cmenu a.on { background: var(--soft2); font-weight: 600; }
.cmenu .cfv { width: 28px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.cmenu .cfv b { font-size: 12px; }
.cfv { position: relative; }
.cbr { position: absolute; right: -4px; bottom: -4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--card), 0 0 0 2.5px var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cbr img { display: block; width: 9px !important; height: 9px !important; margin: 0; border-radius: 0 !important; object-fit: contain; }
.cbrl { right: -5px; bottom: -5px; width: 17px; height: 17px; }
.cbr.cbrl img { width: 12px !important; height: 12px !important; }
.cmenu .cnm { display: flex; flex-direction: column; line-height: 1.25; font-size: 13.5px; }
.cmenu .cnm small { font-size: 11.5px; color: var(--mut); font-weight: 400; }
.side .cmenu a.call { justify-content: center; font-size: 12.5px; color: var(--mut); border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; margin-top: 4px; }
@media (max-width: 900px) { .cswitch .cmenu { left: 0; top: 50px; } }
/* Sticky header: dark translucent overlay on scroll (sentosaltd.com style) */
.hdr { transition: background-color .3s, border-color .3s, box-shadow .3s; }
.hdr.hdr-scrolled { background: rgba(21, 21, 21, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: transparent; box-shadow: none; color: #fff; }
.hdr.hdr-scrolled .brand .logo [fill="#100C0A"] { fill: #fff; }
.hdr.hdr-scrolled .tagline, .hdr.hdr-scrolled .who small { color: rgba(255,255,255,.65); }
.hdr.hdr-scrolled .who b { color: #fff; }
.hdr.hdr-scrolled .topnav a { color: rgba(255,255,255,.72); }
.hdr.hdr-scrolled .topnav a:hover, .hdr.hdr-scrolled .topnav a.on { color: #fff; background: rgba(255,255,255,.12); }
.hdr.hdr-scrolled .jump { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.hdr.hdr-scrolled .jump option { color: #151515; }
.hdr.hdr-scrolled .mode { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.hdr.hdr-scrolled .btn.gh { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
/* Scrolled header: all text and the logo wordmark fully white */
.hdr.hdr-scrolled, .hdr.hdr-scrolled .who, .hdr.hdr-scrolled .who b, .hdr.hdr-scrolled .who small, .hdr.hdr-scrolled .topnav a, .hdr.hdr-scrolled .topnav a span, .hdr.hdr-scrolled .btn.gh, .hdr.hdr-scrolled .mode, .hdr.hdr-scrolled .jump { color: #fff !important; }
.hdr.hdr-scrolled .brand .logo [fill="#100C0A"], .hdr.hdr-scrolled .brand .logo [fill="#100C0A"] * { fill: #fff !important; }
.hdr.hdr-scrolled .brand.stack .tagline { color: rgba(255,255,255,.65) !important; }
/* Span buttons and compare switch */
.ctlrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.ctlrow .seg { margin: 0; }
.cmpt { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx); text-decoration: none; }
.cmpt .sw { width: 32px; height: 18px; border-radius: 9px; background: var(--soft2); position: relative; transition: background .2s; }
.cmpt .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .2s; }
.cmpt.on .sw { background: #4285F4; } .cmpt.on .sw::after { left: 16px; } .cmpt.on { color: var(--ink); font-weight: 600; }
.tile .tsub { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.08); }
html.dark .tile .tsub { border-top-color: rgba(255,255,255,.1); }
.tile .tsub .lbl { font-size: 12.5px; }
.tile .tsub .val2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 2px 0 2px; }
.tile .tsrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tile .spark { flex: none; margin-bottom: 4px; }
/* Timeline slider (SEO overview) */
.tl { margin: 4px 0 16px; max-width: 900px; }
.tlh { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--mut); margin-bottom: 4px; }
.tlr { position: relative; height: 22px; }
.tlt { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--soft2) 0, var(--soft2) var(--gs), var(--line) var(--gs), var(--line) 100%); }
.tlsel { position: absolute; top: 9px; height: 4px; border-radius: 2px; background: var(--ink); }
.tlr input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 22px; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.tlr input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.tlr input[type=range]::-moz-range-track { background: none; }
.tlr input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); cursor: grab; }
.tlr input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); cursor: grab; }
.tlnote { font-size: 12px; color: var(--mut); margin: 6px 0 0; }
/* Timeline under the chart */
.card .tl { margin: 18px 0 0; max-width: none; }
.tlh { align-items: center; }
.tlh > span { min-width: 80px; font-size: 12.5px; color: var(--mut); }
.tlh > span:last-child { text-align: right; }
.tlp { display: inline-flex; gap: 2px; background: var(--soft); border-radius: 6px; padding: 3px; }
.tlp a { font-size: 12.5px; text-decoration: none; color: var(--tx); padding: 3px 10px; border-radius: 4px; }
.tlp a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.1); }
.tlt { top: 10px; height: 2px; background: linear-gradient(90deg, var(--line) 0, var(--line) var(--gs), var(--mut) var(--gs), var(--mut) 100%); }
.tlsel { top: 9px; height: 4px; background: var(--ink); }
.tlr input[type=range]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: 3px; background: var(--card); border: 2px solid var(--ink); }
.ctlrow:empty { display: none; }
.tlf { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.tlf .tlnote { margin: 0; }
.ch2 .ctrls { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cmpt.dis { opacity: .4; pointer-events: none; }
.tile .lbl { overflow: visible; } .tile .lbl .inf { margin-left: 6px; vertical-align: 1px; }
/* Domain rating donut in front of the value */
:root { --drtrack: #E9E7F2; }
html.dark { --drtrack: #34313F; }
.val.drv { display: flex; align-items: center; gap: 10px; }
.val.drv .drd { flex: none; }
/* Client shortcuts in the sidebar on pages without a selected client */
.side a.cfa { position: relative; top: auto; }
/* Info tooltips inside tiles stay within the tile, so they never push the page sideways */
.tile { position: relative; }
.tile .inf { position: static; }
.tile .inf .tipbox { left: 12px; right: 12px; top: 46px; width: auto; }
.tile .inf .tipbox { white-space: normal; overflow-wrap: anywhere; text-transform: none; letter-spacing: 0; }
/* Single-colour brand icons (ChatGPT) turn white in dark mode */
html.dark img[src*="/openai.svg"] { filter: invert(1); }
/* Time selector: month labels sit under the handles; the end labels above are hidden */
.tl.tlbub .tlh #tlA, .tl.tlbub .tlh #tlB { visibility: hidden; }
.tl.tlbub .tlr { height: 46px; }
.tlr .tlb { position: absolute; top: 26px; transform: translateX(-50%); font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; }
/* AI Insights page */
.aih { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 4px 0 14px; }
.aiht { font-family: var(--serif, Georgia, serif); font-weight: 400; font-size: 34px; margin: 0 0 4px; color: var(--ink); }
.aiu { font-size: 13px; margin: 0; }
.aiseg { margin-bottom: 18px; }
.aiseg small { color: var(--mut); margin-left: 4px; }
.aisum { display: flex; gap: 14px; align-items: flex-start; padding: 22px 26px; border-radius: 18px; background: linear-gradient(100deg, #EEF0FB 0%, #F6EEF6 55%, #FBEDEE 100%); margin-bottom: 28px; }
html.dark .aisum { background: linear-gradient(100deg, #23243a 0%, #2c2433 55%, #322427 100%); }
.aisum p { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.aispark { color: #8E75FF; font-size: 18px; line-height: 1.6; }
.aisec { font-size: 22px; margin: 26px 0 12px; color: var(--ink); }
.aigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.aic { background: #F4F2F0; border-radius: 16px; padding: 16px 20px 18px; }
html.dark .aic { background: var(--soft); }
.aict { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.aip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: var(--card); border-radius: 999px; padding: 4px 10px; color: var(--ink); }
.aip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8E75FF; }
.aip.medium::before { background: #A78BFA; } .aip.low::before { background: #C4C0BC; }
.aichk { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--mut); cursor: pointer; font-size: 15px; }
.aichk:hover { color: #12B76A; border-color: #12B76A; }
.aic h3 { font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.aic p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--tx); }
/* AI Insights: pinned to the bottom of the sidebar */
.side a.sbot { margin-top: auto; background: var(--soft2); color: var(--mut); }
.side a.sbot svg { width: 18px; height: 18px; }
.side a.sbot:hover, .side a.sbot.on { color: var(--ink); background: var(--card); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
@media (max-width: 900px) { .side a.sbot { margin-top: 0; } }
.side a.sbot { background: #DEDAD5; color: #8A847E; border-radius: 10px; width: 44px; height: 44px; margin-bottom: 4px; }
.side a.sbot svg { width: 17px; height: 17px; }
.side a.sbot:hover, .side a.sbot.on { background: #D2CDC7; color: #2A2725; box-shadow: none; }
html.dark .side a.sbot { background: #34312E; color: #A8A29E; }
html.dark .side a.sbot:hover, html.dark .side a.sbot.on { background: #403C38; color: #E4E2E0; }
/* SMI Assistant chat */
.smi-fab { position: fixed; right: 26px; bottom: 26px; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #151515; color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(16,24,40,.25); z-index: 60; }
html.dark .smi-fab { background: #E4E2E0; color: #151515; }
.smi-chat { position: fixed; right: 26px; bottom: 96px; width: 420px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100vh - 130px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(16,24,40,.22); z-index: 61; display: flex; flex-direction: column; overflow: hidden; }
.smi-chat[hidden] { display: none; }
.smi-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.smi-t { font-weight: 700; color: var(--ink); }
.smi-c { font-size: 12.5px; background: var(--soft2); color: var(--mut); border-radius: 999px; padding: 3px 10px; }
.smi-h .sp { flex: 1; }
.smi-new, .smi-x { border: 0; background: none; color: var(--mut); cursor: pointer; font: inherit; font-size: 14px; }
.smi-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.smi-i { color: var(--mut); margin: 0 0 4px; }
.smi-q { text-align: left; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.smi-q:hover { background: var(--soft2); }
.smi-m { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.smi-m p { margin: 0 0 6px; } .smi-m p:last-child { margin: 0; }
.smi-m.user { align-self: flex-end; background: #151515; color: #fff; }
html.dark .smi-m.user { background: #E4E2E0; color: #151515; }
.smi-m.assistant { align-self: flex-start; background: var(--soft); color: var(--ink); }
.smi-busy { color: var(--mut); font-style: italic; }
.smi-f { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.smi-f input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; background: var(--card); color: var(--ink); }
.smi-s { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #151515; color: #fff; font-size: 17px; cursor: pointer; }
/* SMI Assistant chat */
.smi-fab { position: fixed; right: 26px; bottom: 26px; width: 58px; height: 58px; border-radius: 50%; border: 0; background: #151515; color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(16,24,40,.25); z-index: 60; }
html.dark .smi-fab { background: #E4E2E0; color: #151515; }
.smi-chat { position: fixed; right: 26px; bottom: 96px; width: 420px; max-width: calc(100vw - 32px); height: 620px; max-height: calc(100vh - 130px); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px rgba(16,24,40,.22); z-index: 61; display: flex; flex-direction: column; overflow: hidden; }
.smi-chat[hidden] { display: none; }
.smi-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.smi-t { font-weight: 700; color: var(--ink); }
.smi-c { font-size: 12.5px; background: var(--soft2); color: var(--mut); border-radius: 999px; padding: 3px 10px; }
.smi-h .sp { flex: 1; }
.smi-new, .smi-x { border: 0; background: none; color: var(--mut); cursor: pointer; font: inherit; font-size: 14px; }
.smi-b { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.smi-i { color: var(--mut); margin: 0 0 4px; }
.smi-q { text-align: left; border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.smi-q:hover { background: var(--soft2); }
.smi-m { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.smi-m p { margin: 0 0 6px; } .smi-m p:last-child { margin: 0; }
.smi-m.user { align-self: flex-end; background: #151515; color: #fff; }
html.dark .smi-m.user { background: #E4E2E0; color: #151515; }
.smi-m.assistant { align-self: flex-start; background: var(--soft); color: var(--ink); }
.smi-busy { color: var(--mut); font-style: italic; }
.smi-f { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.smi-f input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: inherit; background: var(--card); color: var(--ink); }
.smi-s { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #151515; color: #fff; font-size: 17px; cursor: pointer; }

.side a.sbot { background: #D7D3CF; }
/* Geo focus multi-select */
details.geo { position: relative; border: 1px solid var(--line); border-radius: 3px; background: var(--card); margin-top: -6px; }
details.geo summary { list-style: none; cursor: pointer; padding: 11px 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.geo summary::after { content: "\25BE"; float: right; color: var(--mut); }
.geop { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 8px 24px rgba(16,24,40,.15); padding: 8px; }
.geop input[type=search] { width: 100%; margin-bottom: 6px; }
.geol { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.geol label { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 4px 6px; margin: 0; cursor: pointer; }
.geol label:hover { background: var(--soft); }
/* AI Insights cards: short and even; full text in a popup */
.aic { cursor: pointer; display: flex; flex-direction: column; min-height: 230px; max-height: 270px; }
.aic:hover { box-shadow: 0 2px 10px rgba(16,24,40,.08); }
.aic .aib { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.aimodal { position: fixed; inset: 0; background: rgba(16,16,16,.45); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.aimodal[hidden] { display: none; }
.aimbox { position: relative; background: var(--card); border-radius: 16px; max-width: 560px; width: 100%; padding: 26px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.aimbox h3 { font-size: 20px; margin: 10px 0 10px; color: var(--ink); }
.aimbox p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--tx); }
.aimbox .aict { margin: 0; }
.aimx { position: absolute; right: 16px; top: 14px; border: 0; background: none; font-size: 16px; color: var(--mut); cursor: pointer; }
/* Site checker: response time scale */
.spd { position: relative; display: flex; height: 8px; border-radius: 4px; overflow: visible; margin-top: 10px; }
.spd span { height: 8px; opacity: .85; }
.spd span:first-child { border-radius: 4px 0 0 4px; } .spd span:nth-child(3) { border-radius: 0 4px 4px 0; }
.spd i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--card); }
/* Listicle finder brand chips */
.lfb { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft2); color: var(--tx); margin: 2px 2px 2px 0; }
.lfb.mine { background: #DCFCE7; color: #166534; font-weight: 600; }
.lfb.comp { background: #FEF3C7; color: #92400E; font-weight: 600; }
html.dark .lfb.mine { background: #14532D; color: #BBF7D0; } html.dark .lfb.comp { background: #78350F; color: #FDE68A; }
/* AI citations legend: colour, platform icon, name */
.aileg { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; margin: 0 0 8px; }
.aileg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--tx); cursor: pointer; padding: 2px 0; }
.aileg button:not(.on) { opacity: .4; }
.aileg .sq { width: 12px; height: 12px; border-radius: 3px; }
html.dark .aileg img[src*="/openai.svg"] { filter: invert(1); }
/* Reports: one Generate report button with a client or internal choice */
.rpgen { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.rpdd { position: relative; }
.rpdd summary { list-style: none; cursor: pointer; }
.rpdd summary::-webkit-details-marker { display: none; }
.rpmenu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(16,24,40,.15); padding: 6px; min-width: 300px; }
.rpmenu form { margin: 0; }
.rpopt { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 4px; cursor: pointer; font: inherit; color: var(--ink); }
.rpopt:hover { background: var(--soft); }
.rpopt small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
/* Saved reports: Client / Internal tabs above the table */
.rptabs { position: static; margin: 0 0 12px; padding: 0; background: none; border-bottom: 1px solid var(--line); }
/* Saved reports table: slimmer rows and small buttons */
.rpt td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; line-height: 1.4; min-height: 0; }
.rpact { white-space: nowrap; } .rpact form { display: inline; margin: 0; } .rpact .btn { margin-left: 4px; }

.tile.tlink { cursor: pointer; transition: box-shadow .15s; }
.tile.tlink:hover { box-shadow: 0 0 0 1px var(--line); }

.tkmodal { position: fixed; inset: 0; background: rgba(20,20,20,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.tkmodal[hidden] { display: none; }
.tkbox { background: var(--card, #fff); border-radius: 12px; padding: 24px; width: min(560px, 92vw); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.tkbox h3 { margin: 0 0 6px; }
.tkbox .muted { margin: 0 0 14px; font-size: 13px; }
.tkbox textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; box-sizing: border-box; }
.tkbtns { display: flex; gap: 8px; margin-top: 14px; align-items: center; }

.smup { display: block; margin-top: 12px; font-size: 13px; }
.smup input { display: block; margin-top: 6px; }

.goalf { margin: 0; }
.goalf legend { font-weight: 600; padding: 0 6px; }
.goalf legend small { font-weight: 400; color: var(--muted, #6b6b6b); margin-left: 6px; }
.goalr { display: grid; grid-template-columns: 170px 120px 1fr 130px; gap: 8px; margin-top: 8px; }
.gst { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.gst.done { background: #E3F4EA; color: #12723e; }
.gst.prog { background: #FDF0D2; color: #8a5a00; }

.gml { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.gml input, .gml select { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }

.tkbox { max-height: 90vh; overflow: auto; }

.tsf { margin: 0; }
.tsel, .tst { border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; border: 0; }
.tsel.open, .tst.open { background: #ECEBEA; color: #3b3b3b; }
.tsel.prog, .tst.prog { background: #FDF0D2; color: #8a5a00; }
.tsel.ongoing, .tst.ongoing { background: #1F7A4D; color: #fff; }
.tsel.done, .tst.done { background: #12723e; color: #fff; }
.taskt td { vertical-align: middle; }
.tkbox textarea { font: inherit; }
.tsel { width: auto !important; min-width: 0; display: inline-block; }
.xdesc { white-space: pre-wrap; margin: 8px 0 0; }
.tile.xkey { outline: 2px solid var(--ink, #151515); }
.tile .val .chg { font-size: inherit; }
.rtt2 td { padding-top: 7px; padding-bottom: 7px; vertical-align: middle; }
.rtt2 .rted > td { background: var(--bg2, #faf9f8); padding: 16px 20px; }
.pvf { display: inline-flex; align-items: center; gap: 8px; }
.pvf img { border-radius: 4px; }
.tkseg { margin: 4px 0 6px; }
.tkseg label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 3px; cursor: pointer; margin: 0; }
.tkseg label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.tkseg input { margin: 0; }
.brand.wm2 { display: flex; align-items: baseline; gap: 7px; color: var(--ink); text-decoration: none; line-height: 1; }
.brand.wm2 b { font-family: Outfit, sans-serif; font-size: 24px; font-weight: 600; letter-spacing: 0; }
.brand.wm2 small { font-size: 12px; font-weight: 500; color: var(--mut); }
html.dark .brand.wm2 b { color: #F2F4F7; }
.hdr.hdr-scrolled .brand.wm2 b { color: #fff !important; }
.hdr.hdr-scrolled .brand.wm2 small { color: rgba(255,255,255,.65) !important; }
.brand.wm2 .fl { height: 24px; width: auto; align-self: center; margin-right: 2px; }
/* Sign in page: sentosaltd.com design system (ink #151515, Inter text, 6px radius, neutral shading). "Insights" uses the logo wordmark face. */
body.lg2 { background: #151515; color: #fff; margin: 0; font-family: Inter, system-ui, sans-serif; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
.lgw { width: 100%; max-width: 400px; padding: 40px 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; }
.lgbrand { text-align: center; margin: 0 0 36px; }
.lgbrand img { height: 56px; width: auto; display: block; margin: 0 auto 20px; }
.lgbrand h1 { font-family: Outfit, sans-serif; font-size: 72px; font-weight: 600; letter-spacing: 0; line-height: 1; margin: 0; color: #fff; }
.lgby { margin: 12px 0 0; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); }
.lgcard { width: 100%; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; padding: 28px; box-sizing: border-box; }
.lgsub { margin: 0 0 22px; font-size: 14px; color: rgba(255,255,255,.7); text-align: center; line-height: 1.5; }
.lgcard label { display: block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); margin: 0 0 16px; }
.lgcard input { display: block; width: 100%; box-sizing: border-box; height: 44px; margin-top: 8px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 400; color: #fff; background: #0f0f0f; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; outline: none; transition: border-color .2s; }
.lgcard input:focus { border-color: rgba(255,255,255,.55); }
.lgcard input:-webkit-autofill, .lgcard input:-webkit-autofill:hover, .lgcard input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; caret-color: #fff; -webkit-box-shadow: 0 0 0 1000px #0f0f0f inset; box-shadow: 0 0 0 1000px #0f0f0f inset; transition: background-color 9999s ease-out 0s; }
.lgbtn { width: 100%; height: 44px; margin-top: 8px; padding: 0 18px; font: inherit; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: #151515; background: #fff; border: 0; border-radius: 6px; cursor: pointer; transition: background-color .2s; }
.lgbtn:hover { background: #ededed; }
.lgerr { background: rgba(169,7,7,.18); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 14px; padding: 10px 14px; border-radius: 6px; margin: 0 0 18px; }
.lgfoot { margin: 28px 0 0; font-size: 12px; color: rgba(255,255,255,.45); }
/* Sign in background: the sentosaltd.com homepage hero video under the same dark shade. */
.lgvid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.lgshade { position: fixed; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 50% 110%, rgba(255,255,255,.10), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.45) 40%, rgba(0,0,0,.7)); }
.lg2 .lgw { position: relative; z-index: 1; }
.lg2 .lgcard { background: rgba(15,15,15,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body.lg2 { overflow-x: hidden; } @media (min-height: 760px) { body.lg2 { overflow: hidden; } }
html:not(.dark) .tile { background: #F6F5F4; }
/* Top menu: active item underlined, no grey box. */
.topnav a.on, .topnav a:hover, .hdr.hdr-scrolled .topnav a.on, .hdr.hdr-scrolled .topnav a:hover { background: none !important; }
.topnav a.on { text-decoration: none; color: var(--ink); }
.cview { margin-left: 12px; font: 500 12px Inter, sans-serif; color: var(--mut); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; text-decoration: none; vertical-align: middle; }
.cview:hover { color: var(--ink); border-color: var(--ink); }
.profbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin: 0 0 14px; }
.profbox label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin: 0; }
.profed summary { cursor: pointer; font-size: 12px; color: var(--mut); margin-top: 4px; }
.profed form { margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
/* Top menu: text only, no icons. */
.topnav a svg { display: none; }
@media (max-width: 1100px) { .topnav a span { display: inline; } }
/* Sub-menu tabs that run past the screen: arrows and soft edges. */
.tabwrap { position: sticky; top: 63px; z-index: 19; }
.tabwrap > .tabs { position: static; }
.tabarr { position: absolute; top: 0; bottom: 1px; width: 40px; border: 0; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); z-index: 2; }
.tabarr[hidden] { display: none; }
.tabarr.l { left: 0; background: linear-gradient(90deg, var(--card) 55%, transparent); }
.tabarr.r { right: 0; background: linear-gradient(270deg, var(--card) 55%, transparent); }
.tabarr:hover { color: var(--mut); }
.aitk { margin-top: 12px; font: 500 12px Inter, sans-serif; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 5px 10px; cursor: pointer; }
.aitk:hover { border-color: var(--ink); }
p.aitk.on { display: inline-block; border: 0; padding: 0; color: var(--pos-t); cursor: default; }
.mode.intro { margin-right: 6px; text-decoration: none; }
/* AI Insights: lean table */
.aitbl tr.air { cursor: pointer; }
.aitbl tr.air:hover td { background: var(--soft); }
.aitbl td small { color: var(--mut); font-size: 11px; margin-left: 1px; }
.aitbl .aisc b { font-size: 15px; }
.aitbl td { vertical-align: middle; }
.aitbl .aiact form, .aitbl .aiact .aitk { vertical-align: middle; }
.aitbl .aiact { white-space: nowrap; }
.aitbl .aiact form { display: inline-block; margin-left: 6px; }
.aitbl .aitk { margin-top: 0; }
.aitbl span.aitk.on { font-size: 12px; color: var(--mut); }
/* AI Insights area labels: muted tints, dark text (no bright accents). */
.aiarea { display: inline-block; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 4px; white-space: nowrap; color: #2b2b2b; background: #EEEDEC; }
.aiarea.seo { background: #DCE7F7; color: #1F4E8C; }
.aiarea.aiseo { background: #EADFF7; color: #5B2E8C; }
.aiarea.leads { background: #DDF1E4; color: #1D6B3E; }
.aiarea.other { background: #F4E8D6; color: #7A4E14; }
html.dark .aiarea.seo { background: #1E2F47; color: #A9C6EE; } html.dark .aiarea.aiseo { background: #33244A; color: #D2B8F0; } html.dark .aiarea.leads { background: #1C3A2A; color: #A8DDBC; } html.dark .aiarea.other { background: #3D2F1C; color: #EBCB9C; }
.seg.aifl { margin: 4px 0 12px; }
.seg.aifl button { border: 0; background: none; color: var(--tx); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 3px; cursor: pointer; }
.seg.aifl button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.seg.aifl small { color: var(--mut); margin-left: 3px; }
.aitbl td:first-child { width: 22%; }
.aitbl .aibd { color: var(--tx); font-size: 13px; line-height: 1.45; width: 260px; max-width: 260px; }
.aitbl .aiac { font-size: 13px; line-height: 1.45; color: var(--ink); font-weight: 500; max-width: 320px; }
.aitbl .aibd span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* AI Insights popup: every part of the finding */
.aimtop { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; }
.aimtop .aip { font-size: 11px; }
.aimsc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 18px; }
.aimsc div { background: var(--soft); border-radius: 4px; padding: 10px 12px; }
.aimsc span { display: block; font-size: 11px; color: var(--mut); font-weight: 500; }
.aimsc b { font-size: 20px; font-weight: 600; }
.aimsc .tot { background: var(--ctl); }
.aiml { margin: 14px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.aima { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.aimbt { display: flex; gap: 8px; margin-top: 20px; }
.aimbt form { margin: 0; }
.aimst { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.aimst li.muted { list-style: none; margin-left: -20px; color: var(--mut); }
.aimbox p.aiml { font-size: 11px !important; line-height: 1.3; margin: 16px 0 4px !important; } .aimbox p.aib { font-size: 14px; line-height: 1.55; color: var(--tx); margin: 0; }
.aimpr { margin-top: 14px; }
.aimpr textarea { width: 100%; box-sizing: border-box; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: var(--ink); resize: vertical; }
.aimcp { font-size: 12px; color: var(--mut); margin: 6px 0 0; }
.aimbox { max-height: 90vh; overflow-y: auto; }
.aimbt { align-items: center; }
.aimbt .btn { box-sizing: border-box; height: 36px; padding: 0 14px; border: 1px solid transparent; line-height: 1; display: inline-flex; align-items: center; margin: 0; }
.aimbt .btn.gh { border-color: var(--line, #d9d9d9); }
.aimbt .aixn { font-size: 12.5px; align-self: center; }
.aimbt a.btn { text-decoration: none; }
.aitka { display: inline-block; background: #e3f4e8; color: #1d6b38; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
td .aitka { margin: 4px 0 0; }
.aimbox { max-width: 1120px; }
.aimurl { display: flex; flex-direction: column; gap: 4px; }
.aimurl a { font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.aimurl p { margin: 0; font-size: 14px; }
.aimbt .aitkb { align-self: center; margin-left: 4px; font-size: 13px; padding: 6px 12px; }
.aimbt .btn.aixs { background: #e6e6e6; color: #151515; border-color: #e6e6e6; }
.aimbt .btn.aixs:hover { background: #dadada; }
.xsec { font-size: 18px; margin: 28px 0 12px; }
.xsec small { font-size: 13px; font-weight: 500; }
.xurl .ch2 h2 { font-size: 16px; word-break: break-all; }
.xurl .ch2 h2 a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.xurl .tiles { grid-template-columns: repeat(3, 1fr); margin: 12px 0 16px; }
.xurl .tile .per { font-size: 12.5px; margin: 4px 0 0; }
.xwin { margin: 0 0 10px; }
.xrow { font-weight: 600; margin: 14px 0 8px; font-size: 14px; }
.xrow small { font-weight: 500; margin-left: 6px; }
.xtiles { grid-template-columns: repeat(3, 1fr) !important; margin: 0 0 4px; }
.xtiles .tile .per { font-size: 12.5px; margin: 4px 0 0; }
.xlink { margin-left: 10px; vertical-align: middle; font: inherit; font-size: 12.5px; font-weight: 600; background: #e3f4e8; color: #1d6b38; border: 0; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.xlink:hover { background: #d3ecda; }
.xtaken { border: 2px solid var(--ink, #151515); border-radius: 6px; padding: 12px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.xtaken textarea { width: 100%; box-sizing: border-box; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; border: 0; background: var(--soft, #f6f5f4); padding: 10px; border-radius: 4px; resize: vertical; }
.xh1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.xeyb { margin: 0 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.xhead h2.xttl { margin: 0; font-size: 20px; }
.xchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.xchip { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--soft, #f4f2f0); color: var(--tx); }
.xchips .xlink { margin-left: 0; }
.xfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.xfacts div { background: var(--soft, #f4f2f0); border-radius: 6px; padding: 10px 14px; }
.xfacts p { margin: 0; font-size: 11.5px; color: var(--mut); }
.xfacts b { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--ink); }
.xchg { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.xchg .xdesc { margin: 0; white-space: pre-line; }
@media (max-width: 700px) { .xfacts { grid-template-columns: 1fr 1fr; } }
.xlist td, .xlist th { padding-top: 8px !important; padding-bottom: 8px !important; white-space: nowrap; }
.xlist td.xnm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.xlist td.xnm small { margin-left: 4px; }
.xst, .xv { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--soft, #f4f2f0); color: var(--ink); }
.xst i { width: 6px; height: 6px; border-radius: 50%; background: #639922; }
.xst.done { color: var(--mut); }
.xv.vhs { background: #27500A; color: #EAF3DE; }
.xv.vs { background: #EAF3DE; color: #27500A; }
.xv.vm { color: var(--mut); }
.xv.vd { background: #FCEBEB; color: #791F1F; }
.xv.va { background: #FAEEDA; color: #633806; }
.pmdemo { background: #FAEEDA; color: #633806; border-radius: 6px; padding: 10px 14px; }
html.dark .pmdemo { background: #412402; color: #FAC775; }
.pmi { display: inline-flex; gap: 6px; vertical-align: middle; }
.pmi img.off { opacity: .22; filter: grayscale(1); }
.pmr { cursor: pointer; }
.pmr:hover td { background: var(--soft, #f4f2f0); }
.pmq { font-weight: 600; color: var(--ink); }
.pmc { display: inline-block; width: 14px; color: var(--mut); transition: transform .15s; }
.pmr.open .pmc { transform: rotate(90deg); }
.pmd > td { background: var(--soft, #f4f2f0); padding: 12px 16px; }
.pmdel { margin-top: 10px; }
.pmans { margin-top: 8px; }
.pmans summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--mut); }
.pmtxt { margin-top: 6px; padding: 10px 12px; max-height: 320px; overflow: auto; background: var(--card, #fff); border: 1px solid var(--line, #e8e5e1); border-radius: 6px; font-size: 12.5px; line-height: 1.5; white-space: normal; }
.pmlg { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 12.5px; }
.pmlg .sq { width: 10px; height: 10px; border-radius: 2px; }
html.dark .pmlg .sq.pmkey { background: #F1EFE8 !important; }
.pmadd { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; flex-wrap: wrap; }
.pmadd input { flex: 1 1 320px; min-width: 0; }
.pmgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pmme td { background: #E6F1FB; }
html.dark .pmme td { background: #0C2A47; }
@media (max-width: 900px) { .pmgrid { grid-template-columns: 1fr; } }
.xby { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: #E6F1FB; color: #0C447C; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
html.dark .xby { background: #0C2A47; color: #B5D4F4; }
.xchip.xrun { display: inline-flex; align-items: center; gap: 6px; }
.xchip.xrun i { width: 6px; height: 6px; border-radius: 50%; background: #639922; }
.xfacts { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.xfacts b .xv { font-size: 13px; padding: 4px 11px; margin-top: 3px; }
.xfacts .xsub { font-size: 11.5px; font-weight: 400; color: var(--mut); margin-left: 4px; }
.xbar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line, #e8e5e1); overflow: hidden; }
.xbar span { display: block; height: 100%; background: #639922; border-radius: 2px; }
@media (max-width: 700px) { .xfacts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.aieyb { margin: 0 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.aih { align-items: flex-end; margin: 4px 0 16px; }
.aichips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.aichip { font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 999px; background: var(--soft, #f4f2f0); color: var(--tx); }
.aisum2 { margin-bottom: 18px; }
.aisum2 .aisumt { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.aipri { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.aipri div { display: flex; gap: 6px; flex-wrap: wrap; }
.aipri span { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.aibar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.aibar .aiseg, .aibar .seg.aifl { margin: 0; }
.aibar .seg.aifl { background: none; padding: 0; border: 0; box-shadow: none; gap: 6px; align-items: center; }
.aibar .seg.aifl::before { content: "Area"; font-size: 12px; color: var(--mut); margin-right: 2px; }
.aibar .seg.aifl button { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--soft, #f4f2f0); box-shadow: none; }
.aibar .seg.aifl button.on { background: var(--ink); color: var(--card, #fff); box-shadow: none; }
.aibar .seg.aifl button.on small { color: inherit; opacity: .75; }
.aiarea.competitors { background: #F7DEE3; color: #8C2E45; }
html.dark .aiarea.competitors { background: #43222A; color: #F0B9C5; }
.mifind { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.mif { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.mif:hover { background: var(--soft, #f6f5f4); }
.mif b { font-size: 14px; font-weight: 600; }
.miown td { font-weight: 600; }
.mi2 { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.mi2 > section { margin: 0; }
@media (max-width: 1000px) { .mi2 { grid-template-columns: 1fr; } }
.mimix { display: grid; gap: 16px; }
.mimix p { margin: 0 0 6px; font-size: 13px; }
.mibar { display: grid; grid-template-columns: 130px 1fr 40px; gap: 8px; align-items: center; font-size: 12px; margin: 3px 0; }
.mik { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.mit { height: 8px; background: var(--soft, #f4f2f0); border-radius: 2px; overflow: hidden; }
.mit i { display: block; height: 100%; background: #151515; }
html.dark .mit i { background: #E4E2E0; }
.miv { text-align: right; color: var(--mut); }
.misites { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.misites a { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--soft, #f4f2f0); color: var(--tx); text-decoration: none; }
.misites a.on { background: var(--ink); color: var(--card, #fff); }
.mikind { margin: 0 !important; }
.mifeed .misum { white-space: normal; font-size: 12.5px; }
.mifeed details summary { cursor: pointer; color: var(--mut); font-size: 12px; }
.mifeed details p { margin: 4px 0; }
.miscan { margin: 0 0 14px; }
.mifav { vertical-align: -3px; margin-right: 8px; border-radius: 3px; }
.gpb { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; }
.gpt { flex: 1; height: 8px; background: var(--soft, #f0eeec); border-radius: 999px; overflow: hidden; min-width: 120px; }
.gpt i { display: block; height: 100%; background: #151515; border-radius: 999px; }
.gpt i.full { background: #1d6b38; }
html.dark .gpt i { background: #E4E2E0; } html.dark .gpt i.full { background: #6fcf97; }
.gpb b { font-size: 12.5px; font-weight: 600; min-width: 42px; text-align: right; }
html.dark .gst.done { background: #1C3A2A; color: #A8DDBC; }
html.dark .gst.prog { background: #3D2F1C; color: #F0CF9A; }
html.dark .aitka, html.dark .xlink { background: #1C3A2A; color: #A8DDBC; }
html.dark .xlink:hover { background: #24493A; }
html.dark .xv.vhs { background: #A8DDBC; color: #10291C; }
html.dark .xv.vs { background: #1C3A2A; color: #A8DDBC; }
html.dark .xv.vd { background: #43222A; color: #F0B9C5; }
html.dark .xv.va { background: #412402; color: #FAC775; }
html.dark .aimbt .btn.aixs { background: #34312E; color: #E4E2E0; border-color: #34312E; }
html.dark .aimbt .btn.aixs:hover { background: #403C38; }
.dvf { margin: 0 0 14px; }
.dvl { margin: 0 0 6px; font-weight: 600; font-size: 14px; }
.dvl small { display: block; font-weight: 500; color: var(--mut); font-size: 12px; margin-top: 2px; }
.dvrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.dvsel { flex: 1; min-width: 200px; font-size: 14px; }
.dvsel a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.dvbox { max-width: 640px !important; }
.dvtabs { margin: 8px 0 10px !important; }
.dvcrumb { font-size: 13px; color: var(--mut); margin: 0 0 8px; }
.dvcrumb a { color: var(--ink); }
.dvlist { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; }
.dvi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.dvi:hover { background: var(--soft, #f6f5f4); }
.dvi:last-child { border-bottom: 0; }
.dvic { color: var(--mut); flex: none; }
.dvlist > p { padding: 12px; margin: 0; }
.form .geol label, .geol label { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; text-align: left !important; gap: 10px; padding: 7px 10px !important; margin: 0 !important; font-size: 14px; font-weight: 400 !important; border-radius: 4px; }
.form .geol input[type=checkbox], .geol input[type=checkbox] { width: 16px !important; height: 16px; margin: 0 !important; padding: 0 !important; flex: none; accent-color: #151515; }
.geol label:has(input:checked) { background: var(--soft, #f4f2f0); font-weight: 600 !important; }
.geop { padding: 8px !important; }
.geol { gap: 0 !important; max-height: 300px; }
.aiarea.setup { background: #E6E4E1; color: #3A3734; }
html.dark .aiarea.setup { background: #34312E; color: #D6D3D0; }
.aisetup { margin-bottom: 16px; }
.aisetup .ch2 b { margin-left: 6px; font-size: 14px; }
.aisetl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aisetl span { font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.dvlist > p { white-space: normal; word-break: break-word; overflow-wrap: anywhere; }
.dvlist { overflow-x: hidden; }
.geol label .geonm { flex: 1; }
.geomain { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mut); font-weight: 500; visibility: hidden; }
.geol label:hover .geomain, .geol label:has(input[type=checkbox]:checked) .geomain { visibility: visible; }
.geol .geomain input[type=radio] { width: 14px !important; height: 14px; margin: 0 !important; accent-color: #151515; }
.geol label:has(input[type=radio]:checked) .geomain { color: var(--ink); font-weight: 600; }
.compf { position: relative; display: block; }
.compf img { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); border-radius: 3px; pointer-events: none; }
.compf img[hidden] { display: none; }
.compf input { width: 100%; box-sizing: border-box; }
.compf img:not([hidden]) + input { padding-left: 38px !important; }
.sovl { display: grid; gap: 6px; margin-top: 10px; }
.sovr { display: grid; grid-template-columns: 230px 1fr 56px 70px; gap: 10px; align-items: center; font-size: 13.5px; }
.sovr.you { font-weight: 700; }
.sovd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sovd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sovb { height: 14px; background: var(--soft, #f4f2f0); border-radius: 3px; overflow: hidden; }
.sovb i { display: block; height: 100%; border-radius: 3px; }
.sovr b { text-align: right; font-size: 13.5px; }
.sovr small { text-align: right; }
html.dark [style*="background:#151515"], html.dark [style*="background: #151515"] { background: #E4E2E0 !important; }
.sovr { grid-template-columns: 230px 1fr 56px 70px 70px !important; }
.sovc { font-style: normal; font-size: 12.5px; font-weight: 600; text-align: right; color: var(--mut); }
.sovc.up { color: #12723e; } .sovc.down { color: #b42318; }
html.dark .sovc.up { color: #6fcf97; } html.dark .sovc.down { color: #f28b82; }
.tclick { cursor: pointer; display: contents; }
.tclick > .tile:hover { outline: 1px solid var(--line); }
.lpulse { grid-column-end: -1; min-width: 0; }
.lpulse .lbl small { font-weight: 500; margin-left: 6px; }
.lpc { height: 92px; position: relative; margin-top: 4px; }
.tile.lpulse { grid-column-end: auto; background: var(--card, #fff) !important; border: 1px solid var(--line); box-shadow: none; }
.lpulse .lpc { height: 110px; }
.rk2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 900px) { .rk2 { grid-template-columns: 1fr; } }
.rkm td { padding-top: 6px !important; padding-bottom: 6px !important; } .rkf { display: inline-flex; gap: 8px; flex-wrap: wrap; } .rkf input, .rkf select { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); }
.rkt tbody tr { cursor: pointer; } .rkt tbody tr:hover td { background: var(--soft, #f6f5f4); } .rku { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rku a { color: var(--ink); font-weight: 300; font-size: 12.5px; } .rkcp { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.jbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.jbar .period a, .jch a { text-decoration: none; }
.jch { display: flex; gap: 6px; flex-wrap: wrap; }
.jch a { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--soft, #f4f2f0); color: var(--tx); }
.jch a.on { background: var(--ink); color: var(--card, #fff); }
.jflow svg { width: 100%; height: auto; display: block; }
.jrib { fill: rgba(21,21,21,.14); stroke: none; } .jrib:hover { fill: rgba(21,21,21,.3); }
.jnode { fill: #151515; } .jsql { fill: #1d6b38; }
.jlab { font: 600 13px Inter, sans-serif; fill: var(--ink); } .jpct, .jsub { font: 500 12px Inter, sans-serif; fill: var(--mut); }
html.dark .jrib { fill: rgba(228,226,224,.14); } html.dark .jrib:hover { fill: rgba(228,226,224,.3); } html.dark .jnode { fill: #E4E2E0; } html.dark .jsql { fill: #6fcf97; }
.jsh { display: inline-block; width: 60px; height: 6px; background: var(--soft, #f0eeec); border-radius: 3px; margin-right: 8px; vertical-align: middle; overflow: hidden; } .jsh i { display: block; height: 100%; background: var(--ink); }
.jbar .period { display: inline-flex; gap: 2px; background: var(--soft, #f4f2f0); border-radius: 8px; padding: 3px; }
.jbar .period a { font-size: 13px; padding: 5px 12px; border-radius: 6px; color: var(--tx); }
.jbar .period a.on { background: var(--card, #fff); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.jflow svg { max-height: 520px; }
.jlab { font-size: 12.5px !important; } .jpct, .jsub { font-size: 11.5px !important; }
.jrib { fill: #151515 !important; } html.dark .jrib { fill: #E4E2E0 !important; } .jrib:hover { fill-opacity: .7 !important; } .jrib.joth, .jnode.joth { fill: #9A9590 !important; }
input[type=checkbox], input[type=radio] { accent-color: #151515; } html.dark input[type=checkbox], html.dark input[type=radio] { accent-color: #E4E2E0; }
.jrib { fill-opacity: .22; }
.jpct { font-weight: 700 !important; } .jpct.on { fill: #FFFFFF; } html.dark .jpct.on { fill: #151515; }
.jpct2 { font: 700 12.5px Inter, sans-serif; fill: var(--ink); }
.sbadge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #B42318; color: #fff; font: 700 10px/16px Inter, sans-serif; font-style: normal; text-align: center; } .side a { position: relative; }
.cmr { display: grid; gap: 8px; } .cmri { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; } .cmri b { display: block; font-size: 14px; } .cmri small { font-size: 12px; } .cmri span { display: flex; gap: 6px; flex: none; } .cmri form { margin: 0; }
.cmt tbody tr { cursor: pointer; } .cmb { max-height: 60vh; overflow-y: auto; } .cmm { border-left: 3px solid var(--line); padding: 6px 12px; margin: 10px 0; } .cmm.in { border-left-color: #151515; } html.dark .cmm.in { border-left-color: #E4E2E0; } .cmf { margin: 0 0 4px; font-size: 13px; } .cmtx { font-size: 13.5px; line-height: 1.55; color: var(--tx); white-space: normal; }

/* Countries field: keep closed height compact */
details.geo { align-self: start !important; height: auto !important; min-height: 0 !important; }
details.geo { max-height: 46px; overflow: visible; }

/* Emails that count: full width, plain text */
label.commsrc { grid-column: 1 / -1 !important; width: 100% !important; }
label.commsrc textarea { display: block; width: 100% !important; max-width: none !important; box-sizing: border-box; font-family: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); resize: vertical; min-height: 72px; word-break: normal; overflow-wrap: anywhere; }
label.commsrc textarea:focus { outline: none; border-color: var(--ink); }

/* Overview scorecard: one slim grey row, small coloured bar = change against the previous period */
.scard { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 2px 0 14px; }
.scc { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink); text-decoration: none; background: #F4F2F0; }
html.dark .scc { background: var(--soft); }
.scc .scb { flex: none; width: 22px; height: 5px; border-radius: 3px; background: #D6D3D0; }
.sc5 .scb { background: #0B7A3E; } .sc4 .scb { background: #34A853; } .sc3 .scb { background: #F4B400; } .sc2 .scb { background: #F57C00; } .sc1 .scb { background: #D93025; }
html.dark .sc0 .scb { background: #5A5652; }
a.scc:hover { background: #ECE9E6; } html.dark a.scc:hover { background: #2E2E2E; }
.scc .scb { order: 1; }
.scc .scp { margin-left: auto; font-weight: 500; color: var(--mut); font-variant-numeric: tabular-nums; }
.scard { grid-template-columns: auto; }
.scard .sccmp { margin: 0; align-self: center; font-size: 12px; color: var(--mut); white-space: nowrap; }
.scard { grid-auto-columns: 1fr; grid-template-columns: max-content; }
.scc .scp { order: 2; }
/* Status bar panel: separate from the period settings below */
.scard { background: #F4F2F0; border-radius: 6px; padding: 8px; margin: 0 0 16px; }
html.dark .scard { background: var(--soft); }
.scard .scc { background: var(--card); }
html.dark .scard .scc { background: #1C1C1C; }
.scard a.scc:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.scard .sccmp { padding: 0 8px 0 4px; }
.scard .sccmp b { color: var(--ink); font-weight: 600; margin-right: 6px; }
/* Status bar: white chips with a thin border, no panel */
.scard { background: transparent; padding: 0; margin: 0 0 22px; }
html.dark .scard { background: transparent; }
.scard .scc { background: var(--card); box-shadow: inset 0 0 0 1px #E4E1DE; }
html.dark .scard .scc { background: var(--soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.scard a.scc:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.scard .sccmp { padding: 0 8px 0 0; }
/* Page tabs: no full-width line under the tabs; only the active tab is underlined */
.tabs { border-bottom: 0 !important; box-shadow: none !important; }
/* LinkCard (Off-Page) */
.lpcard { padding: 0; overflow: hidden; }
.lpbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; background: #151515; color: #fff; padding: 12px 18px; font-size: 13px; font-weight: 500; }
.lpbar i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.lpbar small { color: rgba(255,255,255,.6); font-size: 12px; } .lpbar .lpsum { margin-left: auto; color: rgba(255,255,255,.7); }
html.dark .lpbar { background: #0E0E0E; }
.lpix-row { display: flex; gap: 16px; align-items: center; padding: 10px 18px; font-size: 13px; color: var(--mut); border-bottom: 1px solid var(--line); }
.lpix-row b { color: var(--ink); font-weight: 600; } .lpok-t { color: #1E8E3E; font-weight: 600; } .lpwarn-t { color: #C77800; }
.lpfilters { display: flex; gap: 12px; align-items: end; padding: 12px 18px; flex-wrap: wrap; }
.lpfilters .lpf { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); margin: 0; } .lpfilters select { min-width: 150px; padding: 6px 8px; font-size: 13px; }
.lpcard .tablewrap { margin: 0; border-left: 0; border-right: 0; border-radius: 0; }
.lpt td { white-space: nowrap; font-size: 13px; vertical-align: middle; }
.lprd { display: inline-flex; align-items: center; gap: 8px; } .lprd img { border-radius: 3px; }
.lpdr { display: inline-flex; align-items: center; gap: 6px; } .lpdr b { font-weight: 600; font-size: 12px; }
.lptype, .lppill, .lpix { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.lpli { background: #E8F0FE; color: #1A56C4; } .lpgp { background: #FDE8E8; color: #C53030; } .lpls { background: #FEF6D8; color: #8A6500; } .lpbm { background: #FEEBD8; color: #A85400; } .lpct, .lpot { background: #EFEDEB; color: #5f5f5f; }
.lpok { background: #E3F4E6; color: #1E7E34; } .lpbad { background: #FBDCD9; color: #B3261E; } .lpwarn { background: #FEF0D6; color: #9A5B00; } .lpgrey { background: #EFEDEB; color: #6b6b6b; }
html.dark .lpli { background: rgba(66,133,244,.18); color: #8AB4F8; } html.dark .lpgp { background: rgba(229,72,77,.18); color: #FF8A8E; } html.dark .lpls { background: rgba(244,180,0,.16); color: #F6C843; } html.dark .lpbm { background: rgba(245,124,0,.18); color: #FFA94D; } html.dark .lpct, html.dark .lpot, html.dark .lpgrey { background: #2A2A2A; color: #BDB8B3; }
html.dark .lpok { background: rgba(52,168,83,.2); color: #6DD48A; } html.dark .lpbad { background: rgba(217,48,37,.22); color: #FF8A80; } html.dark .lpwarn { background: rgba(244,180,0,.16); color: #F6C843; }
.lpurl a { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
/* Edit client: titled sections */
.efs { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.efs h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--ink); }
.efs .efw { grid-column: 1 / -1; }
.efs .grid2 > label.efw + details.geo { margin-top: -6px; }
/* Searchable pickers: hide non-matching rows, compact radios */
.geol label[style*="display: none"] { display: none !important; }
.geol input[type=radio] { width: 16px !important; height: 16px; margin: 0 !important; padding: 0 !important; flex: none; accent-color: #151515; }
.lpsel .geol label small { margin-left: auto; white-space: nowrap; }
.form .rowtop { margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lpt td { padding-top: 6px !important; padding-bottom: 6px !important; } .lpt .lptype, .lpt .lppill, .lpt .lpix { padding: 1px 8px; }
/* LinkCard type labels: same colour as the dots in the bar */
.lpli { background: rgba(66,133,244,.14) !important; color: #4285F4 !important; }
.lpgp { background: rgba(229,72,77,.14) !important; color: #E5484D !important; }
.lpls { background: rgba(244,180,0,.18) !important; color: #B88700 !important; }
.lpbm { background: rgba(245,124,0,.15) !important; color: #F57C00 !important; }
.lpct, .lpot { background: rgba(154,148,142,.18) !important; color: #7D7771 !important; }
.lpls::before, .lpli::before, .lpgp::before, .lpbm::before, .lpct::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.lpls::before { background: #F4B400; } .lpct::before { background: #9A948E; }
html.dark .lpct, html.dark .lpot { color: #BDB8B3 !important; }
.lpt td { vertical-align: middle !important; }
/* LinkCard bar: light grey like the app's table headers */
.lpbar { background: #F4F2F0 !important; color: var(--ink) !important; border-bottom: 1px solid var(--line); }
.lpbar small { color: var(--mut) !important; } .lpbar .lpsum { color: var(--mut) !important; }
html.dark .lpbar { background: var(--soft) !important; }
.lpt .lpurl a { max-width: 300px; } .lpt .lpanc { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
/* Client switcher footer: two equal links */
.side .cmenu .cfoot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 4px; }
.side .cmenu .cfoot a.call { border-top: 0; margin-top: 0; border-radius: 0 0 0 6px; }
.side .cmenu .cfoot a.call + a.call { border-left: 1px solid var(--line); border-radius: 0 0 6px 0; }
/* Client settings: grey fields so they stand out from the white card */
.efs input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .efs select, .efs textarea, .efs details.geo, .efs details.geo summary { background: #F4F2F0 !important; border-color: transparent !important; }
.efs input:not([type=checkbox]):not([type=radio]):focus, .efs select:focus, .efs textarea:focus { background: #fff !important; border-color: var(--ink) !important; outline: none; }
.efs details.geo[open] summary { background: #fff !important; }
.efs .geop input[type=search] { background: #fff !important; border-color: var(--line) !important; }
html.dark .efs input:not([type=checkbox]):not([type=radio]):not([type=hidden]), html.dark .efs select, html.dark .efs textarea, html.dark .efs details.geo, html.dark .efs details.geo summary { background: var(--soft) !important; }
html.dark .efs input:focus, html.dark .efs select:focus, html.dark .efs textarea:focus { background: #1C1C1C !important; }
.efs .grid2 > label { margin-bottom: 4px; }
.efs .grid2 { row-gap: 18px !important; }
/* Client switcher: client type label */
.side .cmenu a .ctype { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--mut); background: #F1EFED; border-radius: 4px; padding: 2px 7px; flex: none; }
html.dark .side .cmenu a .ctype { background: #2A2A2A; color: #BDB8B3; }
.side .cmenu a:hover .ctype, .side .cmenu a.on .ctype { background: #E2DEDA; color: #4f4a45; } html.dark .side .cmenu a:hover .ctype, html.dark .side .cmenu a.on .ctype { background: #3A3633; color: #E4E2E0; }
/* Client type labels: SEO in blue, Links in purple (light tints; darker on hover) */
.side .cmenu a .ctype.ctseo { background: #E8F0FE; color: #2F5FB3; } .side .cmenu a:hover .ctype.ctseo, .side .cmenu a.on .ctype.ctseo { background: #D2E1FC; color: #1F4A94; }
.side .cmenu a .ctype.ctlb { background: #EEEAFB; color: #5B45C2; } .side .cmenu a:hover .ctype.ctlb, .side .cmenu a.on .ctype.ctlb { background: #DDD5F7; color: #4733A6; }
html.dark .side .cmenu a .ctype.ctseo { background: rgba(66,133,244,.18); color: #8AB4F8; } html.dark .side .cmenu a:hover .ctype.ctseo { background: rgba(66,133,244,.3); }
html.dark .side .cmenu a .ctype.ctlb { background: rgba(123,97,255,.2); color: #B3A4FF; } html.dark .side .cmenu a:hover .ctype.ctlb { background: rgba(123,97,255,.32); }
/* Header: flower centred above the sidebar icons (sidebar 64px wide, flower 26px) */
@media (min-width: 761px) { .hdr { padding-left: 19px !important; } }
/* Clients list: name and domain on one line, slimmer rows */
.cnmcell { white-space: nowrap; } .cnmcell .cdm { margin-left: 8px; color: var(--mut); font-size: 12px; }
table:has(.cnmcell) td { padding-top: 9px !important; padding-bottom: 9px !important; vertical-align: middle; }
/* Report templates: tabs keep a white background while the list scrolls under them */
.tabwrap { background: var(--card); } .tabwrap > nav.tabs { background: var(--card) !important; }
/* Clients list: client type badge */
td > .ctype { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 4px; padding: 2px 8px; }
td > .ctype.ctseo { background: #E8F0FE; color: #2F5FB3; } td > .ctype.ctlb { background: #EEEAFB; color: #5B45C2; }
html.dark td > .ctype.ctseo { background: rgba(66,133,244,.18); color: #8AB4F8; } html.dark td > .ctype.ctlb { background: rgba(123,97,255,.2); color: #B3A4FF; }

/* Brand badges show in the client switcher only, not on the sidebar tiles. */
.cbr.cbrl { display: none; }

/* ---------- Phones and small tablets ---------- */
.hmb { display: none; }
.hright { display: contents; }
@media (max-width: 900px) {
  /* The client switcher menu sits above the scrolling icon row, so it is not cut off. */
  .cswitch .cmenu { position: fixed; left: 16px; right: 16px; top: 124px; min-width: 0; max-height: calc(100vh - 150px); }
}
@media (max-width: 1000px) {
  html, body { overflow-x: clip; }
  .hdr { padding: 0 12px 0 16px !important; gap: 10px; }
  .hdr .topnav, .hdr .hright { display: none; }
  .hmb { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); cursor: pointer; }
  .hmb .hm2 { display: none; }
  .hdr.open .hmb .hm1 { display: none; }
  .hdr.open .hmb .hm2 { display: inline; }
  .hdr .sp { display: none; }
  .hdr.open { height: auto; flex-wrap: wrap; padding-top: 11px !important; padding-bottom: 12px !important; row-gap: 8px; }
  .hdr.open .topnav { display: flex; order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line); gap: 2px; }
  .hdr.open .topnav a { padding: 11px 10px; font-size: 15px; }
  .hdr.open .topnav a span { display: inline; }
  .hdr.open .hright { display: flex; order: 11; flex-basis: 100%; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
  .hdr.open .hright .who { display: flex; flex-direction: column; margin-right: auto; }
  .hdr.open .hright form { margin: 0; }
  .hdr.open .hright form .btn { white-space: nowrap; }
  .hdr.open .hright .who b { white-space: nowrap; }
  main { padding-left: 16px !important; padding-right: 16px !important; min-width: 0; }
  .shell > * { min-width: 0; }
  /* Status bar: label on its own line, chips in two columns. */
  .scard { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; }
  .scard .sccmp { grid-column: 1 / -1; white-space: normal; padding: 0 0 2px; }
  /* Wide tables scroll sideways inside their own box instead of widening the page. */
  main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main .tablewrap { max-width: 100%; overflow-x: auto; }
  main .tablewrap table { display: table; }
  main img, main canvas, main svg, main video { max-width: 100%; }
  main pre, main code { white-space: pre-wrap; word-break: break-word; }
  .tabs { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .inf .tipbox { width: min(320px, calc(100vw - 48px)); }
  /* Grids keep to the screen width; wide content scrolls inside its own box. */
  .grid2, .rk2, .sovl { grid-template-columns: minmax(0, 1fr) !important; }
  .grid2 > *, .rk2 > *, .sovl > *, .tiles > * { min-width: 0; }
  main .sovl .sovr { grid-template-columns: minmax(0, 1fr) auto auto !important; row-gap: 4px; }
  main .sovl .sovr .sovb { grid-column: 1 / -1; grid-row: 2; }
  main .sovl .sovr .sovc { display: none; }
  .ch2 > div { min-width: 0; max-width: 100%; }
  main .ch2 .aiarea { white-space: normal; width: auto !important; max-width: 100%; box-sizing: border-box; }
  .lbl, .tile .lbl { white-space: normal; }
  .top { flex-wrap: wrap; row-gap: 8px; }
  .smi-fab { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 17px; }
}

/* Phones: the four status bar chips share one height. */
@media (max-width: 1000px) {
  .scard { grid-auto-rows: 1fr; }
  .scard .sccmp { grid-row: 1; }
  .scard .scc { height: 100%; min-height: 44px; box-sizing: border-box; }
}

/* Phones: the client title wraps cleanly and "Client view" lines up on the left when it drops to a new line. */
@media (max-width: 1000px) {
  .top h2.cname { flex-wrap: wrap; row-gap: 8px; }
  .top h2.cname .cview { margin-left: 0; }
}

/* Phones: Lead pulse takes the full width on its own row below the number tiles. */
@media (max-width: 1000px) {
  .tiles .tile.lpulse { grid-column: 1 / -1 !important; order: 99; }
  .tile.lpulse .lpc { height: 150px; }
  .tile.lpulse .lbl small { display: block; margin: 4px 0 0; }
}

/* LinkCard: on phones, Order no. and Order date move to the last columns. */
.lpt .lpm { display: none; }
@media (max-width: 1000px) {
  .lpt .lpd { display: none; }
  .lpt .lpm { display: table-cell; }
}

/* Clients list: Active and Archived tabs. */
.ctabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 4px 0 16px; }
.ctabs a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--mut); padding: 10px 0 9px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ctabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.ctabs small { margin-left: 4px; font-size: 12px; color: var(--mut); font-weight: 500; }
.carch { margin: 0; }
.carch .btn.sm { padding: 4px 10px; font-size: 12.5px; }

/* Clients list: Archive / Restore stays hidden until the pencil is clicked. */
.cact { white-space: nowrap; }
.cact .carch { display: none; margin-left: 8px; }
.cact.open .carch { display: inline-block; }
.cact .cvw.btn.sm { padding: 4px 10px; font-size: 12.5px; text-decoration: none; }
.cpen { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--mut); cursor: pointer; vertical-align: middle; }
.cpen:hover, .cact.open .cpen { color: var(--ink); border-color: var(--line); background: var(--soft); }

/* Clients list: last sync on one line. */
.ctabs + .tablewrap td:nth-last-child(2) small { white-space: nowrap; }
/* Phones: SEO overview sparklines sit under the numbers at the tile's full width. */
@media (max-width: 1000px) {
  .tile .tsrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .tile .tsrow .spark { width: 100%; height: auto; margin: 4px 0 0; }
}

@media (max-width: 1000px) {
  /* Client actions on one row: Reports, AI insights, LinkCard, Edit. */
  .top .tc { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
  .top .tc .btn { flex: 1 1 auto; padding: 8px 6px; font-size: 13px; text-align: center; white-space: nowrap; }
  .top .tc .tcx { display: none; }
  /* Lead journeys: the path explorer uses the full card width and scrolls sideways at a readable size. */
  .card:has(> .jflow) { padding-left: 0; padding-right: 0; }
  .card:has(> .jflow) > :not(.jflow) { margin-left: 16px; margin-right: 16px; }
  .jflow { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 6px; }
  .jflow svg { width: 1100px; max-width: none; max-height: none; }
}

@media (max-width: 1000px) {
  /* Path explorer labels stay readable at phone size. */
  .jflow .jlab { font-size: 19px !important; }
  .jflow .jpct2, .jflow .jsub { font-size: 16px !important; }
  /* Cards: less inner side padding on phones so tables get more width (Experiments, AI insights and the rest). */
  main .card { padding: 16px 12px; }
  main .card:has(table.xlist), main .card:has(.tablewrap) { padding-left: 10px; padding-right: 10px; }
  /* Four KPI blocks show two per row. */
  .aimsc { grid-template-columns: 1fr 1fr !important; }
  .xtiles .tile { padding-left: 12px; padding-right: 12px; }
}

.lpsync { display: inline-block; margin: 0 0 0 8px; vertical-align: middle; }

/* LinkPanda sign-in: linkpanda.com hero background and Inter */
html:has(.lglp), body.lglp, .lglp.loginpage { background: radial-gradient(58% 42% at 50% 30%, rgba(255,176,84,.085), rgba(255,176,84,0) 72%), radial-gradient(80% 62% at 50% 26%, rgba(28,72,108,.55), rgba(28,72,108,0) 72%), radial-gradient(135% 125% at 50% 36%, rgba(0,0,0,0) 50%, rgba(0,0,0,.55) 100%), linear-gradient(180deg, #081c2e 0%, #050f1b 100%) #050f1b !important; background-attachment: fixed !important; }
.lglp, .lglp h1, .lglp .lgcard, .lglp .lgcard input, .lglp .lgbtn, .lglp .lgsub, .lglp .lgfoot, .lglp .lgtag { font-family: Inter, system-ui, sans-serif !important; letter-spacing: -.01em; }
html:has(.lglp) { overflow: hidden; scrollbar-width: none; }
.lglp h1 { font-size: 40px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.lglp .lgcard { background: #fbfcfe !important; border: 0; border-radius: 24px; padding: 32px 32px 30px; box-shadow: 0 20px 50px rgba(0,0,0,.35); -webkit-backdrop-filter: none; backdrop-filter: none; }
.lglp .lgh { margin: 0 0 24px; text-align: center; font-size: 26px; font-weight: 700; color: #041B2B; letter-spacing: -.2px; }
.lglp .lgcard .lgsub { color: #5b6b7a; }
.lglp .lgcard label { color: #041B2B; }
.lglp .lgcard label { font-size: 15px; font-weight: 500; }
.lglp .lgcard input { height: 48px; background: #fff; color: #041B2B; border: 1px solid #d5dae1; border-radius: 8px; font-size: 16px; }
.lglp .lgcard input:focus { border-color: #041B2B; }
.lglp .lgcard input:-webkit-autofill, .lglp .lgcard input:-webkit-autofill:hover, .lglp .lgcard input:-webkit-autofill:focus { -webkit-text-fill-color: #041B2B; caret-color: #041B2B; -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset; }
.lglp .lgerr { color: #b42318; }
.lglp .lgbtn { height: 50px; margin-top: 12px; font-size: 17px; background: #ff9900; color: #041B2B; font-weight: 700; border-radius: 999px; transition: opacity .2s; }
.lglp .lgbtn:hover { background: #ff9900; opacity: .9; }
.lglp h1 { color: #ff9900; font-style: italic; }
.lglp .lgtag { margin: 12px -60px 0; line-height: 1.4; text-align: center; font-size: 15px; color: rgba(255,255,255,.62); white-space: nowrap; }
@media (max-width: 520px) { .lglp .lgtag { margin: 10px 0 0; white-space: normal; } }
.lglp .lglogo { display: block; width: 220px; height: auto; margin: 0 auto 12px; }
.lglp .lgbrand { margin-bottom: 32px; }
.lglp .lgbrand h1 { line-height: 1.1; }

/* Phones and tablets: the icon row keeps its natural height on short pages. */
@media (max-width: 900px) { .shell { grid-template-rows: auto 1fr; align-content: start; } }

.cswitch .cbk { display: none; }
@media (max-width: 900px) {
  .cswitch.open .cbk { display: block; position: fixed; inset: 0; z-index: 59; background: rgba(21,21,21,.35); }
  .cswitch .cmenu { top: 70px !important; left: 12px; right: 12px; z-index: 60; max-height: calc(100vh - 86px); max-height: calc(100dvh - 86px); overscroll-behavior: contain; }
  html:has(.cswitch.open) { overflow: hidden !important; }
  html.lpth .cswitch.open .cbk { background: rgba(4,27,43,.45); }
}

/* Header above all page content (sidebar 30, tabs 19); only overlays such as the assistant (60) sit above it. */
.hdr { z-index: 50 !important; }

@media (max-width: 900px) { .side { scrollbar-width: none; } .side::-webkit-scrollbar { display: none; height: 0; } }

.gupn{margin:10px 0 0;font-size:12px;line-height:1.6;color:var(--mut)}.gupi{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;border:1.5px solid currentColor;font-weight:700;font-size:9px;margin-right:6px;vertical-align:-3px}

:root{--drc:#151515;--drt:#E7E5E4}html.dark{--drc:#E7E5E4;--drt:#3A3633}.lpth{--drc:#ff9900;--drt:#E3E9EE}html.dark.lpth{--drc:#ff9900;--drt:#1E3A4F}.drh{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.drb{margin-left:auto;display:inline-flex;align-items:center;gap:10px;font-weight:400}.drb b{font-size:22px;font-weight:700;line-height:1}.drb em{font-style:normal;font-size:12px;color:var(--mut);margin-left:4px}.drb i{font-style:normal;font-size:12px;color:var(--mut)}.drb i.up{color:#12A150}

.drcard{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.drcard h2{margin:0}.drcard .drb{margin-left:0;gap:16px}.drcard .drb b{font-size:40px}.drcard .drb em{font-size:16px}.drcard .drb i{font-size:14px}

.drtiles{margin-bottom:16px}.drv{display:flex;align-items:center;gap:14px}.drv svg{flex:none}

.insight.recm{border-left:4px solid var(--drc)}

.anr{display:flex;align-items:center;gap:10px;min-width:200px}.anrt{position:relative;flex:1;height:8px;border-radius:4px;background:var(--drt)}.anri{position:absolute;top:0;bottom:0;border-radius:4px;opacity:.45}.anrm{position:absolute;top:-5px;width:3px;height:18px;margin-left:-1.5px;border-radius:2px;background:var(--ink,#151515)}html.dark .anrm{background:#fff}.anr small{color:var(--mut);white-space:nowrap}

:root{--exk:#041B2B}html.dark{--exk:#C5D3E0}

.fnl{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.fst{flex:1;min-width:180px;border:1px solid var(--line,#E6E3DF);border-radius:12px;padding:16px 18px}.fst p{margin:0 0 4px;color:var(--mut);font-size:13px}.fst b{font-size:28px}.far{display:flex;flex-direction:column;align-items:center;color:var(--mut)}.far span{font-size:20px;font-weight:700;color:var(--ink,#151515)}.far::after{content:'\2192';font-size:22px;line-height:1}
.tlegend .tli { border-radius: 3px; vertical-align: -2px; margin-right: -4px; }
@media (min-width: 1001px) { .topnav a.tnx { display: none; } }
.gearw { position: relative; }
.gearw > summary { list-style: none; cursor: pointer; }
.gearw > summary::-webkit-details-marker { display: none; }
.gearw.on > summary { color: var(--ink); }
.gmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.gmenu a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--tx); font-size: 13.5px; }
.gmenu a svg { width: 16px; height: 16px; flex: none; color: var(--mut); }
.gmenu a:hover, .gmenu a.on { background: var(--soft); color: var(--ink); }
.gmenu a.on { font-weight: 600; }
@media (max-width: 1000px) { .gearw { display: none; } }
.gmenu .gmsep { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.canx { table-layout: fixed; }
.canx tr.cxq td { background: var(--soft, #f4f2f0); padding-top: 12px; padding-bottom: 10px; }
.canx td .pg { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
body[data-tab="cannibalisation"] .pg, body[data-tab="pages"] .pg, body[data-tab="decay"] .pg, body[data-tab="authority"] .pg, body[data-tab="insights"] .pg { font-weight: 400; }
.qpt td { white-space: nowrap; }
.qpt td.qpg { max-width: 280px; }
.qpt td.qpg .pg { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
/* Dark favicons that disappear on the dark theme (e.g. Air Communities): shown inverted in dark mode. */
html.dark img.favdk { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.rolef { display: inline-block; margin: 0; }
.rolef select { padding: 4px 8px; font-size: 13px; }
.snb { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-variant-numeric: tabular-nums; font-weight: 500; }
.snb i { width: 3px; height: 13px; border-radius: 2px; display: inline-block; }
.snb i.pos { background: #639922; } .snb i.neu { background: #EF9F27; } .snb i.neg { background: #E24B4A; }
.snb.big { border: 0; padding: 0; background: none; gap: 10px; font-weight: inherit; }
.snb.big i { width: 5px; height: 30px; }
.pmof { font-size: 0.5em; font-weight: 500; color: var(--mut); }
