/* Skalia · Focus — views: investments folders, deal gates, documents, backlog, reports, portfolio */

/* ---------- investments: folder tabs ---------- */
.ftabs { display: flex; gap: 4px; padding-left: 10px; position: relative; z-index: 1; }
.ftab { position: relative; display: flex; align-items: center; gap: 9px; padding: 11px 22px 12px; font-size: 14.5px; font-weight: 500; color: var(--ink2); text-decoration: none; border-radius: 14px 14px 0 0; background: rgba(255, 253, 248, .45); box-shadow: inset 0 1px 0 var(--line), inset 1px 0 0 var(--line), inset -1px 0 0 var(--line); transition: .15s; }
.ftab:hover { color: var(--ink); background: rgba(255, 253, 248, .8); }
.ftab i { font-style: normal; font: 600 11px/1 var(--sans); color: var(--ink3); background: var(--bg2); padding: 3px 7px; border-radius: 999px; }
.ftab.on { background: var(--paper); color: var(--ink); box-shadow: inset 0 1px 0 var(--line2), inset 1px 0 0 var(--line2), inset -1px 0 0 var(--line2), 0 1px 0 var(--paper); z-index: 2; }
.ftab.on i { background: var(--gold-soft); color: #7d5c17; }
.fbody { position: relative; background: var(--paper); border-radius: 0 22px 22px 22px; box-shadow: 0 0 0 1px var(--line2), var(--shadow); padding: 28px 30px 34px; margin-top: -1px; min-height: 420px; }
.shelf + .shelf { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.shelf-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.shelf-h h2 { font: 400 25px/1.1 var(--serif); letter-spacing: -.01em; }
.shelf-h .pdot { width: 9px; height: 9px; transform: translateY(-2px); }
.shelf-h .muted { font-size: 13px; }
.shelf-h .r { margin-left: auto; }

/* ---------- the folder (a real upgrade: back, tab, paper, tinted front, it opens on hover) ---------- */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 30px 20px; }
.folder { --mix: calc(13% + var(--v, 0) * 1%); --tint: color-mix(in srgb, var(--fc) var(--mix), #f8f2e4); --tint2: color-mix(in srgb, var(--fc) 26%, #f1e8d4); --edge: color-mix(in srgb, var(--fc) 45%, #b9a780);
  position: relative; display: block; height: 252px; text-decoration: none; color: var(--ink); perspective: 900px; isolation: isolate; animation: fIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes fIn { from { opacity: 0; transform: translateY(10px); } }
.f-back { position: absolute; inset: 14px 0 0 0; border-radius: 6px 14px 14px 14px; background: linear-gradient(180deg, var(--tint2), color-mix(in srgb, var(--fc) 30%, #e8dcc2)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.f-tab { position: absolute; left: 0; top: 0; height: 28px; min-width: 46%; max-width: 72%; padding: 6px 16px 0 14px; border-radius: 10px 14px 0 0; background: var(--tint2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); font: 600 10.5px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--fc) 70%, #3b3020); }
.f-tab::after { content: ''; position: absolute; right: -14px; bottom: 0; width: 18px; height: 22px; background: var(--tint2); clip-path: polygon(0 0, 30% 0, 100% 100%, 0 100%); border-top-right-radius: 8px; }
.f-tab em { font-style: normal; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-paper { position: absolute; left: 12px; right: 12px; top: 22px; height: 80px; border-radius: 4px; background: #fffdf8; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: transform .45s var(--ease); background-image: repeating-linear-gradient(180deg, transparent 0 13px, rgba(26, 32, 36, .05) 13px 14px); background-position: 0 18px; }
.f-paper.p1 { transform: rotate(-1.4deg) translateY(2px); }
.f-paper.p2 { left: 18px; right: 8px; transform: rotate(1.1deg) translateY(4px); background-color: #fbf8f1; }
.f-paper.p3 { left: 24px; right: 22px; top: 24px; transform: rotate(-.3deg) translateY(6px); background-color: #fff; }
.f-front { position: absolute; left: 0; right: 0; bottom: 0; top: 42px; display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px; border-radius: 4px 14px 14px 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 92%, #fff) 0%, var(--tint) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(0, 0, 0, .045), 0 1px 2px rgba(60, 45, 20, .08), 0 18px 30px -18px rgba(60, 45, 20, .35);
  transform-origin: 50% 100%; transition: transform .45s var(--ease), box-shadow .3s; }
.f-front::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .3 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.folder:hover .f-front { transform: rotateX(-13deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(0, 0, 0, .05), 0 24px 40px -18px rgba(60, 45, 20, .45); }
.folder:hover .f-paper.p1 { transform: rotate(-2.2deg) translateY(-10px); }
.folder:hover .f-paper.p2 { transform: rotate(1.8deg) translateY(-6px); }
.folder:hover .f-paper.p3 { transform: rotate(-.4deg) translateY(-14px); }
.folder:focus-visible { outline-offset: 6px; border-radius: 14px; }
.f-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: color-mix(in srgb, var(--fc) 40%, #5a5040); white-space: nowrap; overflow: hidden; }
.f-top > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.f-badge { flex: none; font: 600 10.5px/1 var(--sans); padding: 4px 8px; border-radius: 999px; background: var(--ink); color: #fff; letter-spacing: .02em; }
.f-badge.ok { background: rgba(255, 255, 255, .6); color: var(--yes); }
.folder h3 { font: 500 22px/1.12 var(--serif); letter-spacing: -.012em; margin: 2px 0 0; color: #1c1a16; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-num { font-size: 12.5px; color: #5d5546; display: flex; gap: 6px; white-space: nowrap; overflow: hidden; }
.f-num i { font-style: normal; opacity: .5; }
.f-rail { margin-top: auto; }
.seg11 { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.seg11 i { height: 5px; border-radius: 3px; background: rgba(60, 45, 20, .12); }
.seg11 i.cleared { background: color-mix(in srgb, var(--fc) 55%, #23483c); }
.seg11 i.waiting { background: repeating-linear-gradient(-45deg, #1a2024 0 3px, var(--gold2) 3px 6px); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .8); }
.seg11 i.preparing { background: repeating-linear-gradient(90deg, var(--gold2) 0 3px, transparent 3px 6px); }
.seg11 i.skipped { background: transparent; box-shadow: inset 0 0 0 1px rgba(60, 45, 20, .2); }
.f-names { display: flex; align-items: baseline; gap: 6px; margin-top: 7px; font-size: 11.5px; color: #7b715f; white-space: nowrap; overflow: hidden; }
.f-names b { font-weight: 600; color: #1c1a16; }
.f-names .sep { opacity: .5; }
.f-names .nx { opacity: .8; }
.f-next { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.35; color: #4b4436; padding-top: 9px; margin-top: 2px; border-top: 1px solid rgba(60, 45, 20, .1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.f-next .pdot { width: 7px; height: 7px; background: #a89c84; margin-right: 6px; transform: translateY(-1px); }
.f-next.w { color: #1c1a16; font-weight: 500; }
.f-next.w .pdot { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 59, .2); }
.folder.waiting .f-front { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 1px rgba(0, 0, 0, .05), 0 0 0 1.5px rgba(26, 32, 36, .55), 0 18px 30px -18px rgba(60, 45, 20, .35); }
.folder.passed { --tint: #efede7; --tint2: #e3e0d8; filter: saturate(.3); opacity: .9; }
.f-pass { margin-top: auto; font: italic 400 16px/1.35 var(--serif); color: #4b4436; }
.folder.camp .f-names .nx { display: none; }
.f-thesis { font-size: 12.5px; line-height: 1.45; color: #5d5546; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.f-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: auto; }
.f-stats span { font-size: 10.5px; color: #7b715f; display: flex; flex-direction: column; }
.f-stats b { font: 500 18px/1.1 var(--serif); color: #1c1a16; }

/* gate rails view */
.rails { display: flex; flex-direction: column; }
.rrow { display: grid; grid-template-columns: 230px minmax(0, 1fr) 260px; align-items: center; gap: 24px; padding: 16px 8px; border-top: 1px solid var(--line); text-decoration: none; transition: background .15s; border-radius: 10px; }
.rrow:first-child { border-top: 0; }
.rrow:hover { background: var(--paper2); }
.rr-n { display: flex; gap: 12px; align-items: center; }
.rr-n b { display: block; font: 500 18px/1.15 var(--serif); }
.rr-n span { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rr-n span { font-size: 12px; color: var(--ink3); }
.rr-x { font-size: 13.5px; color: var(--ink2); display: flex; gap: 8px; align-items: baseline; }
.rr-x .pdot { background: var(--line2); }
.rr-x.w { color: var(--ink); font-weight: 500; }
.rr-x.w .pdot { background: var(--gold); }
.rail-full { display: grid; grid-template-columns: repeat(11, 1fr); gap: 0; min-width: 0; }
.rf { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.rf::before { content: ''; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.rf:first-child::before { display: none; }
.rf i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line2); z-index: 1; }
.rf span { font-size: 10px; color: var(--ink4); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.rf.cleared::before, .rf.waiting::before, .rf.preparing::before { background: var(--fc); opacity: .7; }
.rf.cleared i { background: var(--fc); box-shadow: none; }
.rf.cleared span { color: var(--ink3); }
.rf.waiting i { background: var(--paper); box-shadow: inset 0 0 0 3px var(--ink); }
.rf.waiting span { color: var(--ink); font-weight: 600; }
.rf.preparing i { box-shadow: inset 0 0 0 2px var(--gold2); }
.rf.preparing span { color: var(--gold); }

/* ---------- deal page ---------- */
.dealv { padding: 0 0 100px; }
.deal-top { max-width: 1320px; margin: 0 auto; padding: 14px 40px 0; }
.back { display: inline-block; font-size: 13px; color: var(--ink3); text-decoration: none; margin-bottom: 12px; }
.back:hover { color: var(--ink); }
.deal-h { display: flex; justify-content: space-between; gap: 40px; align-items: flex-end; }
.dh-tab { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--fc) 70%, #3b3020); background: color-mix(in srgb, var(--fc) 18%, #f8f2e4); padding: 7px 14px 7px 10px; border-radius: 10px 10px 0 10px; }
.deal-h h1 { font: 400 48px/1.02 var(--serif); letter-spacing: -.024em; margin: 10px 0 6px; }
.dh-m { margin: 0; color: var(--ink2); font-size: 14.5px; max-width: 660px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dh-next { margin: 10px 0 0; font-size: 15px; color: var(--ink2); display: flex; gap: 10px; align-items: baseline; }
.dh-next .pdot { background: var(--line2); }
.dh-next.w .pdot { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 154, 59, .2); }
.dh-next b { font-weight: 600; color: var(--ink); }
.dh-r { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; flex: none; }
.facts { display: flex; gap: 26px; }
.facts div { display: flex; flex-direction: column; gap: 3px; text-align: right; }
.facts span { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.facts b { font: 400 22px/1.1 var(--serif); white-space: nowrap; }
.dh-a { display: flex; gap: 8px; }
.stagenames { display: flex; gap: 2px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.sn { display: flex; align-items: center; gap: 7px; padding: 10px 12px 12px; font-size: 13px; font-weight: 500; color: var(--ink4); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.sn i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); }
.sn.cleared { color: var(--ink3); }
.sn.cleared i { background: var(--yes); box-shadow: none; }
.sn.waiting { color: var(--ink); }
.sn.waiting i { box-shadow: inset 0 0 0 2.5px var(--gold); }
.sn.preparing { color: var(--gold); }
.sn.preparing i { box-shadow: inset 0 0 0 1.5px var(--gold2); }
.sn:hover { color: var(--ink); }
.sn.on { color: var(--ink); border-bottom-color: var(--ink); }
.gstrip-wrap { position: relative; }
.gstrip { display: flex; gap: 18px; align-items: stretch; overflow-x: auto; scroll-snap-type: x proximity; padding: 24px max(40px, calc((100vw - 1320px) / 2 + 40px)) 26px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.gend { flex: none; width: 20px; }
.gnav { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-size: 22px; line-height: 1; color: var(--ink2); transform: translateY(-50%); }
.gnav.l { left: 14px; } .gnav.r { right: 14px; }
body.chat-open .gnav.r { right: 14px; }
.gnav:hover { color: var(--ink); }
.gf { position: relative; flex: none; display: flex; flex-direction: column; width: 380px; height: max(440px, calc(100vh - var(--top) - 330px)); scroll-snap-align: center; border-radius: 6px 18px 18px 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 0; transition: box-shadow .25s, transform .3s var(--ease); margin-top: 22px; }
.gf.cleared { background: linear-gradient(180deg, color-mix(in srgb, var(--fc) 8%, #fffdf8), #fffdf8 40%); }
.gf.waiting { width: 560px; box-shadow: 0 0 0 1.5px var(--ink), var(--shadow-lg); }
.gf.preparing { background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(201, 154, 59, .04) 12px 24px), var(--paper); box-shadow: 0 0 0 1px var(--line2), var(--shadow); }
.gf.focus:not(.waiting):not(.spine) { box-shadow: 0 0 0 1.5px var(--ink3), var(--shadow-lg); }
.gf-tab { position: absolute; left: -1px; top: -24px; height: 25px; padding: 5px 16px 0 14px; border-radius: 10px 14px 0 0; font: 600 10.5px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--paper); color: var(--ink3); box-shadow: 0 -1px 0 var(--line), -1px 0 0 var(--line), 1px 0 0 var(--line); }
.gf.waiting .gf-tab { box-shadow: 0 -1.5px 0 var(--ink), -1.5px 0 0 var(--ink), 1.5px 0 0 var(--ink); color: var(--ink); }
.gf.cleared .gf-tab { background: color-mix(in srgb, var(--fc) 8%, #fffdf8); color: color-mix(in srgb, var(--fc) 70%, #3b3020); }
/* the tollgate bar */
.gf-bar { position: absolute; left: 18px; right: 18px; top: 0; height: 0; z-index: 2; }
.gf-bar .arm { position: absolute; left: 0; right: 0; top: -3px; height: 6px; border-radius: 3px; transform-origin: 0 50%; transition: transform .9s var(--ease), opacity .9s; }
.gf.waiting .gf-bar .arm { background: repeating-linear-gradient(-45deg, var(--ink) 0 7px, var(--gold2) 7px 14px); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.gf.waiting .gf-bar::before { content: ''; position: absolute; left: -6px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.gf-bar.lifting .arm { transform: rotate(-24deg); opacity: .0; }
.gf.cleared .gf-bar .arm { left: auto; right: -4px; width: 64px; height: 4px; top: -2px; border-radius: 2px; transform-origin: 100% 50%; transform: rotate(52deg); background: repeating-linear-gradient(-45deg, var(--yes) 0 5px, #9cbcae 5px 10px); opacity: .75; }
.gf.cleared .gf-bar::after { content: ''; position: absolute; right: -8px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--yes); box-shadow: 0 0 0 3px var(--paper); }
.gf.preparing .gf-bar .arm { background: repeating-linear-gradient(90deg, var(--gold2) 0 8px, transparent 8px 16px); background-size: 32px 3px; height: 3px; animation: march 1.2s linear infinite; }
.gf-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 26px 14px; }
.gf-h h3 { font: 400 28px/1.1 var(--serif); letter-spacing: -.012em; margin-top: 6px; }
.gf.waiting .gf-h h3 { font-size: 32px; }
.gf-h { flex: none; }
.gf-b { flex: 1; min-height: 0; overflow-y: auto; padding: 0 26px 24px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.gf-b > * { flex: none; }
.gf.spine { width: 74px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 22px 0; gap: 14px; background: linear-gradient(90deg, rgba(255, 253, 248, .5), rgba(255, 253, 248, .85)); box-shadow: 0 0 0 1px var(--line); border-radius: 6px 14px 14px 14px; cursor: pointer; scroll-snap-align: start; }
.gf.spine:hover { background: var(--paper); box-shadow: 0 0 0 1px var(--line2), var(--shadow); }
.sp-n { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 21px/1 var(--serif); color: var(--ink3); letter-spacing: -.005em; }
.sp-s { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink4); }
.gf.spine.skipped .sp-n { text-decoration: line-through; text-decoration-color: var(--line2); }
.gh { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--yes-soft); }
.gh-t { width: 26px; height: 26px; border-radius: 50%; background: var(--yes); color: #fff; display: grid; place-items: center; flex: none; }
.gh-t svg { width: 15px; height: 15px; }
.gh b { display: block; font-size: 13.5px; font-weight: 600; color: var(--yes); }
.gh span { font-size: 12.5px; color: var(--ink2); }
.gd { padding: 18px 20px; border-radius: 16px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.gd-q { font: 400 23px/1.25 var(--serif); margin: 8px 0 10px; letter-spacing: -.008em; text-wrap: balance; }
.gd-q.sm { font-size: 17px; margin: 6px 0; }
.gd-r { margin: 0 0 14px; font-size: 14px; color: var(--ink2); }
.gd-r span { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.gd-a { display: flex; gap: 8px; align-items: center; }
.gd-x { margin-top: 12px; }
.gd-x .reasons { margin-bottom: 8px; }
.gd-x .field { min-height: 40px; padding: 9px 12px; }
.gd-why .why { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; padding-top: 14px; }
.gd-c { margin: 12px 0 0; font-size: 12.5px; color: var(--ink3); }
.gd.done { background: transparent; box-shadow: inset 0 0 0 1px var(--line); padding: 12px 16px; }
.gd-d { margin: 0; font-size: 13px; font-weight: 600; }
.gd-d.approve { color: var(--yes); } .gd-d.pass { color: var(--no); } .gd-d.edit { color: var(--gold); }
.gd-d .link { font-weight: 500; font-size: 12.5px; margin-left: 6px; }
.gdocs { display: grid; gap: 8px; }
.gdoc { display: flex; flex-direction: column; text-align: left; gap: 2px; padding: 12px 14px 12px 16px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .03); position: relative; transition: .15s; }
.gdoc::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 2px 2px 0; background: var(--fc); opacity: .7; }
.gdoc:hover { box-shadow: 0 0 0 1px var(--ink3), var(--shadow); transform: translateY(-1px); }
.gdoc-k { font: 600 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.gdoc b { font: 500 16px/1.3 var(--serif); }
.gdoc-m { font-size: 12px; color: var(--ink3); }
.gdoc-m em { font-style: normal; color: var(--gold); font-weight: 600; }
.gw { display: grid; gap: 7px; }
.gw .eyebrow { margin-bottom: 2px; }
.wk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.wk > i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; position: relative; }
.wk.done > i { background: var(--yes); border-color: var(--yes); }
.wk.done > i::after { content: ''; position: absolute; left: 3px; top: .5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.wk.running > i { border-color: var(--gold2); border-top-color: transparent; animation: spin .9s linear infinite; }
.wk.needs-you > i { background: var(--gold2); border-color: var(--gold2); }
.wk.queued { color: var(--ink4); }
.wk span { flex: 1; min-width: 0; }
.wk span em { font-style: normal; color: var(--ink4); }
.pg { flex: none; width: 70px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pg b { display: block; height: 100%; background: var(--gold2); animation: grow 6s ease-out forwards; }
@keyframes grow { to { width: 96% !important; } }
.deal-low { max-width: 1320px; margin: 0 auto; padding: 10px 40px 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
.lh { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.lh h2 { font: 400 28px/1.1 var(--serif); }
.lh .muted { font-size: 13px; }
.note-in { margin-bottom: 18px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl > li { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.tl-at { font-size: 12px; color: var(--ink3); padding-top: 2px; }
.tl b { font-size: 13.5px; font-weight: 600; }
.tl p { margin: 3px 0 0; font-size: 14.5px; color: var(--ink2); }
.tl li.tl-phone .tl-at { color: var(--blue); }
.dl-side { display: flex; flex-direction: column; gap: 16px; }
.box { background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 18px 20px; }
.box .eyebrow { margin-bottom: 10px; display: block; }
.box .wk { margin-top: 8px; }
.drow { display: block; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font: 500 15px/1.3 var(--serif); }
.drow:first-of-type { border-top: 0; }
.drow span { display: block; font: 600 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.drow:hover { color: var(--gold); }
.prow { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: 0; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: 11.5px; font-weight: 600; color: var(--ink2); flex: none; }
.prow b { display: block; font-size: 13.5px; font-weight: 600; }
.prow span { font-size: 12px; color: var(--ink3); }

/* ---------- documents ---------- */
.docmod { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 0; min-height: calc(100vh - var(--top)); }
.doc-l { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; padding: 26px 22px 80px 28px; border-right: 1px solid var(--line); }
.doc-l .eyebrow { display: block; margin-bottom: 10px; }
.chap { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chap li a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; color: var(--ink2); text-decoration: none; line-height: 1.35; }
.chap li a:hover { background: var(--paper); color: var(--ink); }
.chap li a.on { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chap li.v a::after { content: 'your voice'; display: inline-block; margin-left: 6px; font: 600 9.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: 3px 6px; border-radius: 999px; vertical-align: 1px; }
.chap li.vd a::after { content: '✓ yours'; display: inline-block; margin-left: 6px; font: 600 9.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--yes); background: var(--yes-soft); padding: 3px 6px; border-radius: 999px; vertical-align: 1px; }
.vprog { margin-top: 16px; font-size: 12px; color: var(--ink3); display: grid; gap: 6px; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--yes); }
.odocs { list-style: none; margin: 0; padding: 0; }
.odocs a { display: block; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font: 500 14px/1.3 var(--serif); color: var(--ink2); }
.odocs a span { display: block; font: 600 9.5px/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink4); }
.odocs a:hover { color: var(--ink); }
.doc-c { padding: 34px 40px 120px; min-width: 0; }
.paper { max-width: 760px; margin: 0 auto; background: #fffefb; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(60, 45, 20, .3); padding: 64px 76px 80px; font-family: var(--serif); }
.paper.compact { box-shadow: none; padding: 0; background: transparent; max-width: none; }
.paper-h { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.paper-h h1 { font: 400 40px/1.1 var(--serif); letter-spacing: -.018em; margin: 10px 0 12px; }
.paper.compact .paper-h h1 { font-size: 34px; }
.paper-m { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink3); }
.lede { font-size: 20px; line-height: 1.5; color: var(--ink2); }
.sec { margin: 0 0 30px; scroll-margin-top: calc(var(--top) + 20px); }
.sec h2 { font: 500 21px/1.25 var(--serif); margin: 0 0 10px; letter-spacing: -.005em; }
.sec p { font-size: 17.5px; line-height: 1.62; color: #2a2f31; margin: 0 0 12px; }
.sec del, .rl del { color: var(--no); text-decoration-thickness: 1.5px; background: rgba(141, 59, 44, .07); }
.sec ins, .rl ins { color: var(--yes); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; background: rgba(34, 72, 60, .07); }
.voice-box { font-family: var(--sans); background: var(--gold-soft); border-radius: 14px; padding: 16px 18px; box-shadow: inset 0 0 0 1px rgba(165, 122, 36, .25); }
.vb-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.vb-h .muted { font-size: 13px; color: #7b6230; }
.vb-ctx p { font: 400 15px/1.5 var(--serif); color: #5b4513; }
.voice-box .field { background: #fffdf7; border-color: rgba(165, 122, 36, .3); }
.vb-a { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.vb-out { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(165, 122, 36, .35); }
.vb-txt { font: 400 17.5px/1.62 var(--serif); color: var(--ink); min-height: 28px; }
.vb-txt.streaming::after, .txt.streaming::after { content: '▍'; color: var(--gold); animation: blink 1s infinite; margin-left: 2px; }
.yours { position: relative; padding: 4px 0 0 18px; border-left: 3px solid var(--gold2); }
.yours .eyebrow { display: block; margin-bottom: 6px; font-family: var(--sans); }
.yours .link { font-family: var(--sans); font-size: 12.5px; }
.doc-r { position: sticky; top: var(--top); align-self: start; height: calc(100vh - var(--top)); overflow-y: auto; padding: 26px 26px 80px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.dr-b .eyebrow { display: block; margin-bottom: 10px; }
.notes, .srcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { font-size: 13.5px; line-height: 1.5; color: var(--ink2); padding-left: 14px; position: relative; }
.notes li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold2); }
.srcs li { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.srcs li span { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--bg2); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: var(--ink3); }
.dr-dec { background: var(--paper); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line2), var(--shadow); }
.dr-dec h4 { font: 400 20px/1.25 var(--serif); margin-bottom: 10px; }
.dd-rec { font-size: 13.5px; color: var(--ink2); margin: 0 0 14px; }
.dd-rec span { display: block; font: 600 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.dd-a { display: flex; gap: 6px; }
.dd-a .btn { height: 36px; padding: 0 14px; }
.dd-x { margin-top: 10px; }
.dd-c { font-size: 12px; color: var(--ink3); margin: 12px 0 0; }
.dd-done { font-weight: 600; font-size: 14px; }
.dd-done.approve { color: var(--yes); } .dd-done.pass { color: var(--no); } .dd-done.edit { color: var(--gold); }
/* doc data */
.dh { font: 500 19px/1.2 var(--serif); margin: 26px 0 12px; }
.dt { width: 100%; border-collapse: collapse; font: 13.5px/1.4 var(--sans); }
.dt th { text-align: left; font: 600 10.5px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); padding: 9px 10px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.dt td { padding: 10px 10px; border-bottom: 1px solid var(--line); color: var(--ink2); vertical-align: top; }
.dt tr.warn td { background: rgba(181, 116, 28, .06); }
.dt tr.tot td { font-weight: 600; color: var(--ink); border-top: 1.5px solid var(--ink); }
.dt .n { text-align: right; font-variant-numeric: tabular-nums; }
.dt tfoot td { font-weight: 600; color: var(--ink); border-top: 1.5px solid var(--ink); border-bottom: 0; }
.kv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; font-family: var(--sans); }
.kv div { padding: 12px 14px; border-radius: 12px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.kv span { display: block; font-size: 11px; color: var(--ink3); }
.kv b { font: 400 22px/1.2 var(--serif); }
.ff { font-family: var(--sans); display: grid; gap: 10px; }
.ff-r { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: center; }
.ff-l { font-size: 12.5px; color: var(--ink2); }
.ff-t { position: relative; height: 22px; }
.ff-t i { position: absolute; top: 4px; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--ph-evaluation) 35%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ph-evaluation) 60%, #fff); }
.ff-t b { position: absolute; top: 1px; width: 2px; height: 20px; background: var(--ink); margin-left: -1px; }
.ff-t em { position: absolute; top: 5px; font-style: normal; font-size: 10.5px; color: var(--ink3); transform: translateX(-100%); padding-right: 5px; }
.ff-t em + em { transform: none; padding: 0 0 0 5px; }
.ff-max s { position: absolute; top: -130px; bottom: 0; border-left: 1.5px dashed var(--no); text-decoration: none; }
.ff-max s span { position: absolute; bottom: 0; left: 6px; font-size: 11px; color: var(--no); white-space: nowrap; font-weight: 600; }
.killers { display: grid; gap: 8px; font-family: var(--sans); }
.kl { display: flex; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.kl .sev { flex: none; width: 66px; font: 600 10px/1.8 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.kl.critical { background: var(--no-soft); box-shadow: inset 3px 0 0 var(--no); }
.kl.critical .sev { color: var(--no); }
.kl.high .sev { color: var(--amber); }
.kl b { font-size: 14px; }
.kl p { margin: 3px 0 0; font-size: 13px; color: var(--ink2); }
.kl em { font-style: normal; color: var(--ink4); font-size: 12px; }
.ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--sans); font-size: 14px; }
.ck li { display: flex; gap: 10px; align-items: center; color: var(--ink2); }
.ck i { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line2); }
.ck li.ok i { background: var(--yes); box-shadow: none; }
.ck li.ok { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line2); }
.fitbar { display: inline-block; width: 60px; height: 4px; border-radius: 2px; background: var(--line); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.fitbar i { display: block; height: 100%; background: var(--yes); }
.rl { display: grid; gap: 12px; font-family: var(--sans); }
.rl-i { padding: 14px 16px; border-radius: 14px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.rl-i.acc { box-shadow: inset 3px 0 0 var(--yes), inset 0 0 0 1px var(--line); }
.rl-i.rej { box-shadow: inset 3px 0 0 var(--no), inset 0 0 0 1px var(--line); opacity: .75; }
.rl-h { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.rl-h b { font: 500 17px/1.3 var(--serif); }
.rl-t { margin: 8px 0 4px; font: 400 16px/1.55 var(--serif); color: var(--ink); }
.rl-c { margin: 4px 0; font-size: 13.5px; }
.rl-c span { font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-right: 6px; }
.rl ins.ours { color: var(--blue); background: rgba(79, 111, 140, .08); }
.rl-w { margin: 4px 0 0; font-size: 13px; color: var(--ink3); }
.rl-a { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.rl-s { font-size: 12.5px; font-weight: 600; color: var(--yes); }
.rl-i.rej .rl-s { color: var(--no); }
.mail { font-family: var(--sans); }
.mail-h { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; }
.mail-h span { color: var(--ink3); }
.mail-d { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--yes-soft); }

/* ---------- backlog page ---------- */
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: start; }
.blg { background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1px var(--line); padding: 8px 8px 6px; margin-bottom: 16px; }
.blg-h { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px 8px; }
.blg-h h3 { font: 400 22px/1.1 var(--serif); }
.blg-h .r { margin-left: auto; font-size: 13px; }
.blg-deal { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.blg-deal .muted { font-size: 13px; }
.blg-deal:hover h3 { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 4px; }
.blr { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 13px 16px; border-radius: 14px; transition: background .15s; }
.blr:hover { background: var(--paper2); }
.blr + .blr { box-shadow: 0 -1px 0 var(--line); }
.blr-h { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink3); }
.blr-d { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; color: var(--ink2); text-decoration: none; }
.blr-q { font: 400 18px/1.35 var(--serif); margin-top: 3px; }
.blr-t { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.blr-a { display: flex; gap: 6px; align-items: center; }
.snz { position: relative; }
.snz-m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: none; flex-direction: column; min-width: 190px; padding: 6px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
.snz.on .snz-m { display: flex; }
.snz-m button { text-align: left; padding: 8px 12px; border-radius: 9px; font-size: 13px; }
.snz-m button:hover { background: var(--bg2); }
.bl-side { position: sticky; top: calc(var(--top) + 20px); display: flex; flex-direction: column; gap: 16px; }
.mini-r { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.mini-r:first-of-type { border-top: 0; }
.mini-r b { display: block; font-size: 13px; font-weight: 600; }
.mini-r span { display: block; font-size: 13px; color: var(--ink2); line-height: 1.4; }
.mini-r .tm { font-size: 11.5px; color: var(--ink4); margin-top: 2px; }
.mini-r .link { font-size: 12.5px; white-space: nowrap; }
.res-approve { color: var(--yes); } .res-pass { color: var(--no); } .res-edit { color: var(--gold); }

/* ---------- reports ---------- */
.rep { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.rep-l { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--top) + 20px); }
.rep-l a { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: .15s; }
.rep-l a b { display: block; font: 500 17px/1.25 var(--serif); }
.rep-l a span { font-size: 12.5px; color: var(--ink3); }
.rep-l a:hover { background: rgba(255, 253, 248, .7); }
.rep-l a.on { background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.rep-c { background: var(--paper); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 30px 32px 28px; min-width: 0; }
.rep-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.rep-h h2 { font: 400 32px/1.1 var(--serif); margin: 8px 0 4px; letter-spacing: -.012em; }
.rep-h p { margin: 0; font-size: 14px; }
.tbl-wrap { overflow-x: auto; }
.rep-t { font-size: 13px; }
.rep-t td { white-space: normal; }
.rep-t td.n, .rep-t th { white-space: nowrap; }
.rep-t td:last-child { min-width: 180px; }
.rep-t .sub { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 2px; white-space: normal; max-width: 240px; }
.rep-t td .link { font-weight: 600; color: var(--ink); text-decoration-color: var(--line); }
.rep-note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink3); }
@media print {
  .page.reports { padding: 0; max-width: none; }
  .rep { display: block; }
  .rep-c { box-shadow: none; padding: 0; }
  .dt { font-size: 10px; }
}

/* ---------- portfolio ---------- */
.pf-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--paper); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 16px 18px; }
.kpi span { display: block; font-size: 12px; color: var(--ink3); }
.kpi b { display: block; font: 400 32px/1.1 var(--serif); margin-top: 4px; letter-spacing: -.01em; }
.kpi em { font-style: normal; font-size: 12px; color: var(--yes); }
.pf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.co { position: relative; background: var(--paper); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: 18px 20px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: .2s; }
.co:hover { box-shadow: 0 0 0 1px var(--ink3), var(--shadow); }
.co h3 { font: 400 22px/1.15 var(--serif); }
.co .co-m { font-size: 12.5px; color: var(--ink3); }
.co .co-n { display: flex; gap: 18px; margin: 8px 0 2px; }
.co .co-n div span { display: block; font-size: 11px; color: var(--ink3); }
.co .co-n div b { font: 400 20px/1.1 var(--serif); }
.co .spark { margin-top: 4px; }
.co .hl { position: absolute; top: 18px; right: 18px; width: 9px; height: 9px; border-radius: 50%; }
.hl.green { background: #5d9a78; } .hl.amber { background: var(--amber); } .hl.red { background: var(--no); }
.co .al { font-size: 12.5px; color: var(--ink2); padding-top: 8px; border-top: 1px solid var(--line); margin-top: auto; }
.co.amber .al { color: #8a5a14; }
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: stretch; }
.graph-panel { position: relative; height: 560px; border-radius: 24px; overflow: hidden; background: radial-gradient(900px 500px at 50% 45%, #1d2a33 0%, #121a20 60%, #0d1317 100%); box-shadow: 0 0 0 1px #1a252c, var(--shadow-lg); }
.graph-panel canvas { display: block; }
.g-labels { position: absolute; inset: 0; pointer-events: none; }
.g-lab { position: absolute; transform: translate(-50%, -150%); white-space: nowrap; font: 500 11.5px/1 var(--sans); color: rgba(235, 228, 214, .86); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); letter-spacing: .01em; transition: opacity .2s; }
.g-lab.hub { font: 600 12.5px/1 var(--sans); color: #f1d48d; letter-spacing: .06em; text-transform: uppercase; }
.g-lab.dim { opacity: .25; }
.g-hud { position: absolute; left: 20px; top: 18px; color: #e9e2d2; pointer-events: none; }
.g-hud h3 { font: 400 24px/1.1 var(--serif); }
.g-hud p { margin: 4px 0 0; font-size: 12.5px; color: rgba(233, 226, 210, .6); }
.g-leg { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: rgba(233, 226, 210, .7); }
.g-leg span { display: inline-flex; align-items: center; gap: 6px; }
.g-leg i { width: 8px; height: 8px; border-radius: 50%; }
.g-ctl { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; }
.g-ctl button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 500; color: rgba(233, 226, 210, .8); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.g-ctl button.on, .g-ctl button:hover { color: #121a20; background: #e9e2d2; }
.g-hint { position: absolute; right: 18px; bottom: 16px; font-size: 11.5px; color: rgba(233, 226, 210, .45); }
.g-side { display: flex; flex-direction: column; gap: 14px; }
.g-detail h4 { font: 400 22px/1.2 var(--serif); margin: 4px 0 6px; }
.g-detail p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink2); }
.g-detail .rel { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.alerts { display: grid; gap: 10px; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.alert.amber { box-shadow: inset 3px 0 0 var(--amber), 0 0 0 1px var(--line); }
.alert.red { box-shadow: inset 3px 0 0 var(--no), 0 0 0 1px var(--line); }
.alert b { display: block; font-size: 14px; }
.alert p { margin: 2px 0 8px; font-size: 13px; color: var(--ink2); }
.ws { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.ws .box h4 { font: 400 19px/1.2 var(--serif); margin-bottom: 8px; }
.wsr { display: grid; grid-template-columns: 1fr 70px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink2); padding: 6px 0; border-top: 1px solid var(--line); }
.wsr:first-of-type { border-top: 0; }
.wsr .meter i { background: var(--ph-value); }
.exit-card { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; border-radius: 24px; background: linear-gradient(120deg, #fbf3df, #f6ecd5 50%, #fbf6ea); box-shadow: 0 0 0 1px #e8d9b4, var(--shadow); }
.exit-card h3 { font: 400 30px/1.1 var(--serif); }
.exit-card p { margin: 6px 0 0; color: #6b5422; font-size: 14.5px; }
/* exit celebration */
.cele { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: radial-gradient(1000px 600px at 50% 40%, rgba(60, 44, 12, .55), rgba(10, 10, 8, .86)); opacity: 0; pointer-events: none; transition: opacity .6s; }
.cele.on { opacity: 1; pointer-events: auto; }
.cele .glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 212, 141, .28), rgba(241, 212, 141, 0) 60%); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }
.tomb { position: relative; width: 460px; padding: 46px 44px 38px; text-align: center; background: linear-gradient(180deg, #fffdf6, #f7efdc); border-radius: 6px; box-shadow: 0 0 0 1px #d9c48e, 0 0 0 7px #fbf6e8, 0 0 0 8px #d9c48e, 0 40px 120px -20px rgba(241, 212, 141, .5); transform: translateY(20px) scale(.97); transition: transform 1s var(--ease); }
.cele.on .tomb { transform: none; }
.tomb .eyebrow { color: #8a6a26; }
.tomb h2 { font: 400 44px/1.05 var(--serif); margin: 14px 0 6px; letter-spacing: -.02em; }
.tomb .sub { font: italic 400 17px/1.4 var(--serif); color: #6b5422; }
.tomb .rule { width: 60px; height: 1px; background: #c9a24f; margin: 22px auto; }
.tomb .ret { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tomb .ret b { display: block; font: 400 34px/1 var(--serif); color: #2a2418; }
.tomb .ret span { font-size: 11.5px; color: #8a7448; letter-spacing: .06em; text-transform: uppercase; }
.tomb .fine { margin-top: 22px; font-size: 12px; color: #8a7448; line-height: 1.5; }
.tomb .row { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }

@media (max-width: 1360px) {
  .docmod { grid-template-columns: 220px minmax(0, 1fr) 290px; }
  .paper { padding: 48px 52px 64px; }
  .doc-c { padding: 26px 26px 100px; }
  .deal-h h1 { font-size: 46px; }
  .facts { gap: 18px; } .facts b { font-size: 19px; }
  .rrow { grid-template-columns: 220px 1fr 240px; }
  .pf-kpis b, .kpi b { font-size: 27px; }
  .ws { grid-template-columns: repeat(2, 1fr); }
  .deal-low { grid-template-columns: minmax(0, 1fr) 320px; }
}
.gh p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.45; }
.gh.held { background: var(--gold-soft); }
.gh.held b { color: #7d5c17; }
.gnote { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.5; padding: 10px 14px; border-radius: 12px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.facts-l { margin: 6px 0 0; padding: 0 0 0 16px; font-size: 13px; color: var(--ink2); }
.facts-l li { margin: 2px 0; display: list-item; padding: 0; border: 0; }
.vb-q { font: 400 19px/1.4 var(--serif) !important; color: var(--ink) !important; margin: 0 0 6px !important; }
.vb-hint { font: 13.5px/1.5 var(--sans) !important; color: #7b6230 !important; margin: 0 0 10px !important; }
.vb-ctx { margin: 0 0 10px; font-size: 13px; color: #7b6230; }
.vb-ctx summary { cursor: pointer; font-weight: 500; }
.vb-ctx p { font: 400 15px/1.5 var(--serif) !important; color: #5b4513 !important; margin: 8px 0 0 !important; }
.nn { font: 13px/1.5 var(--sans) !important; color: var(--ink3) !important; }
.slides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: var(--sans); }
.slides li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.slides span { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.tomb-mini { font-family: var(--sans); text-align: center; padding: 24px; border-radius: 6px; background: linear-gradient(180deg, #fffdf6, #f7efdc); box-shadow: 0 0 0 1px #d9c48e; }
.tomb-mini > b { display: block; font: 400 30px/1.1 var(--serif); margin: 8px 0 2px; }
.tomb-mini > span { display: block; font: italic 15px var(--serif); color: #6b5422; margin-bottom: 14px; }
.tomb-mini .kv { grid-template-columns: repeat(3, 1fr); }

.folder.waiting .f-tab em::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.f-mono { position: absolute; right: 16px; bottom: 14px; }

.sec .rl p.rl-t { font: 400 16.5px/1.6 var(--serif); margin: 8px 0 6px; }
.sec .rl p.rl-c { font: 400 15px/1.55 var(--serif); margin: 6px 0; color: var(--ink2); }
.sec .rl p.rl-c span { font-family: var(--sans); }
.sec .rl p.rl-w { font: 13px/1.5 var(--sans); margin: 4px 0 0; color: var(--ink3); }
.sec .kl p, .sec .gd p { font-size: 13px; line-height: 1.45; }
.sec .dt td, .sec .dt th { font-family: var(--sans); }
.gh-t svg path { stroke: #fff; }

/* phase dividers in the drawer */
.divider { position: relative; height: 252px; animation: fIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.dv-tab { position: absolute; left: 0; top: 0; height: 28px; padding: 6px 16px 0 14px; border-radius: 10px 14px 0 0; background: var(--fc); color: #fff; font: 600 10.5px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.dv-b { position: absolute; inset: 26px 0 0 0; border-radius: 4px 14px 14px 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 22%, #fbf7ee), color-mix(in srgb, var(--fc) 8%, #fbf7ee)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc) 30%, transparent); padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.dv-b b { font: 400 30px/1.05 var(--serif); letter-spacing: -.015em; color: #1c1a16; }
.dv-b span { font-size: 13px; line-height: 1.6; color: color-mix(in srgb, var(--fc) 55%, #3b3020); }
.dv-b em { margin-top: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: #3b3020; }
