:root { --navy: #14213D; --orange: #E8742A; --ink: #14213D; --muted: #4A5468; --line: #DDE1E8; --bg: #F6F7F9; --panel: #fff; --soft: #E4E8F0; --warn: #FFF3E8; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Raleway, system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
.top { height: 64px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; gap: 24px; flex: none; }
.brand { font-weight: 800; font-size: 18px; white-space: nowrap; }
#steps { display: flex; gap: 20px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
#steps button { background: none; border: 0; border-bottom: 3px solid transparent; color: #B9C0D0; padding: 20px 0 17px; font: inherit; cursor: pointer; }
#steps button[aria-current="step"] { color: #fff; border-bottom-color: var(--orange); }
#steps button:disabled { opacity: .45; cursor: default; }
.adv { color: #B9C0D0; font-size: 13px; text-decoration: none; white-space: nowrap; }
.adv:hover { color: #fff; }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 32px 24px; }
.foot { padding: 0 32px 20px; font-size: 12.5px; color: var(--muted); text-align: center; }
h1 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.15; }
.lede { margin: 10px 0 0; font-size: 18px; line-height: 1.5; color: var(--muted); max-width: 720px; }
.crumb { font-size: 14px; font-weight: 600; color: var(--muted); }
.row { display: flex; gap: 28px; align-items: stretch; flex-wrap: wrap; }
.row > .grow { flex: 1 1 360px; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.card.best { border: 2px solid var(--orange); }
.stack { display: flex; flex-direction: column; gap: 22px; }
label { font-weight: 700; font-size: 14.5px; }
input[type=text], input[type=date], select { width: 100%; height: 48px; border: 1px solid #8791A5; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #1F5FBF; outline-offset: 2px; }
.btn { height: 52px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn.alt { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.small { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: default; }
.hint { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { background: var(--bg); border-radius: 8px; padding: 16px; }
.tile .k { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.tile .v { font-size: 18px; font-weight: 700; margin-top: 6px; word-break: break-word; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--soft); border-radius: 12px; padding: 3px 10px; }
ul.dots { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; color: #2B3650; }
ul.dots li { display: flex; gap: 12px; } ul.dots li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-top: 8px; }
.list > .item { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid #E6E9EF; } .list > .item:first-child { border-top: 0; }
.item .t { flex: 1; min-width: 0; } .item .t b { font-size: 18px; } .item .t div { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.tag { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: #8A4310; }
.notice { background: var(--warn); border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: #3A2A18; }
.err { background: #FDECEC; color: #7A1D1D; border-radius: 8px; padding: 12px 16px; font-size: 14.5px; }
.bar { height: 10px; background: #E1E5EC; border-radius: 6px; overflow: hidden; } .bar > i { display: block; height: 100%; width: 40%; background: var(--orange); border-radius: 6px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar > i { animation: none; width: 100%; } }
.vrow { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid #E6E9EF; } .vrow img, .vrow .ph { flex: none; width: 132px; height: 74px; border-radius: 6px; object-fit: cover; background: #DDE1E8; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.vrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .vrow .t b { font-size: 16px; } .vrow .t .hint { margin: 0; } .vrow .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cal { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 10px 12px; align-items: center; }
.cal .lab { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cal .lab.p { font-weight: 800; }
.cal .track { position: relative; height: 30px; background: #EEF0F4; border-radius: 6px; } .cal .fill { position: absolute; top: 3px; bottom: 3px; background: var(--navy); border-radius: 5px; } .cal .fill.p { background: var(--orange); }
.cal .axis { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
table.plan { width: 100%; border-collapse: collapse; font-size: 15px; } table.plan th { text-align: left; font-size: 12.5px; letter-spacing: 1px; color: var(--muted); padding: 12px 8px 12px 0; } table.plan td { padding: 14px 8px 14px 0; border-top: 1px solid #E6E9EF; }
.scenes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; } .scene { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; } .scene .pic { height: 130px; border-radius: 8px; background: #DDE1E8; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--muted); overflow: hidden; text-align: center; padding: 6px; } .scene .pic img { width: 100%; height: 100%; object-fit: cover; }
.preview { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; } .preview img { width: 100%; height: auto; border-radius: 8px; display: block; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
@media (max-width: 720px) { main { padding: 24px 16px; } .top { padding: 0 16px; height: auto; flex-wrap: wrap; } #steps { gap: 12px; } h1 { font-size: 26px; } .vrow { flex-direction: column; } .cal { grid-template-columns: 1fr; } }

.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.vtile { background: var(--bg); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.vtile video { width: 100%; aspect-ratio: 9 / 16; max-height: 300px; object-fit: cover; border-radius: 8px; background: #0B1326; }
.vtile.empty { border: 2px dashed #8791A5; background: #fff; min-height: 190px; align-items: center; justify-content: center; }
.vtile .num { font-size: 40px; font-weight: 800; color: #8791A5; }
.vname { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.check { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; } label.check input { width: 18px; height: 18px; }
details > summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.fmtchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fmtchip { border: 1px solid #8791A5; background: #fff; color: var(--ink); border-radius: 20px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fmtchip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.fmtchip:disabled { opacity: .55; cursor: default; }
.seg { display: inline-flex; gap: 6px; } .seg .btn.on { background: var(--navy); color: #fff; }
.pvstage, .pvframe { margin: 0 auto; border-radius: 8px; box-shadow: 0 2px 14px rgba(20,33,61,.18); background: #fff; overflow: hidden; }
.col { display: flex; flex-direction: column; gap: 6px; }

/* ---- v23.21.4 redesign: ribbon, drawer, richer cards (same palette as before) ---- */
#ribbon { background: #E9EDF4; display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; padding: 11px 32px; font-size: 13px; }
#ribbon[hidden], #drawer[hidden], #drawer-bg[hidden] { display: none; }
#ribbon .rl, .recap .rl { font-weight: 700; color: var(--muted); letter-spacing: 1px; font-size: 11px; }
.tag { color: #B4531A; }
.step-n { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.btn.orange { background: var(--orange); color: var(--navy); font-weight: 800; }
.bdg { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 12px; padding: 3px 11px; border: 0; font-family: inherit; }
.bdg.ok { background: #E0F1EE; color: #0F5A50; } .bdg.grey { background: #E4E8F0; color: var(--navy); } .bdg.warn { background: #FBEBD9; color: #8A3F00; } .bdg.bad { background: #FBE6E4; color: #8A1F18; }
.bdg.btnb { cursor: pointer; } .bdg.btnb:hover { filter: brightness(.96); text-decoration: underline; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.lnk { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: 14px; color: #B4531A; text-decoration: underline; cursor: pointer; }
.bigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.big { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; } .big .n { font-size: 40px; font-weight: 800; line-height: 1; } .big .l { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-top: 8px; }
.bigscore { text-align: center; flex: none; } .bigscore .n { font-size: 64px; font-weight: 800; line-height: 1; color: var(--navy); } .bigscore .l { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.bars { border-top: 1px solid #E6E9EF; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.brow { display: grid; grid-template-columns: 220px 1fr 40px; gap: 12px; align-items: center; font-size: 14.5px; } .brow b { text-align: right; }
.btrack { height: 10px; background: #E1E5EC; border-radius: 6px; overflow: hidden; } .btrack > i { display: block; height: 100%; background: var(--orange); border-radius: 6px; }
.dk { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.sc { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--soft); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; padding: 3px 0; } .kv b { text-align: right; }
.chk { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; } .chk span { font-weight: 800; flex: none; } .chk .ok { color: #0F5A50; } .chk .warn { color: #8A3F00; } .chk .bad { color: #8A1F18; }
.checks, .vchk { display: flex; flex-direction: column; gap: 8px; }
table.sig tr.click { cursor: pointer; } table.sig tr.click:hover { background: #F6F7F9; } table.sig td { vertical-align: top; }
.tiles4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } .tiles4 .tile { background: #fff; border: 1px solid var(--line); }
/* Deal Card (reference-style) */
.rc { padding: 0; gap: 0; overflow: hidden; }
.rhead { background: var(--navy); color: #fff; padding: 22px 26px; } .rhead .rname { font-size: 24px; font-weight: 800; margin: 10px 0 4px; line-height: 1.2; } .rhead .hint { color: #B9C0D0; }
.rrow { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 26px; border-top: 1px solid #E6E9EF; } .rrow:first-of-type { border-top: 0; }
.rl2 { font-size: 12.5px; font-weight: 700; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; padding-top: 3px; }
.rb { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; min-width: 0; }
.vals { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .vbox { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.fit { font-size: 14.5px; } .make { display: flex; align-items: center; gap: 12px; background: var(--warn); border-radius: 8px; padding: 12px 16px; font-weight: 600; } .make .n { font-size: 30px; font-weight: 800; color: #B4531A; }
ol.asks { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; } ol.asks li::marker { font-weight: 800; color: #B4531A; }
/* Drawer */
#drawer-bg { position: fixed; inset: 0; background: rgba(20,33,61,.35); z-index: 40; }
#drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff; z-index: 41; box-shadow: -6px 0 24px rgba(20,33,61,.2); display: flex; flex-direction: column; }
#drawer .dhead { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); } #drawer h2 { margin: 4px 0 0; font-size: 22px; }
#drawer .dbody { overflow: auto; padding: 8px 24px 28px; } .dsec { padding: 14px 0; border-bottom: 1px solid #E6E9EF; display: flex; flex-direction: column; gap: 8px; }
.ev { background: var(--bg); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; word-break: break-word; } .ev blockquote { margin: 0; font-size: 14.5px; border-left: 3px solid var(--orange); padding-left: 10px; } .ev a { font-size: 13px; color: #1F5FBF; }
/* Live preview */
.pvgrid { display: grid; grid-template-columns: 330px 1fr; gap: 28px; align-items: start; } .pvleft { display: flex; flex-direction: column; gap: 14px; } .pvright { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.recap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; font-size: 14px; } .recap b { color: #B4531A; } .recap .last { font-weight: 800; }
@media (max-width: 900px) { .pvgrid { grid-template-columns: 1fr; } .rrow { grid-template-columns: 1fr; gap: 8px; } .brow { grid-template-columns: 120px 1fr 36px; } .vals { grid-template-columns: 1fr; } #ribbon { padding: 10px 16px; } }

.row > .grow.card { min-width: 0; overflow: hidden; }
table.sig { table-layout: fixed; } table.sig th:nth-child(1) { width: 26%; } table.sig th:nth-child(2) { width: 38%; } table.sig th:nth-child(3) { width: 24%; } table.sig th:nth-child(4) { width: 12%; }
table.sig td { word-break: break-word; overflow-wrap: anywhere; padding-right: 12px; }
.bdg { white-space: nowrap; }
table.sig th:nth-child(1) { width: 25%; } table.sig th:nth-child(2) { width: 33%; } table.sig th:nth-child(3) { width: 24%; } table.sig th:nth-child(4) { width: 18%; }

.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; } .opt.on { border-color: var(--navy); background: #F0F3F9; } .opt input { width: 18px; height: 18px; margin-top: 3px; }

/* Left sidebar layout, as in the demo walkthrough: dark rail with the seven screens */
body { display: block; min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.top { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 232px; flex: none; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 22px 14px; gap: 18px; }
.brand small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 500; color: #B9C0D0; white-space: normal; }
#steps { flex-direction: column; gap: 4px; flex-wrap: nowrap; }
#steps button { text-align: left; border: 0; border-left: 3px solid transparent; border-radius: 6px; padding: 10px 12px; width: 100%; }
#steps button[aria-current="step"] { background: rgba(255,255,255,.10); border-left-color: var(--orange); }
.adv { margin-top: auto; padding: 8px 12px; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) { .shell { flex-direction: column; } .top { position: static; height: auto; width: auto; } #steps { flex-direction: row; flex-wrap: wrap; } }

/* ---- v23.22.1: classic look (same colours, cards, sidebar, labels and tables as the full workbench) ---- */
:root { --navy: #001936; --ink: #001936; --orange: #ff8000; --line: #d9e1eb; --bg: #fff; --muted: #5e6f82; --blue: #2d5bef; --soft: #eef2f7; --warn: #fff3e6; --cream: #f6f4ee; }
body { font-size: 15px; font-weight: 500; background: #fff; }
h1 { font-size: 30px; font-weight: 700; }
.lede, .sub { font-size: 15px; }
.top { height: auto; background: none; color: inherit; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 0; width: auto; position: static; }
.shell > header.top { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 232px; flex: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; background: var(--ink); color: #F6F4EE; padding: 20px 14px; gap: 14px; }
.brand { font-size: 18px; font-weight: 700; padding: 4px 10px 12px; }
.brand small { font-size: 12px; font-weight: 400; color: #B8C4D4; }
#steps button { display: flex; gap: 10px; align-items: center; color: #C9D3E0; font-size: 14px; font-weight: 500; border: 0; border-radius: 8px; padding: 8px 10px; }
#steps button:hover:not(:disabled) { background: #1A2A44; }
#steps button .n { width: 20px; height: 20px; border-radius: 50%; background: #2E4062; color: #F6F4EE; font-size: 11px; display: grid; place-items: center; flex: none; }
#steps button[aria-current="step"] { background: var(--orange); color: var(--ink); font-weight: 600; }
#steps button[aria-current="step"] .n { background: var(--ink); color: var(--orange); }
.screen { display: none; }
.card, .big, .recap, .tiles4 .tile, .opt { border-radius: 14px; border-color: var(--line); }
.card { padding: 18px; }
.btn { background: var(--ink); border-radius: 10px; height: auto; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.btn.alt { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.orange { background: var(--orange); color: var(--ink); font-weight: 700; }
.btn.small { padding: 3px 10px; font-size: 12.5px; height: auto; }
.tag, .rl2, .tile .k, .dk, .brow + .hint { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.lbl { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.crumb { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.c-green { background: #e3f4ea; color: #1f7a45; } .c-teal { background: #e4efff; color: var(--blue); }
.legend { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; }
.ptiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.bignum { font-size: 30px; font-weight: 700; line-height: 1.15; }
.pubcard h3 { margin: 0; font-size: 18px; }
/* Deal Card as in the walkthrough: light header, labelled rows stacked */
.rhead { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 18px 20px; } .rhead .rname { font-size: 18px; font-weight: 700; margin: 6px 0 2px; } .rhead .hint { color: var(--muted); }
.rrow { grid-template-columns: 1fr; gap: 4px; padding: 14px 20px; }
.rl2 { padding-top: 0; }
.rc { border-radius: 14px; }
.dctabs { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; flex-wrap: wrap; }
.dcl { font-size: 12.5px; font-weight: 700; }
.dctab { display: inline-flex; flex-direction: column; background: var(--ink); color: #fff; border-radius: 10px; padding: 5px 12px; font-size: 12.5px; font-weight: 700; max-width: 320px; } .dctab small { font-size: 11px; font-weight: 600; color: var(--orange); }
.navbar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
/* tables: navy head, cream rows */
table th { background: var(--ink); color: var(--cream); font-weight: 600; font-size: 14px; padding: 10px 12px; text-align: left; }
table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
table tbody tr:nth-child(odd) td { background: #faf8f3; }
@media (max-width: 820px) { .shell > header.top { position: static; height: auto; width: auto; } }
table th { color: var(--cream) !important; }
details.more { border-top: 1px solid var(--line); } details.more > summary { cursor: pointer; padding: 14px 20px; font-weight: 700; font-size: 14px; color: var(--blue); }
.rhead .rname { margin: 0; }
.rrow { border-top: 1px solid var(--line); } .rhead + .rrow { border-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; } .kpi .kd { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.kpi.dark { background: var(--ink); color: #fff; } .kpi.dark .lbl { color: var(--orange); } .kpi.dark .kd { color: #B8C4D4; }
.meta4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 20px; padding: 16px 20px; } .mv { font-size: 14.5px; font-weight: 600; margin-top: 3px; }
h2 { font-size: 20px; margin: 0; }
#steps button[aria-current="step"], #steps button[aria-current="step"]:hover { background: var(--orange); color: var(--ink); }
.collbar { display: flex; justify-content: flex-end; gap: 8px; }
.collbtn { background: none; border: 0; padding: 0 8px 0 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.pubcard .cbody { display: flex; flex-direction: column; gap: 14px; } .pubcard .cbody[hidden] { display: none; }
.pubcard .ptiles { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.bignum.dot { text-decoration: underline dotted; text-underline-offset: 6px; text-decoration-thickness: 1.5px; width: fit-content; }
.pbar { height: 10px; background: #e1e5ec; border-radius: 6px; overflow: hidden; } .pbar i { display: block; height: 100%; background: var(--orange); }
details.scanlist summary, details.advblock summary { cursor: pointer; font-weight: 600; font-size: 14px; } details.scanlist ul { margin: 8px 0 0; padding-left: 18px; } details.advblock { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.c-amber { background: #fff1d6; color: #8a5300; } .c-red { background: #fde4e1; color: #a32018; } .c-grey { background: #eef2f7; color: var(--ink); }
.pubcard .ptiles { margin-bottom: 14px !important; }
.nav-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #8FA3BF; padding: 12px 10px 4px; }
.kpi .bignum { margin: 2px 0 6px; } details.defn summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; margin-top: 8px; } .kpi.dark details.defn summary { color: #fff; } details.defn .kd { margin-top: 6px; }
.kpi[hidden], .kpis[hidden] { display: none; }
.content .top { flex-wrap: nowrap !important; align-items: flex-start; } .content .top > div:first-child { flex: 1 1 0; min-width: 0; } .content .top > .actions { flex: none; display: flex; flex-wrap: nowrap; gap: 10px; width: auto; }
.kpis { grid-template-columns: repeat(4, 1fr); } .kpis .kpi:nth-child(5) { grid-column: 1; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.content .top { flex-direction: row !important; justify-content: space-between; }
.content .top > .actions { margin-left: auto; } .content .top > div:first-child { flex: 1 1 auto !important; }
.content .top { width: 100% !important; height: auto !important; position: static !important; padding: 0 !important; }
.dctab { cursor: pointer; text-align: left; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; max-width: 300px; }
.dctab > small { color: var(--muted); } .dctab.on { background: var(--ink); color: #fff; border-color: var(--ink); } .dctab.on > small { color: var(--orange); }
.dctab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; }

/* Media Plan: classic layout */
.plancard { padding: 18px 20px; }
.plantitle { background: none; border: 0; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; padding: 0; text-align: left; }
.planhead { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 18px; margin: 16px 0; }
.planhead small { display: block; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); } .planhead b { display: block; margin-top: 3px; font-size: 15px; }
.plancard table.plan { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.plancard table.plan thead th { background: var(--navy); color: #fff; padding: 12px 10px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.plancard table.plan td { padding: 12px 10px; vertical-align: top; }
.plancard tr.phase th { background: #eef1f6; color: var(--ink); padding: 10px; text-align: left; font-size: 14px; } .psub { margin-left: 10px; font-weight: 400; color: var(--muted); font-size: 13px; }
.plancard tr.child td { background: #faf7ef; } .plancard tr.tot td { background: #f3f5f9; } .plancard .tbd { color: #8a5a00; font-style: italic; }
.plancard .mono { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .planhead { grid-template-columns: repeat(2, 1fr); } }
.plancard table.plan tr.phase th, .plancard table.plan tr.phase th b { color: var(--ink) !important; background: #eef1f6; }

/* Creative Engine: responsive editor canvas (from classic Edit video) */
.sed { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.sedbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 16px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.sedgrow { flex: 1 1 auto; } .edstatus { font-size: 13px; color: var(--blue); }
.sedset { display: grid; gap: 2px; font-size: 11px; letter-spacing: .8px; color: var(--muted); } .sedset select { font-size: 14px; padding: 6px 8px; }
.sedchips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sedchip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font: inherit; cursor: pointer; } .sedchip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sedbody { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; min-height: 520px; }
.sedrail { padding: 14px; border-right: 1px solid var(--line); min-width: 0; } .sedprops { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.sedstage { padding: 16px; display: flex; flex-direction: column; align-items: center; background: #eef1f6; min-width: 0; }
.sedrailhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sedfiles { display: grid; gap: 8px; margin-top: 10px; } .sedfile { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 8px; padding: 0; background: #001936; color: #fff; font-size: 12px; cursor: pointer; overflow: hidden; text-align: left; } .sedfile img, .sedfile video { width: 100%; height: 90px; object-fit: cover; display: block; } .sedfile span { padding: 4px 8px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sedwrap { overflow: hidden; border-radius: 6px; box-shadow: 0 6px 24px #00193633; background: #000; cursor: text; max-width: 100%; }
.sedbox { display: grid; gap: 10px; justify-items: center; width: 100%; } .sedplay { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 99px; padding: 4px 14px; max-width: 100%; } .sedplay input { width: min(280px, 40vw); }
.sedsec { margin-bottom: 14px; } .sedsec h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.sedfield { display: grid; gap: 4px; margin-bottom: 10px; font-size: 11px; letter-spacing: .8px; color: var(--muted); } .sedfield input, .sedfield textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; width: 100%; box-sizing: border-box; color: var(--ink); }
.sedcur { display: flex; gap: 10px; align-items: center; } .sedcur img, .sedcur video { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }
@media (max-width: 1100px) { .sedbody { grid-template-columns: 200px minmax(0, 1fr); } .sedprops { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 720px) { .sedbody { grid-template-columns: 1fr; } .sedrail { border-right: 0; border-bottom: 1px solid var(--line); } .sedfiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.sedplay { flex-wrap: wrap; justify-content: center; } .sedplay .btn, .sedplay .hint { white-space: nowrap; }
.pvbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; } .pvbar .seg { display: inline-flex; gap: 6px; }

/* Creative Engine: match classic layout */
.edhost.collapsed .sedbody { display: none; }
.sedtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .sedbadge { border: 1px solid #1f8a5b; color: #1f8a5b; background: #eaf7f0; border-radius: 99px; padding: 2px 10px; font-size: 13px; }
.sedcanvas { max-width: 260px; } .sedcenter { display: flex; flex-direction: column; min-width: 0; background: #eef1f6; } .sedcenter .sedstage { flex: 1; }
.sedcenter .sedchips { border-bottom: 0; border-top: 1px solid var(--line); background: #fff; justify-content: center; }
.sedhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

.brand:has(img) { padding: 6px 10px 18px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand img { display:block; margin:0 auto; width:110px; max-width:100%; height:auto; }

.collbar { display: none !important; }

.shell > header.top { justify-content: flex-start; }
.shell > header.top > :last-child { margin-top: auto; }
