:root {
  color-scheme: light;
  --ink: #484848;
  --ink-soft: #696969;
  --surface: #fff;
  --fill: #f5f5f5;
  --fill-pressed: #ededed;
  --field: #fcfcfc;
  --line: #f5f5f5;
  --line-strong: #e7e5e3;
  --radius: 22px;
  --control-radius: 16.4px;
  --compact-radius: 13px;
  --control: 46px;
  --compact: 40px;
  --inset: 6px;
  --gap: 18px;
  --margin: clamp(20px, 6.74vw, 97px);
  --focus: #007aff;
  --font: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sage: #acbe95;
  --lime: #dfe6b2;
  --forest: #3d6855;
  --float-shadow: 0 6px 16px rgb(0 0 0 / .07);
  --motion-release: cubic-bezier(.2, .8, .3, 1);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.4 var(--font); }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input, textarea, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .45; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

main { min-width: 0; }
main:focus { outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 20px; }
.page-head h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.52px; }
.page-head p { margin-top: 4px; color: var(--ink-soft); font-size: 14px; }
.actions, .inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--surface);
  padding: 0 20px; min-height: 48px; font-size: 16px; font-weight: 500;
  transition: background-color .15s ease-out, filter .15s ease-out, transform .12s ease-out, opacity .12s ease-out;
}
.btn:hover:not(:disabled) { background: var(--fill); }
.btn.primary, .btn.neutral { border-color: transparent; }
.btn.neutral { background: var(--fill); }
.btn.primary { color: var(--ink); background: var(--lime); }
.btn.neutral:hover:not(:disabled) { background: var(--fill-pressed); }
.btn.primary:hover:not(:disabled) { background: var(--lime); filter: brightness(.98); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-soft); }
.btn.dark { color: #f5f5f5; background: #211f12; border: 0; }
.btn.dark:hover { background: #302e21; }
.btn.danger { color: #b12924; }
.btn.small { min-height: 36px; font-size: 13px; padding-inline: 12px; border-radius: var(--compact-radius); }
.btn:active:not(:disabled) { opacity: .82; transform: scale(.985); }
.pill { display: inline-flex; align-items: center; align-self: center; width: fit-content; padding: 4px 9px; border-radius: 999px; background: var(--fill); color: var(--ink-soft); font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill.ok { color: var(--ink); }
.pill.block { color: #a22a27; }

.editor { display: grid; grid-template-columns: minmax(116px, .8fr) minmax(285px, 3.1fr) minmax(209px, 1.25fr); border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; min-height: 630px; }
.outline, .inspector { min-width: 0; padding: 16px 13px; background: var(--surface); }
.outline { border-right: 1px solid var(--line); }
.inspector { border-left: 1px solid var(--line); padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 12px; }
.panel-head h2, .panel-head h3 { font-size: 13px; font-weight: 600; }
.chapter { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 35px; text-align: left; background: transparent; border: 0; border-radius: var(--compact-radius); margin: 1px 0; padding: 6px 9px; font-size: 14px; }
.chapter[aria-pressed=true] { background: var(--fill-pressed); font-weight: 500; }
.chapter:not([aria-pressed=true]):hover { background: var(--fill); }
.chapter span { color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.add-block { margin-top: 11px; width: 100%; }
.stage { background: var(--fill); min-width: 0; padding: 10px clamp(12px, 2vw, 26px) 24px; }
.stage-meta { display: flex; justify-content: space-between; gap: 6px; color: var(--ink-soft); padding: 2px 0 9px; font-size: 12px; }
.book { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 12px rgb(0 0 0 / .04); max-width: 840px; margin: auto; }
.book-cover { width: 100%; min-height: 245px; text-align: left; padding: clamp(19px, 2.9vw, 38px); border: 0; background: #101522 url('assets/rise-arte.webp') center/cover; color: #f3f5fa; position: relative; display: grid; align-content: space-between; gap: 18px; isolation: isolate; }
.book-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, #07080cec, #0a0c1278); z-index: -1; }
.book-cover.bio { background: #333; }
.book-cover.bio::before { background: none; }
.book-kicker { font-size: 11px; }
.book-cover h2 { font-size: clamp(29px, 4vw, 55px); line-height: 1.02; font-weight: 730; max-width: 13ch; letter-spacing: -.04em; overflow-wrap: anywhere; }
.book-cover p { color: #e1e1e1; font-size: 13px; max-width: 39ch; overflow-wrap: anywhere; }
.rise-word { width: 89px; height: auto; object-fit: contain; }
.book-block { display: block; width: 100%; background: var(--surface); text-align: left; border: 0; border-top: 1px solid var(--line); padding: 15px clamp(15px, 2vw, 26px); position: relative; overflow-wrap: anywhere; }
.book-block:hover { background: var(--field); }
.book [aria-pressed=true] { z-index: 1; outline: 2px solid #8a8a8a; outline-offset: -2px; }
.book-block h3 { font-size: 17px; font-weight: 600; }
.book-block p { margin-top: 3px; color: var(--ink-soft); font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.swatches span { width: 29px; height: 22px; border-radius: 5px; border: 1px solid #9994; }
.book-block.feature-block { padding-block: 22px; background: var(--fill); }
.book-block.feature-block h3 { font-size: clamp(20px, 3vw, 29px); }
.book-cover.layout-center { justify-items: center; text-align: center; }
.book-cover.layout-image { min-height: 350px; align-content: end; gap: 10px; }
.book-cover.layout-image h2 { font-size: clamp(27px, 3vw, 42px); }
.book-block.layout-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: 14px; }

.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line-strong); border-radius: var(--control-radius); padding: 9px 12px; background: var(--field); font-size: 14px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--sage); outline: 1px solid var(--sage); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 67px; }
.source, .suggestion { padding: 12px; background: var(--fill); border-radius: var(--control-radius); margin-top: 13px; font-size: 13px; display: grid; gap: 5px; }
.source p, .suggestion p { color: var(--ink-soft); overflow-wrap: anywhere; }
.move-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(15px, 2vw, 23px); min-width: 0; }
.card h2 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.card h3 { font-size: 16px; font-weight: 600; }
.card p { color: var(--ink-soft); font-size: 14px; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(276px, 1fr); gap: var(--gap); align-items: start; }
.stack { display: grid; gap: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.row:last-child { border-bottom: 0; }
.row small, .muted { color: var(--ink-soft); }
.row strong { font-weight: 600; }
.preview-cover, .piece { background: #101522 url('assets/rise-arte.webp') center/cover; color: #fff; border-radius: var(--radius); padding: 22px; display: grid; align-content: space-between; justify-items: start; gap: 12px; }
.preview-cover { min-height: 215px; margin-bottom: 12px; }
.preview-cover.bio, .piece.bio { background: #3b3b3b; }
.preview-cover h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.06; max-width: 15ch; }
.preview-cover h3, .piece b { text-shadow: 0 2px 10px #0007; }
.piece { min-height: 153px; }
.piece b { font-size: 23px; line-height: 1.1; }
.radio-line { display: flex; align-items: start; gap: 9px; cursor: pointer; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); }
.radio-line:has(:checked) { border-color: #b8b8b8; background: var(--fill); }
.radio-line input { margin-top: 4px; }
.radio-line small { color: var(--ink-soft); display: block; margin-top: 3px; }
.note, .prompt { background: var(--fill); color: var(--ink-soft); padding: 11px 13px; font-size: 13px; border-radius: var(--control-radius); margin: 0; }
.segment { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; width: fit-content; background: var(--fill); border-radius: var(--control-radius); }
.segment button { border: 0; border-radius: var(--compact-radius); background: transparent; padding: 7px 12px; font-size: 14px; }
.segment button[aria-pressed=true] { background: var(--fill-pressed); font-weight: 500; }
.account-box { display: flex; gap: 10px; align-items: center; background: var(--fill); border-radius: var(--control-radius); padding: 11px; }
.account-box p { font-size: 13px; }
.avatar { width: 33px; height: 33px; flex: 0 0 33px; display: inline-grid; place-items: center; background: var(--fill-pressed); border-radius: 50%; font-size: 12px; }
#notice { position: fixed; bottom: 20px; right: 20px; max-width: min(380px, calc(100vw - 40px)); padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--control-radius); box-shadow: 0 6px 16px rgb(0 0 0 / .07); z-index: 5; font-size: 14px; }
#notice:empty { display: none; }
@media (max-width: 940px) {
  .editor { grid-template-columns: minmax(105px, .75fr) minmax(225px, 2.6fr) minmax(175px, 1fr); }
  .outline, .inspector { padding-inline: 10px; }
}
@media (max-width: 690px) {
  :root { --margin: 16px; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .outline { border: 0; border-bottom: 1px solid var(--line); }
  .inspector { border: 0; border-top: 1px solid var(--line); padding: 15px; }
  #chapters { display: flex; flex-wrap: wrap; gap: 3px; }
  .chapter, .add-block { width: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: start; flex-direction: column; }
  .row { flex-wrap: wrap; }
  .book-block.layout-columns { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled) { transform: none; }
}

/* RiseFPS typography inside brand content */
@font-face { font-family: 'Rise Archivo'; src: url('assets/rise-archivo-400.ttf') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Rise Archivo'; src: url('assets/rise-archivo-800.ttf') format('truetype'); font-style: normal; font-weight: 800; font-display: swap; }
/* Briefing and the material tray */
.studio { position: relative; min-height: min(700px, calc(100dvh - 130px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 276px); gap: 18px; }
.conversation { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); min-height: min(700px, calc(100dvh - 130px)); }
.chat-context { padding: 16px 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.chat-context strong { font-weight: 600; font-size: 14px; }
.chat-context span { color: var(--ink-soft); font-size: 13px; }
.chat-scroll { flex: 1; height: clamp(275px, 51vh, 520px); min-width: 0; overflow-y: auto; padding: 20px clamp(18px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
.chat-start { align-self: center; text-align: center; margin: auto 0; padding-block: 16px; max-width: 480px; }
.chat-mark { width: 76px; height: 68px; margin-bottom: 10px; }
.chat-start h1 { font-size: clamp(27px, 3vw, 37px); letter-spacing: -.037em; line-height: 1.12; font-weight: 650; }
.chat-start p { color: var(--ink-soft); margin-top: 9px; font-size: 14px; }
.chat-starters { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.chat-message { display: flex; gap: 8px; max-width: min(78%, 630px); font-size: 14px; }
.chat-message strong { font-size: 13px; font-weight: 600; }
.chat-message p { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user { align-self: end; padding: 10px 13px; border-radius: var(--control-radius); background: var(--fill); }
.message-mark { width: 25px; height: 25px; }
.composer { margin: 0 clamp(12px, 3vw, 28px); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 11px; background: var(--field); }
.composer textarea { width: 100%; border: 0; padding: 6px 8px; min-height: 47px; resize: vertical; font-size: 14px; background: transparent; }
.composer textarea:focus { outline-offset: 0; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.send-message { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 20px; }
.send-message:hover:not(:disabled) { background: #373737; }
.chat-caption { padding: 7px 20px 12px; text-align: center; font-size: 11px; color: var(--ink-soft); }
.studio-materials { min-width: 0; display: flex; flex-direction: column; padding: 17px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.studio-materials .panel-head h2 { font-size: 17px; font-weight: 600; }
.studio-material-list { flex: 1; max-height: 46vh; overflow: auto; font-size: 13px; }
.material-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 54px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.material-row strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.material-row small { display: block; color: var(--ink-soft); margin-top: 2px; }
.material-thumb { width: 36px; height: 36px; display: grid; place-items: center; background: var(--fill); border-radius: 8px; overflow: hidden; }
.material-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-next { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 12px; }
.studio-next h3 { font-size: 14px; font-weight: 600; }
.studio-next p { color: var(--ink-soft); font-size: 13px; margin: 4px 0 11px; }
.studio-next .btn { width: 100%; font-size: 14px; }
.drop-layer { position: absolute; z-index: 2; inset: 0; pointer-events: none; display: grid; place-items: center; background: rgb(255 255 255 / .90); border: 2px dashed #8a8a8a; border-radius: var(--radius); }

/* The native library pattern translated to a navigable plane */
/* Compositions in the manual use the identity of the selected brand. */
.chapter-group { color: var(--ink-soft); font-size: 11px; font-weight: 600; padding: 8px 9px 3px; }
.book.rise { font-family: 'Rise Archivo', var(--font); }
.book.rise button { font-family: inherit; }
.book.rise .book-cover h2 { font-weight: 800; }
.book-block { min-height: 180px; display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 30px); }
.book-block.feature-block { min-height: 226px; justify-content: center; background: #f5f5f5; }
.book-copy { display: flex; flex-direction: column; gap: 4px; }
.book-section-label { color: var(--ink-soft); font-size: 11px; }
.book-section-title { font-size: clamp(21px, 2.25vw, 30px); font-weight: 800; letter-spacing: -.027em; line-height: 1.13; }
.book-section-text { color: var(--ink-soft); font-size: 14px; max-width: 52ch; }
.book-folio { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid #e7e5e3; color: var(--ink-soft); font-size: 10px; }
.book-block.layout-columns .book-folio { grid-column: 1 / -1; }
.book-contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 17px; font-size: 13px; }
.book-contents span { padding: 8px 0; border-bottom: 1px solid #e7e5e3; }
.book-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(65px, 1fr)); gap: 6px; text-align: left; }
.book-colors i, .book-colors small { display: block; }
.book-colors i { height: 44px; border-radius: 7px; border: 1px solid #0002; }
.book-colors small { color: var(--ink-soft); margin-top: 3px; font-size: 10px; }
.type-sample { display: flex; gap: 16px; align-items: center; font-size: 17px; }
.type-sample b { font-size: clamp(38px, 6vw, 65px); line-height: 1; font-weight: 800; }
.type-sample small { color: var(--ink-soft); font-size: 12px; }
.logo-example { background: #101522; border-radius: 12px; padding: 17px; display: grid; place-items: center; min-height: 80px; }
.logo-example img { width: 116px; }
.book-image { display: block; overflow: hidden; border-radius: 13px; }
.book-image img { width: 100%; max-height: 190px; object-fit: cover; }
@media (min-width: 981px) {
  .editor { height: clamp(565px, calc(100dvh - 183px), 900px); min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .stage, .outline, .inspector { overflow-y: auto; }
}
@media (max-width: 980px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .studio-materials { min-height: 185px; }
  .editor { grid-template-columns: minmax(0, 1fr); }
  .outline { border: 0; border-bottom: 1px solid var(--line); }
  .inspector { border: 0; border-top: 1px solid var(--line); }
  #chapters { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
  .chapter { width: auto; }
  .add-block { width: auto; }
  .chapter-group { padding-block: 5px; }
}
@media (max-width: 690px) {
  .chat-context { padding: 12px 14px; }
  .chat-message { max-width: 90%; }
  .conversation { min-height: 0; }
  .chat-scroll { min-height: 270px; }
}
.contrast-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contrast-example { display: flex; justify-content: space-between; align-items: center; padding: 13px; border-radius: 12px; }
.contrast-example b { font-size: 25px; line-height: 1; }
.contrast-example small { font-size: 12px; }
.asset-detail-preview { width: 100%; max-height: 51dvh; object-fit: contain; background: var(--fill); border-radius: 13px; }
.reading-book { width: 100%; max-width: 990px; }
.reading-book .book-cover { min-height: clamp(255px, 34vw, 475px); }
.reading-book .book-cover h2 { font-size: clamp(35px, 5vw, 66px); }
.reading-book .book-block { min-height: clamp(195px, 32vw, 345px); }
.reading-book .book-block:hover { background: var(--surface); }
.reading-book .book-block.feature-block:hover { background: var(--fill); }
.reading-book .book-image img { max-height: 320px; }

/* Queep Mac chrome */
.app { min-height: 100dvh; padding: 12px var(--margin) 40px; }
[data-embed] { --margin: clamp(12px, 3vw, 32px); }
[data-embed] .app { padding-bottom: 18px; }
[data-embed="gallery"] .gallery-viewport { min-height: 340px; }
[data-embed="gallery"] .asset-media:has(img.contain) { background: #f7f5f2; }
.library-header { position: sticky; top: 12px; z-index: 5; margin-bottom: 16px; container-type: inline-size; }
.topbar {
  position: relative; display: grid; align-items: center; gap: 12px; padding: var(--inset);
  grid-template-columns: auto auto minmax(180px, 1fr) auto auto;
  grid-template-areas: 'brand tabs search things profile';
  min-height: 52px; border-radius: calc(var(--compact-radius) + var(--inset));
  background: var(--surface); box-shadow: inset 0 0 0 1px #e7e5e3cc, var(--float-shadow);
}
.topbar:has(.agency-switch) {
  grid-template-columns: auto auto auto minmax(180px, 1fr) auto auto;
  grid-template-areas: 'brand context tabs search things profile';
}
.topbar > .wordmark { grid-area: brand; margin: 0; }
.topbar > .agency-switch { grid-area: context; min-width: 0; max-width: 160px; }
.topbar > .agency-switch > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.topbar > .queep-tabs { grid-area: tabs; min-width: 0; }
.topbar > .search { grid-area: search; min-width: 0; }
.topbar > .things { grid-area: things; }
.topbar > .profile { grid-area: profile; }
.wordmark { display: inline-flex; align-items: center; flex: none; gap: 6.12px; padding: 0 8px; font-size: 18.36px; font-weight: 700; letter-spacing: -.51px; white-space: nowrap; }
.product-mark { display: inline-block; width: 24.82px; height: 24.11px; flex: none; vertical-align: middle; background: currentColor; mask: url('assets/icons/QueepMark.svg') center / contain no-repeat; }
.chat-mark { width: 76px; height: 74px; }
.message-mark { width: 25px; height: 24px; }
.queep-tabs { display: flex; flex: none; gap: 2px; }
.queep-tabs a, .chrome-action, .search {
  height: var(--compact); border: 0; border-radius: var(--compact-radius); display: flex; align-items: center;
}
.queep-tabs a { gap: 8px; padding: 0 16px; font-size: 14px; transition: background-color .25s var(--motion-release); white-space: nowrap; }
.queep-tabs a[aria-current=page] { background-color: var(--fill); }
.count-badge {
  display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding-inline: 6px;
  border-radius: var(--control-radius); box-shadow: inset 0 0 0 1px var(--fill);
  background: var(--fill); color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums;
}
.queep-tabs a[aria-current=page] .count-badge { background: var(--surface); }
.search { flex: 1; min-width: 180px; padding: 0 12px; gap: 10px; background: var(--fill); }
.search-entry { display: grid; min-width: 0; flex: 1; align-items: center; }
.search-entry > * { grid-area: 1 / 1; }
.search input { border: none; padding: 0; height: 40px; min-width: 0; width: 100%; background: transparent; font-size: 14px; caret-color: var(--focus); }
.search input:focus { outline: none; }
.search-hint {
  width: fit-content; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  pointer-events: none; font-size: 13px; color: var(--ink-soft);
  background: linear-gradient(90deg, var(--ink-soft), #cfcfcf 49%, #9c9c9c);
  background-clip: text; -webkit-text-fill-color: transparent;
}
.search.has-search-text .search-hint { visibility: hidden; }
.search-accessories { display: flex; flex: none; align-items: center; gap: 12px; }
.chrome-icon {
  position: relative; display: grid; place-items: center; width: 20px; height: 28px; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
}
.filter-trigger.is-filtered::after { content: ''; width: 8px; height: 8px; position: absolute; top: 2px; right: -3px; background: var(--forest); border: 1.5px solid white; border-radius: 50%; }
.chrome-action { flex: none; gap: 6px; justify-content: center; padding: 0 16px; background: var(--fill); font-size: 14px; white-space: nowrap; }
.profile { width: var(--compact); padding: 0; }
.profile .glyph { width: 22.8px; height: 22.8px; }
.queep-tabs a, .chrome-action, .chrome-icon {
  position: relative; isolation: isolate;
}
.queep-tabs a::before, .chrome-action::before, .chrome-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: #000; opacity: 0; z-index: -1; transition: opacity .12s ease-out;
}
.queep-tabs a:is(:hover, :active)::before, .chrome-action:is(:hover, :active, [aria-expanded=true])::before,
.chrome-icon:is(:hover, :active, [aria-expanded=true])::before { opacity: .035; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.search-chips button {
  display: flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px;
  border: 0; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--fill-pressed);
}
.search-chips .glyph { width: 14px; height: 14px; }

.glyph { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; mask: var(--glyph) center / contain no-repeat; }
.glyph-search { --glyph: url('assets/icons/ri-search-ai-line.svg'); }
.glyph-focus { --glyph: url('assets/icons/ri-focus-mode.svg'); }
.glyph-folder { --glyph: url('assets/icons/ri-folder-add-line.svg'); }
.glyph-project { --glyph: url('assets/icons/ri-folder-line.svg'); }
.glyph-gallery { --glyph: url('assets/icons/ri-gallery-line.svg'); }
.glyph-image { --glyph: url('assets/icons/ri-image-line.svg'); }
.glyph-book { --glyph: url('assets/icons/ri-book-open-line.svg'); }
.glyph-add { --glyph: url('assets/icons/ri-add-line.svg'); }
.glyph-minus { --glyph: url('assets/icons/ri-subtract-line.svg'); }
.glyph-account { --glyph: url('assets/icons/ri-user-5-fill.svg'); }
.glyph-link { --glyph: url('assets/icons/ri-link.svg'); }
.glyph-note { --glyph: url('assets/icons/ri-sticky-note-line.svg'); }
.glyph-hashtag { --glyph: url('assets/icons/ri-hashtag.svg'); }
.glyph-check { --glyph: url('assets/icons/ri-check-line.svg'); }
.glyph-refresh { --glyph: url('assets/icons/ri-refresh-line.svg'); }
.glyph-close { --glyph: url('assets/icons/ri-close-line.svg'); }
.glyph-back { --glyph: url('assets/icons/ri-arrow-left-s-line.svg'); }
.glyph-next { --glyph: url('assets/icons/ri-arrow-right-s-line.svg'); }
.glyph-plane { --glyph: url('assets/icons/layout-infinite.svg'); }
.glyph-masonry { --glyph: url('assets/icons/ri-layout-masonry-line.svg'); }
.glyph-list { --glyph: url('assets/icons/layout-list.svg'); }
.glyph-file { --glyph: url('assets/icons/ri-file-list-3-line.svg'); }
.glyph-video { --glyph: url('assets/icons/ri-video-line.svg'); }
.glyph-development { --glyph: url('assets/icons/hammer.png'); width: 18px; height: 18px; }
.icon-tile { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--control-radius); background: var(--fill); }
.icon-tile .glyph { width: 18px; height: 18px; }

.queep-popover {
  position: absolute; z-index: 2; top: calc(100% + 2px); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px rgb(0 0 0 / .08);
  animation: menu-show .22s var(--motion-release) both; transform-origin: top right;
}
@keyframes menu-show { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.things-popover { width: 232px; right: 58px; padding: 6px; display: grid; gap: 2px; }
.things-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 4px; text-align: left;
  font-size: 16px; border: 0; border-radius: var(--control-radius); background: transparent;
}
.things-row:hover:not(:disabled), .things-row:focus-visible { background: #f8f8f8; }
.things-row .icon-tile { width: 40px; height: 40px; }
.filter-popover { width: 164px; right: var(--filter-inset, 217px); padding: 5px; border-radius: 9px; box-shadow: 0 7px 20px #0002; }
.filter-row {
  display: flex; align-items: center; gap: 5px; width: 100%; min-height: 25px; padding: 2px 7px; border: 0;
  background: transparent; border-radius: 5px; text-align: left; font-size: 13px;
}
.filter-row .glyph { width: 13px; height: 13px; }
.filter-row[aria-pressed=false] .glyph { visibility: hidden; }
.filter-row:is(:hover, :focus-visible) { color: #fff; background: var(--focus); outline: 0; }
.filter-refresh { margin-top: 5px; border-top: 1px solid var(--line); }
.back-control { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--fill); font-size: 14px; min-height: 40px; padding: 0 14px 0 9px; border-radius: var(--compact-radius); margin-bottom: 18px; transition: background .15s ease-out; }
.back-control:hover { background: var(--fill-pressed); }

/* Spaces and Gallery */
.local-label { display: flex; align-items: center; gap: 8px; margin: 0 0 18px 4px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.library-actions { margin-bottom: 20px; }
.library-actions .btn { min-height: var(--control); }
.spaces-grid, .asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--gap); align-items: start; }
.space-card, .asset { display: block; width: 100%; min-width: 0; padding: 0; background: transparent; border: 0; text-align: left; }
.mosaic {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 3px; aspect-ratio: 1.08; border-radius: var(--radius); overflow: hidden;
}
.mosaic > :first-child { grid-row: span 2; }
.mosaic-cell { overflow: hidden; background: var(--fill); min-width: 0; }
.mosaic-cell img, .asset-media :is(img, video) { width: 100%; height: 100%; object-fit: cover; }
.mosaic-cell img.mosaic-logo, .asset-media img.contain { object-fit: contain; background: #101522; padding: 14%; }
.space-meta { display: grid; gap: 3px; margin-top: 12px; }
.space-meta strong { font-size: 18px; font-weight: 600; line-height: 1.22; overflow-wrap: anywhere; }
.space-meta small { display: flex; gap: 12px; color: var(--ink-soft); font-size: 13px; }
.gallery-toolbar {
  display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 12px; margin-bottom: 16px;
}
.gallery-context { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.gallery-context strong { font-size: 18px; font-weight: 600; }
.gallery-context span { color: var(--ink-soft); font-size: 13px; }
.layout-switch, .gallery-zoom {
  display: flex; align-items: center; padding: 4px; background: var(--surface); border-radius: 14px;
  box-shadow: inset 0 0 0 1px #e7e5e3cc, var(--float-shadow);
}
.layout-switch { gap: 2px; }
.layout-switch button, .gallery-zoom button {
  display: grid; place-items: center; border: 0; border-radius: 10px; padding: 0; background: transparent;
  transition: background-color .12s ease-out;
}
.layout-switch button { width: 36px; height: 32px; color: var(--ink-soft); }
.layout-switch button[aria-pressed=true] { background: var(--fill); color: var(--ink); }
.layout-switch button:hover, .gallery-zoom button:hover:not(:disabled) { background: var(--fill); }
.layout-switch button:active, .gallery-zoom button:active:not(:disabled) { background: var(--fill-pressed); }
.layout-switch .glyph { width: 17px; height: 17px; }
.gallery-stage { position: relative; }
.gallery-viewport {
  position: relative; overflow: hidden; height: max(400px, calc(100dvh - 148px));
  cursor: grab; touch-action: none;
}
.gallery-viewport.is-panning, .gallery-viewport.is-panning * { cursor: grabbing; user-select: none; }
.gallery-field { position: absolute; inset: 0 auto auto 0; width: 100%; transform-origin: top left; }
.gallery-field .asset { position: absolute; width: var(--column-width, 264px); }
.gallery-field.is-easing { transition: transform .28s var(--motion-release); }
.gallery-zoom { position: fixed; z-index: 2; right: var(--margin); bottom: 16px; }
.gallery-zoom button { width: 28px; height: 28px; font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.gallery-zoom #gallery-scale { width: 42px; }
.gallery-zoom .glyph { width: 15px; height: 15px; }
.asset { position: relative; }
.asset-media {
  display: grid; overflow: hidden; border-radius: var(--radius); background: var(--fill);
  aspect-ratio: var(--asset-aspect, 1); transition: opacity .15s ease-out, transform .12s ease-out;
}
.asset-media :is(img, video) { min-height: 0; }
.asset:hover .asset-media { opacity: .94; }
.asset:active .asset-media { transform: scale(.985); }
.gallery-viewport.is-panning .asset-media { opacity: 1; transform: none; }
.asset-content { display: grid; align-content: start; gap: 8px; padding: 18px; overflow: hidden; overflow-wrap: anywhere; }
.asset-content small { color: var(--ink-soft); }
.asset-info { display: none; }
.gallery-group + .gallery-group { margin-top: 36px; }
.gallery-group h1 { margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.gallery-group .asset-info { display: grid; gap: 2px; margin-top: 8px; font-size: 13px; }
.gallery-group .asset-info small { color: var(--ink-soft); }
.reference-table { font-size: 13px; }
.reference-table-head, .reference-table .asset { display: grid; grid-template-columns: 52px minmax(130px, 2fr) minmax(86px, 1fr); align-items: center; gap: 12px; min-height: 46px; padding: 5px 8px; }
.reference-table-head { border-bottom: 1px solid var(--line-strong); min-height: 32px; color: var(--ink-soft); }
.reference-table .asset:nth-child(odd) { background: var(--field); }
.reference-table .asset:hover { background: var(--fill); border-radius: 8px; }
.reference-table .asset-media { width: 42px; height: 36px; border-radius: 6px; }
.reference-table .asset-media img.contain { padding: 4px; }
.reference-table .asset-content { padding: 8px 11px; }
.reference-table .asset-content :is(strong, small) { display: none; }
.reference-table .asset-info { display: contents; }
.reference-table .asset-info strong { font-weight: 500; overflow-wrap: anywhere; }
.reference-table .asset-info small { justify-self: start; border-radius: 999px; padding: 3px 8px; background: var(--fill); font-size: 12px; }
.library-empty { margin: 70px auto; text-align: center; display: grid; justify-items: center; gap: 12px; }
.library-empty h1 { font-size: 22px; font-weight: 600; }

/* Queep sheets and fields */
.queep-dialog {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px;
  border: 0; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 0 0 .5px #0004, 0 16px 30px rgb(0 0 0 / .24);
}
.queep-dialog[open] { animation: sheet-show .25s var(--motion-release) both; }
.queep-dialog::backdrop { background: rgb(170 170 170 / .60); animation: backdrop-show .20s ease-out both; }
@keyframes sheet-show { from { opacity: 0; transform: translateY(9px) scale(.985); } }
@keyframes backdrop-show { from { opacity: 0; } }
.queep-dialog.is-closing { animation: sheet-hide .15s ease-out both; }
.queep-dialog.is-closing::backdrop { animation: backdrop-hide .15s ease-out both; }
@keyframes sheet-hide { to { opacity: 0; transform: translateY(5px) scale(.99); } }
@keyframes backdrop-hide { to { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 22px; font-weight: 600; line-height: 1.22; }
.project-sheet { inset-block-end: 40px; }
.project-sheet form { min-height: 252px; display: flex; flex-direction: column; }
.project-sheet .sheet-head { margin-bottom: 20px; }
.sheet-field { display: grid; gap: 7px; }
.sheet-field + .sheet-field { margin-top: 14px; }
.sheet-field label, .sheet-field p { font-size: 12px; line-height: 1.25; }
.sheet-field p, .sheet-description { color: var(--ink-soft); }
.sheet-field input, .sheet-field textarea, .sheet .field :is(input, select, textarea), .settings-section select {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: var(--control-radius); background: var(--surface); font-size: 15px;
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.sheet-field textarea { min-height: 82px; padding-block: 10px; resize: vertical; }
.sheet-field :is(input, textarea):focus, .sheet .field :is(input, select, textarea):focus, .settings-section select:focus {
  outline: 0; border-color: var(--sage); box-shadow: inset 0 0 0 .5px var(--sage);
}
.sheet-field input { caret-color: var(--focus); }
.sheet-field input::placeholder { color: #48484880; }
.sheet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.sheet-actions.single { grid-template-columns: 1fr; }
.sheet-actions .btn { width: 100%; padding-inline: 9px; }
.project-sheet .sheet-actions { margin-top: auto; padding-top: 16px; }
.sheet-description { margin: 14px 0 18px; font-size: 14px; }
.quick-sheet .sheet-head { margin-bottom: 20px; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-heading h2 { font-size: 32px; font-weight: 600; letter-spacing: -.8px; }
.sheet-close { width: 40px; padding: 0; }
.account-sheet { width: min(560px, calc(100vw - 32px)); min-height: min(600px, calc(100dvh - 32px)); }
.settings-profile {
  display: flex; align-items: center; gap: 16px; background: var(--fill);
  border-radius: var(--radius); padding: 16px; margin-top: 28px;
}
.settings-profile strong, .settings-profile small { display: block; }
.settings-profile strong { font-size: 20px; font-weight: 600; }
.settings-profile small { color: var(--ink-soft); font-size: 14px; }
.settings-avatar { display: grid; place-items: center; width: 60px; height: 60px; background: var(--surface); border-radius: var(--radius); }
.settings-avatar .glyph { width: 34px; height: 34px; }
.settings-section { margin-top: 28px; }
.settings-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.settings-group { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.settings-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 4px;
  border: 0; border-radius: var(--control-radius); background: transparent; text-align: left; font-size: 15px;
}
.settings-row:hover { background: var(--field); }
.settings-row > .glyph { margin-left: auto; color: var(--ink-soft); }
.settings-row .icon-tile { width: 38px; height: 38px; }
dialog.asset-sheet {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 22px 28px 20px; border-radius: 0; box-shadow: none;
}
.asset-sheet[open] { display: flex; flex-direction: column; animation: backdrop-show .15s ease-out both; }
.asset-sheet.is-closing { animation: sheet-hide .15s ease-out both; }
.asset-sheet::backdrop { background: transparent; animation: none; }
.asset-detail-nav { position: absolute; top: 22px; left: 28px; right: 28px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; pointer-events: none; }
.detail-pill {
  display: inline-flex; align-items: center; height: 36px; padding-inline: 11px; gap: 5px;
  border: 0; background: var(--fill); border-radius: 12px; font-size: 14px; pointer-events: auto;
  transition: background-color .12s ease-out;
}
.detail-pill:hover:not(:disabled) { background: var(--fill-pressed); }
.detail-pill .glyph { width: 17px; height: 17px; }
.asset-detail-head { width: min(100% - 170px, 760px); margin: 0 auto; }
.asset-detail-head h2 { font-size: 24px; font-weight: 600; overflow-wrap: anywhere; }
.asset-detail-source { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; color: var(--ink-soft); font-size: 13px; }
.asset-detail-source .btn { min-height: 40px; border-radius: var(--compact-radius); }
.asset-detail-media {
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); align-items: center; justify-items: center; min-height: 0; flex: 1; margin-top: 22px;
}
.asset-detail-preview { display: block; width: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius); object-fit: contain; background: var(--fill); }
.asset-detail-media.on-dark .asset-detail-preview { padding: 24px; background: #101522; }
.note-detail, .detail-placeholder { width: min(100%, 550px); padding: 24px; background: var(--fill); border-radius: var(--radius); white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-placeholder { display: grid; justify-items: center; gap: 12px; }
.capture-sheet { width: min(860px, calc(100vw - 32px)); }
.capture-preview { position: relative; width: fit-content; margin: auto; cursor: crosshair; touch-action: none; }
.capture-preview img { width: auto; max-height: 56dvh; user-select: none; -webkit-user-drag: none; }
.capture-preview span { position: absolute; pointer-events: none; border: 2px solid var(--sage); box-shadow: 0 0 0 1px #0009; }

@media (max-width: 1378px) {  .topbar { gap: 6px; } }
@media (max-width: 900px) {
  .filter-popover { --filter-inset: 6px; }
}
@media (max-width: 690px) {
  .app { padding-top: 8px; }
  .library-header { top: 8px; }
  .queep-tabs { flex: 1; }
  .queep-tabs a { justify-content: center; flex: 1; padding: 0 9px; }
  .things { width: 40px; padding: 0; }
  .things .glyph + span { position: absolute; clip-path: inset(50%); white-space: nowrap; }
  .spaces-grid, .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  dialog.asset-sheet { padding: 16px; }
  .asset-detail-nav { position: static; margin-bottom: 16px; }
  .asset-detail-head { width: 100%; }
  .project-sheet { inset-block-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, *::backdrop { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Campaigns inside the active brand */
.campaign-area { margin-top: 27px; }
.campaign-area .page-head { align-items: center; }
.campaign-area .page-head h1 { font-size: 32px; letter-spacing: -.8px; }
.campaign-area .page-head p { font-size: 14px; }
.network-navigation { display: flex; align-items: center; margin-block: 18px 24px; }
.network-navigation .segment { background: var(--fill); }
.network-navigation .segment button { display: flex; align-items: center; gap: 7px; height: 36px; white-space: nowrap; }
.network-navigation .segment button[aria-pressed=true] { background: var(--surface); }
.network-navigation .segment button:hover { background: var(--surface); }
.network-navigation .count-badge { height: 20px; min-height: 20px; min-width: 20px; font-size: 11px; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
.campaign-card { display: grid; gap: 12px; align-content: start; min-width: 0; border-radius: var(--radius); }
.campaign-cover {
  display: grid; position: relative; overflow: hidden; isolation: isolate; align-items: end; aspect-ratio: 1.38;
  border-radius: var(--radius); color: #fff; background: #17191f; transition: opacity .15s ease-out;
}
.campaign-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#090d19ee,#0709131c 90%); z-index: -1; }
.campaign-cover img { width: 100%; }
.campaign-cover > img { position: absolute; z-index: -2; inset: 0; height: 100%; object-fit: cover; }
.campaign-cover.performance::before { background: linear-gradient(105deg, #070a14ed 5%, #05091651 90%); }
.campaign-cover.product::before { background: linear-gradient(0deg, #070a11f7 7%, #06091316 100%); }
.campaign-cover.event::before { background: linear-gradient(132deg, #16283fd9 5%, #283d6a44 72%), linear-gradient(0deg,#101422f5,#1014220a 90%); }
.campaign-cover.event > img { object-position: 92% 45%; transform: scale(1.44); }
.campaign-cover.sample { background: var(--fill-pressed); color: var(--ink); }
.campaign-cover.sample::before { display: none; }
.campaign-cover-content { display: grid; gap: 18px; padding: clamp(14px, 2.2vw, 30px); width: min(100%, 380px); }
.campaign-cover-content .rise-word { width: 67px; }
.campaign-cover.sample .rise-word { padding: 6px; background: #13151b; border-radius: 5px; }
.campaign-cover-content > strong:last-child { font-size: clamp(21px, 2.55vw, 38px); line-height: 1.02; letter-spacing: -.045em; overflow-wrap: anywhere; }
.campaign-cover:not(.sample) .campaign-cover-content > strong:last-child { font-family: 'Rise Archivo', var(--font); font-weight: 800; }
.campaign-card:hover .campaign-cover { opacity: .94; }
.campaign-card-meta { display: grid; gap: 3px; }
.campaign-card-meta strong { font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.campaign-card-meta small { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ink-soft); font-size: 13px; }
.campaign-detail { display: grid; grid-template-columns: minmax(0,1.16fr) minmax(0,1fr); gap: var(--gap); }
.campaign-hero { aspect-ratio: 1.49; }
.campaign-hero .campaign-cover-content { padding: clamp(18px, 3vw, 48px); }
.campaign-brief .panel-head h2 { font-size: 18px; margin: 0; }
.campaign-brief > p { margin-bottom: 12px; }
.campaign-rule { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-block: 10px; }
.campaign-rule strong, .campaign-rule small { display: block; font-size: 13px; }
.campaign-rule small { color: var(--ink-soft); }
.color-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12px; flex: none; }
.color-tag i { display: inline-block; width: 15px; height: 15px; border-radius: 4px; background: var(--swatch); border: 1px solid #0001; }
.deliveries-section { margin-top: 28px; }
.deliveries-section h2 { margin-bottom: 9px; font-size: 19px; font-weight: 600; }
.delivery-list { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.delivery-row {
  display: grid; grid-template-columns: 40px minmax(0,1fr) auto 16px; align-items: center; gap: 12px;
  width: 100%; min-height: 62px; border: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; background: var(--surface); text-align: left;
  transition: background-color .15s ease-out;
}
.delivery-row:last-child { border-bottom: 0; }
.delivery-row:hover { background: var(--field); }
.delivery-row:focus-visible { outline-offset: -4px; }
.delivery-row > .glyph { width: 16px; height: 16px; color: var(--ink-soft); }
.delivery-swatch { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #0001; border-radius: 12px; background: color-mix(in srgb, var(--swatch) 22%, var(--surface)); }
.delivery-swatch .glyph { width: 17px; height: 17px; }
.delivery-name { display: grid; gap: 1px; overflow-wrap: anywhere; }
.delivery-name strong { font-size: 14px; font-weight: 600; }
.delivery-name small { color: var(--ink-soft); font-size: 12px; }
.pill.review { color: #923d24; background: #f9eae4; }
.network-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.network-totals > div { display: grid; gap: 2px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.network-totals strong { font-size: 30px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.network-totals span { color: var(--ink-soft); font-size: 13px; }
.network-totals .has-deviation strong { color: #923d24; }
.network-alert { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); margin-block: 18px; }
.network-alert .icon-tile { color: #923d24; background: #f9eae4; }
.network-alert strong { font-weight: 600; }
.network-alert p { font-size: 13px; color: var(--ink-soft); }
.network-alert .btn { margin-left: auto; white-space: nowrap; min-height: 40px; font-size: 14px; }
.delivery-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; margin-bottom: 10px; font-size: 13px; }
.delivery-controls label { color: var(--ink-soft); }
.delivery-controls select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: var(--compact-radius); background: var(--surface); }
.delivery-controls [aria-pressed=true] { background: var(--fill-pressed); }
.network-empty { padding: 30px 16px; background: var(--fill); border-radius: var(--radius); text-align: center; color: var(--ink-soft); font-size: 14px; }
.campaign-sheet, .delivery-sheet { width: min(550px, calc(100vw - 32px)); }
.campaign-form { display: grid; gap: 10px; margin-top: 15px; }
.campaign-form > p { font-size: 13px; margin: 0; }
.campaign-form .sheet-field { margin: 0; }
.sheet-field select { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--control-radius); background: var(--surface); font-size: 15px; }
.sheet-field.receipt-file input { padding: 9px; min-height: 44px; font-size: 13px; }
.form-error { color: #923d24; }
.form-error:empty { display: none; }
.delivery-example { display: grid; align-content: space-between; gap: 12px; padding: 20px; min-height: 132px; color: white; font-size: 20px; font-weight: 650; border-radius: var(--radius); background: linear-gradient(120deg,#090e1a,var(--swatch)); }
.delivery-artifact { max-height: 34vh; width: 100%; object-fit: contain; border-radius: var(--radius); background: var(--fill); }
.glyph-flag { --glyph: url('assets/icons/ri-notification-3-line.svg'); }

.overview-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.overview-filters select { max-width: 100%; min-height: var(--compact); padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--compact-radius); background: var(--surface); font-size: 13px; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--gap); }
.overview-metric { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 15px 17px 17px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: background-color .18s var(--motion-release); }
.overview-metric:hover, .overview-unit:hover { background: var(--fill); }
.overview-metric-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.overview-metric-head .icon-tile { width: 36px; height: 36px; }
.overview-metric-head > .glyph, .overview-unit > .glyph { width: 15px; height: 15px; color: var(--ink-soft); }
.overview-metric > strong { font-size: clamp(23px, 3vw, 34px); font-weight: 620; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.overview-metric > span:not(.overview-metric-head) { margin-top: 4px; font-size: 14px; font-weight: 600; }
.overview-metric small, .overview-unit small { color: var(--ink-soft); font-size: 12px; }
.overview-metric.has-deviation > strong { color: #923d24; }
.overview-metric.has-deviation .icon-tile, .overview-alert .icon-tile { background: #f9eae4; color: #923d24; }
.overview-summary { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; margin-block: 12px 22px; }
.overview-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: var(--gap); }
.overview-panel { min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 15px; }
.overview-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; min-height: 29px; }
.overview-panel-head h2 { font-size: 17px; font-weight: 620; letter-spacing: -.23px; }
.overview-alert { display: grid; gap: 11px; padding: 15px; background: var(--fill); border-radius: var(--control-radius); }
.overview-alert-main { display: flex; align-items: start; gap: 11px; }
.overview-alert h3 { margin-top: 5px; font-size: 15px; font-weight: 650; }
.overview-alert p { color: var(--ink-soft); font-size: 13px; }
.overview-alert .btn { justify-self: start; background: var(--surface); }
.overview-unit-list { border: 1px solid var(--line-strong); border-radius: var(--control-radius); }
.overview-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 9px 11px; border: 0; background: var(--surface); text-align: left; }
.overview-unit:first-child { border-radius: var(--control-radius) var(--control-radius) 0 0; }
.overview-unit:last-child { border-radius: 0 0 var(--control-radius) var(--control-radius); }
.overview-unit:only-child { border-radius: var(--control-radius); }
.overview-unit + .overview-unit { border-top: 1px solid var(--line-strong); }
.overview-unit > span:first-child { display: grid; gap: 2px; }
.overview-unit strong, .overview-agencies strong { font-size: 14px; font-weight: 600; }
.overview-unit .pill { white-space: normal; text-align: center; }
.overview-campaigns { margin-top: var(--gap); }
.overview-sheet { width: min(620px, calc(100vw - 32px)); }
.overview-sheet .delivery-list, .overview-sheet .overview-unit-list { margin-top: 12px; }
.overview-sheet-count, .overview-generations { margin-top: 10px; padding: 9px 12px; border-radius: var(--compact-radius); background: var(--fill); font-size: 13px; }
.overview-generations summary { cursor: pointer; font-weight: 550; }
.overview-generations ul { margin-bottom: 4px; padding-left: 19px; }
.overview-agencies { list-style: none; padding: 0; }
.overview-agencies li { display: grid; gap: 2px; border-radius: var(--control-radius); background: var(--fill); padding: 12px; }
.overview-agencies small { color: var(--ink-soft); font-size: 13px; }

.format-sheet { width: min(840px, calc(100vw - 32px)); }
.format-review { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: start; gap: var(--gap); margin-top: 19px; }
.format-review figure { margin: 0; }
.format-review figcaption { padding: 8px 1px 0; font-size: 12px; color: var(--ink-soft); }
.format-art { aspect-ratio: 1; overflow: hidden; position: relative; display: grid; align-items: end; isolation: isolate; border-radius: var(--control-radius); background: #21422f; color: #fff; }
.format-art img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.format-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, #193e28 0%, #193e28bf 36%, #193e2800 75%); }
.format-art-copy { display: grid; gap: 10px; padding: clamp(14px, 3vw, 28px); }
.format-art-copy b { font-size: 15px; }
.format-art-copy strong { font-size: clamp(30px, 5vw, 53px); line-height: .98; letter-spacing: -.065em; }
.format-art-copy span { font-size: 13px; }
.format-review-status { margin-bottom: 8px; }
.format-review-body h3 { margin-bottom: 4px; font-size: 15px; font-weight: 650; }
.format-review-body p { font-size: 13px; }
.format-finding { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-block: 12px; }
.format-finding > div, .format-history { padding: 10px; border-radius: var(--compact-radius); background: var(--fill); }
.format-finding dt { font-size: 12px; color: var(--ink-soft); }
.format-finding dd { margin: 4px 0 0; font-size: 13px; font-weight: 600; }
.format-history p + p { margin-top: 8px; }
.format-review .sheet-field textarea { min-height: 64px; font-size: 13px; }
.format-review-actions, .format-close { display: flex; justify-content: end; gap: 8px; }
.format-review-actions { margin-top: 10px; flex-wrap: wrap; }
.format-close { margin-top: 11px; }
.format-art.format-art-portrait { aspect-ratio: 4 / 5; }
.overview-panel-description { margin: -3px 0 12px; color: var(--ink-soft); font-size: 13px; }
.overview-attention-list { display: grid; gap: 10px; }
.overview-coverage { margin-top: 12px; color: var(--ink-soft); font-size: 12px; }
.overview-agencies { display: grid; gap: 8px; }
.unit-test-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; font-size: 13px; color: var(--ink-soft); }
.unit-workflow { margin-bottom: 20px; }
.unit-workflow > .panel-head h2 { font-size: 15px; }
.workflow-task { display: grid; justify-items: start; gap: 9px; padding: 15px; border: 1px solid var(--line-strong); border-radius: var(--control-radius); background: var(--surface); margin-top: 10px; }
.workflow-task h3 { font-size: 15px; font-weight: 600; }
.workflow-task p, .workflow-task small { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.format-review-body > .btn { margin-top: 12px; }
.workflow-history { margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line-strong); font-size: 13px; }
.workflow-history summary, .workflow-original summary { cursor: pointer; font-size: 13px; font-weight: 550; }
.workflow-history ol { list-style: none; padding: 0; margin: 12px 0 0; }
.workflow-history li { display: grid; gap: 3px; padding: 0 0 12px 12px; border-left: 1px solid var(--line-strong); }
.workflow-history small { color: var(--ink-soft); font-size: 11px; }
.workflow-history strong { font-size: 12px; font-weight: 600; }
.workflow-history li p { overflow-wrap: anywhere; font-size: 12px; }
.workflow-original { margin-top: 10px; }
.workflow-original .format-art { width: 150px; margin-top: 10px; }
.workflow-original .format-art-copy strong { font-size: 25px; }
.workflow-error { color: #923d24; margin-top: 6px; }
.workflow-error:empty { display: none; }
.format-review-body .sheet-field { margin-top: 12px; }

@media (max-width: 860px) {
  .overview-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
}
@media (max-width: 690px) {
  .overview-area .page-head { flex-direction: column; align-items: start; }
  .overview-panels, .format-review { grid-template-columns: minmax(0,1fr); }
  .format-review figure { width: min(100%, 340px); }
  .overview-metric { padding: 11px 12px; }
  .overview-metric-head { margin-bottom: 5px; }
}
@media (max-width: 420px) {
  .queep-tabs:has([data-screen=overview]:not([hidden])) a { padding-inline: 5px; font-size: 12px; }
  .overview-panel-head { flex-wrap: wrap; }
  .overview-unit > .glyph { display: none; }
  .overview-unit { grid-template-columns: minmax(0,1fr) auto; }
}

@media (max-width: 850px) {
  .campaign-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 690px) {
  .campaign-area .page-head { align-items: start; }
  .campaign-detail { grid-template-columns: minmax(0,1fr); }
  .network-totals { gap: 8px; }
  .network-totals > div { padding: 12px 10px; }
  .network-alert { flex-wrap: wrap; }
  .network-alert > div { flex: 1; min-width: 180px; }
  .network-alert .btn { margin-left: 60px; }
  .delivery-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px; padding-inline: 10px; }
  .delivery-row > .glyph { display: none; }
  .delivery-swatch { width: 32px; height: 32px; }
}
@media (max-width: 460px) {
  .campaign-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .campaign-cover-content > strong:last-child { font-size: 32px; }
  .queep-tabs a { gap: 4px; padding-inline: 6px; }
}

.inherited-rules { font-size: 13px; }
.inherited-rules summary { cursor: pointer; font-weight: 500; margin-bottom: 4px; }
.inherited-rules p { margin: 5px 0 0; color: var(--ink-soft); }
.delivery-controls select { max-width: 100%; }

/* Network link · the units' side of the same brand */
.unit-mode :is(.queep-tabs, .search, .things, .search-chips) { display: none; }
.unit-identity { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; padding-inline: 8px; }
.unit-identity strong { font-size: 14px; font-weight: 600; }
.unit-identity span { color: var(--ink-soft); font-size: 13px; }
.unit-links { margin-top: var(--gap); }
.chat-message:has(.chat-piece) > div { flex: 1; min-width: 0; }
.chat-piece { display: grid; gap: 8px; margin-top: 8px; }
.chat-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.chat-options [aria-pressed=true] .asset-media { outline: 2px solid #8a8a8a; outline-offset: -2px; }
.studio-next .inline { margin-top: 8px; }

/* Agency · the networks one person serves, above any brand */
.glyph-networks { --glyph: url('assets/icons/ri-apps-2-fill.svg'); }
.agency-clients { margin-bottom: 12px; }
@media (max-width: 690px) {
  .agency-switch { width: var(--compact); padding: 0; }
  .agency-switch .glyph + span { position: absolute; clip-path: inset(50%); white-space: nowrap; }
}

/* Units beside the campaign tabs, for the matrix and the agency */
.topbar > .unit-identity { grid-area: identity; }

/* A prévia incorporada segue a largura disponível para a barra. */
@container (max-width: 1020px) {
  .topbar, .topbar:has(.agency-switch) {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: 'brand context . things profile' 'tabs tabs search search search';
    gap: 6px;
  }
  .topbar:not(:has(.agency-switch)) {
    grid-template-areas: 'brand . . things profile' 'tabs tabs search search search';
  }
  .topbar > .agency-switch { justify-self: start; }
  .topbar .queep-tabs a { padding-inline: 12px; }
  .topbar > .queep-popover { top: calc(100% + 2px); }
}
@container (max-width: 580px) {
  .topbar, .topbar:has(.agency-switch) {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas: 'brand context things profile' 'tabs tabs tabs tabs' 'search search search search';
  }
  .topbar:not(:has(.agency-switch)) {
    grid-template-areas: 'brand . things profile' 'tabs tabs tabs tabs' 'search search search search';
  }
  .topbar > .queep-tabs { overflow-x: auto; }
  .topbar .queep-tabs a { flex: 1 0 auto; justify-content: center; padding-inline: 9px; }
  .topbar > .things, .topbar > .agency-switch { width: var(--compact); padding: 0; }
  .topbar > .things .glyph + span, .topbar > .agency-switch .glyph + span {
    position: absolute; clip-path: inset(50%); white-space: nowrap;
  }
}
@container (max-width: 360px) {
  .topbar > .wordmark { width: var(--compact); padding: 0; gap: 0; justify-content: center; font-size: 0; }
}

.unit-mode .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'brand identity profile';
}
.network-navigation:has(.unit-pills) { flex-wrap: wrap; gap: 8px; }
.unit-pills { margin-left: auto; }
@media (max-width: 690px) { .unit-pills { margin-left: 0; } }

/* Brands without their own art use the neutral cover */
.book-cover:not(.rise) { background: #333; }
.book-cover:not(.rise)::before { background: none; }
.preview-cover:not(.rise), .piece:not(.rise) { background: #3b3b3b; }

[data-embed] .asset-media img.contain, [data-embed] .mosaic-cell img.mosaic-logo { background: #f4f2ef; }
[data-embed] .logo-example { background: #f4f2ef; }

/* Content-only marketing embeds still render the actual, interactive screens. */
[data-presentation="content"] .library-header { display: none; }
[data-presentation="content"] .app { padding: 24px var(--margin) 22px; }
[data-presentation="content"] .spaces-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-presentation="content"] .space-meta > small { display: none; }
[data-presentation="content"] .page-head h1 { font-size: 26px; }
@media (max-width: 640px) {
  [data-presentation="content"] .spaces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  [data-presentation="content"] .spaces-grid { grid-template-columns: minmax(0, 1fr); }
}
[data-embed] .demo-brand-word { display: block; width: 170px; max-width: 60%; height: 48px; object-fit: contain; object-position: left center; }
[data-embed] .book-cover .demo-brand-word, [data-embed] .preview-cover .demo-brand-word { filter: brightness(0) invert(1); }
[data-embed] .campaign-cover-content .demo-brand-word { filter: brightness(0) invert(1); }
[data-presentation="content"] .spaces-grid .mosaic { aspect-ratio: 1.65; }
[data-presentation="content"] .space-meta > .pill { display: none; }
