:root {
  --navy: #002b54; --navy-deep: #001a33; --navy-soft: #e3ecf6;
  --orange: #d57e25; --orange-dark: #a86018; --orange-soft: #fdf5ec;
  --bone: #fbfaf9; --paper: #f3efea; --ink: #18222f; --muted: #4a5563; --line: #e3dcd2;
  --green: #1d6b3a; --green-soft: #e7f4ec; --red: #a3262a; --red-soft: #fbeaea;
  --font-heading: Georgia, serif; --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px; --shadow: 0 10px 28px rgba(0, 26, 51, 0.10); --sidebar: 290px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 106.25%; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--font-body); line-height: 1.55; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--navy-deep); line-height: 1.15; margin: 0; text-wrap: balance; }
a { color: var(--orange-dark); }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
button, a, summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.strong { font-weight: 700; color: var(--navy); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 2px solid transparent; font: 700 1rem var(--font-body); text-decoration: none; transition: background-color .15s, color .15s, transform .15s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--on-orange, var(--navy-deep)); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover:not(:disabled) { background: var(--navy); color: #fff; }
.btn-accept { background: #fff; border-color: var(--green); color: var(--green); }
.btn-accept[aria-pressed="true"], .btn-accept:hover { background: var(--green); color: #fff; }
.btn-deny { background: #fff; border-color: var(--red); color: var(--red); }
.btn-deny[aria-pressed="true"], .btn-deny:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-present svg { flex: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } html { scroll-behavior: auto; } }

/* ARCHIFX agency identity: the approved wordmark is white on transparent, so it is
   shown as-is on black and rendered black on light backgrounds. */
.agency-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0b0b0b; color: #fff; padding: 10px 14px; border-radius: 10px; }
.agency-band img { height: 24px; width: auto; }
.agency-band span, .agency-label { font-family: "Bebas Neue", Impact, "Arial Narrow", sans-serif; font-size: 1.05rem; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.agency-band span { color: #e7e7e7; }
.agency-logo-black { filter: brightness(0); }
.prepared { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid #0b0b0b; color: #0b0b0b; }
.prepared img { height: 18px; width: auto; }
.prepared .agency-label { font-size: 1rem; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; margin: 22px 0 0; padding: 16px 18px; background: #fff; border: 1px solid #0b0b0b; border-left: 6px solid #0b0b0b; border-radius: 10px; }
.notice img { height: 20px; width: auto; margin-top: 3px; }
.notice h2 { font-size: 1.1rem; color: #0b0b0b; }
.notice p { margin: 4px 0 0; color: #2b2b2b; }

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.login-card { width: min(440px, 100%); padding: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); text-align: center; }
.login-band { border-radius: 0; padding: 14px 20px; }
.login-inner { padding: 30px 32px 28px; }
.login-notice { font-size: 0.82rem; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.login-logo { margin: 0 auto 18px; height: 90px; width: auto; }
.login-card h1 { font-size: 1.7rem; }
.login-card p { color: var(--muted); }
.login-card form { margin-top: 18px; display: grid; gap: 10px; text-align: left; }
.login-card label { font-weight: 700; }
.login-card input { font: inherit; padding: 12px 14px; border: 1px solid #a7afb9; border-radius: 10px; min-height: 48px; }
.login-error { color: var(--red) !important; font-weight: 700; }
.login-credit { font-size: 0.85rem; margin-top: 22px; }

/* Shell and sidebar */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-deep); font: 800 1.05rem var(--font-heading); }
.brand img { height: 46px; width: auto; }
.menu-toggle { display: none; }
.side-label { margin: 18px 4px 4px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.side-help { margin: 0 4px 8px; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.channel { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; text-align: left; color: var(--ink); }
button.channel:hover { border-color: var(--navy); }
.channel-icon svg { width: 30px; height: 30px; display: block; }
.channel-text { display: grid; line-height: 1.25; min-width: 0; }
.channel-name { font-weight: 700; }
.channel-meta { font-size: .8rem; color: var(--muted); }
.channel[aria-pressed="false"] { background: #f6f7f8; }
.channel[aria-pressed="false"] .channel-icon { filter: grayscale(1); opacity: .45; }
.channel[aria-pressed="false"] .channel-name { color: var(--muted); }
.switch { width: 38px; height: 22px; border-radius: 99px; background: #c5cbd3; position: relative; transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.channel[aria-pressed="true"] .switch { background: var(--green); }
.channel[aria-pressed="true"] .switch::after { transform: translateX(16px); }
.channel.is-inactive { grid-template-columns: 34px minmax(0, 1fr); background: #f6f7f8; border-style: dashed; cursor: default; }
.channel.is-inactive .channel-icon { filter: grayscale(1); opacity: .35; }
.side-link { margin: 4px 4px 0; padding: 6px 0; border: 0; background: none; font: 700 .9rem var(--font-body); color: var(--orange-dark); text-align: left; text-decoration: underline; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.side-nav a:hover { background: var(--paper); }
.side-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-mark { width: 18px; text-align: center; color: var(--orange-dark); }
.side-nav a[aria-current="page"] .nav-mark { color: var(--orange); }
.side-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.progress { margin: 0; font-weight: 700; color: var(--navy); }
.reviewer { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.reviewer input { font: inherit; padding: 8px 10px; border: 1px solid #a7afb9; border-radius: 8px; min-height: 40px; }
.signout { font-weight: 700; }
.side-prepared { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
.side-prepared img { height: 16px; width: auto; }
.workspace { min-width: 0; }

/* Layout */
main { max-width: 1180px; margin: 0 auto; padding: 28px 28px 60px; outline: none; }
.hero { background: var(--paper); border-radius: 18px; padding: 32px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.hero.compact h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.lead { font-size: 1.12rem; max-width: 70ch; color: #2e3a48; }
.kicker { margin: 0 0 4px; font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.flow { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: flow; }
.flow li { position: relative; background: #fff; border-radius: 12px; padding: 16px 16px 16px 52px; counter-increment: flow; }
.flow li::before { content: counter(flow); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.flow li strong { display: block; color: var(--navy-deep); }
.block { margin: 36px 0; }
.block-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.block-head h2 { font-size: 1.5rem; }
.block-head p { margin: 4px 0 0; color: var(--muted); }
.block-head .count { margin-left: auto; white-space: nowrap; font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 4px 12px; border-radius: 99px; font-size: .9rem; }
.step { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--on-orange, var(--navy-deep)); display: grid; place-items: center; font: 800 1.1rem var(--font-heading); }
.grid { display: grid; gap: 18px; }
.grid.one { grid-template-columns: 1fr; }
.grid.two, .grid.three { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid.lines { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 0 rgba(0,0,0,.02); min-width: 0; }
.card h3 { font-size: 1.22rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.tags { display: flex; gap: 4px; flex: none; }
.tag svg { width: 22px; height: 22px; display: block; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.off-note { background: var(--paper); border: 1px dashed #c9bfb1; border-radius: 12px; padding: 16px 18px; color: var(--muted); font-weight: 700; }
.line-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.line-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.line-card img { height: 150px; width: 100%; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.line-name { font: 800 1.25rem var(--font-heading); color: var(--navy-deep); }
.line-card .count { font-weight: 700; color: var(--navy); }
.chips { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: var(--navy-soft); color: var(--navy); border-radius: 99px; padding: 4px 12px; font-size: .9rem; }
.chips.big li { font-size: 1rem; padding: 6px 14px; }
.gate { background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 700 .9rem var(--font-body); color: var(--muted); }
.pill svg { width: 18px; height: 18px; }
.pill[aria-pressed="true"] { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }

/* Google search ad */
.gad { max-width: 640px; border: 1px solid #dadce0; border-radius: 12px; padding: 16px 18px; font-family: Arial, Helvetica, sans-serif; background: #fff; }
.gad p { margin: 0; }
.gad-sponsored { font-size: 12px; font-weight: 700; color: #202124; margin-bottom: 8px !important; }
.gad-site { display: flex; align-items: center; gap: 10px; }
.gad-site img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; border: 1px solid #ecedef; background: #fff; }
.gad-name { font-size: 14px; color: #202124; }
.gad-url { font-size: 12px; color: #4d5156; }
.gad-headline { margin-top: 8px !important; font-size: 20px; line-height: 1.3; color: #1a0dab; }
.gad-desc { margin-top: 4px !important; font-size: 14px; color: #474747; line-height: 1.58; }
.gad-call { margin-top: 8px !important; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #1a0dab; }
.gad-links { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gad-links li { color: #1a0dab; font-size: 14px; }
.all-copy summary, details summary { font-weight: 700; color: var(--navy); margin: 10px 0; }
.copy-list { columns: 2 240px; margin: 6px 0 12px; }
.copy-list.descriptions { columns: 1; }

/* Facebook post */
.fb { background: #fff; border: 1px solid #dddfe2; border-radius: 10px; font-family: Helvetica, Arial, sans-serif; color: #050505; overflow: hidden; }
.fb-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.fb-avatar, .gbp-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; border: 1px solid #e4e6eb; background: #fff; }
.fb-name { margin: 0; font-weight: 700; font-size: 15px; }
.fb-meta { margin: 0; font-size: 13px; color: #65676b; display: flex; align-items: center; gap: 4px; }
.fb-text { padding: 0 14px; font-size: 15px; line-height: 1.34; }
.fb-text p { margin: 0 0 10px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.fb-more { margin: 0 14px 8px; padding: 0; border: 0; background: none; font: 700 14px Helvetica, Arial, sans-serif; color: #65676b; }
.fb-img, .fb video { width: 100%; display: block; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.fb video { aspect-ratio: 1 / 1; background: #000; }
.fb-actions { display: flex; justify-content: space-around; padding: 6px 8px; color: #65676b; font-weight: 700; font-size: 14px; }
.fb-actions span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; }

/* Google Business update */
.gbp { background: #fff; border: 1px solid #dadce0; border-radius: 12px; overflow: hidden; font-family: Arial, Helvetica, sans-serif; color: #202124; }
.gbp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.gbp-name { margin: 0; font-size: 15px; font-weight: 700; }
.gbp-meta { margin: 0; font-size: 13px; color: #5f6368; }
.gbp-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gbp-text { padding: 12px 14px 4px; font-size: 14px; line-height: 1.5; }
.gbp-text p { margin: 0 0 8px; }
.gbp-cta { display: inline-block; margin: 6px 14px 14px; padding: 8px 16px; border: 1px solid #dadce0; border-radius: 99px; color: #1a73e8; font-weight: 700; font-size: 14px; }

/* Landing page */
.shot { max-height: 560px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; }
.phone-dialog { border: 0; border-radius: 18px; padding: 16px; max-width: 460px; width: calc(100% - 24px); }
.phone-dialog::backdrop, .present::backdrop { background: rgba(0, 26, 51, .7); }
.phone-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.phone-dialog-head h2 { font-size: 1.2rem; }
.phone-frame { width: 390px; max-width: 100%; height: min(780px, 75vh); margin: 0 auto; border: 10px solid #10161f; border-radius: 34px; overflow: hidden; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; }

/* Coupons and posts */
.coupon-card { border: 3px dashed var(--orange-dark); }
.coupon-code { margin: 0 0 6px; font-weight: 700; color: var(--orange-dark); letter-spacing: .06em; }
.slot { font-weight: 700; color: var(--navy); margin: 10px 0 0; }

/* Present mode */
.present { width: min(1280px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; border-radius: 18px; padding: 0; background: var(--bone); }
.present-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 20px; background: #0b0b0b; color: #fff; }
.present-logo { height: 24px; width: auto; flex: none; }
.present-count { margin: 0; font-weight: 700; color: #c9c9c9; }
.present-bar h2 { font-size: 1.3rem; flex: 1 1 280px; color: #fff; }
.label-short { display: none; }
.present-foot { margin: 0; padding: 12px 24px 18px; font-size: .85rem; color: var(--muted); border-top: 2px solid #0b0b0b; }
.present-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.present-body { padding: 24px; }
.present-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 24px; align-items: start; }
.present-grid.wide { grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.4fr); }
.present-main .gad { max-width: none; }
.present-main.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.present-main.platforms.single { grid-template-columns: minmax(0, 520px); }
.platform-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; color: var(--navy); }
.platform-label svg { width: 22px; height: 22px; }
.present-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.present-frame { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.present-narrow { max-width: 640px; margin: 0 auto; }

/* Posting calendar */
.cal-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0 8px; }
.cal-controls label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.cal-controls select, .cal-controls input { font: inherit; min-height: 44px; padding: 8px 10px; border: 1px solid #a7afb9; border-radius: 10px; background: #fff; }
.cal-legend { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); }
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend svg, .cal-icons svg, .gad-note svg { width: 18px; height: 18px; }
.hero .muted.small svg { width: 16px; height: 16px; vertical-align: -3px; }
.cal-months { display: grid; gap: 28px; }
.cal-month h2 { font-size: 1.35rem; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 6px; }
.cal-cell { min-height: 112px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.is-empty { background: transparent; border-color: transparent; }
.cal-cell.has-post { border-color: var(--navy); box-shadow: inset 0 3px 0 var(--orange); }
.cal-day { font-size: .85rem; font-weight: 700; color: var(--muted); }
.cal-chip { display: grid; gap: 3px; text-align: left; width: 100%; padding: 6px; border: 0; border-radius: 8px; background: var(--navy-soft); color: var(--navy-deep); font: inherit; min-width: 0; transition: transform .15s, background-color .15s; }
.cal-chip:hover { background: #d3e1f1; transform: translateY(-1px); }
.cal-chip.is-video { background: var(--orange-soft); }
.cal-icons { display: flex; align-items: center; gap: 4px; }
.cal-video { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--navy-deep); color: #fff; font-size: 9px; }
.cal-id { font-weight: 800; font-size: .85rem; display: flex; align-items: center; gap: 4px; }
.cal-topic { font-size: .8rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; color: #fff; }
.cal-mark.ok { background: var(--green); }
.cal-mark.no { background: var(--red); }
.cal-agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cal-agenda li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.cal-date { font-weight: 700; color: var(--navy); }
.cal-agenda .cal-chip { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; }
@media (max-width: 760px) {
  .cal-months { display: none; }
  .cal-agenda li { grid-template-columns: 1fr; gap: 6px; }
}

/* Decisions */
.decision { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.decision-status { margin: 0 0 8px; font-weight: 700; color: var(--muted); }
.decision.is-accepted .decision-status { color: var(--green); }
.decision.is-denied .decision-status { color: var(--red); }
.decision.is-accepted { background: linear-gradient(var(--green-soft), var(--green-soft)) top / 100% 4px no-repeat; }
.decision.is-denied { background: linear-gradient(var(--red-soft), var(--red-soft)) top / 100% 4px no-repeat; }
.decision-note { margin: 0 0 10px; padding: 10px 12px; background: var(--orange-soft); border-radius: 8px; white-space: pre-wrap; }
.decision.is-stale .decision-status { color: var(--orange-dark); }
.decision-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 10px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.decision-name input { font: inherit; font-weight: 400; min-height: 38px; padding: 6px 10px; border: 1px solid #a7afb9; border-radius: 8px; width: min(220px, 100%); }
.watched { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 10px; font-size: .95rem; font-weight: 700; color: var(--navy); }
.watched input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.decision-error { margin: 10px 0 0; color: var(--red); font-weight: 700; }
.decision-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.decision-notebox { margin-top: 10px; display: grid; gap: 8px; }
.decision-notebox label { display: grid; gap: 6px; font-weight: 700; }
.decision-notebox textarea { font: inherit; padding: 10px 12px; border: 1px solid #a7afb9; border-radius: 10px; resize: vertical; }
.decision-notebox .btn { justify-self: start; }
.decision-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.decision-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.decision-list span { color: var(--muted); white-space: pre-wrap; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.card:has(.table) { overflow-x: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy-deep); color: #fff; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; margin: 0; max-width: calc(100% - 32px); z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.footer { background: #0b0b0b; color: #d6d6d6; font-size: .9rem; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 26px 28px 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; }
.footer-logo { height: 34px; width: auto; }
.footer p { margin: 0; }
.footer-credit { font-weight: 700; color: #fff; }
.footer-disclaimer { margin-top: 6px !important; line-height: 1.5; }
.error { color: var(--red); font-weight: 700; }

/* Tablet and phone: the sidebar becomes a collapsible panel at the top. */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .menu-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 .95rem var(--font-body); }
  .sidebar-body { display: none; }
  .sidebar.open .sidebar-body { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
  .side-footer { margin-top: 10px; }
  .agency-band { margin: -10px -16px 10px; border-radius: 0; padding: 8px 16px; }
  .present-grid, .present-grid.wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 18px 16px 48px; }
  .hero { padding: 22px; }
  .block-head { flex-wrap: wrap; }
  .block-head .count { margin-left: 54px; }
  .brand span { display: none; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .present-body { padding: 14px; }
  .present-bar { padding: 10px 14px; gap: 8px 12px; }
  .present-bar h2 { font-size: 1.05rem; flex-basis: 100%; }
  .present-nav { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; gap: 6px; }
  .present-nav .btn { min-height: 40px; padding: 6px 8px; font-size: .9rem; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .present-foot { padding: 10px 14px 14px; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px 26px; }
  .notice { grid-template-columns: 1fr; gap: 8px; }
  .login-inner { padding: 24px 20px; }
}

/* Ownership: what the client owns, where it lives, who can sign in and what is missing.
   One full-width card per item so names never truncate; plain explanation first, then the facts. */
.own-tiles { list-style: none; padding: 0; margin: 20px 0 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.own-tile { display: grid; gap: 4px; min-width: 160px; padding: 14px 18px; background: #fff; border-radius: 12px; border: 1px solid var(--line); border-left: 6px solid var(--muted); }
.own-tile strong { font: 800 2rem var(--font-heading); color: var(--navy-deep); line-height: 1; }
.own-tile span { font-weight: 700; color: var(--ink); }
.own-tile.ok { border-left-color: var(--green); }
.own-tile.warn { border-left-color: var(--orange); }
.own-tile.no { border-left-color: var(--red); }
.own-tile.agency { border-left-color: #0b0b0b; }
.own-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 99px; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.own-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.own-pill.ok { background: var(--green-soft); color: var(--green); }
.own-pill.warn { background: var(--orange-soft); color: var(--orange-dark); }
.own-pill.no { background: var(--red-soft); color: var(--red); }
.own-pill.unknown { background: #eef0f3; color: var(--muted); }
.own-pill.agency { background: #ececec; color: #0b0b0b; }

.own-list { display: grid; gap: 16px; }
.own-item { padding: 24px 26px; border-left: 6px solid var(--muted); }
.own-item.is-ok { border-left-color: var(--green); }
.own-item.is-warn { border-left-color: var(--orange); }
.own-item.is-no { border-left-color: var(--red); }
.own-item.is-agency { border-left-color: #0b0b0b; }
.own-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; }
.own-head h3 { font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.own-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--navy-soft); color: var(--navy); }
.own-mark svg { width: 34px; height: 34px; display: block; }
.own-mark.is-brand { background: #fff; border: 1px solid var(--line); }
.own-mark.is-brand svg { width: 40px; height: 40px; }
.own-initial { font: 800 1.6rem var(--font-heading); }
.own-body { display: grid; gap: 22px; }
.own-body.has-side { grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr); align-items: start; }
.own-main { display: grid; gap: 16px; align-content: start; }
.own-body:not(.has-side) .own-main { max-width: 780px; }
.own-details { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--ink); max-width: 66ch; }
.own-facts { margin: 0; border-top: 1px solid var(--line); }
.own-facts div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.own-facts dt { color: var(--muted); font-weight: 600; }
.own-facts dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 600; }
.own-side { background: var(--paper); border-radius: 12px; padding: 16px 18px; }
.own-label { margin: 0 0 10px; font: 700 .82rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.own-access { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.own-access li { display: grid; gap: 2px; padding: 10px 12px; background: #fff; border-radius: 8px; }
.own-who { font-weight: 700; color: var(--navy-deep); }
.own-role { font-size: .92rem; color: var(--muted); }
.own-email { overflow-wrap: anywhere; color: var(--navy); font-size: .95rem; }
.own-access-note { margin: 0; color: var(--ink); }

.own-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.own-logo { display: grid; gap: 18px; margin: 0; align-content: start; }
.own-logo.is-featured { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr); align-items: center; gap: 28px; }
.own-logo-art { display: grid; place-items: center; min-height: 260px; padding: 28px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.own-logo.is-featured .own-logo-art { min-height: 360px; padding: 36px; }
.own-logo-art.is-dark { background: #0b0b0b; }
.own-logo-art img { display: block; width: 100%; max-width: 440px; max-height: 210px; height: auto; object-fit: contain; }
.own-logo.is-featured .own-logo-art img { max-width: 620px; max-height: 300px; }
.own-logo figcaption { display: grid; gap: 10px; justify-items: start; }
.own-logo figcaption h3 { font-size: 1.2rem; }
.own-logo figcaption p { margin: 0; color: var(--muted); line-height: 1.55; }

.own-gaps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: gap; }
.own-gaps li { display: grid; gap: 6px; padding: 18px 20px 18px 64px; position: relative; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 12px; counter-increment: gap; }
.own-gaps li::before { content: counter(gap); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.own-gaps h3 { font-size: 1.15rem; }
.own-gaps p { margin: 0; line-height: 1.6; max-width: 80ch; }
.own-next { color: var(--navy-deep); font-weight: 600; }
.own-next span { display: inline-block; margin-right: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); }
.own-previous { border-color: var(--orange-dark); border-left-color: var(--orange-dark); }
.own-previous-mark { font-size: 1.4rem; color: var(--orange-dark); line-height: 1; }

@media (max-width: 1100px) {
  .own-body.has-side { grid-template-columns: 1fr; }
  .own-logo.is-featured { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .own-tiles { display: grid; grid-template-columns: 1fr 1fr; }
  .own-tile { min-width: 0; }
  .own-item { padding: 18px 16px; }
  .own-head { grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; }
  .own-head .own-pill { grid-column: 2; justify-self: start; }
  .own-head h3 { font-size: 1.2rem; }
  .own-mark { width: 52px; height: 52px; border-radius: 12px; }
  .own-mark svg { width: 28px; height: 28px; }
  .own-mark.is-brand svg { width: 32px; height: 32px; }
  .own-facts div { grid-template-columns: 1fr; gap: 2px; }
  .own-logos { grid-template-columns: 1fr; }
  .own-logo-art, .own-logo.is-featured .own-logo-art { min-height: 0; padding: 22px 16px; }
  .own-gaps li { padding: 16px 16px 16px 56px; }
  .own-gaps li::before { left: 14px; top: 16px; }
}

/* LinkedIn post */
.li { background: #fff; border: 1px solid #e0dfdc; border-radius: 10px; font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: rgba(0, 0, 0, .9); overflow: hidden; }
.li-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.li-avatar { width: 48px; height: 48px; object-fit: contain; border: 1px solid #e0dfdc; background: #fff; border-radius: 4px; }
.li-name { margin: 0; font-weight: 600; font-size: 14px; }
.li-meta { margin: 0; font-size: 12px; color: rgba(0, 0, 0, .6); display: flex; align-items: center; gap: 4px; }
.li-text { padding: 0 14px; font-size: 14px; line-height: 1.43; }
.li-text p { margin: 0 0 10px; }
.li-img, .li video { width: 100%; display: block; }
.li video { aspect-ratio: 1 / 1; background: #000; }
.li-actions { display: flex; justify-content: space-around; padding: 6px 8px; border-top: 1px solid #e0dfdc; color: rgba(0, 0, 0, .6); font-weight: 600; font-size: 14px; }
.li-actions span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; }
.gbp-video video { width: 100%; display: block; aspect-ratio: 4 / 3; background: #000; }

/* Item states: published, scheduled, live, draft (always in text) */
.state-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-pill.published, .state-pill.live { background: var(--green-soft); color: var(--green); }
.state-pill.scheduled { background: var(--navy-soft); color: var(--navy); }
.state-pill.draft { background: var(--orange-soft); color: var(--orange-dark); }
.state-pill.attention { background: var(--red-soft); color: var(--red); }
.present-side .state-pill { margin: 0 0 6px; }
.cal-state { font-size: .72rem; font-weight: 700; color: var(--muted); }
.cal-chip.is-published { box-shadow: inset 3px 0 0 var(--green); }
.cal-chip.is-scheduled { box-shadow: inset 3px 0 0 var(--navy); }
.cal-chip.is-draft { box-shadow: inset 3px 0 0 var(--orange); }

/* CIT additions (2026-10-11): Instagram frame and swipeable carousels. */
.ig { background: #fff; border: 1px solid #dbdbdb; border-radius: 8px; overflow: hidden; color: #262626; }
.ig-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.ig-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #dbdbdb; }
.ig-name { margin: 0; font-weight: 600; font-size: 14px; }
.ig-meta { margin: 0; font-size: 12px; color: #737373; }
.ig-img, .ig video { display: block; width: 100%; height: auto; background: #000; }
.ig-actions { display: flex; gap: 14px; padding: 10px 12px 4px; }
.ig-text { padding: 0 12px 6px; font-size: 14px; line-height: 1.4; }
.ig .fb-more { margin: 0 12px 12px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carousel > img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; display: block; height: auto; }
.carousel:focus-visible { outline: 3px solid currentColor; outline-offset: -3px; }
.carousel-hint { margin: 6px 12px; font-size: 12px; color: #65676b; }

/* TruGrit additions (2026-10-13): channel access, the review of today's posts */
.access-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.access-card { display: grid; gap: 10px; align-content: start; }
.access-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.access-head h3 { flex: 1; min-width: 0; }
.access-icon svg { width: 30px; height: 30px; display: block; }
.access-card.is-no { border-left: 5px solid #c0392b; }
.access-card.is-ok { border-left: 5px solid #2e8b57; }
.access-card p { margin: 0; }
.audit-teaser .card { border-left: 5px solid var(--orange); }
.audit-stats { list-style: none; margin: 22px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.audit-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.audit-stat strong { display: block; font: 800 2rem/1.05 var(--font-heading); color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.audit-stat span { color: var(--muted); font-size: .95rem; }
.audit-card h3 { margin: 4px 0 8px; }
.audit-card p { margin: 0 0 10px; max-width: 72ch; }
.audit-quote { margin: 6px 0 0; padding: 12px 16px; background: var(--paper); border-left: 4px solid var(--muted); border-radius: 0 10px 10px 0; font-size: .97rem; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.audit-quote p { margin: 0; }
.audit-quote cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--muted); }
.compare-card { overflow-x: auto; }
.table.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.table.compare th, .table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); }
.table.compare th { font: 800 1rem var(--font-heading); color: var(--navy-deep); border-top: none; }
.table.compare td:first-child { color: var(--muted); width: 45%; }
.table.compare td:last-child { font-weight: 600; color: var(--navy-deep); }

/* TruGrit second pass: the channel name gets its own line above the status pill; long links wrap inside previews */
.access-head { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px 10px; }
.access-head .own-pill { grid-column: 1 / -1; justify-self: start; }
.fb-text, .ig-text, .li-text, .gbp-text { overflow-wrap: anywhere; }

/* TruGrit third pass: evidence images, links and side-by-side pairs in the audit */
.evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.evidence.one { grid-template-columns: minmax(0, 320px); }
.evidence-fig { margin: 0; display: grid; gap: 6px; align-content: start; }
.evidence-fig img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.evidence-fig figcaption { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.evidence-fig figcaption a, .evidence-links a, .audit-quote cite a, .audit-stat a { font-weight: 700; white-space: nowrap; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 0; font-size: .92rem; }
.audit-stat a { display: block; margin-top: 4px; font-size: .85rem; }
.audit-card blockquote + blockquote { margin-top: 10px; }
.pair-card { display: grid; gap: 12px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pair-side { display: grid; gap: 8px; align-content: start; }
.pair-label { margin: 0; font: 800 .95rem var(--font-heading); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pair-side.ours .pair-label { color: var(--navy-deep); }
.pair-side .evidence-fig img { max-height: 560px; object-fit: contain; background: #0b2131; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }

/* Checkpoint addition (2026-11-02): plan tables */
.plan-card .table-wrap { overflow-x: auto; }
.plan-card .table th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; }
.plan-card .table td, .plan-card .table th { vertical-align: top; }
