@font-face { font-family: 'Söhne'; src: url('/fonts/soehne-buch.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Söhne'; src: url('/fonts/soehne-kraftig.woff2') format('woff2'); font-weight: 500; font-display: swap; }
:root { --blue: #004995; --blue-2: #3F78AE; --ink: #1A1A1A; --body: #3D3D3D; --muted: #6F6F6F; --rule: #E4E4E0; --canvas: #F3F3F0; --white: #fff; --ok: #1F7A4D; --warn: #9A6B00; --bad: #B3261E;
  --font: 'Söhne', 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--body); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
h2 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink); margin: 0 0 14px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.hidden { display: none !important; }

/* shell */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100%; }
.nav { background: var(--white); border-right: 1px solid var(--rule); padding: 26px 20px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.nav .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 34px; text-decoration: none; }
.nav .brand img { height: 20px; }
.nav .brand span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav a.item { display: block; padding: 9px 10px; margin: 2px -10px; border-radius: 2px; color: var(--body); text-decoration: none; }
.nav a.item.active { background: var(--canvas); color: var(--ink); font-weight: 500; }
.nav .grow { flex: 1; }
.nav .user { font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }
.main { padding: 30px 36px 80px; max-width: 1400px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.head .crumbs { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.head .crumbs a { color: var(--muted); text-decoration: none; }
.head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } .main { min-width: 0; overflow-x: auto; } .nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 16px; } .nav .brand { margin: 0 14px 0 0; } .nav .grow, .nav .user { display: none; } .main { padding: 20px 16px 60px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--blue); border-radius: 2px; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; font-weight: 500; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.btn:hover { background: #003B7A; }
.btn.ghost { background: var(--white); color: var(--blue); }
.btn.ghost:hover { background: var(--canvas); }
.btn.quiet { background: transparent; border-color: var(--rule); color: var(--body); }
.btn.quiet:hover { background: var(--white); border-color: #CFCFCA; }
.btn.danger { border-color: var(--bad); color: var(--bad); background: var(--white); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* cards & stats */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 2px; padding: 22px 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; margin-bottom: 26px; }
.stat { background: var(--white); padding: 18px 20px; cursor: pointer; }
.stat:hover { background: #FAFAF8; }
.stat.active { box-shadow: inset 0 -3px 0 var(--blue); }
.stat .n { font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.stat .l { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.stat.blue .n { color: var(--blue); }
.bar { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; display: flex; margin: 8px 0 24px; }
.bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); margin: -14px 0 24px; }
.legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* filters + table */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1 1 260px; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=datetime-local], input[type=number], input[type=url], select, textarea {
  background: var(--white); border: 1px solid #CFCFCA; border-radius: 2px; padding: 8px 11px; min-height: 38px; width: 100%; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231A1A1A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.toolbar select { width: auto; min-width: 140px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 80px; resize: vertical; }
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--rule); }
th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--rule); background: #FAFAF8; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr.row { cursor: pointer; } tr.row:hover td { background: #FAFAF8; }
td .name { color: var(--ink); font-weight: 500; } td.nowrap, .nowrap { white-space: nowrap; } td .sub { font-size: 12px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 2px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: var(--canvas); color: var(--body); white-space: nowrap; }
.tag.yes { background: #E3F1E9; color: var(--ok); } .tag.no { background: #F6E5E3; color: var(--bad); } .tag.wait { background: #FBF1DA; color: var(--warn); } .tag.pre { background: var(--canvas); color: var(--muted); } .tag.vip { background: var(--blue); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; background: var(--rule); } .dot.on { background: var(--ok); } .dot.err { background: var(--bad); }
.count { font-size: 12px; color: var(--muted); margin-left: auto; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); background: var(--white); border: 1px solid var(--rule); }
.cb { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form .full { grid-column: 1 / -1; }
.form label, .field { display: block; }
.form label > span, .field > span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; padding-top: 24px; }
.section { margin-top: 30px; }
.section h2 { padding-bottom: 10px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* drawer */
.overlay { position: fixed; inset: 0; background: rgba(26,26,26,.28); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--white); z-index: 41; overflow-y: auto; box-shadow: -8px 0 30px rgba(0,0,0,.08); }
.drawer .dh { position: sticky; top: 0; background: var(--white); border-bottom: 1px solid var(--rule); padding: 20px 26px; display: flex; align-items: flex-start; gap: 16px; z-index: 1; }
.drawer .dh h1 { font-size: 20px; }
.drawer .dh .x { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
.drawer .db { padding: 22px 26px 60px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13px; margin-bottom: 20px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); word-break: break-word; }
.rowbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.timeline li { padding: 4px 0 12px 16px; position: relative; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-2); }
.timeline .t { font-size: 11px; color: var(--muted); }
.notes { white-space: pre-wrap; background: var(--canvas); padding: 12px 14px; border-radius: 2px; font-size: 13px; max-height: 220px; overflow: auto; }

