/* Novos Marketing: tokens from brand/tokens.json (no hardcoded one-offs).
   The label tones (blue, purple, grey) are not brand colours; they exist only so status labels are easy to tell apart. */
:root {
  --primary: #113043; --primary-dark: #001F3F; --accent: #D9A441; --gold-light: #F2C57C;
  --ink: #113043; --muted: #4A5B66; --surface: #FFFFFF; --bg: #F5F7FA; --card: #E8EDF2; --line: #D9E0E7;
  --success: #16A34A; --warning: #D97706; --danger: #DC2626; --info: #2563EB; --violet: #7C3AED;
  --font-heading: Fraunces, Georgia, 'Times New Roman', serif;
  --font-body: Inter, system-ui, sans-serif;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-btn: 4px;
  --shadow-card: 0 1px 3px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--primary); margin: 0 0 12px; }
h1 { font-size: 28px; }
a { color: var(--primary); }
.icon { width: 18px; height: 18px; flex: none; }

/* Layout and menu */
.wordmark { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: .2px; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.wordmark .wm-text { color: #fff; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; background: var(--primary); color: #fff; padding: 20px 12px; display: flex; flex-direction: column; gap: 20px; transition: width .15s ease; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brandrow { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--radius-btn); background: transparent; color: #fff; cursor: pointer; }
.iconbtn:hover { background: var(--primary-dark); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a, .navtoggle { display: flex; align-items: center; gap: 12px; width: 100%; color: #fff; text-decoration: none; padding: 9px 12px; border: 0; border-radius: var(--radius-btn); font: inherit; font-size: 14.5px; background: transparent; cursor: pointer; text-align: left; }
.sidebar nav a:hover, .navtoggle:hover { background: var(--primary-dark); }
.sidebar nav a.active { background: var(--primary-dark); box-shadow: inset 3px 0 0 var(--accent); }
.navtoggle { color: var(--gold-light); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-top: 8px; }
.navtoggle .lbl { flex: 1; }
.navtoggle .chev { transition: transform .15s ease; transform: rotate(-90deg); }
.navgroup.open > .navtoggle .chev { transform: rotate(0); }
.navitems { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.navgroup.open > .navitems { grid-template-rows: 1fr; }
.navinner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.navgroup:not(.open) .navinner { visibility: hidden; transition: visibility 0s .22s; }
.sidebar .user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 6px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #fff; }
.sidebar .user .who span { color: var(--gold-light); font-size: 12px; }
.sidebar .user form { margin: 0 0 0 auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.shell.narrow .sidebar { width: 68px; }
.shell.narrow .lbl, .shell.narrow .wm-text, .shell.narrow .chev { display: none; }
.shell.narrow .brandrow { justify-content: center; }
.shell.narrow .wordmark { display: none; }
.shell.narrow .navitems { grid-template-rows: 1fr; }
.shell.narrow .navinner { padding-left: 0; visibility: visible; }
.shell.narrow .navtoggle { justify-content: center; margin-top: 4px; pointer-events: none; opacity: .7; }
.shell.narrow .sidebar nav a, .shell.narrow .navtoggle { justify-content: center; padding: 9px 0; }
.shell.narrow .sidebar .user { flex-direction: column; }
.shell.narrow .sidebar .user form { margin: 0; }
.main { flex: 1; padding: 28px 32px; max-width: 1640px; min-width: 0; }
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--muted); }

/* Cards, tables, forms */
.card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 24px; margin-bottom: 16px; }
.phase { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--card); }
.phase:last-child { border-bottom: 0; }
.phase p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--card); font-size: 14px; }
th { color: var(--muted); font-weight: 600; }
tbody tr:hover { background: var(--bg); }
label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text], input[type=number] { width: 100%; padding: 10px 12px; border: 1px solid #c9d3db; border-radius: var(--radius-sm); font: inherit; background: #fff; }
select, textarea, input[type=date], input[type=url] { width: 100%; padding: 10px 12px; border: 1px solid #c9d3db; border-radius: var(--radius-sm); font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=file] { width: 100%; }
input[type=file]::file-selector-button { border: 0; border-radius: var(--radius-btn); background: var(--primary); color: #fff; padding: 8px 14px; margin-right: 12px; font: inherit; font-weight: 600; cursor: pointer; }
textarea[readonly], input[readonly] { background: var(--bg); }
code { font-size: 13px; background: var(--card); padding: 1px 6px; border-radius: var(--radius-btn); }
.error { color: var(--danger); font-size: 14px; margin-top: 8px; }
.status { color: var(--success); font-size: 14px; margin-top: 8px; }
.hint { color: var(--muted); font-size: 14px; }
.code-input { font-size: 28px; letter-spacing: 8px; text-align: center; }
.card.notice { background: #ECFDF3; border-left: 4px solid var(--success); }
.card.error { border-left: 4px solid var(--danger); color: var(--danger); }
.filters { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.filters select { width: auto; }
.actions { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.navhead { margin: 12px 12px 2px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }

/* Buttons: rectangular, 4px corners */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 24px; padding: 11px 16px; border: 1px solid var(--accent); border-radius: var(--radius-btn); background: var(--accent); color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn.sm { width: auto; min-width: 168px; height: 40px; margin-top: 0; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.btn.info { background: var(--info); border-color: var(--info); color: #fff; }
.btn.info:hover { filter: brightness(.92); background: var(--info); border-color: var(--info); }
.btn.sm.wide { width: 100%; }
.btn.secondary { background: #fff; color: var(--primary); border-color: #b7c3cd; }
.btn.secondary:hover { background: var(--bg); border-color: var(--primary); }
.btn.success { background: var(--success); border-color: var(--success); color: #fff; }
.btn.success:hover { filter: brightness(.92); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: #FEF2F2; }
.btn.link { width: auto; margin: 0; padding: 0; background: none; border: 0; color: var(--primary); text-decoration: underline; font-weight: 600; }

/* Colour-coded labels */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-btn); background: var(--card); color: var(--muted); white-space: nowrap; }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.tone-green { background: #DCFCE7; color: #15803D; }
.badge.tone-amber { background: #FEF3C7; color: #B45309; }
.badge.tone-red { background: #FEE2E2; color: #B91C1C; }
.badge.tone-blue { background: #DBEAFE; color: #1D4ED8; }
.badge.tone-purple { background: #EDE9FE; color: #6D28D9; }
.badge.tone-grey { background: var(--card); color: var(--muted); }
.badge.progress { background: var(--accent); color: var(--primary); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-btn); border: 1px solid currentColor; background: #fff; }
.chip.c-linkedin { color: #0A66C2; }
.chip.c-email { color: #0F766E; }
.chip.c-blog { color: #C2410C; }

/* Social media pages */
.stepper { display: flex; gap: 0; margin: 4px 0 20px; flex-wrap: wrap; }
.stepper .step { flex: 1; min-width: 110px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--card); border-right: 2px solid var(--bg); position: relative; }
.stepper .step:first-child { border-radius: var(--radius-btn) 0 0 var(--radius-btn); }
.stepper .step:last-child { border-radius: 0 var(--radius-btn) var(--radius-btn) 0; border-right: 0; }
.stepper .step.done { background: #DCFCE7; color: #15803D; }
.stepper .step.now { background: var(--primary); color: #fff; }
.stepper .step.bad { background: #FEE2E2; color: #B91C1C; }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.sidecard h3 { font-size: 16px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); }
.timeline li.t-draft::before { background: var(--info); }
.timeline li.t-comment::before { background: var(--accent); }
.timeline li.t-approved::before { background: var(--success); }
.timeline li.t-rejected::before { background: var(--danger); }
.timeline li.t-submitted::before { background: var(--warning); }
.timeline li.t-reset::before { background: var(--muted); }
.timeline .meta { font-size: 13px; color: var(--muted); }
.timeline .what { font-weight: 600; margin: 2px 0; }
.timeline .note { background: var(--bg); border-radius: var(--radius-sm); padding: 8px 12px; margin-top: 6px; font-size: 14px; white-space: pre-wrap; }
.timeline details { margin-top: 6px; } .timeline summary { cursor: pointer; font-size: 13px; color: var(--primary); font-weight: 600; }
.draftpill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-btn); background: #DBEAFE; color: #1D4ED8; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumbs label { margin: 0; font-weight: 400; display: block; width: 110px; }
.thumbs img { width: 110px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.thumbs span { font-size: 12px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* LinkedIn-style preview */
.li { background: #fff; border: 1px solid #d0d7de; border-radius: 8px; max-width: 555px; font-family: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif; color: #191919; }
.li-head { display: flex; gap: 10px; padding: 12px 16px 0; align-items: center; }
.li-av { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.li-name { font-weight: 600; font-size: 14px; line-height: 1.2; } .li-sub { font-size: 12px; color: #666; line-height: 1.3; }
.li-body { padding: 10px 16px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.li-body .more { color: #666; cursor: pointer; }
.li-img { display: block; width: 100%; background: #eef3f8; }
.li-img.empty { aspect-ratio: 1.91 / 1; display: grid; place-items: center; color: #666; font-size: 13px; border-top: 1px dashed #c4ccd4; border-bottom: 1px dashed #c4ccd4; }
.li-react { display: flex; justify-content: space-around; border-top: 1px solid #e0e0e0; padding: 6px 8px; font-size: 13px; color: #666; font-weight: 600; }
.li-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Guest (sign in) */
.guest { min-height: 100vh; display: grid; place-items: center; background: var(--primary); padding: 16px; }
.guest .panel { background: var(--surface); width: 100%; max-width: 400px; border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.guest .brand { text-align: center; margin-bottom: 24px; }
.guest .wordmark { color: var(--primary); }
.guest .wordmark span { color: var(--accent); }

@media (max-width: 1000px) { .twocol { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .shell.narrow .sidebar { width: 100%; }
  .main { padding: 16px; }
}

/* Social Media workspace */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--radius-btn); border: 1px solid var(--line); background: var(--surface); color: var(--primary); text-decoration: none; font-weight: 600; font-size: 14px; }
.tabs a .n { min-width: 22px; text-align: center; font-size: 12px; padding: 1px 6px; border-radius: var(--radius-btn); background: var(--card); color: var(--muted); }
.tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs a.on .n { background: rgba(255,255,255,.18); color: #fff; }
.tabs a.t-amber .n { background: #FEF3C7; color: #B45309; } .tabs a.t-red .n { background: #FEE2E2; color: #B91C1C; } .tabs a.t-green .n { background: #DCFCE7; color: #15803D; }
.tabs a.on.t-amber, .tabs a.on.t-red, .tabs a.on.t-green { background: var(--primary); }
.weekhead { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 8px; }
.weekhead h2 { font-size: 18px; margin: 0; } .weekhead .hint { font-size: 13px; }
table.posts { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
table.posts th { background: var(--bg); font-size: 12px; padding: 10px 12px; }
table.posts td { padding: 12px; vertical-align: middle; }
table.posts tr.row { cursor: pointer; }
.thumb { width: 84px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--line); display: block; background: var(--card); }
.thumb.none { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.ptitle { font-weight: 600; color: var(--primary); text-decoration: none; display: block; }
.ptitle:hover { text-decoration: underline; }
.pexcerpt { color: var(--muted); font-size: 13px; margin-top: 2px; max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.people { font-size: 13px; line-height: 1.35; } .people span { color: var(--muted); }
.mini { display: inline-flex; gap: 10px; font-size: 12px; color: var(--muted); align-items: center; }
tr.attn-amber td:first-child { box-shadow: inset 4px 0 0 var(--warning); } tr.attn-red td:first-child { box-shadow: inset 4px 0 0 var(--danger); } tr.attn-green td:first-child { box-shadow: inset 4px 0 0 var(--success); }

.decision { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; border-left: 5px solid var(--warning); }
.decision h3 { margin-bottom: 4px; } .decision textarea { margin-top: 6px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.nextstep { border-left: 5px solid var(--danger); }
.workgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); gap: 20px; align-items: start; }
.workgrid .li { max-width: none; }
.kv.wide { grid-template-columns: 130px 1fr; }
.sticky { position: sticky; top: 16px; }
@media (max-width: 1100px) { .workgrid, .decision { grid-template-columns: 1fr; } .sticky { position: static; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Every week table uses the same fixed column widths, so the columns line up from week to week. */
table.posts { table-layout: fixed; }
table.posts th:nth-child(1), table.posts td:nth-child(1) { width: 112px; }
table.posts th:nth-child(3), table.posts td:nth-child(3) { width: 104px; }
table.posts th:nth-child(4), table.posts td:nth-child(4) { width: 160px; }
table.posts th:nth-child(5), table.posts td:nth-child(5) { width: 130px; }
table.posts th:nth-child(6), table.posts td:nth-child(6) { width: 130px; }
table.posts th:nth-child(7), table.posts td:nth-child(7) { width: 140px; }
table.posts td { vertical-align: top; }
table.posts.review th:nth-child(1), table.posts.review td:nth-child(1) { width: 130px; }
table.posts.review th:nth-child(2), table.posts.review td:nth-child(2) { width: auto; }
table.posts.review th:nth-child(3), table.posts.review td:nth-child(3) { width: 170px; }
table.posts.review th:nth-child(4), table.posts.review td:nth-child(4) { width: 90px; }
table.posts.review th:nth-child(5), table.posts.review td:nth-child(5) { width: 150px; }
table.posts.review th:nth-child(6), table.posts.review td:nth-child(6) { width: 22%; }
table.posts.review th:nth-child(7), table.posts.review td:nth-child(7) { width: 120px; }

/* Page head, centered with the button group */
.pagehead.centered { align-items: center; }
.btn.cta { background: var(--primary); border-color: var(--primary); color: #fff; padding: 0 18px 0 8px; gap: 10px; }
.btn.cta:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.plusbox { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-btn); background: var(--accent); color: var(--primary); }

/* Platform icons */
.pf { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: var(--radius-btn); color: #fff; background: var(--muted); flex: none; vertical-align: middle; }
.pf svg { width: 16px; height: 16px; }
.pf-linkedin { background: #0A66C2; } .pf-facebook { background: #1877F2; } .pf-instagram { background: #C13584; }
.pf-x { background: #111; } .pf-youtube { background: #E00; } .pf-tiktok { background: #111; } .pf-threads { background: #333; }
.pf-pinterest { background: #E60023; } .pf-blog { background: #C2410C; } .pf-newsletter { background: #0A66C2; } .pf-email { background: #0F766E; }
.pf-label { margin: 0 10px 0 6px; font-size: 13px; font-weight: 600; vertical-align: middle; }
.pfrow { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Themed multi-select dropdown */
.ms { position: relative; display: inline-block; min-width: 220px; }
.ms-btn { list-style: none; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid #c9d3db; border-radius: var(--radius-sm); background: #fff; cursor: pointer; font: inherit; font-size: 14px; }
.ms-btn::-webkit-details-marker { display: none; }
.ms-btn .icon { margin-left: auto; width: 16px; height: 16px; transition: transform .15s; }
.ms[open] .ms-btn { border-color: var(--primary); } .ms[open] .ms-btn .icon { transform: rotate(180deg); }
.ms-icons { display: inline-flex; gap: 4px; } .ms-icons .pf { width: 20px; height: 20px; } .ms-icons .pf svg { width: 13px; height: 13px; }
.ms-panel { position: absolute; z-index: 20; top: 46px; left: 0; min-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(17,48,67,.16); padding: 6px; }
.ms-opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; font-weight: 500; font-size: 14px; border-radius: var(--radius-btn); cursor: pointer; }
.ms-opt:hover { background: var(--bg); }
.ms-opt input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }

/* Filters */
.filterbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.filterbar .fl { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 13px; color: var(--muted); }
.filterbar input[type=month], .filterbar input[type=date] { height: 42px; width: auto; }
.seg { display: inline-flex; border: 1px solid #c9d3db; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.seg a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; } .seg a.on { background: var(--primary); color: #fff; }

/* Edit form: every field the same size */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fgrid .full { grid-column: 1 / -1; }
.field label { margin: 0 0 6px; }
.field .ms { display: block; }
.editform input[type=text], .editform input[type=date], .editform input[type=url], .editform select { height: 42px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23113043' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.formbar { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 0; background: var(--bg); padding: 14px 0; border-top: 1px solid var(--line); }
.formbar .grow { flex: 1; }
.editform .card h3 { margin-bottom: 14px; }

/* Show page extras */
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: start; }
.size { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--primary); font-size: 13px; font-weight: 600; }
.size img { width: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.postedrow { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--card); }
.postedrow input[type=url] { height: 38px; }

/* Claude page */
.steps { display: grid; gap: 12px; max-width: 860px; margin-top: 12px; }
.step-card { display: grid; grid-template-columns: 40px 1fr; gap: 16px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 18px 20px; border-left: 5px solid var(--line); }
.step-card.ok { border-left-color: var(--success); }
.step-card h3 { margin-bottom: 4px; font-size: 17px; } .step-card p { margin: 0 0 8px; }
.step-card .num { width: 32px; height: 32px; border-radius: var(--radius-btn); display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; }
.step-card.ok .num { background: var(--success); }

/* Narrow screens: keep the table readable and let the page scroll sideways instead of squeezing the Post column. */
table.posts { min-width: 1060px; }
input[type=month] { padding: 10px 12px; border: 1px solid #c9d3db; border-radius: var(--radius-sm); font: inherit; background: #fff; }

.linkrow { padding: 12px 0; border-bottom: 1px solid var(--card); display: grid; gap: 6px; }
.linkrow input { height: 38px; }

/* SEO articles table: Article | Publishes | Status | Owner input | Editor | Approver | Activity */
table.posts.seo th:nth-child(n), table.posts.seo td:nth-child(n) { width: auto; }
table.posts.seo th:nth-child(1), table.posts.seo td:nth-child(1) { width: 32%; }
table.posts.seo th:nth-child(2), table.posts.seo td:nth-child(2) { width: 132px; }
table.posts.seo th:nth-child(3), table.posts.seo td:nth-child(3) { width: 150px; }
table.posts.seo th:nth-child(4), table.posts.seo td:nth-child(4) { width: 130px; }
table.posts.seo th:nth-child(5), table.posts.seo td:nth-child(5), table.posts.seo th:nth-child(6), table.posts.seo td:nth-child(6) { width: 120px; }
table.posts.seo th:nth-child(7), table.posts.seo td:nth-child(7) { width: 130px; }

.fixlist { display: grid; gap: 10px; margin-bottom: 18px; }
.fix { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 18px; border-left: 4px solid var(--accent); }
.fix.done { border-left-color: #16A34A; opacity: .8; }
.fix p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.fixmeta { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 800px) { .fix { grid-template-columns: 1fr; } }

/* Tiles, KPI cards and traffic charts (SEO screens) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.tile { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 16px; border-top: 4px solid var(--border, #D5DDE5); display: flex; flex-direction: column; gap: 4px; }
.tile .tl, .traf .tl { font-size: 12px; font-weight: 600; color: var(--muted); }
.tile .tn, .traf .tn { font-family: var(--font-heading, inherit); font-size: 30px; font-weight: 700; color: var(--primary); line-height: 1.1; }
.tile.t-green { border-top-color: #16A34A; } .tile.t-amber { border-top-color: #D97706; } .tile.t-red { border-top-color: #DC2626; }
.kpigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 16px 18px; border-left: 4px solid #D5DDE5; display: flex; flex-direction: column; gap: 10px; }
.kpi.s-met { border-left-color: #16A34A; } .kpi.s-close { border-left-color: #D97706; } .kpi.s-behind { border-left-color: #DC2626; }
.kpihead { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kpinow { font-family: var(--font-heading, inherit); font-size: 28px; font-weight: 700; color: var(--primary); }
.kpinow small { font-size: 14px; font-weight: 500; color: var(--muted); font-family: inherit; }
.bar { height: 8px; background: #E8EDF2; border-radius: 6px; overflow: hidden; } .bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.kpimeta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; } .kpimeta dt { font-size: 11px; color: var(--muted); font-weight: 600; } .kpimeta dd { margin: 2px 0 0; font-size: 13px; }
.kpiform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .kpiform input[type=text] { width: 110px; }
.trafgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin-bottom: 18px; }
.traf { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.traf svg { width: 100%; height: 48px; margin-top: 8px; fill: var(--accent); }
table.posts.kw { table-layout: auto; min-width: 0; } table.posts.kw th:nth-child(n), table.posts.kw td:nth-child(n) { width: auto; }

/* Blog preview: matches the novosventures.com article look (Fraunces headings, Inter text, navy and gold) */
.blogbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #E8EDF2; }
.draftpill.on { background: var(--primary); color: #fff; }
.blogwrap { padding: 20px 24px; }
.blog-preview { max-width: 720px; margin: 0 auto; font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.7; color: #113043; }
.blog-preview .blogcover { width: 100%; height: auto; border-radius: 12px; margin-bottom: 22px; display: block; }
.blog-preview h1 { font-family: Fraunces, Georgia, 'Times New Roman', serif; font-size: 36px; line-height: 1.2; margin: 0 0 14px; color: #113043; }
.blog-preview h2 { font-family: Fraunces, Georgia, serif; font-size: 27px; line-height: 1.25; margin: 34px 0 10px; color: #113043; }
.blog-preview h3 { font-family: Fraunces, Georgia, serif; font-size: 21px; margin: 26px 0 8px; color: #113043; }
.blog-preview p { margin: 0 0 16px; }
.blog-preview ul, .blog-preview ol { margin: 0 0 18px 22px; padding: 0; } .blog-preview li { margin-bottom: 6px; }
.blog-preview a { color: #113043; text-decoration: underline; text-decoration-color: #D9A441; text-underline-offset: 3px; }
.blog-preview strong { font-weight: 700; }
.blog-preview figure.wp-block-table { margin: 0 0 22px; overflow-x: auto; }
.blog-preview table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
.blog-preview th { background: #113043; color: #fff; text-align: left; padding: 10px 12px; }
.blog-preview td { padding: 10px 12px; border-bottom: 1px solid #E8EDF2; vertical-align: top; }
.blog-preview tbody tr:nth-child(even) td { background: #F5F7FA; }
.blog-preview em { color: #4A5B66; }

/* Themed month picker */
.mp { position: relative; display: inline-block; }
.mp-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid #C9D3DC; border-radius: var(--control-radius, 4px); color: var(--primary); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-width: 168px; }
.mp-btn:hover, .mp-btn[aria-expanded=true] { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(217,164,65,.28); }
.mp-btn .chev { margin-left: auto; width: 16px; height: 16px; } .mp-btn svg { width: 18px; height: 18px; flex: none; }
.mp-pop { position: absolute; z-index: 30; top: 46px; left: 0; width: 264px; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(17,48,67,.22); border: 1px solid #E8EDF2; padding: 12px; }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mp-head strong { font-family: Fraunces, Georgia, serif; font-size: 18px; color: var(--primary); }
.mp-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #F5F7FA; color: var(--primary); font-size: 20px; line-height: 1; cursor: pointer; } .mp-nav:hover { background: #E8EDF2; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-grid button { height: 38px; border: 1px solid transparent; border-radius: 8px; background: #F5F7FA; color: var(--primary); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.mp-grid button:hover { background: #E8EDF2; } .mp-grid button.now { border-color: var(--accent); }
.mp-grid button.on { background: var(--accent); color: var(--primary); }
.mp-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #E8EDF2; }
.mp-foot button { border: 0; background: none; color: var(--primary); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; cursor: pointer; }
.mp button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Date cell: day on its own line so it never runs into Status */
td.goes strong { display: block; color: var(--primary); } td.goes span { display: block; white-space: nowrap; } td.goes em { display: block; font-style: normal; font-size: 12px; color: #4A5B66; }
table.posts th:nth-child(3), table.posts td:nth-child(3) { width: 118px; }

.wpchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #FFF4DB; color: #6B4A00; font-size: 13px; font-weight: 600; }
.wpchip.live { background: #DFF3E4; color: #1D6B34; } .wpchip a { color: inherit; }
.stepper .step.now.pub, .stepper .step.done { }

details.howto { margin-bottom: 16px; padding: 14px 18px; } details.howto summary { cursor: pointer; } details.howto ul { margin: 12px 0 0 18px; padding: 0; line-height: 1.6; max-width: 90ch; }
td.learn a { display: block; font-size: 13px; }

.fixact { display: flex; gap: 8px; align-items: center; } .fixact form { margin: 0; }

.linkrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 4px 0 16px; }
.chg { font-weight: 700; margin-left: 6px; } .chg.up { color: #1D6B34; } .chg.down { color: #B3261E; }

/* Overview: targets, campaigns, traffic and CRM on one page */
.updated { max-width: 100ch; margin: 0 0 10px; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; position: sticky; top: 0; z-index: 5; padding: 8px 0; background: var(--bg); }
.jump a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #D5DDE5; color: var(--primary); font-size: 13px; font-weight: 600; text-decoration: none; }
.jump a:hover { border-color: var(--accent); background: #FFF8E8; }
.ovsec { margin-bottom: 34px; scroll-margin-top: 56px; }
.ovsec .weekhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kpigrid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: stretch; }
.kpimeta { grid-template-columns: 1fr 1fr 1.4fr; }
.cpstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cp { border: 1px solid #E1E7ED; border-radius: 10px; padding: 7px 8px; display: flex; flex-direction: column; gap: 1px; background: #F8FAFC; }
.cp .cpd { font-size: 11px; color: var(--muted); font-weight: 600; } .cp .cpv { font-size: 16px; font-weight: 700; color: var(--primary); } .cp .cpt { font-size: 11px; color: var(--muted); }
.cp.hit { background: #E6F5EA; border-color: #A9D9B7; } .cp.hit .cpt { color: #1D6B34; font-weight: 700; } .cp.none { opacity: .55; }
.kpinote { margin: 0; font-size: 13px; line-height: 1.45; color: #4A5B66; }
.autopill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #E8EEF9; color: #1F3F8F; font-weight: 700; font-size: 11px; }
.kpi .kpiform { margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 84px; gap: 8px; align-items: end; padding-top: 12px; border-top: 1px solid #E8EDF2; }
.kpiform label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); margin: 0; }
.kpiform input { width: 100% !important; height: 40px; box-sizing: border-box; margin: 0; }
.kpiform .savebtn { height: 40px; width: 100%; margin: 0; padding: 0; background: var(--accent); color: var(--primary); font-weight: 700; border: 0; border-radius: var(--control-radius, 6px); box-shadow: 0 2px 0 rgba(17,48,67,.18); cursor: pointer; }
.kpiform .savebtn:hover { filter: brightness(.95); transform: translateY(-1px); }
.trafgrid.slim { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.traf .tl { display: block; }

details.diy { margin-top: 10px; background: #F5F7FA; border-radius: 10px; padding: 10px 14px; } details.diy summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 14px; }
details.diy ol { margin: 10px 0 2px 20px; padding: 0; font-size: 14px; line-height: 1.6; color: #2B3F4C; } details.diy li { margin-bottom: 6px; }

/* "i" explainer */
.info { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; color: #6B7C88; cursor: help; border-radius: 50%; outline-offset: 2px; }
.info svg { width: 17px; height: 17px; } .info:hover, .info:focus { color: var(--primary); }
.infotip { display: none; position: absolute; z-index: 40; top: 24px; left: -10px; width: 290px; max-width: 80vw; padding: 12px 14px; background: var(--primary); color: #fff; border-radius: 10px; box-shadow: 0 12px 30px rgba(17,48,67,.3); font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; text-transform: none; }
.infotip b { display: block; color: var(--accent); font-size: 11px; letter-spacing: .02em; margin: 8px 0 1px; } .infotip b:first-child { margin-top: 0; }
.info:hover .infotip, .info:focus .infotip, .info:focus-within .infotip { display: block; }
.tile .info { margin-left: 2px; }
.tile:nth-child(n+3) .infotip, .weekhead h2 + * .infotip { left: auto; right: -10px; }

/* Interactive traffic charts */
.chartbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 14px; }
.seg { display: inline-flex; border: 1px solid #C9D3DC; border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; border-right: 1px solid #E1E7ED; }
.seg button:last-child { border-right: 0; } .seg button:hover { background: #F5F7FA; }
.seg button[aria-pressed=true] { background: var(--primary); color: #fff; }
.cmp { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; margin: 0; }
.chartkey { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: #4A5B66; }
i.k-now, i.k-prev { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--primary); vertical-align: middle; } i.k-prev { border-top: 2px dashed #8A98A4; margin-left: 8px; }
.traf .chart { position: relative; margin-top: 6px; height: 110px; cursor: crosshair; border-radius: 8px; touch-action: pan-y; }
.traf .chart:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.traf .chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid { stroke: #E8EDF2; stroke-width: 1; } .chart .now { fill: none; stroke: #113043; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .prev { fill: none; stroke: #8A98A4; stroke-width: 1.6; stroke-dasharray: 4 3; } .chart .area { fill: rgba(17,48,67,.08); stroke: none; }
.chart .dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--primary); pointer-events: none; }
.chart .ctip { position: absolute; top: -6px; z-index: 20; min-width: 120px; padding: 8px 10px; background: #fff; border: 1px solid #D5DDE5; border-radius: 8px; box-shadow: 0 8px 22px rgba(17,48,67,.18); font-size: 12px; pointer-events: none; }
.ctip .cd { color: #4A5B66; margin-bottom: 3px; } .ctip .cr { display: flex; align-items: center; gap: 6px; } .ctip .cr strong { font-size: 16px; color: var(--primary); } .ctip .sec { color: #4A5B66; }
.xaxis { display: flex; justify-content: space-between; font-size: 11px; color: #6B7C88; margin-top: 4px; }
table.datatbl { font-size: 13px; border-collapse: collapse; width: 100%; } table.datatbl th, table.datatbl td { padding: 6px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid #E8EDF2; } table.datatbl th:first-child, table.datatbl td:first-child { text-align: left; }
[hidden] { display: none !important; }

.chart .cbar { fill: #113043; opacity: .88; } .chart .tick { stroke: #8A98A4; stroke-width: 2; }
.chart .now { stroke-width: 2; }

/* Team module */
.tmtiles .tile { cursor: pointer; text-align: left; font: inherit; border: 0; border-top: 4px solid var(--border, #D5DDE5); transition: transform .12s, box-shadow .12s; }
.tmtiles .tile:hover { transform: translateY(-2px); }
.tmtiles .tile.on { outline: 2px solid var(--primary); }
.tmbar #tmq { height: 40px; min-width: 260px; }
table.team .tmrow { cursor: pointer; }
table.team .tmrow:hover, table.team .tmrow.open { background: #F5F8FA; }
table.team .tmrow:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.sorter { background: none; border: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; padding: 0; }
.sorter::after { content: ' \2195'; opacity: .4; font-size: 11px; }
.who2 { display: flex; align-items: center; gap: 10px; }
.who2 .avatar { background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 55% 25%); }
.rolechip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--primary); white-space: nowrap; }
.mods { display: inline-flex; gap: 3px; }
.mod { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.mod.m-edit { background: var(--primary); color: #fff; }
.mod.m-view { background: #DBEAFE; color: #1D4ED8; }
.mod.m-none { background: #EEF1F4; color: #9AA7B2; text-decoration: line-through; }
.apr { display: block; font-size: 12px; font-weight: 600; color: #15803D; margin-top: 4px; }
.tmdetail td { background: #F8FAFB; padding: 18px 20px; }
.dgrid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 28px; }
.dgrid h4 { margin: 0 0 8px; }
.dtable { width: 100%; border-collapse: collapse; }
.dtable td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line, #E1E7ED); background: none; vertical-align: top; }
.lvl { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lvl.l-edit { background: var(--primary); color: #fff; } .lvl.l-view { background: #DBEAFE; color: #1D4ED8; } .lvl.l-none { background: #EEF1F4; color: #6B7A88; } .lvl.l-appr { background: #DCFCE7; color: #15803D; }
.ev { padding: 6px 0; border-bottom: 1px solid var(--line, #E1E7ED); }
.dact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dact form { margin: 0; }
dialog.dlg { border: 0; border-radius: 14px; padding: 24px; width: min(480px, 92vw); box-shadow: 0 24px 60px rgba(17,48,67,.3); }
dialog.dlg::backdrop { background: rgba(17,48,67,.45); }
dialog.dlg h3 { margin: 0 0 6px; } dialog.dlg label { display: block; margin-top: 12px; font-weight: 600; font-size: 13px; }
dialog.dlg textarea, dialog.dlg select { width: 100%; margin-top: 6px; }
.dbtns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.tmform .card { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px 22px; margin-bottom: 16px; }
.tmform .card h3 { margin: 0 0 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.preset { display: flex; flex-direction: column; gap: 4px; border: 2px solid #D5DDE5; border-radius: 12px; padding: 14px; cursor: pointer; position: relative; background: #fff; transition: border-color .12s, background .12s; }
.preset input { position: absolute; opacity: 0; }
.preset span { font-size: 13px; color: var(--muted); }
.preset:hover { border-color: #9FB3C2; }
.preset.on { border-color: var(--primary); background: #F2F7FA; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 10px; }
.matrix td { padding: 12px 10px; border-top: 1px solid var(--line, #E1E7ED); vertical-align: middle; }
.seg3 { display: inline-flex; border: 1px solid #C9D3DC; border-radius: 10px; overflow: hidden; }
.seg3 label { margin: 0; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; border-right: 1px solid #E1E7ED; color: var(--primary); background: #fff; }
.seg3 label:last-child { border-right: 0; }
.seg3 input { position: absolute; opacity: 0; }
.seg3 label.on.lv-none { background: #6B7A88; color: #fff; } .seg3 label.on.lv-view { background: #1D4ED8; color: #fff; } .seg3 label.on.lv-edit { background: var(--primary); color: #fff; }
.seg3 label:focus-within { outline: 2px solid var(--primary); outline-offset: -2px; }
.switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 600; font-size: 13px; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 999px; background: #C9D3DC; position: relative; transition: background .15s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: #15803D; } .switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
.summary ul { margin: 0; padding-left: 18px; columns: 2; } .summary li { margin: 3px 0; } .summary li.s-none { color: #8B98A5; }
@media (max-width: 800px) { .dgrid { grid-template-columns: 1fr; } .summary ul { columns: 1; } .matrix td:nth-child(3) { display: block; border-top: 0; } }

.tmwrap { overflow-x: auto; }
table.team { min-width: 860px; }
.who2 { min-width: 230px; }
.who2 > div { min-width: 0; }
.mod { width: auto; min-width: 26px; padding: 0 5px; }
.mods { flex-wrap: wrap; max-width: 200px; }

/* Team v2: side panel, row actions, buttons */
.namebtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary); cursor: pointer; text-align: left; }
.namebtn:hover { text-decoration: underline; }
.hint.sub { font-size: 12px; word-break: break-all; }
.tmact { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tmact form { margin: 0; }
.tmact .btn.sm { min-width: 0; height: 34px; padding: 0 14px; font-size: 13px; }
.tmform .btn.sm { min-width: 140px; }
.formend { margin-top: 4px; gap: 12px; }
.scrim { position: fixed; inset: 0; background: rgba(17,48,67,.4); z-index: 60; }
.mpanel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface, #fff); z-index: 61; padding: 28px 26px 32px; overflow-y: auto; box-shadow: -18px 0 48px rgba(17,48,67,.22); transform: translateX(100%); transition: transform .18s ease-out; }
.mpanel.in { transform: none; }
.pclose { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg, #F2F5F7); font-size: 22px; line-height: 1; cursor: pointer; color: var(--primary); }
.pclose:hover { background: var(--accent); }
.ph { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; padding-right: 30px; }
.ph h2 { margin: 0 0 2px; font-size: 22px; }
.avatar.big { width: 56px; height: 56px; font-size: 18px; background: hsl(var(--h) 55% 88%); color: hsl(var(--h) 55% 25%); }
.pchips { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.pbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line, #E1E7ED); }
.pbar form { margin: 0; }
.pbar .btn.sm { min-width: 0; height: 36px; padding: 0 14px; font-size: 13px; }
.mpanel h4 { margin: 20px 0 10px; font-size: 14px; }
.pnote { background: #FEF3C7; color: #92400E; border-radius: 10px; padding: 12px 14px; font-size: 13px; }
.pacc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pa { border-radius: 10px; padding: 10px 12px; background: #EEF1F4; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pa span { font-size: 12px; font-weight: 700; }
.pa.l-edit { background: #E3EDF3; } .pa.l-edit span { color: var(--primary); }
.pa.l-view { background: #DBEAFE; } .pa.l-view span { color: #1D4ED8; }
.pa.l-none { color: #8B98A5; }
.tline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line, #E1E7ED); }
.tline li { position: relative; padding: 0 0 14px 12px; display: flex; flex-direction: column; font-size: 13px; }
.tline li::before { content: ''; position: absolute; left: -21px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--primary); }
.tline em { font-style: normal; color: var(--primary); background: #F2F5F7; border-radius: 8px; padding: 6px 10px; margin-top: 4px; }
@media (max-width: 520px) { .pacc { grid-template-columns: 1fr; } }
.sbox { display: flex; align-items: center; gap: 10px; height: 42px; min-width: 300px; padding: 0 14px; border: 1px solid #C9D3DC; border-radius: var(--radius-btn, 10px); background: #fff; color: var(--muted); transition: border-color .12s, box-shadow .12s; }
.sbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(207,167,76,.35); }
.sbox svg { width: 18px; height: 18px; flex: none; }
.tmbar .sbox input { border: 0; outline: 0; background: none; height: 100%; min-width: 0; flex: 1; padding: 0; font: inherit; color: var(--primary); box-shadow: none; }

/* Team tiles as filters */
.tmtiles .tile { appearance: none; -webkit-appearance: none; width: 100%; align-items: flex-start; justify-content: flex-start; border-radius: var(--radius-md); transition: transform .12s, box-shadow .12s, background .12s; }
.tmtiles .tile:hover { box-shadow: 0 8px 22px rgba(17,48,67,.14); }
.tmtiles .tile:focus-visible { outline: 3px solid rgba(207,167,76,.6); outline-offset: 2px; }
.tmtiles .tile.on { outline: 0; background: var(--primary); border-top-color: var(--accent); }
.tmtiles .tile.on .tl { color: #D5DDE5; } .tmtiles .tile.on .tn { color: #fff; }
.tmtiles .tile .tl::after { content: ' \2022 click to filter'; font-weight: 400; opacity: 0; transition: opacity .12s; font-size: 11px; }
.tmtiles .tile:hover .tl::after { opacity: .8; }
.tmtiles .tile .tl::after { content: none !important; }
.tmtiles .tile .tn { margin-top: auto; }
table.team td:first-child, table.team th:first-child { min-width: 270px; }
table.team td:nth-child(2) { min-width: 130px; }
.namebtn { white-space: normal; overflow-wrap: anywhere; }
.who2 > div { flex: 1; }
table.team { table-layout: fixed; min-width: 980px; }
table.team th:nth-child(1) { width: 270px; } table.team th:nth-child(2) { width: 140px; } table.team th:nth-child(3) { width: 150px; }
table.team th:nth-child(4) { width: 120px; } table.team th:nth-child(5) { width: 110px; } table.team th:nth-child(6) { width: 190px; }

/* Team form + buttons: one size, theme colours */
.tmform label:not(.seg3 label):not(.preset):not(.switch) { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; color: var(--muted); }
.tmform input[type=text], .tmform input[type=email] { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #C9D3DC; border-radius: 10px; font: inherit; color: var(--primary); background: #fff; }
.tmform input[type=text]:focus, .tmform input[type=email]:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(207,167,76,.35); }
.tmform input:disabled { background: #F2F5F7; color: var(--muted); }
.pagehead .btn.sm, .tmform .btn.sm, .dbtns .btn.sm, .pbar .btn.sm { min-width: 150px; height: 40px; padding: 0 18px; font-size: 14px; }
.pagehead .btn.cta { padding: 0 18px 0 8px; }
.seg3 label { white-space: nowrap; padding: 9px 16px; }
.seg3 label.on.lv-none, .seg3 label.on.lv-view, .seg3 label.on.lv-edit { background: var(--accent); color: var(--primary); box-shadow: inset 0 -3px 0 var(--primary); }
.preset.on { border-color: var(--accent); background: #FBF5E6; box-shadow: 0 0 0 1px var(--accent); }
.pbar .btn.sm { min-width: 0; }

.pacc { grid-template-columns: 1fr 1fr; }
.pg { background: #F2F5F7; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pr { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.pr b { font-size: 12px; } .pr.l-edit b { color: var(--primary); } .pr.l-view b { color: #1D4ED8; } .pr.l-none { color: #9AA7B2; } .pr.l-none b { font-weight: 500; }
.matrix tr.grp td { background: #F2F5F7; padding: 8px 10px; font-weight: 700; border-top: 2px solid #fff; }
.matrix tr.grp .gset { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 12px; }
.matrix tr.grp .gset button { background: none; border: 0; font: inherit; font-size: 12px; font-weight: 700; color: var(--primary); text-decoration: underline; cursor: pointer; padding: 0 4px; }
.matrix td.sub { padding-left: 24px; }
.lockedlv { font-size: 13px; font-weight: 600; color: var(--muted); }

.rolechip { display: inline-flex; align-items: center; gap: 6px; background: #EEF1F4; color: #44546A; }
.rolechip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rolechip.rc-super { background: var(--primary); color: #fff; }
.rolechip.rc-editor { background: #DBEAFE; color: #1D4ED8; }
.rolechip.rc-approver { background: #DCFCE7; color: #15803D; }
.rolechip.rc-editor_approver { background: var(--accent); color: var(--primary); }
.rolechip.rc-viewer { background: #EEF1F4; color: #44546A; }
.rolechip.rc-custom { background: #EDE9FE; color: #6D28D9; }
.rolechip.rc-system { background: #FEF3C7; color: #B45309; }
table.team td:nth-child(2) .sub { margin-top: 4px; word-break: normal; }

.linkbox { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: #FBF5E6; border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.linkbox input { flex: 1; min-width: 260px; height: 40px; padding: 0 12px; border: 1px solid #C9D3DC; border-radius: 10px; font: inherit; font-size: 13px; background: #fff; }

.statuscard { margin-top: 16px; }
.statuscard .inl { margin: 8px 0 0; } .statuscard .inl2 { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.statuscard .inl2 label { flex: 1; min-width: 240px; }
.statuscard .sep { border: 0; border-top: 1px solid var(--line, #E1E7ED); margin: 20px 0 14px; }
.statuscard h4 { margin: 0 0 4px; }

/* Change password */
.pwgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 980px; }
.pwcard, .pwside { background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 24px 26px; }
.pwfield + .pwfield { margin-top: 4px; }
.pwbox { position: relative; }
.pwbox input { height: 46px; padding-right: 74px; }
.pwbox .eye { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: #EEF1F4; color: var(--primary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pwbox .eye:hover { background: var(--accent); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.meter i { height: 6px; border-radius: 999px; background: #E1E7ED; transition: background .15s; }
.meter i.on.s0, .meter i.on.s1 { background: #D97706; } .meter i.on.s2 { background: #65A30D; } .meter i.on.s3 { background: #15803D; }
.meterlabel { margin-top: 6px; font-weight: 600; }
#matchnote.good { color: #15803D; font-weight: 600; } #matchnote.bad { color: #B45309; font-weight: 600; }
.rules { list-style: none; margin: 10px 0 0; padding: 0; }
.rules li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--muted); }
.rules li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9D3DC; flex: none; position: relative; transition: all .15s; }
.rules li.ok { color: var(--primary); font-weight: 600; }
.rules li.ok i { background: #15803D; border-color: #15803D; }
.rules li.ok i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rules.soft li.ok i { background: var(--accent); border-color: var(--accent); } .rules.soft li.ok i::after { border-color: var(--primary); }
#pwsave:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 860px) { .pwgrid { grid-template-columns: 1fr; } }

/* Social media publishing (Integrations) */
.sp { margin: 8px 0 28px; }
.sp-h { font-size: 22px; margin: 0 0 4px; }
.sp-intro { margin: 0 0 16px; max-width: 760px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.sp-card { margin: 0; scroll-margin-top: 16px; }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-name { font-size: 18px; font-weight: 600; }
.sp-st { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-btn); border: 1px solid currentColor; white-space: nowrap; }
.sp-st.st-connected { color: var(--success); background: #ECFDF3; }
.sp-st.st-ready { color: var(--info); background: #EFF6FF; }
.sp-st.st-error { color: var(--danger); background: #FEF2F2; }
.sp-st.st-not_connected { color: var(--muted); background: var(--bg); }
.sp-blurb { margin: 10px 0 6px; }
.sp-acct, .sp-can { margin: 4px 0; font-size: 14px; }
.sp-err { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--danger); background: #FEF2F2; color: var(--danger); font-size: 14px; border-radius: var(--radius-sm); }
.sp-guide { margin: 12px 0; border: 1px solid var(--border, #E5E7EB); border-radius: var(--radius-sm); padding: 0 14px; background: var(--bg); }
.sp-guide summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.sp-guide[open] summary { border-bottom: 1px solid var(--border, #E5E7EB); margin-bottom: 12px; }
.sp-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.sp-appr { font-size: 14px; margin: 0 0 12px; }
.sp-note { margin: 6px 0; }
.sp-redirect { margin: 12px 0 14px; }
.sp-form, .sp-inline { margin-top: 14px; }
.sp-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sp-inline label { margin: 0; }
.sp-inline select { width: auto; min-width: 200px; }
.sp-card .btnrow { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.sp-card .linkbox { display: flex; gap: 8px; }
.sp-card .linkbox input { flex: 1; min-width: 0; }
.pubbox .postedrow { align-items: center; }
.pub-err { color: var(--danger); font-size: 13px; margin: 2px 0 0; }
.pub-ok { color: var(--success); font-size: 13px; }

/* Comment composer */
.composer { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 14px; background: var(--bg); border: 1px solid var(--border, #E5E7EB); border-radius: var(--radius-sm); }
.composer-av { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy, #113043); color: #fff; display: grid; place-items: center; font-weight: 600; }
.composer-main { flex: 1; min-width: 0; }
.composer-label { display: block; margin: 0 0 6px !important; font-size: 14px; font-weight: 600; }
.composer textarea { width: 100%; background: #fff; resize: vertical; min-height: 84px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.composer-foot .btn.sm { margin: 0; min-width: 0; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .composer-av { display: none; } }

.schedrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 14px; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); }
.schedrow label { margin: 0; font-size: 14px; font-weight: 600; }
.schedrow input { width: auto; }
.schedrow .btn.sm { margin: 0; min-width: 0; }
.composer-foot .btn.sm { border-radius: var(--radius-btn); height: 40px; padding: 0 18px; }
.activity-head { margin: 28px 0 14px; padding-top: 22px; border-top: 1px solid var(--border, #E5E7EB); }
.activity-head h3 { margin: 0 0 2px; }
.activity-head .hint { margin: 0; }

/* Email marketing */
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 8px 0; }
label.check input[type=checkbox] { width: auto; margin: 0; }
.guide { background: var(--bg); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 8px; }
.guide ol { margin: 0 0 8px 18px; padding: 0; }
.guide .btn.sm { margin-top: 4px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.pager-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pager .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: #fff; color: var(--primary); text-decoration: none; font-weight: 600; }
.pager a.pg:hover { border-color: var(--primary); }
.pager .pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pg.off { color: var(--muted); opacity: .55; background: transparent; }

/* Page help, funnel, bars, dashboard */
.about { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); border-left: 4px solid var(--accent); margin: 0 0 18px; padding: 0; }
.about summary { display: flex; align-items: center; gap: 10px; padding: 12px 18px; cursor: pointer; list-style: none; font-size: 14.5px; }
.about summary::-webkit-details-marker { display: none; }
.about-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 13px var(--font-body); }
.about-toggle { margin-left: auto; font-size: 13px; color: var(--muted); }
.aboutgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding: 0 18px 16px; }
.aboutgrid b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.aboutgrid p { margin: 0; font-size: 14px; line-height: 1.5; }
.scorekey { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 8px; }
.scorekey > div { background: var(--bg); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.scorekey strong { font-family: var(--font-heading); font-size: 20px; color: var(--primary); }
.scorekey span { font-size: 13px; color: var(--muted); }
.funnel { display: flex; flex-direction: column; gap: 14px; }
.frow { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr minmax(110px, .8fr); gap: 14px; align-items: center; }
.fl { font-weight: 600; display: flex; flex-direction: column; gap: 2px; } .fl .hint { font-weight: 400; font-size: 12.5px; }
.fb { height: 14px; background: var(--card); border-radius: 7px; overflow: hidden; } .fb > span { display: block; height: 100%; background: var(--primary); border-radius: 7px; }
.fn { display: flex; flex-direction: column; } .fn strong { font-size: 20px; font-family: var(--font-heading); color: var(--primary); } .fn .hint { font-size: 12px; }
.hrow { display: grid; grid-template-columns: 110px 1fr 56px auto; gap: 12px; align-items: center; margin: 8px 0; font-size: 14px; }
.vbars { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin: 6px 0 14px; }
.vbars > div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; height: 100%; }
.vbars span { display: block; width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; }
.vbars em { font-style: normal; font-size: 11px; color: var(--muted); height: 14px; } .vbars b { font-size: 12px; color: var(--muted); font-weight: 600; }
.vbars.hours { gap: 3px; } .vbars.hours span { background: var(--accent); }
.mini { font-size: 13px; color: var(--muted); margin: 14px 0 0; font-family: var(--font-body); font-weight: 600; }
.pubpanel { max-width: 520px !important; }
.subform label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 0; }
.subform label.check { font-weight: 400; display: flex; }
.subform input[type=text], .subform input[type=email], .subform select { margin-top: 4px; }
.subform fieldset.topics { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 14px 0 0; padding: 6px 14px 8px; } .subform legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.signupcard code { display: block; padding: 8px 10px; background: var(--bg); border-radius: var(--radius-sm); font-size: 13px; word-break: break-all; margin: 6px 0; }
.dash-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-hero h1 { margin: 0 0 2px; } .dash-hero .stamp { font-size: 13px; color: var(--muted); }
.attn { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 4px 18px; margin-bottom: 18px; border-left: 4px solid var(--warning); }
.attn.ok { border-left-color: var(--success); }
.attn a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--card); text-decoration: none; color: var(--ink); } .attn a:last-child { border-bottom: 0; }
.attn a span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
.attn p { margin: 12px 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 16px; }
.dgrid .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dgrid .card h3 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .dgrid .card h3 a { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.delta { font-size: 12.5px; font-weight: 600; color: var(--muted); } .delta.up { color: var(--success); } .delta.down { color: var(--danger); }
.spark { width: 100%; height: 64px; display: block; } .spark path.line { fill: none; stroke: var(--primary); stroke-width: 2; } .spark path.area { fill: var(--primary); opacity: .08; }
.minirow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--card); font-size: 14px; } .minirow:last-child { border-bottom: 0; }
.minirow strong { font-family: var(--font-heading); color: var(--primary); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--card); color: var(--primary); }
@media (max-width: 700px) { .frow { grid-template-columns: 1fr; gap: 6px; } .hrow { grid-template-columns: 90px 1fr 48px; } .hrow .hint { display: none; } }
.abbox { background: var(--bg); border-radius: var(--radius-sm); padding: 4px 16px 10px; margin-top: 12px; }

/* Template and email editor */
.starttiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.starttile { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.starttile span { font-size: 13px; color: var(--muted); }
.starttile:hover { border-color: var(--accent); }
.starttile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: #FFF9EC; }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .ed { grid-template-columns: 1fr; } }
.ed-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ed-bar button, .ed-bar select { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.ed-bar button:hover, .ed-bar select:hover { border-color: var(--accent); background: #FFF9EC; }
.ed-panel { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; margin-bottom: 8px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: #FFF9EC; }
.ed-panel[hidden] { display: none; }
.ed-panel label { flex: 1 1 180px; margin: 0; }
.ed-panel .btn { min-width: 0; }
.ed-panel .error { flex-basis: 100%; }
#ebody { width: 100%; min-height: 420px; font-size: 15px; line-height: 1.55; resize: vertical; }
.ed-view { position: sticky; top: 12px; }
.ed-viewhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ed-viewhead .btn.link { margin: 0 0 0 auto; width: auto; }
.ed-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.ed-seg button { border: 0; background: var(--surface); padding: 6px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.ed-seg button.on { background: var(--primary); color: #fff; }
.ed-inbox { padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-inbox span { color: var(--muted); }
.ed-inbox em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.ed-inbox em.warn { color: var(--danger); }
.ed-frame { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0; }
.ed-frame iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }
.ed-frame.phone { padding: 12px 0; }
.ed-frame.phone iframe { width: 375px; max-width: 100%; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; }
.askclaude { border-left: 4px solid var(--info); }
.askclaude[hidden], #askfound[hidden] { display: none; }
.askclaude textarea { width: 100%; }
.btn.ask { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: var(--radius-btn); }
.btn.ask:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.ask .icon { width: 16px; height: 16px; color: var(--gold-light); }
.stepgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .stepgrid { grid-template-columns: 1fr; } }
.stepview iframe { display: block; width: 100%; height: 440px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
#steps.phone .stepview iframe, .timeline.phone .stepview iframe { width: 375px; max-width: 100%; margin: 0 auto; border-radius: 18px; }
.timeline { display: grid; gap: 18px; }
.tl-step { border-left: 3px solid var(--accent); padding-left: 16px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.tl-when { font-size: 12px; font-weight: 700; background: var(--card); color: var(--muted); padding: 3px 10px; border-radius: var(--radius-btn); }
.timeline .stepview iframe { height: 520px; }

/* Interactive menu */
.navsearch { position: relative; margin: 0 4px; }
.navsearch input { width: 100%; height: 38px; margin: 0; padding: 0 34px 0 36px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-btn); background: rgba(255,255,255,.07); color: #fff; font: inherit; font-size: 14px; }
.navsearch input::placeholder { color: rgba(255,255,255,.62); }
.navsearch input:focus { outline: 0; background: rgba(255,255,255,.12); border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217,164,65,.35); }
.navsearch .navsearch-ico { position: absolute; left: 2px; top: 2px; width: 34px; height: 34px; pointer-events: none; color: var(--gold-light); }
.navsearch kbd { position: absolute; right: 9px; top: 9px; font: 600 11px/1 inherit; padding: 3px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.72); pointer-events: none; }
.navsearch input:focus + kbd { display: none; }
.navrow { position: relative; display: flex; align-items: center; }
.navrow > a { flex: 1; min-width: 0; }
.navrow .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.navrow .pin { position: absolute; right: 6px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--gold-light); font-size: 15px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s ease; }
.navrow:hover .pin, .navrow .pin:focus-visible, .navrow .pin.on { opacity: 1; }
.navrow:hover .navbadge { opacity: 0; }
.navrow .pin:hover { background: rgba(255,255,255,.14); }
.navrow > a:has(.navbadge) { padding-right: 38px; }
.navbadge { position: absolute; right: 10px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--primary); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; transition: opacity .12s ease; }
.navdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.navgroup.open .navdot { display: none; }
.navtitle { margin: 10px 12px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--gold-light); }
.navpinlist { display: flex; flex-direction: column; gap: 2px; }
.navres { display: flex; flex-direction: column; gap: 2px; }
.navres[hidden], #mainnav[hidden], .navpins[hidden], .navtip[hidden] { display: none; }
.navres a { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: var(--radius-btn); color: #fff; text-decoration: none; font-size: 14.5px; }
.navres a small { color: var(--gold-light); font-size: 12px; }
.navres a.sel, .navres a:hover { background: var(--primary-dark); box-shadow: inset 3px 0 0 var(--accent); }
.navnone { padding: 10px 12px; font-size: 13px; color: rgba(255,255,255,.72); }
.navtip { position: fixed; z-index: 50; transform: translateY(-50%); padding: 6px 10px; border-radius: 6px; background: var(--primary-dark); color: #fff; font-size: 13px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; }
.shell.narrow .navsearch input, .shell.narrow .navsearch kbd { display: none; }
.shell.narrow .navsearch { margin: 0; display: flex; justify-content: center; }
.shell.narrow .navsearch .navsearch-ico { position: static; pointer-events: auto; }
.shell.narrow .navbadge { right: 4px; top: 2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 3px; }
.shell.narrow .navrow .pin, .shell.narrow .navtitle { display: none; }
.shell.narrow .navrow > a:has(.navbadge) { padding-right: 0; }
.shell.narrow .navdot { position: absolute; right: 14px; top: 8px; }
.shell.narrow .navtoggle { position: relative; }
@media (prefers-reduced-motion: reduce) { .navitems, .navtoggle .chev, .navrow .pin, .navbadge { transition: none; } }

/* Interactive dashboard */
.dash-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.rangeseg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-btn); overflow: hidden; background: var(--surface); }
.rangeseg a { padding: 7px 16px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.rangeseg a:hover { background: var(--bg); }
.rangeseg a.on { background: var(--primary); color: #fff; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.quick-lbl { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.qa { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.qa .icon { width: 16px; height: 16px; color: var(--accent); }
.qa:hover { border-color: var(--accent); box-shadow: 0 6px 16px rgba(17,48,67,.12); transform: translateY(-1px); }
a.tile { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17,48,67,.14); }
a.tile:focus-visible, .qa:focus-visible, a.minirow:focus-visible { outline: 3px solid rgba(207,167,76,.6); outline-offset: 2px; }
a.minirow { color: var(--ink); text-decoration: none; border-radius: 6px; padding-left: 6px; padding-right: 6px; margin: 0 -6px; transition: background .12s ease; }
a.minirow:hover { background: var(--bg); }
a.minirow:hover strong { color: var(--primary-dark); }
.dtools { display: inline-flex; align-items: center; gap: 10px; }
.dcol { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; position: relative; }
.dcol::before { content: ''; position: absolute; left: 8px; top: 8px; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; }
.dcol:hover { background: var(--bg); }
.dgrid .card.collapsed > :not(h3) { display: none; }
.dgrid .card.collapsed .dcol::before { transform: rotate(-45deg); top: 9px; left: 6px; }
.dchartcard { margin-bottom: 16px; }
.dchart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.dchart-head h3 { margin: 0; display: flex; gap: 12px; align-items: baseline; }
.dchart-head h3 a { font-size: 13px; font-weight: 600; }
.dtabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.dtabs button { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dtabs button:hover { border-color: var(--accent); }
.dtabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.dchart-sum { margin: 6px 0 4px; }
.dchartbox { position: relative; width: 100%; min-height: 250px; }
.dchartbox svg { display: block; max-width: 100%; }
.dchartbox svg:focus-visible { outline: 3px solid rgba(207,167,76,.6); outline-offset: 2px; }
.dtip { position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12.5px; white-space: nowrap; box-shadow: 0 6px 18px rgba(17,48,67,.25); }
.dtip[hidden] { display: none; }
.dtip span { color: #E8EDF2; }
.dtablewrap { max-height: 280px; overflow: auto; margin-top: 8px; }
.tbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--card); gap: 2px; }
.tbar span { display: block; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .qa, a.tile, a.minirow, .dcol::before { transition: none; } }
@media (max-width: 800px) { .dash-side { align-items: flex-start; } }

/* Guided content form */
.cf-intro { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; margin-bottom: 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-card, 10px); background: var(--surface); font-size: 14px; color: var(--muted); }
.cf-intro strong { color: var(--primary); }
.cf-steps { display: flex; flex-wrap: wrap; gap: 8px; position: sticky; top: 0; z-index: 20; padding: 10px 0; margin-bottom: 6px; background: var(--bg); }
.cf-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; transition: border-color .12s ease, color .12s ease; }
.cf-steps a i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--primary); font-style: normal; font-size: 12px; }
.cf-steps a:hover { border-color: var(--accent); }
.cf-steps a.on { border-color: var(--primary); color: var(--primary); }
.cf-steps a.on i { background: var(--primary); color: #fff; }
.cf-card { scroll-margin-top: 64px; }
.cf-card > h3 { display: flex; align-items: center; gap: 8px; }
.cf-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; }
.field label .info { margin-left: 2px; }
.fgrid .field:nth-child(even) .infotip { left: auto; right: -10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips button { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.chips button:hover { border-color: var(--accent); color: var(--primary); }
.cf-count { margin-top: 6px; font-size: 13px; color: var(--muted); }
.cf-count .bad { color: var(--danger); font-weight: 600; }
.cf-check ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.cf-check li { position: relative; padding-left: 26px; font-size: 14px; color: var(--muted); }
.cf-check li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; box-sizing: border-box; }
.cf-check li.ok { color: var(--ink); }
.cf-check li.ok::before { background: var(--success); border-color: var(--success); }
.cf-check li.ok::after { content: ''; position: absolute; left: 5px; top: 5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(0, -1px) rotate(45deg) scale(.9); transform-origin: center; }
.cf-bar { height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; margin-top: 8px; }
.cf-bar span { display: block; height: 100%; width: 0; background: var(--success); transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .cf-bar span, .cf-steps a { transition: none; } }

/* Embedded signup box (inside an iframe on the website): one slim pill, on the website's navy and gold */
body.embed { background: transparent; margin: 0; min-height: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body.embed .guest { min-height: 0; padding: 0; display: block; background: transparent; }
body.embed .guest .panel { background: transparent; box-shadow: none; padding: 3px; max-width: none; border-radius: 0; }
body.embed .pubpanel { max-width: none !important; }
.emb { font-size: 14px; line-height: 1.45; color: #113043; }
.emb-dark { color: #E8EDF2; }
.emb-row { display: flex; align-items: stretch; padding: 4px; border-radius: 12px; background: #fff; }
.emb:not(.emb-dark) .emb-row { background: #F4F6FA; border: 1px solid #C9D4DE; padding: 3px; }
.emb-row:focus-within { outline: 3px solid #2A5794; outline-offset: 2px; }
.emb-dark .emb-row:focus-within { outline-color: #F2C57C; }
.emb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.emb-row input[type=email] { flex: 1 1 auto; min-width: 0; width: auto; height: 44px; margin: 0; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; outline: 0; color: #113043; font: inherit; font-size: 16px; box-sizing: border-box; }
.emb-row input[type=email]::placeholder { color: #7b8b96; }
.emb-btn { flex: 0 0 auto; height: 44px; padding: 0 22px; border: 0; border-radius: 8px; background: #D9A441; color: #113043; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s; }
.emb-btn:hover { background: #F2C57C; }
.emb-btn:focus-visible { outline: 3px solid #113043; outline-offset: 1px; }
.emb-dark .emb-btn:focus-visible { outline-color: #fff; }
.emb-consent { display: flex; gap: 9px; align-items: flex-start; margin: 12px 2px 0; font-weight: 400; font-size: 12.5px; line-height: 1.45; opacity: .88; cursor: pointer; }
.emb-consent input { margin: 1px 0 0; flex: 0 0 auto; width: 16px; height: 16px; accent-color: #D9A441; }
.emb-fine { margin: 6px 2px 0; font-size: 12px; opacity: .7; }
.emb a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.emb-err { background: #fdecea; color: #8a1f11; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; font-size: 13px; }
.emb-msg strong { display: block; font-size: 16px; margin-bottom: 2px; }
@media (max-width: 380px) { .emb-row { flex-wrap: wrap; } .emb-row input[type=email] { flex: 1 1 100%; } .emb-btn { width: 100%; margin-top: 4px; } }

/* Novos icon beside the wordmark */
.brand-icon{display:block;width:32px;height:32px;border-radius:8px;flex:none}
.brandlink{display:flex;align-items:center;gap:10px;min-width:0}
.guest .brand{display:flex;align-items:center;justify-content:center;gap:12px}
.guest .brand .brand-icon{width:40px;height:40px}
.shell.narrow .brandrow .brandlink{display:none}

/* System emails (Admin) */
.emtbl{width:100%;border-collapse:collapse}
.emtbl td,.emtbl th{padding:12px 10px;border-bottom:1px solid var(--border,#e3e8ee);text-align:left;vertical-align:top}
.emtbl th{font-size:12px;color:var(--muted,#4a5b66);font-weight:600}
.emtbl .emname a{font-weight:600;color:var(--primary,#113043);text-decoration:none}
.emtbl .emname .hint{margin:2px 0 0}
.emtbl .emact{white-space:nowrap;text-align:right}
.emtbl .emact form{display:inline}
.embadge{display:inline-block;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:600}
.embadge.on{background:#dcfce7;color:#166534}
.embadge.off{background:#fee2e2;color:#991b1b}
.embadge.pre{background:#e8edf2;color:#4a5b66}
.embadge.lock{background:#dbeafe;color:#1e40af}
.emgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.emgrid.form{grid-template-columns:380px minmax(0,1fr)}
.emframe{width:100%;height:780px;border:1px solid var(--border,#e3e8ee);border-radius:12px;background:#f5f7fa}
.emside .row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border,#e3e8ee);font-size:14px}
.emside .btnrow{margin-top:14px;display:flex;flex-wrap:wrap;gap:8px}
.emside form{display:inline}
.emtokens code{background:#e8edf2;border-radius:4px;padding:1px 6px;font-size:12px}
@media (max-width:900px){.emgrid,.emgrid.form{grid-template-columns:1fr}.emframe{height:620px}}

/* Ask Claude popup */
.am-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(17,48,67,.55); overflow: auto; }
.am-overlay[hidden] { display: none; }
.am-box { background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 12px 40px rgba(0,0,0,.25); width: 100%; max-width: 640px; padding: 22px 24px; }
.am-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.am-head h2 { margin: 0; font-size: 22px; }
.am-x { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.am-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.am-steps li { display: flex; gap: 12px; align-items: flex-start; }
.am-steps li > b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.am-steps li > div { flex: 1; min-width: 0; }
.am-steps textarea { width: 100%; margin-top: 6px; }
.am-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.am-row input[type=text] { flex: 1 1 220px; min-width: 0; }
.am-found { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border-left: 4px solid var(--success); }
.am-or { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