/* toast + modal */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 2px; font-size: 13px; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(26,26,26,.35); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal .box { background: var(--white); width: min(680px, 100%); max-height: 90vh; overflow: auto; border-radius: 2px; padding: 26px 28px; }
.modal .box h1 { font-size: 20px; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--blue); font-weight: 500; }
iframe.preview { width: 100%; height: 70vh; border: 1px solid var(--rule); background: #F3F3F0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } @media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.evcard { background: var(--white); border: 1px solid var(--rule); padding: 22px 24px 20px; text-decoration: none; color: inherit; display: block; border-radius: 2px; }
.evcard:hover { border-color: #CFCFCA; }
.evcard .d { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.evcard .n { font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.evcard .s { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.evcard .m { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--rule); } .evcard .m span { white-space: nowrap; } .evcard .m b { display: block; font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.pre:not(.tag) { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--canvas); padding: 14px; max-height: 300px; overflow: auto; }
.chk-row td { font-size: 15px; } .chk-row .big { font-size: 17px; font-weight: 500; color: var(--ink); }
@media (min-width: 1500px) { .stats { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* newsletters */
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tpl { text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; padding: 14px 16px; cursor: pointer; font: inherit; }
.tpl:hover { border-color: var(--blue); }
.tpl b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.tpl span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.nl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .nl-grid { grid-template-columns: 1fr; } }
.nl-preview { position: sticky; top: 20px; }
.prev-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.prev-head h2 { flex: 1; }
.nl-preview iframe.preview { background: var(--canvas); }
.blk { border: 1px solid var(--rule); border-radius: 2px; padding: 14px 16px; margin-bottom: 10px; background: #FCFCFB; }
.blk-h { display: flex; align-items: center; margin-bottom: 10px; }
.blk-h b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.blk-btns { margin-left: auto; display: flex; gap: 12px; }
.blk .form { gap: 10px 14px; }
.blk .form label > span { font-size: 10px; }
.blk input, .blk textarea, .blk select { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.blk textarea { min-height: 62px; }
.imgrow { display: flex; gap: 8px; align-items: center; }
.imgrow input[type=file] { font-size: 11px; width: auto; }
.thumb { max-height: 70px; margin-top: 8px; border: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); font-size: 13px; cursor: pointer; text-transform: capitalize; }
.chip input { accent-color: var(--blue); margin: 0; }
.chip:has(input:checked) { border-color: var(--blue); color: var(--blue); }
.barline { display: inline-block; height: 8px; border-radius: 2px; background: var(--blue); min-width: 2px; vertical-align: middle; }
.savestate { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; min-width: 62px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.seg button { background: var(--white); border: 0; padding: 5px 12px; font-size: 12px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--canvas); color: var(--ink); font-weight: 500; }
.prev-frame { overflow: hidden; background: var(--canvas); border: 1px solid var(--rule); }
.prev-frame iframe.preview { border: 0; display: block; }
.prev-frame.mobile { max-width: 375px; margin: 0 auto; }
.nav .sub { display: block; margin: 2px 0 8px 10px; border-left: 1px solid var(--rule); }
.nav .sub a { display: block; padding: 5px 12px; font-size: 13px; color: var(--muted); text-decoration: none; }
.nav .sub a.on { color: var(--ink); font-weight: 500; }
.tpl .tplmeta { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.blkstyle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.blkstyle > span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.blkstyle label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); text-transform: capitalize; }
.blkstyle select { width: auto; min-height: 28px; padding: 3px 24px 3px 8px; font-size: 12px; }
@media (max-width: 900px) { .nav .sub { display: flex; margin: 0; border: 0; } }
.segs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.seg-card { position: relative; display: block; cursor: pointer; }
.seg-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-body { display: block; border: 1px solid var(--rule); border-radius: 2px; padding: 14px 16px; background: var(--white); transition: border-color .15s, background .15s; }
.seg-body b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.seg-body i { display: block; font-style: normal; font-size: 20px; font-weight: 500; color: var(--blue); margin: 6px 0 4px; }
.seg-body em { display: block; font-style: normal; font-size: 12px; line-height: 1.45; color: var(--muted); }
.seg-card input:checked + .seg-body { border-color: var(--blue); background: #F5F8FC; }
.seg-card input:focus-visible + .seg-body { outline: 2px solid var(--blue); outline-offset: 2px; }
.blk { padding: 0; overflow: hidden; }
.blk-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.blk-h:hover { background: #F7F7F5; }
.blk-sum { flex: 1; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk-btns { margin-left: auto; opacity: 0; transition: opacity .12s; }
.blk:hover .blk-btns, .blk.open .blk-btns { opacity: 1; }
.blk-body { display: none; padding: 0 16px 16px; }
.blk.open .blk-body { display: block; }
.blk.open .blk-h { border-bottom: 1px solid var(--rule); background: var(--white); }
.blk.open .blk-h b { color: var(--blue); }
.evcard-wrap { position: relative; }
.evcard-wrap .cardx { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; line-height: 1; border: 1px solid var(--rule); border-radius: 2px;
  background: var(--white); color: var(--muted); font-size: 16px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.evcard-wrap:hover .cardx { opacity: 1; }
.evcard-wrap .cardx:hover { color: var(--bad); border-color: var(--bad); }
.thumb.bad { display: none; }
/* content picker */
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; max-height: 58vh; overflow: auto; padding: 2px; }
.cp-item { position: relative; text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; padding: 0 0 10px; cursor: pointer; font: inherit; }
.cp-item:hover { border-color: var(--blue); }
.cp-item.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.cp-item.on::after { content: attr(data-n); position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; line-height: 24px; text-align: center; font-weight: 600; }
.cp-img { display: block; aspect-ratio: 1 / 1; background: #F3F3F0 center / cover no-repeat; margin-bottom: 8px; }
.cp-item b { display: block; padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--ink); line-height: 1.35; max-height: 3.4em; overflow: hidden; }
.cp-item span:not(.cp-img) { display: block; padding: 3px 10px 0; font-size: 12px; color: var(--muted); }
.fillbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0 14px; margin-bottom: 12px; border-bottom: 1px dashed var(--rule); }
.imgrow .btn { flex: none; }
.tpl.live { border-color: #BFD0E6; background: #F7FAFD; }
.tpl.live b::before { content: '● '; color: var(--blue); font-size: 10px; vertical-align: 2px; }
/* ready-to-send checklist */
.ready h2 { margin-bottom: 10px; }
.ready.good { border-left: 3px solid var(--ok); } .ready.warn { border-left: 3px solid var(--warn); } .ready.bad { border-left: 3px solid var(--bad); }
.checks { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.checks li { position: relative; padding: 5px 0 5px 20px; line-height: 1.45; }
.checks li::before { position: absolute; left: 0; top: 5px; font-weight: 700; }
.checks li.error::before { content: '✕'; color: var(--bad); } .checks li.warn::before { content: '!'; color: var(--warn); left: 4px; } .checks li.ok::before { content: '✓'; color: var(--ok); }
.checks li a { margin-left: 6px; font-size: 12px; }
/* inbox preview */
.inbox { margin: 0 0 16px; }
.inbox-row { display: flex; gap: 10px; align-items: baseline; padding: 11px 14px; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; font-size: 13px; white-space: nowrap; overflow: hidden; margin-bottom: 4px; }
.inbox-from { font-weight: 600; color: var(--ink); flex: none; }
.inbox-subj { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.inbox-pre { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
/* text formatting helpers */
.fmt { display: flex; gap: 4px; margin: -2px 0 6px; }
.fmt button { background: var(--white); border: 1px solid var(--rule); border-radius: 2px; font-size: 11px; padding: 2px 8px; cursor: pointer; color: var(--body); }
.fmt button:first-child { font-weight: 700; }
.fmt button:hover { border-color: var(--blue); color: var(--blue); }
/* sending */
.sending, .scheduled { margin-bottom: 18px; border-left: 3px solid var(--blue); }
.progress { height: 6px; background: var(--rule); border-radius: 3px; margin: 10px 0 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--blue); transition: width .6s; }
.tpl.busy { opacity: .6; pointer-events: none; }

/* imported HTML emails: section outline */
.html-secs{width:100%;border-collapse:collapse}
.html-secs td{padding:7px 6px;border-top:1px solid var(--rule);font-size:13px}
.html-secs tr.on td{background:#EEF3F9}

/* analytics charts */
.cols { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 6px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.col i { display: block; width: 100%; max-width: 34px; border-radius: 2px 2px 0 0; min-height: 2px; }
.col .v { font-size: 10px; color: var(--body); margin-bottom: 4px; white-space: nowrap; }
.col .m { font-size: 11px; color: var(--muted); margin-top: 6px; }
.linechart svg { display: block; width: 100%; height: 160px; }
.linechart .lm { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.card h2 { margin-bottom: 14px; }

/* price lists */
.plsearch { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.plsearch input[type=search] { flex: 1 1 380px; width: auto; min-width: 0; font-size: 17px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); }
.plsearch input[type=search]:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.plsearch select { padding: 10px; border: 1px solid var(--rule); background: var(--white); width: auto; }
.plsearch label { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.plres td { padding: 9px 12px; vertical-align: top; }
.plres tr[data-row] { cursor: pointer; } .plres tr[data-row]:hover td { background: #FAFAF8; }
.plcode { width: 30%; white-space: nowrap; } .plcode .mono { font-size: 13px; color: var(--ink); white-space: normal; word-break: break-all; }
.plcode .copy { border: 1px solid var(--rule); background: var(--white); border-radius: 2px; cursor: pointer; padding: 1px 7px; margin-right: 8px; color: var(--blue); font-size: 13px; }
.plcode .copy:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pldesc { font-size: 12px; color: var(--muted); max-width: 520px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plres tr.open .pldesc { white-space: normal; }
.plprice { text-align: right; white-space: nowrap; width: 90px; } .plprice b { font-size: 17px; color: var(--blue); font-weight: 600; }
.plsrc { width: 190px; white-space: nowrap; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 34px; border: 2px dashed var(--rule); border-radius: 4px; cursor: pointer; background: var(--canvas); text-align: center; }
.drop.over { border-color: var(--blue); background: #EEF4FA; }
@media (max-width: 720px) { .plres { display: block; } .plres tbody { display: block; } .plres tr[data-row] { display: grid; grid-template-columns: minmax(0, 1fr) auto; } .pldesc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .plres tr.open .pldesc { display: block; } .plsearch input[type=search] { flex-basis: 100%; } .plres td { border: 0; } .plcode { grid-column: 1 / -1; width: auto; } .plprod { grid-column: 1; } .plprice { grid-column: 2; } .plsrc { grid-column: 1 / -1; width: auto; border-bottom: 1px solid var(--rule) !important; } .pldesc { max-width: none; } }

.pltabs { display: flex; gap: 4px; margin: -8px 0 18px; border-bottom: 1px solid var(--rule); }
.pltabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pltabs a.on { color: var(--ink); border-bottom-color: var(--blue); font-weight: 500; }
.up { color: #C0392B; } .down { color: #1F7A4D; }
.plchg { display: inline-block; margin-top: 4px; border: 1px solid var(--rule); background: var(--white); border-radius: 10px; padding: 1px 8px; font-size: 11px; cursor: pointer; color: var(--muted); }
.plchg.up { color: #C0392B; border-color: #F0C9C3; background: #FDF3F1; } .plchg.down { color: #1F7A4D; border-color: #C5E3D2; background: #F1F9F4; }
.plline { display: block; width: 100%; height: 130px; }
.linkish { cursor: pointer; color: var(--blue); }
.cols .col i + i { border-radius: 2px 2px 0 0; }
/* columns may shrink below their content; long codes wrap instead of widening the page */
.shell > .main { min-width: 0; }
.split > * { min-width: 0; }
td .mono, td.mono, td .name, td .sub { overflow-wrap: break-word; }
.plline + .lm { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tscroll { overflow-x: auto; max-width: 100%; }

/* price lists: brand cards */
.plbrands { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.plbrand { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; color: var(--body); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.plbrand:hover { border-color: var(--blue-2); box-shadow: 0 6px 20px rgba(0, 40, 90, .08); }
.plbrand .ph { display: grid; gap: 1px; background: var(--rule); aspect-ratio: 4 / 3; overflow: hidden; grid-template-rows: minmax(0, 1fr); }
.plbrand .ph img, .plbrand .ph span { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; min-height: 0; min-width: 0; padding: 6px; }
.plbrand .ph.n2 { grid-template-columns: 1fr 1fr; }
.plbrand .ph.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); } .plbrand .ph.n3 img:first-child { grid-row: 1 / 3; }
.plbrand .bd { padding: 14px 16px 16px; border-top: 1px solid var(--rule); }
.plbrand .nm { font-size: 15px; font-weight: 500; letter-spacing: .08em; color: var(--ink); margin-bottom: 4px; }
.plbrand:hover .nm { color: var(--blue); }

/* price lists: photos */
.plthumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: 2px; flex: none; display: block; }
.plthumb.none, .vth.none { background: var(--canvas); border-color: transparent; }
.plwho { display: flex; gap: 12px; align-items: center; } .plwho .plthumb { width: 44px; height: 44px; }
.plwho.big { margin-bottom: 18px; } .plwho.big .gph { width: 96px; height: 96px; }

/* price lists: search results */
.plrows { background: var(--white); border: 1px solid var(--rule); }
.plrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) 130px 170px; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; align-items: start; }
.plrow:last-child { border-bottom: 0; } .plrow:hover { background: #FAFAF8; }
.plrow .nm { color: var(--ink); font-weight: 500; }
.plrow .pp, .plvar .vp { text-align: right; white-space: nowrap; } .plrow .pp b, .plvar .vp b { font-size: 16px; color: var(--blue); font-weight: 600; }
.cd { margin: 2px 0; } .cd .mono { font-size: 12.5px; color: var(--ink); word-break: break-all; }
.cd .copy { border: 1px solid var(--rule); background: var(--white); border-radius: 2px; cursor: pointer; padding: 0 6px; margin-right: 7px; color: var(--blue); font-size: 12px; line-height: 18px; }
.cd .copy:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.plrow .pldesc, .plvar .pldesc { max-width: none; }
.plrow.open .pldesc, .plvar.open .pldesc { white-space: normal; }

/* price lists: a brand's catalogue */
.plchips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.plchips button { border: 1px solid var(--rule); background: var(--white); border-radius: 16px; padding: 5px 14px; cursor: pointer; font-size: 13px; }
.plchips button.on { background: var(--blue); border-color: var(--blue); color: #fff; } .plchips button.on .muted { color: #cfe0f2; }
.plgroup { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; background: var(--white); border: 1px solid var(--rule); padding: 18px 20px; margin-bottom: 12px; }
.plgroup .gph { width: 150px; height: 150px; object-fit: contain; background: #fff; display: block; position: sticky; top: 16px; }
.gph.none { background: var(--canvas); }
.plgroup .gh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 2px; }
.plgroup h3 { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.plvar { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F0F0EC; cursor: pointer; align-items: start; }
.plvar:last-child { border-bottom: 0; } .plvar:hover { background: #FCFCFA; }
.vth { width: 36px; height: 36px; object-fit: contain; background: #fff; display: block; }
.plvar .vp .lbl { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.plvar .vp > div { line-height: 1.35; }
@media (max-width: 720px) {
  .plbrands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plbrand .bd { padding: 10px 12px 12px; } .plbrand .nm { font-size: 13px; }
  .plrow { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; } .plrow .plthumb { width: 48px; height: 48px; } .plrow .ps { grid-column: 2 / -1; }
  .plgroup { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; } .plgroup .gph { width: 76px; height: 76px; position: static; }
  .plvar { grid-template-columns: minmax(0, 1fr) auto; } .plvar .vth { display: none; }
  .pldesc { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.plchips button.old { border-style: dashed; color: var(--muted); }
.plrow .pp .lbl { font-size: 11px; color: var(--muted); }

/* marketing budget */
.bmonth { display: flex; align-items: center; gap: 10px; } .bmonth b { font-weight: 500; color: var(--ink); min-width: 130px; text-align: center; }
.bnote { border-left: 3px solid var(--warn); margin-bottom: 16px; padding: 12px 18px; }
.bsum { margin-bottom: 26px; }
.bsum-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.bsum .l { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bsum .n { font-size: 32px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.bsum .n.bad, .bad { color: var(--bad); } .ok { color: var(--ok); }
.bbar { position: relative; height: 10px; background: var(--canvas); border-radius: 5px; overflow: visible; }
.bbar.big { height: 16px; border-radius: 8px; }
.bbar i { position: absolute; top: 0; bottom: 0; border-radius: inherit; }
.bbar i.sp { left: 0; background: var(--blue); }
.bbar i.fc { background: rgba(0, 73, 149, .22); border-radius: 0 5px 5px 0; } .bbar i.fc.bad { background: rgba(179, 38, 30, .28); }
.bbar b.pl { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); margin-left: -1px; }
.bcats { background: var(--white); border: 1px solid var(--rule); }
.bcat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 190px; gap: 20px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.bcat:last-child { border-bottom: 0; } .bcat .bv { text-align: right; } .bcat .bv b { color: var(--ink); }
.tag.live { background: #EAF1F8; color: var(--blue); }
.bdays { display: flex; align-items: flex-end; gap: 3px; height: 150px; background: var(--white); border: 1px solid var(--rule); padding: 14px 14px 26px; }
.bd { flex: 1; display: flex; flex-direction: column-reverse; height: 100%; position: relative; min-width: 0; }
.bd i { display: block; width: 100%; } .bd i.g { background: var(--blue); } .bd i.m { background: var(--blue-2); opacity: .75; }
.bd span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.bd.today span { color: var(--blue); font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; } .dot.g { background: var(--blue); } .dot.m { background: var(--blue-2); opacity: .75; }
.byear { display: flex; gap: 6px; height: 140px; align-items: flex-end; margin-bottom: 8px; }
.by { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.by .bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; }
.by .bars i { flex: 1; display: block; } .by .bars i.p { background: #DCE6F0; } .by .bars i.s { background: var(--blue); } .by .bars i.s.bad { background: var(--bad); }
.by span { font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; } .by.on span { color: var(--blue); font-weight: 600; }
.btable td { vertical-align: top; } .btable tr.ended td { opacity: .5; }
.brow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.bplan { min-width: 1100px; } .bplan td, .bplan th { padding: 6px 5px; font-size: 13px; } .bplan th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.bplan input { width: 72px; padding: 6px 7px; border: 1px solid var(--rule); border-radius: 2px; text-align: right; background: var(--white); }
.bplan input:focus { outline: 2px solid var(--blue); outline-offset: -1px; } .bplan input.saved { border-color: var(--ok); background: #F1F9F4; }
.bplan tr.tot td { border-top: 2px solid var(--ink); font-weight: 500; color: var(--ink); } .bplan tr.act td { color: var(--blue); }
.bconn { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.bconn ol { padding-left: 18px; line-height: 1.7; }
@media (max-width: 720px) {
  .bsum-top { grid-template-columns: 1fr; gap: 10px; } .bsum .n { font-size: 26px; }
  .bcat { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; } .bcat .bbar { grid-column: 1 / -1; grid-row: 2; }
  .bdays { gap: 1px; padding: 10px 8px 24px; } .bd span { font-size: 8px; }
  .bconn { grid-template-columns: minmax(0, 1fr); } .head .bmonth { width: 100%; justify-content: space-between; }
}
/* budget analytics */
.bstack, .bshare, .bpair { display: flex; align-items: flex-end; gap: 2px; height: 190px; background: var(--white); border: 1px solid var(--rule); padding: 16px 14px 26px; margin-bottom: 8px; }
.bs, .bh, .bp { flex: 1; min-width: 0; height: 100%; position: relative; display: flex; flex-direction: column-reverse; }
.bs i { display: block; width: 100%; } .bs.now { opacity: .6; }
.bs span, .bh span, .bp span { position: absolute; bottom: -20px; left: -6px; right: -6px; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; }
.bh i { display: block; width: 100%; background: var(--blue); } .bh i.portal { background: var(--blue-2); opacity: .6; }
.bh b { font-size: 9px; font-weight: 500; color: var(--muted); text-align: center; margin-top: 2px; }
.bpair { gap: 8px; } .bp .bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; } .bp .bars i { flex: 1; display: block; }
.bp .bars i.s { background: var(--blue); } .bp .bars i.a { background: #C0392B; opacity: .8; } .bp b { font-size: 11px; font-weight: 500; text-align: center; color: var(--ink); margin-top: 3px; } .bp.now { opacity: .65; }
.bp { flex-direction: column; }
.myears { background: var(--white); border: 1px solid var(--rule); padding: 14px; }
.mychips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mychips button { border: 1px solid var(--rule); background: var(--white); border-radius: 14px; padding: 3px 10px 3px 8px; font-size: 12px; cursor: pointer; color: var(--muted); }
.mychips button i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--c); margin-right: 5px; opacity: .3; } .mychips button.on { color: var(--ink); } .mychips button.on i { opacity: 1; }
.mygrid { display: flex; gap: 10px; height: 210px; }
.mym { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mybars { flex: 1; display: flex; align-items: flex-end; gap: 1px; border-bottom: 1px solid var(--rule); }
.mybars i { flex: 1; display: block; min-width: 1px; } .mybars i.off { display: none; }
.mym span { font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; }
.brev { grid-template-columns: minmax(0, 1.6fr) 110px minmax(0, 1.2fr); } .brev select { max-width: 220px; }
@media (max-width: 720px) { .mygrid { gap: 3px; height: 170px; } .bstack, .bshare, .bpair { padding: 12px 6px 24px; } .bh b { display: none; } .brev { grid-template-columns: minmax(0, 1fr) auto; } .brev .rowbtns { grid-column: 1 / -1; } }
.bhand { background: #F7F9FC; border: 1px solid #DCE6F0; padding: 12px 14px; border-radius: 2px; }
.bcap { margin-top: 14px; padding: 10px 14px; border-radius: 2px; font-size: 14px; }
.bcap.forecast { background: #FFF6E5; color: #6B4A00; } .bcap.over { background: #FDECEA; color: var(--bad); }
.bplan tr.cap td { color: var(--ink); font-weight: 500; } .bplan td.bad { color: var(--bad); }
.bcapset { margin-top: 20px; }
/* budget · 2027 plan */
.b27head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.b27t { font-size: 22px; letter-spacing: -0.01em; text-transform: none; font-weight: 500; margin: 0 0 4px; padding: 0; border: 0; }
.b27sw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-width: min(100%, 520px); }
.b27sw .seg-body { text-align: left; cursor: pointer; font: inherit; padding: 10px 14px; }
.b27sw .seg-body.on { border-color: var(--blue); background: #F5F8FC; box-shadow: inset 0 -3px 0 var(--blue); }
.b27sw .seg-body.on b { color: var(--blue); }
.stats.b27cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.b27cards .stat { cursor: default; } .b27cards .stat .n { font-size: 26px; } .b27cards .stat .sub { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.b27cards .stat .sub .ok { color: var(--ok); font-weight: 500; }
.b27split { display: flex; height: 18px; border-radius: 2px; overflow: hidden; gap: 1px; background: var(--rule); margin-bottom: 10px; }
.b27split i { display: block; min-width: 2px; } .b27split i.one { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px) !important; }
.b27legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; color: var(--body); }
.btable th.r, .btable td.r { text-align: right; } .btable th .sub { font-size: 10px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.b27t2 tr.grp td { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 14px; }
.b27t2 tr.sub td { font-weight: 500; color: var(--ink); border-top: 1px solid var(--rule); }
.b27t2 tr.tot td, .b27lines tr.tot td { border-top: 2px solid var(--ink); font-weight: 500; color: var(--ink); }
.b27t2 tr.on td { background: #F5F8FC; } .b27t2 tr.on td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.b27t2 .hl { background: #F5F8FC; color: var(--ink); font-weight: 500; }
.b27filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; } .b27filters select { max-width: 280px; }
.b27lines { min-width: 1100px; } .b27lines td { font-size: 13px; } .b27lines td:nth-child(6) { max-width: 380px; }
.b27lines tr.est td { background: #FFFBEF; } .b27lines tr.zero td { opacity: .55; }
.b27why { margin-top: 4px; padding-left: 8px; border-left: 2px solid var(--blue-2); color: var(--ink); }
.b27mo { height: 230px; background: var(--white); border: 1px solid var(--rule); padding: 26px 14px 26px; margin-bottom: 8px; }
.b27mo .plot { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 100%; }
.b27mo .mm { flex: 1; min-width: 0; height: 100%; position: relative; display: flex; flex-direction: column-reverse; }
.b27mo .mm i { display: block; width: 100%; } .b27mo .mm i.run { background: var(--blue); } .b27mo .mm i.one { background: #D9B45A; }
.b27mo .mm em { position: relative; z-index: 2; align-self: center; font-style: normal; font-size: 10px; color: var(--body); background: var(--white); padding: 0 3px; margin-bottom: 3px; white-space: nowrap; }
.b27mo .mm span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--muted); }
.b27mo b.cap { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--ink); z-index: 1; pointer-events: none; }
.b27steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.b27steps div { border: 1px solid var(--rule); background: var(--white); padding: 10px 14px; border-radius: 2px; } .b27steps div.on { border-color: var(--blue); background: #F5F8FC; }
.b27steps b { display: block; font-size: 18px; font-weight: 500; color: var(--ink); } .b27steps span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.b27steps i { font-style: normal; font-size: 13px; color: var(--muted); } .b27steps i::before { content: '→ '; } .b27steps i::after { content: ' →'; }
.b27prot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; } .b27prot > span:first-child { margin-right: 4px; }
.b27chart { background: var(--white); border: 1px solid var(--rule); padding: 14px; margin: 18px 0 8px; }
.b27chart svg { width: 100%; min-width: 640px; display: block; } .b27chart svg text { font-size: 10px; fill: var(--muted); font-family: inherit; } .b27chart svg text.yr { fill: var(--ink); font-weight: 500; }
.b27leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; color: var(--body); } .b27leg i { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; }
.b27leg i.la { border-top: 2px solid var(--ink); } .b27leg i.lp { border-top: 2px dashed var(--blue); } .b27leg i.lb { height: 10px; background: rgba(0,73,149,.12); }
.b27h3 { font-size: 15px; font-weight: 500; color: var(--ink); margin: 22px 0 8px; }
.b27pts { margin: 0; padding-left: 20px; line-height: 1.6; } .b27pts li { margin-bottom: 6px; }
.section details > summary, details.section > summary, #d27mo > summary, #d27method > summary { cursor: pointer; color: var(--blue); margin: 10px 0 8px; }
details.section > summary { list-style: none; color: inherit; } details.section > summary::-webkit-details-marker { display: none; }
details.section > summary h2::before { content: '▸ '; color: var(--muted); } details.section[open] > summary h2::before { content: '▾ '; }
.b27method { background: var(--white); border: 1px solid var(--rule); padding: 16px 18px; } .b27method p { margin: 0 0 10px; }
.b27bench { margin-bottom: 14px; }
.b27scale { position: relative; height: 16px; background: var(--canvas); border-radius: 2px; margin: 86px 0 4px; }
.b27scale .band { position: absolute; top: 0; bottom: 0; background: #DCE6F0; } .b27scale .band.rec { background: #B9CDE3; }
.b27scale .mk { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink); } .b27scale .mk.plan { background: var(--blue); }
.b27scale .mk span { position: absolute; bottom: 100%; left: 6px; transform: translateX(-10%); margin-bottom: 4px; font-size: 11px; font-weight: 500; white-space: nowrap; line-height: 1.25; color: var(--ink); }
.b27scale .mk.plan span { margin-bottom: 40px; color: var(--blue); } .b27scale .mk.plan::after { content: ''; position: absolute; left: 0; bottom: 100%; height: 38px; border-left: 1px dotted var(--blue); }
.b27axis { position: relative; height: 16px; margin-bottom: 30px; } .b27axis span { position: absolute; transform: translateX(-50%); font-size: 10px; }
.b27src { margin-top: 30px; }
@media (max-width: 1100px) { .stats.b27cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .stats.b27cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .stats.b27cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b27cards .stat:first-child { grid-column: 1 / -1; } .b27cards .stat { padding: 14px; } .b27cards .stat .n { font-size: 21px; }
  .b27sw { grid-template-columns: 1fr 1fr 1fr; min-width: 100%; } .b27sw .seg-body { padding: 8px 10px; } .b27sw .seg-body em { font-size: 11px; }
  .b27mo { padding: 26px 6px 24px; } .b27mo .plot { gap: 3px; } .b27mo .mm em { display: none; }
  .b27filters select { max-width: none; flex: 1 1 100%; }
}

/* social calendar */
.soc-month { font-size: 20px; margin: 30px 0 12px; }
.soc-row { margin-bottom: 34px; }
.soc-row-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.soc-row.now .soc-grid { outline: 2px solid var(--blue); outline-offset: 3px; }
.soc-grid, .soc-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; max-width: 720px; }
.soc-feed { gap: 3px; }
.soc-tile { position: relative; aspect-ratio: 4 / 5; border: 1px solid var(--rule); background: #EDEDE8 center / cover no-repeat; cursor: pointer; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 4px; font: inherit; color: var(--ink); overflow: hidden; }
.soc-tile-b { font-weight: 600; font-size: 13px; } .soc-tile-p { font-size: 12px; color: var(--muted); line-height: 1.35; }
.soc-tile-d { position: absolute; left: 8px; bottom: 8px; font-size: 11px; background: rgba(255,255,255,.9); padding: 2px 6px; border-radius: 2px; }
.soc-tile.done::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--ok); }
.soc-card { background: var(--white); border: 1px solid var(--rule); border-radius: 2px; margin-bottom: 8px; }
.section > .soc-card { box-shadow: inset 3px 0 0 var(--blue); }
.soc-card > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.soc-card > summary::-webkit-details-marker { display: none; }
.soc-card[open] > summary { border-bottom: 1px solid var(--rule); }
.soc-card.done > summary { opacity: .65; }
.soc-card.late:not(.done) .soc-date { color: var(--warn); }
.soc-date { width: 140px; white-space: nowrap; font-weight: 500; color: var(--ink); }
.soc-title { flex: 1; min-width: 180px; }
.soc-plat { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; white-space: nowrap; }
.soc-plat.Instagram { background: #F6E9F0; color: #8E3462; } .soc-plat.Facebook { background: #E8EEFA; color: #2D5BB8; } .soc-plat.LinkedIn { background: #E3F1F5; color: #0A6A8A; }
.soc-in { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.soc-main { padding: 16px; min-width: 0; }
.soc-meta { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 14px; margin: 0 0 14px; font-size: 13px; }
.soc-meta dt { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.soc-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; } .soc-meta ul { margin: 0; padding-left: 18px; }
.soc-provide { background: #FBF1DA; padding: 8px 10px; }
.soc-cap { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; line-height: 1.6; background: var(--canvas); border: 1px solid var(--rule); padding: 12px 14px; margin: 0 0 10px; }
.soc-ph { background: #FBF1DA; color: var(--warn); }
.soc-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.soc-pics { border-left: 1px solid var(--rule); padding: 16px; background: #FAFAF8; display: flex; flex-direction: column; gap: 10px; }
.soc-pics-h { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.soc-pic img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); background: var(--white); }
.soc-pic-m { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.soc-pic-m span:first-child { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--body); }
.soc-add { align-self: flex-start; cursor: pointer; }
@media (max-width: 760px) { .soc-in { grid-template-columns: minmax(0, 1fr); } .soc-pics { border-left: 0; border-top: 1px solid var(--rule); } .soc-meta { grid-template-columns: minmax(0, 1fr); } .soc-date { width: auto; } .soc-tile { padding: 8px; } .soc-tile-p { display: none; } }
.stats.soc-stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stats.soc-stats { grid-template-columns: repeat(2, 1fr); } .soc-pic img { max-width: 220px; } }
.soc-time { display: inline-flex; align-items: center; gap: 6px; } .soc-time input { font: inherit; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 2px; background: var(--white); }

/* budget: this month — one answer, is it complete, where the money goes */
.btabs { flex-wrap: wrap; } .btab-gap { width: 1px; background: var(--rule); margin: 8px 10px; }
.bans { margin-bottom: 16px; border-left: 4px solid var(--ok); } .bans.bad { border-left-color: var(--bad); } .bans.warn { border-left-color: var(--warn); }
.bans-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 16px; }
.bans .l { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bans .n { font-size: 30px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; } .bans .n.soft { color: var(--blue-2); } .bans .n.bad { color: var(--bad); }
.bans-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; } .bans-key span { display: inline-flex; align-items: center; gap: 6px; }
.bans-key i.k { display: inline-block; width: 14px; height: 8px; border-radius: 4px; } .bans-key i.k.sp { background: var(--blue); } .bans-key i.k.fc { background: rgba(0, 73, 149, .22); } .bans-key i.k.pl { width: 2px; height: 14px; background: var(--ink); border-radius: 0; }
.bans-say { margin: 14px 0 0; font-size: 15px; color: var(--ink); } .bans.bad .bans-say b { color: var(--bad); }
.bcheck { margin-bottom: 26px; } .bcheck.warn { border-left: 4px solid var(--warn); } .bcheck h2 { margin: 0 0 10px; }
.bcheck table { border: 0; } .bcheck td { border-bottom: 1px solid var(--rule); } .bcheck tr:last-child td { border-bottom: 0; } .bcheck td:first-child { width: 230px; }
.btable td.r, .btable th.r { text-align: right; white-space: nowrap; } .btable td.bcell { width: 22%; min-width: 120px; vertical-align: middle; }
.btable tr.btotal td { background: #FAFAF8; border-top: 2px solid var(--rule); }
@media (max-width: 900px) { .bans-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .btable td.bcell, .btable th:last-child { display: none; } .bcheck td:first-child { width: auto; } .btab-gap { display: none; } }
@media (max-width: 700px) { .bcheck table, .bcheck tbody, .bcheck tr, .bcheck td { display: block; width: auto !important; } .bcheck tr { border-bottom: 1px solid var(--rule); padding: 8px 0; } .bcheck td { border: 0 !important; padding: 2px 0; } }

/* page loading: a thin blue bar along the top, and the old page dimmed so it is clear something is happening */
body.loading::before { content: ''; position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 9999; background: linear-gradient(90deg, transparent, var(--blue), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: hubload 1s linear infinite; }
body.loading #main { opacity: .55; transition: opacity .15s .2s; pointer-events: none; }
@keyframes hubload { from { background-position: -50% 0; } to { background-position: 150% 0; } }
/* newsletters page sections: click a heading to fold it */
.nlsec > summary { cursor: pointer; list-style: none; }
.nlsec > summary::-webkit-details-marker { display: none; }
.nlsec > summary h2::after { content: ' ▾'; color: var(--muted); font-size: .8em; }
.nlsec:not([open]) > summary h2::after { content: ' ▸'; }

/* =====================================================================================================
   Visual refresh (Oct 2026): calmer canvas, soft cards, clearer navigation, larger readable type,
   rounded controls with visible focus. Layered over the rules above, so every page changes at once.
   ===================================================================================================== */
:root { --canvas: #F4F5F7; --rule: #E3E6EB; --muted: #667085; --body: #2F3640; --ink: #121826; --blue-soft: #EEF4FA; --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-hover: 0 6px 18px rgba(16, 24, 40, .08); }
body { font-size: 14.5px; line-height: 1.55; }
h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 11.5px; letter-spacing: .14em; color: var(--blue-2); font-weight: 600; }
.main { padding: 34px 44px 90px; max-width: 1360px; }
.head { margin-bottom: 30px; }
.head .crumbs { font-size: 11.5px; color: var(--blue-2); font-weight: 600; }

/* navigation: a clear "you are here" */
.nav { padding: 26px 16px; box-shadow: 1px 0 0 var(--rule); border-right: 0; }
.nav .brand { padding: 0 8px; }
.nav a.item { margin: 2px 0; padding: 9px 12px; border-radius: 8px; font-weight: 500; color: var(--body); transition: background .12s, color .12s; }
.nav a.item:hover { background: var(--canvas); color: var(--ink); }
.nav a.item.active { background: var(--blue-soft); color: var(--blue); font-weight: 600; box-shadow: inset 3px 0 0 var(--blue); }
.nav .sub { margin: 4px 0 10px 20px; border-left: 2px solid var(--rule); }
.nav .sub a { padding: 6px 12px; border-radius: 0 6px 6px 0; margin-left: -2px; border-left: 2px solid transparent; }
.nav .sub a:hover { color: var(--ink); background: var(--canvas); }
.nav .sub a.on { color: var(--blue); font-weight: 600; border-left-color: var(--blue); }
.nav .user { padding: 14px 8px 0; }

/* buttons */
.btn { border-radius: 8px; font-weight: 600; padding: 9px 16px; transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(0, 73, 149, .25); outline-offset: 2px; }
.btn.quiet { background: var(--white); border-color: var(--rule); color: var(--ink); }
.btn.quiet:hover { border-color: #C9CFD8; background: var(--white); box-shadow: var(--shadow-hover); }
.btn.ghost { border-color: #BCD0E6; }
.btn.danger:hover { background: #FDF3F2; }
.btn.sm { border-radius: 7px; padding: 6px 12px; }

/* cards, tiles, empty states */
.card, .evcard, .empty, .modal .box { border-radius: var(--radius); border-color: var(--rule); box-shadow: var(--shadow); }
.card { padding: 24px 26px; }
.evcard { transition: box-shadow .15s, border-color .15s, transform .15s; }
.evcard:hover { border-color: #C9D7E6; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.evcard .d { font-weight: 600; color: var(--blue-2); }
.evcard .n { font-weight: 600; letter-spacing: -0.01em; }
.stats { gap: 12px; background: transparent; border: 0; overflow: visible; }
.stat { border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.stat:hover { background: var(--white); border-color: #C9D7E6; box-shadow: var(--shadow-hover); }
.stat.active { border-color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue), var(--shadow); }
.stat .n { font-weight: 600; }
.stat .l { font-size: 11px; font-weight: 600; }
.empty { color: var(--muted); }

/* forms */
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=datetime-local], input[type=number], input[type=url], input[type=date], input[type=month], select, textarea {
  border-radius: 8px; border-color: #D5DAE1; background-color: var(--white); transition: border-color .12s, box-shadow .12s; }
input:hover, select:hover, textarea:hover { border-color: #B9C1CC; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 73, 149, .15); }

/* tables: a card with a soft header and row hover */
table { border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--shadow); }
th { background: #F8F9FB; color: var(--muted); font-weight: 600; font-size: 10.5px; }
td { border-bottom-color: #EEF0F3; }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td, tr.row:hover td { background: #F8FAFD; }
.card table, .bcats table, .split table { box-shadow: none; }

/* labels */
.tag { border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 10.5px; }

/* toasts and dialogs */
.toast { border-radius: 10px; padding: 12px 20px; box-shadow: 0 10px 30px rgba(16, 24, 40, .25); font-weight: 500; }
.modal { background: rgba(18, 24, 38, .45); backdrop-filter: blur(2px); }
.modal .box { border-radius: 14px; padding: 28px 30px; box-shadow: 0 24px 60px rgba(16, 24, 40, .25); border: 0; }
.modal .box h1 { font-size: 21px; font-weight: 600; }

/* phones: the same look, tighter */
@media (max-width: 900px) { .main { padding: 22px 16px 70px; } h1 { font-size: 23px; } .nav a.item.active { box-shadow: none; } }
.main { max-width: 1480px; width: 100%; margin: 0 auto; }
.cols.hours .col .m { font-size: 10px; }
.cols.hours .col .v { font-size: 9px; }
/* budget: what to cut, and the one-line data check */
.bcut { margin-top: 14px; padding: 14px 16px; background: #FDF6F5; border: 1px solid #F1D9D6; border-radius: 8px; }
.bcut-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 6px 0; border-top: 1px solid #F1D9D6; }
.bcut-row:first-of-type { border-top: 0; }
.bcheck-line { margin: -6px 0 22px; }

/* Newsletters → Automations */
.flows { display: grid; gap: 14px; }
.flow-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.flow-counts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--body); }
.flow-counts b { color: var(--ink); font-weight: 600; }
.flow-recent summary { cursor: pointer; color: var(--blue); margin-top: 14px; font-size: 13px; }
.flow-recent table { margin-top: 10px; }
.seg button:disabled { cursor: default; opacity: .7; }
table.senders input { width: 100%; min-width: 150px; }

/* social (v2): the prepared feed */
.sx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 26px; }
.sx-chip { background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--rule); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.sx-chip b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.sx-chip.on { border-left-color: var(--ok); } .sx-chip.bad { border-left-color: var(--bad); }
.sx-chip .btn { margin-top: 6px; }
.sx-post { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; background: var(--white); border: 1px solid var(--rule); padding: 16px; }
.sx-post.big { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); }
.sx-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--canvas); }
.sx-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sx-pl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 2px 7px; border-radius: 2px; background: var(--canvas); color: var(--ink); }
.sx-pl.instagram { background: #F6E9EF; color: #8A2357; } .sx-pl.facebook { background: #E7EEF9; color: #1D4E9A; } .sx-pl.linkedin { background: #E6F0F6; color: #0A5A8A; }
.sx-when { font-size: 20px; color: var(--ink); margin: 10px 0 2px; font-weight: 500; }
.sx-what { color: var(--muted); margin-bottom: 12px; }
.sx-cap { white-space: normal; background: var(--canvas); padding: 12px 14px; font-size: 14px; line-height: 1.6; color: var(--ink); max-height: 340px; overflow: auto; }
.sx-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sx-two { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 36px; align-items: start; }
.sx-phone { background: var(--white); border: 1px solid var(--rule); padding: 10px; max-width: 520px; }
.sx-rowlab { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--ink); margin: 12px 2px 6px; }
.sx-rowlab:first-child { margin-top: 2px; } .sx-rowlab i { color: var(--muted); font-style: normal; text-align: right; }
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.sx-tile { position: relative; padding: 0; border: 0; cursor: pointer; background: var(--canvas); aspect-ratio: 3 / 4; overflow: hidden; }
.sx-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.sx-tile:hover img { transform: scale(1.03); }
.sx-tile .sx-t { position: absolute; left: 6px; bottom: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 2px; }
.sx-tile .sx-b { position: absolute; right: 6px; top: 6px; font-size: 11px; color: #fff; background: var(--ok); padding: 1px 6px; border-radius: 2px; }
.sx-tile.done img { opacity: .55; }
.sx-tile .sx-k { position: absolute; left: 6px; top: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 2px; }
.sx-pic video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #000; }
.sx-car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; }
.sx-car a { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.sx-car span { position: absolute; right: 8px; top: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.5); padding: 1px 6px; border-radius: 2px; }
.sx-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--rule); padding: 8px; margin-bottom: 8px; cursor: pointer; }
.sx-line:hover { border-color: #CFCFCA; } .sx-line.done { opacity: .6; }
.sx-line img { width: 64px; height: 80px; object-fit: cover; display: block; background: var(--canvas); }
.sx-drawer { width: min(860px, 100vw); }
@media (max-width: 1100px) { .sx-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .sx-post, .sx-post.big { grid-template-columns: minmax(0, 1fr); } }

.sx-tabs { display: flex; gap: 4px; margin: 4px 0 18px; border-bottom: 1px solid var(--rule); }
.sx-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sx-tabs button.on { color: var(--ink); border-bottom-color: var(--brand, #004995); font-weight: 600; }
.sx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.sx-cards div { background: var(--card, #fff); border: 1px solid var(--rule); padding: 14px 16px; }
.sx-cards b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.sx-cards span { font-size: 12px; color: var(--muted); }
.sx-bars { width: 100%; height: 120px; fill: var(--brand, #004995); opacity: .85; }
.sx-ptbl img { width: 44px; height: 55px; object-fit: cover; display: block; }
.sx-ptbl td, .sx-ptbl th { white-space: nowrap; font-size: 13px; }
.sx-ptbl td:nth-child(3) { white-space: normal; min-width: 220px; }

.sx-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.sx-story { display: flex; gap: 14px; background: var(--white, #fff); border: 1px solid var(--rule); padding: 12px; }
.sx-story.done { opacity: .6; }
.sx-sframe { position: relative; flex: 0 0 150px; height: 267px; background: #000; overflow: hidden; }
.sx-sframe img, .sx-sframe video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-zone { position: absolute; left: 12%; right: 12%; border: 1.5px dashed rgba(255,255,255,.9); outline: 1px dashed rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.sx-zone span { font-size: 9px; line-height: 1.2; color: #fff; background: rgba(0,0,0,.45); padding: 2px 4px; text-align: center; max-width: 95%; }
.sx-sbody { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-sbody b { font-size: 15px; }
.sx-link { word-break: break-all; }
.sx-link mark { background: #fff3c4; padding: 0 3px; }

.sx-lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sx-libi { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sx-sframe.sm { flex: none; width: 100%; height: auto; aspect-ratio: 9 / 16; display: block; }
.sx-libi video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reports ---------- */
.rp-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-dates select, .rp-dates input { padding: 6px 8px; font: inherit; }
.rp-cards em, .sx-cards em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 3px; }
.rp-d { font-style: normal; font-size: 12px; margin-left: 4px; color: var(--muted); }
.rp-d.up::before { content: '▲ '; font-size: 9px; } .rp-d.down::before { content: '▼ '; font-size: 9px; }
.sx-cards .ok { color: var(--ok); } .sx-cards .warn { color: #B26A00; }
.rp-summary ul { margin: 0; padding-left: 18px; line-height: 1.55; } .rp-summary li { margin-bottom: 6px; } .rp-summary li.muted { color: var(--muted); }
.rp-tbl td, .rp-tbl th { font-size: 13px; white-space: nowrap; } .rp-tbl td:first-child { white-space: normal; }
.rp-tbl td:not(:first-child), .rp-tbl th:not(:first-child) { text-align: right; }
.rp-tbl.sx-ptbl td:nth-child(3) { text-align: left; white-space: normal; }
.rp-bars { display: grid; gap: 6px; margin: 6px 0 14px; }
.rp-bars div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.rp-bars i { display: block; height: 12px; background: var(--brand, #004995); } .rp-bars b { font-weight: 500; min-width: 54px; text-align: right; }
.rp-cols { display: flex; align-items: flex-end; gap: 4px; height: 190px; margin: 8px 0 4px; border-bottom: 1px solid var(--rule); }
.rp-cols > div { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.rp-colbars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.rp-colbars i { display: block; width: 42%; max-width: 26px; min-height: 1px; }
.rp-cols span { font-size: 11px; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.s0 { background: var(--brand, #004995); } .s1 { background: #9DB8D6; }
.rp-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 8px; } .rp-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; }
.rp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.rp-three h3, .section h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin: 18px 0 8px; }
.rp-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-f { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 13px; flex: 1; } .rp-f input { padding: 8px; font: inherit; }
@media (max-width: 1100px) { .rp-three, .rp-even { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dashboard ---------- */
.dx-focus { flex-wrap: wrap; } .dx-cmp { display: flex; align-items: center; gap: 6px; } .dx-cmp input { width: auto; min-height: 0; }
.dx-note { background: #FBF1DA; color: var(--warn); padding: 10px 14px; margin-bottom: 18px; font-size: 13px; border-radius: 6px; }
.dx-group { margin-top: 22px; } .dx-group h2 { margin-bottom: 12px; }
.dx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.dx-tile { text-align: left; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.dx-tile:hover { border-color: #BFCCDD; box-shadow: 0 2px 10px rgba(0, 40, 90, .06); }
.dx-tile.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.dx-tile span { font-size: 12px; color: var(--muted); } .dx-tile b { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.dx-spark { width: 100%; height: 24px; margin-top: 4px; } .dx-spark path { fill: none; stroke: var(--blue-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dx-chart { position: relative; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px 4px; }
.dx-svg { width: 100%; height: 240px; display: block; overflow: visible; }
.dx-grid { stroke: #EEEEEA; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dx-ylab { font-size: 11px; fill: var(--muted); text-anchor: end; } .dx-xlab { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.dx-line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; } .dx-prev { fill: none; stroke-width: 1.4; stroke-dasharray: 5 4; opacity: .45; vector-effect: non-scaling-stroke; }
.dx-guide { stroke: #9AA7B8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dx-tip { position: absolute; top: 12px; width: 200px; background: var(--ink); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 6px; pointer-events: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.dx-tip div { display: flex; align-items: center; gap: 6px; margin-top: 3px; } .dx-tip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; } .dx-tip .muted { color: #B8B8B4; }
.dx-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; } .dx-pick select { width: auto; min-width: 180px; }
.dx-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 13px; }
.dx-chip i { width: 10px; height: 10px; border-radius: 3px; } .dx-chip button { border: 0; background: var(--canvas); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.dx-bal .dx-chart { margin-bottom: 8px; }
.dx-balbars { display: flex; align-items: center; height: 70px; gap: 1px; background: var(--white); border: 1px solid var(--rule); border-radius: 8px; padding: 4px 8px; }
.dx-balbars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.dx-balbars i { display: block; } .dx-balbars i.up { background: #15803D; align-self: stretch; margin-top: auto; max-height: 50%; } .dx-balbars i.down { background: #C2410C; max-height: 50%; margin-bottom: auto; }
.dx-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .dx-sub h2 { flex: 1; } .dx-sub select { width: auto; }
.dx-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.dx-seg button { border: 0; background: var(--white); padding: 7px 14px; cursor: pointer; font-size: 13px; } .dx-seg button.on { background: var(--blue); color: #fff; }
.dx-heat { display: grid; grid-template-columns: 118px repeat(7, 1fr); gap: 3px; font-size: 11px; }
.dx-hd { text-align: center; color: var(--muted); padding-bottom: 2px; } .dx-hb { color: var(--muted); align-self: center; white-space: nowrap; }
.dx-hc { height: 34px; border-radius: 5px; background: rgba(0, 73, 149, var(--a)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10.5px; }
.dx-hc[style*="--a:0;"], .dx-hc[style*="--a:0\""] { background: #F1F1EE; }
.dx-ins { margin: 0; padding-left: 18px; line-height: 1.55; } .dx-ins li { margin-bottom: 8px; }
.sx-tablink { margin-left: auto; align-self: center; font-size: 13px; }

/* ---------- Studio Office theme (Oct 2026): Product Sans, the stacked wordmark, warm paper, quiet surfaces ----------
   Overrides only: every page keeps its markup. Blue is for actions and where you are; everything else is ink on paper. */
@font-face { font-family: 'Product Sans'; src: url('/fonts/ProductSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Product Sans'; src: url('/fonts/ProductSans-Bold.ttf') format('truetype'); font-weight: 500 700; font-display: swap; }
/* Product Sans has no Greek: Greek letters come from Google Sans, its sibling */
@font-face { font-family: 'Product Sans'; src: url('/fonts/GoogleSans-Medium.ttf') format('truetype'); font-weight: 400 700; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
:root { --font: 'Product Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; --ink: #141414; --body: #3A3A38; --muted: #7A7872; --rule: #E7E5DF; --canvas: #F6F5F1; --paper: #F6F5F1; --radius: 10px; }
body { background: var(--paper); font-size: 14px; letter-spacing: .005em; }
h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--muted); }
.section h2 { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.head { margin-bottom: 30px; } .head p.muted { font-size: 14px; max-width: 760px; }
.head .crumbs { font-size: 11px; letter-spacing: .18em; color: var(--blue); font-weight: 700; }
/* the column */
.shell { grid-template-columns: 248px 1fr; }
.nav { background: #FFFFFF; border-right: 1px solid var(--rule); padding: 30px 22px 22px; }
.nav .brand { gap: 14px; margin-bottom: 38px; align-items: flex-end; }
.nav .brand img { height: 34px; width: auto; }
.nav .brand span { font-size: 10px; letter-spacing: .2em; color: var(--muted); padding-bottom: 2px; }
.nav .grp { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #A8A59E; margin: 22px 0 6px; padding: 0; font-weight: 700; }
.nav a.item { padding: 7px 0 7px 12px; margin: 1px 0; border-radius: 0; color: var(--body); font-size: 14.5px; box-shadow: none; background: none; border-left: 2px solid transparent; }
.nav a.item:hover { color: var(--ink); background: none; border-left-color: var(--rule); }
.nav a.item.active { color: var(--ink); font-weight: 700; background: none; border-left-color: var(--blue); }
.nav .sub { margin: 2px 0 10px 13px; border-left: 1px solid var(--rule); }
.nav .sub a { padding: 5px 0 5px 14px; font-size: 13px; color: var(--muted); border-radius: 0; }
.nav .sub a:hover { color: var(--ink); background: none; } .nav .sub a.on { color: var(--blue); font-weight: 700; }
.nav .user { border-top-color: var(--rule); }
.main { padding: 40px 48px 90px; max-width: 1480px; }
/* surfaces */
.card, .empty, .sx-chip, .sx-cards div, .stats, .dx-tile, .dx-chart, .dx-balbars { border-radius: var(--radius); box-shadow: none; border-color: var(--rule); }
.empty { background: #FFFFFF; color: var(--muted); }
.stats { gap: 0; } .stat .n, .sx-cards b { font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.sx-cards b { font-size: 28px; } .sx-cards span { color: var(--muted); }
.sx-chip { border-left-width: 1px; } .sx-chip.on { box-shadow: inset 3px 0 0 var(--ok); } .sx-chip.bad { box-shadow: inset 3px 0 0 var(--bad); }
.sx-chip b { font-weight: 700; letter-spacing: .16em; font-size: 10px; color: var(--muted); }
/* buttons and fields */
.btn { border-radius: 999px; padding: 9px 18px; font-weight: 700; letter-spacing: .01em; font-size: 13px; }
.btn.sm { padding: 6px 13px; font-size: 12px; }
.btn.ghost { border-color: var(--blue); }
.btn.quiet { border-color: #D9D6CF; background: #FFFFFF; color: var(--ink); } .btn.quiet:hover { border-color: var(--ink); background: #FFFFFF; }
input[type=text], input[type=search], input[type=email], input[type=tel], input[type=password], input[type=datetime-local], input[type=number], input[type=url], input[type=date], input[type=time], input[type=month], select, textarea { border-radius: 8px; border-color: #DAD7D0; background-color: #FFFFFF; }
/* tables: a card with hairlines */
table { border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; border-color: var(--rule); box-shadow: none; }
th { background: #FFFFFF; color: var(--muted); font-weight: 700; font-size: 10.5px; letter-spacing: .14em; border-bottom: 1px solid var(--rule); }
td { border-bottom-color: #EFEDE8; } tbody tr:last-child td { border-bottom: 0; }
tr.row:hover td { background: #FAF9F6; }
.tag { border-radius: 999px; padding: 2px 9px; font-weight: 700; font-size: 10px; letter-spacing: .08em; }
/* tabs */
.sx-tabs { gap: 22px; border-bottom-color: var(--rule); }
.sx-tabs button { padding: 10px 0; border-radius: 0; color: var(--muted); font-size: 14px; }
.sx-tabs button.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.toast { border-radius: 999px; }
/* dashboard on the new surfaces */
.dx-tile { padding: 14px 16px 10px; } .dx-tile b { font-size: 24px; font-weight: 700; } .dx-tile.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dx-chip { border-radius: 999px; } .dx-seg { border-radius: 999px; } .dx-seg button.on { background: var(--ink); }
.rp-bars i, .s0 { background: var(--blue); }
@media (max-width: 900px) { .nav .grp { display: none; } .main { padding: 22px 16px 60px; } h1 { font-size: 28px; } }
.dx-plot { display: grid; grid-template-columns: 48px 1fr; gap: 8px; }
.dx-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 11px; color: var(--muted); padding: 0 0 0; }
.dx-y span { line-height: 1; } .dx-svg { height: auto; }
.dx-x { position: relative; height: 20px; margin-left: 56px; font-size: 11px; color: var(--muted); }
.dx-x span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.dx-x span:first-child { transform: none; } .dx-x span:last-child { transform: translateX(-100%); }
.dx-own { margin: 2px 0 6px 56px; }
.dx-ptbl td:nth-child(-n+4), .dx-ptbl th:nth-child(-n+4) { text-align: left; } .dx-ptbl td:nth-child(3) { white-space: normal; min-width: 240px; }
.dx-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 10px; }
.dx-mcard { background: #FFFFFF; border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 16px 10px; }
.dx-mhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .dx-mhead span { flex: 1 1 100%; font-size: 12px; color: var(--muted); } .dx-mhead b { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.dx-mbars { display: flex; align-items: flex-end; gap: 3px; height: 64px; margin-top: 10px; }
.dx-mbars div { flex: 1; height: 100%; display: flex; align-items: flex-end; } .dx-mbars i { display: block; width: 100%; background: var(--blue); border-radius: 2px 2px 0 0; opacity: .85; } .dx-mbars div:last-child i { opacity: 1; } .dx-mbars i.none { background: none; }
.dx-mbars div:hover i { opacity: 1; background: var(--ink); }
.dx-mlab { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Dashboard v2 ---------- */
.d2 { --card: #fff; }
.d2-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.d2-kick { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.d2-controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.d2-seg { display: inline-flex; background: #ECEAE4; border-radius: 999px; padding: 3px; gap: 2px; }
.d2-seg button { border: 0; background: none; padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--body); }
.d2-seg.sm button { padding: 5px 11px; font-size: 12px; }
.d2-seg button.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.d2-dates { display: flex; align-items: center; gap: 6px; } .d2-dates input { width: auto; min-height: 34px; padding: 5px 9px; border-radius: 999px; }
.d2-tabs { display: flex; gap: 6px; align-items: center; margin: 4px 0 22px; flex-wrap: wrap; }
.d2-tabs button { border: 1px solid var(--rule); background: #fff; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13.5px; }
.d2-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }
.d2-fresh { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.d2-heroes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.d2-card { text-align: left; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; font: inherit; color: inherit; }
.d2-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,30,70,.08); border-color: #D3DCE8; }
.d2-card.hero { cursor: default; background: linear-gradient(160deg, #fff 0%, #F5F8FC 100%); }
.d2-card b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.d2-cl { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .d2-cl span { font-size: 12.5px; color: var(--muted); }
.d2-cs { font-size: 11.5px; color: var(--muted); }
.d2-spark { height: 38px; margin: 6px -4px 0; }
.d2-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #F0EFEA; color: var(--muted); white-space: nowrap; }
.d2-chip.up { background: #E3F4EC; color: #12805C; } .d2-chip.down { background: #FCE9E4; color: #C2410C; } .d2-chip.neu { background: #EAF0F7; color: var(--blue); }
.d2-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.d2-gh h2 { margin: 6px 0 10px; border: 0; padding: 0; }
.d2-panel { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.d2-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.d2-ph h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.d2-chart { height: 300px; width: 100%; } .d2-chart.xl { height: 380px; }
.d2-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .d2-grid2 > .d2-panel { margin-bottom: 14px; }
.d2-pick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .d2-pick select { width: auto; min-height: 32px; padding: 4px 30px 4px 12px; border-radius: 999px; font-size: 12.5px; }
.d2-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; background: #F4F3EF; border-radius: 999px; padding: 4px 6px 4px 11px; }
.d2-tag i { width: 9px; height: 9px; border-radius: 3px; } .d2-tag button { border: 0; background: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; }
.d2-bt { width: 100%; border: 0; box-shadow: none; border-radius: 0; } .d2-bt td { padding: 8px 6px; border-bottom: 1px solid #F0EEE9; vertical-align: middle; font-size: 13px; }
.d2-bt tr { cursor: pointer; } .d2-bt tr:hover td { background: #F7F9FC; }
.d2-bt .nm { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; } .d2-bt .dot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 8px; }
.d2-bt .shr { width: 26%; } .d2-bt .shr i { display: block; height: 8px; border-radius: 4px; opacity: .85; }
.d2-bt .v { text-align: right; font-weight: 700; color: var(--ink); } .d2-bt .s { text-align: right; color: var(--muted); width: 44px; } .d2-bt .c { text-align: right; width: 70px; } .d2-bt .sp { width: 110px; height: 30px; }
.d2-ct { width: 100%; border: 0; box-shadow: none; } .d2-ct th { font-size: 10.5px; text-align: right; } .d2-ct th:first-child { text-align: left; }
.d2-ct td { text-align: right; font-size: 13px; font-weight: 700; color: var(--ink); vertical-align: middle; } .d2-ct td.nm { text-align: left; font-weight: 500; max-width: 260px; } .d2-ct td .sub { margin-top: 3px; } .d2-ct td.sp { width: 120px; height: 34px; }
.d2-ct tr { cursor: pointer; } .d2-ct tr:hover td { background: #F7F9FC; }
.d2-ins { margin: 0; padding-left: 18px; line-height: 1.6; } .d2-ins li { margin-bottom: 6px; }
.d2-row { display: flex; gap: 8px; align-items: center; } .d2-row select { width: auto; min-height: 32px; border-radius: 999px; }
.d2-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.d2-post { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #F4F3EF; text-decoration: none; color: inherit; border: 1px solid var(--rule); }
.d2-post img, .d2-post .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.d2-po { position: absolute; inset: 0 0 auto 0; aspect-ratio: 4 / 5; background: linear-gradient(180deg, rgba(0,26,56,.15), rgba(0,26,56,.88)); color: #fff; opacity: 0; transition: opacity .18s; display: flex; align-items: flex-end; padding: 12px; font-size: 12px; line-height: 1.5; }
.d2-post:hover .d2-po { opacity: 1; } .d2-pm b { font-size: 18px; }
.d2-pc { display: flex; justify-content: space-between; padding: 8px 10px 2px; font-size: 11.5px; color: var(--muted); } .d2-pc b { color: var(--ink); }
.d2-pt { padding: 0 10px 10px; font-size: 12px; line-height: 1.4; max-height: calc(2.8em + 10px); color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d2-ov { position: fixed; inset: 0; background: rgba(10,20,35,.35); backdrop-filter: blur(2px); z-index: 80; }
.d2-dr { position: fixed; top: 0; right: 0; bottom: 0; width: min(880px, 96vw); background: #FBFAF7; z-index: 81; overflow-y: auto; padding: 26px 30px 40px; box-shadow: -20px 0 60px rgba(0,0,0,.18); animation: d2in .22s ease-out; }
@keyframes d2in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.d2-drh { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; } .d2-drh h2 { font-size: 26px; text-transform: none; letter-spacing: -0.02em; color: var(--ink); border: 0; margin: 0; padding: 0; }
.d2-drh .x { border: 0; background: #ECEAE4; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.d2-drk { display: flex; gap: 28px; margin-bottom: 10px; } .d2-drk span { display: block; font-size: 12px; color: var(--muted); } .d2-drk b { font-size: 22px; color: var(--ink); }
.d2-skel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; } .d2-skel div { height: 110px; border-radius: 16px; background: linear-gradient(90deg, #EEECE6 0%, #F7F6F2 50%, #EEECE6 100%); background-size: 200% 100%; animation: d2sk 1.2s infinite; }
.d2-skel.big { grid-template-columns: 1fr; } .d2-skel.big div { height: 380px; } .d2-skel.line { height: 160px; border-radius: 12px; background: linear-gradient(90deg, #EEECE6 0%, #F7F6F2 50%, #EEECE6 100%); background-size: 200% 100%; animation: d2sk 1.2s infinite; }
@keyframes d2sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 1100px) { .d2-grid2 { grid-template-columns: minmax(0, 1fr); } .d2-skel { grid-template-columns: repeat(2, 1fr); } }
.tag.site-com { background: #E6EEF7; color: #004995; font-weight: 600; } .tag.site-gr { background: #FFF1DC; color: #8A4B00; font-weight: 600; }
