/* ---------- views ---------- */
.view { overflow-y: auto; min-height: 0; animation: view-in 0.22s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } }
.pad { padding: 28px 32px 64px; max-width: 1180px; margin: 0 auto; }
.pad.wide { max-width: none; }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-h h1 { margin: 0; font: 650 24px/1.15 var(--font-display); letter-spacing: -0.025em; }
.page-h p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.page-h .actions { margin-left: auto; display: flex; gap: 8px; }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; }
.sec-h h2 { margin: 0; font: 600 13px/1 var(--font); letter-spacing: -0.005em; }
.sec-h .meta { color: var(--faint); font-size: 12px; }
.sec-h .link { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.sec-h .link:hover { color: var(--ink); }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.card-pad { padding: 16px 18px; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; }
.card-h h3 { margin: 0; font-size: 13px; font-weight: 600; }
.card-h .link { margin-left: auto; font-size: 12px; color: var(--muted); }
.card-h .link:hover { color: var(--ink); }
.divide > * + * { border-top: 1px solid var(--line); }

/* ---------- home ---------- */
.hello { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 26px; }
.hello h1 { margin: 0; font: 650 28px/1.1 var(--font-display); letter-spacing: -0.03em; }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.hello .actions { margin-left: auto; display: flex; gap: 8px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.recent-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.side-stack { display: flex; flex-direction: column; gap: 14px; }
.brief-card { padding: 16px 18px 14px; }
.brief-card .eyebrow { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.brief-card h3 { margin: 10px 0 6px; font: 600 15px/1.35 var(--font-display); letter-spacing: -0.015em; }
.brief-card ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.brief-card li { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--ink-2); }
.brief-card li b { font-weight: 550; color: var(--ink); }
.brief-card .foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.auto-card { padding: 14px 16px; }
.auto-card .top { display: flex; align-items: center; gap: 10px; }
.auto-card .top b { font-weight: 600; font-size: 13px; }
.auto-card .icon { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.auto-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.auto-card li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.auto-card li .n { margin-left: auto; color: var(--muted); }
.auto-card .ok { margin-top: 12px; padding: 8px 10px; border-radius: var(--r); background: var(--sunken); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.ai-list { padding: 6px 8px 8px; }
.ai-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--r); }
.ai-row:hover { background: var(--hover); }
.ai-row .t { flex: 1; min-width: 0; line-height: 1.3; }
.ai-row .t b { font-weight: 550; font-size: 12.5px; display: block; }
.ai-row .t span { font-size: 11.5px; color: var(--muted); }
.people-mini { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.people-mini .presence .av { width: 26px; height: 26px; font-size: 10px; }

/* ---------- feed (activity) ---------- */
.feed { padding: 4px 0; }
.feed-day { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 16px 16px 6px; letter-spacing: 0.01em; }
.ev { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; padding: 10px 16px; position: relative; transition: background 0.12s; }
.ev:hover { background: var(--sunken); }
.ev .line { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.ev .line b { color: var(--ink); font-weight: 600; }
.ev .line a.file { color: var(--ink); font-weight: 550; border-bottom: 1px solid var(--line-2); }
.ev .line a.file:hover { border-color: var(--ink); }
.ev .why { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--accent-line); }
.ev .meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.ev time { font-size: 12px; color: var(--faint); white-space: nowrap; padding-top: 1px; }
.ev.compact { padding: 9px 16px; }
.ev.compact .why { margin-top: 4px; }

/* ---------- drive ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.toolbar .grow { flex: 1; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 10px; }
.folder {
  display: flex; align-items: center; gap: 11px; height: 54px; padding: 0 12px 0 13px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--sh-card); text-align: left; cursor: default; user-select: none; transition: box-shadow 0.15s, background 0.15s;
}
.folder:hover { box-shadow: 0 0 0 1px var(--line-2), 0 2px 8px rgb(15 18 30 / 0.06); }
.folder .fi { width: 30px; height: 26px; flex: none; }
.folder .t { min-width: 0; flex: 1; line-height: 1.3; }
.folder .t b { display: block; font-weight: 550; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder .t span { font-size: 11.5px; color: var(--muted); }
.folder.sel { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); }
.folder.drop { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgb(61 68 229 / 0.18); transform: scale(1.015); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.fcard { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-card); overflow: hidden; cursor: default; user-select: none; position: relative; transition: box-shadow 0.15s, transform 0.15s; text-align: left; }
.fcard:hover { box-shadow: 0 0 0 1px var(--line-2), 0 4px 16px rgb(15 18 30 / 0.07); }
.fcard.sel { box-shadow: 0 0 0 2px var(--accent); }
.fcard.dragging, .folder.dragging, .lrow.dragging { opacity: 0.45; }
.fcard .thumb { aspect-ratio: 4 / 3; background: var(--sunken); border-bottom: 1px solid var(--line); overflow: hidden; position: relative; }
.fcard .info { padding: 10px 12px 11px; }
.fcard .name { display: flex; align-items: center; gap: 7px; font-weight: 550; font-size: 13px; }
.fcard .name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcard .sub { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.fcard .sub .ai, .fcard .sub .av { width: 16px; height: 16px; }
.fcard .sub .av { font-size: 7.5px; }
.fcard .sub .ai svg { width: 9px; height: 9px; }
.check {
  position: absolute; top: 9px; left: 9px; width: 20px; height: 20px; border-radius: 6px; background: rgb(255 255 255 / 0.92);
  box-shadow: 0 0 0 1px rgb(15 18 30 / 0.12), var(--sh-1); display: grid; place-items: center; opacity: 0; transition: opacity 0.12s; z-index: 2;
}
.check svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3; opacity: 0; }
.fcard:hover .check, .lrow:hover .check, .has-sel .check { opacity: 1; }
.sel > .check, .sel .check { opacity: 1; background: var(--accent); box-shadow: none; }
.sel > .check svg, .sel .check svg { opacity: 1; }
.lrow .check { position: static; opacity: 0; }
.list { border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; }
.lhead, .lrow { display: grid; grid-template-columns: 28px minmax(220px, 2.2fr) minmax(0, 2fr) 170px 76px 32px; align-items: center; gap: 10px; padding: 0 12px; }
.lhead { height: 34px; font-size: 11.5px; font-weight: 550; color: var(--muted); background: var(--sunken); border-bottom: 1px solid var(--line); }
.lrow { height: 46px; border-bottom: 1px solid var(--line); cursor: default; user-select: none; transition: background 0.1s; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--sunken); }
.lrow.sel { background: var(--accent-soft); }
.lrow.drop { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.lrow .nm { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 550; }
.lrow .nm span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .ds { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .mod { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.lrow .sz { color: var(--muted); text-align: right; }
.selbar {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 12px; background: var(--ink); color: #fff;
  box-shadow: 0 12px 40px -8px rgb(11 13 18 / 0.45); transition: transform 0.2s var(--ease), opacity 0.2s; z-index: 30;
}
.selbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.selbar .n { padding: 0 10px 0 9px; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.selbar button { height: 30px; padding: 0 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 12.5px; color: #e7e8ee; }
.selbar button:hover { background: rgb(255 255 255 / 0.1); color: #fff; }
.selbar .sep { width: 1px; height: 18px; background: rgb(255 255 255 / 0.14); margin: 0 4px; }
.selbar kbd { background: rgb(255 255 255 / 0.1); box-shadow: none; color: #aeb1bd; }
.drag-ghost { position: fixed; top: -100px; left: -100px; padding: 6px 10px 6px 8px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 550; font-size: 12.5px; display: flex; gap: 7px; align-items: center; box-shadow: var(--sh-pop); }
.drop-hint { margin-top: 14px; font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 6px; }

/* file type glyph */
.ft { width: 20px; height: 24px; flex: none; position: relative; }
.ft svg { width: 100%; height: 100%; }
.ft.sm { width: 16px; height: 19px; }

/* thumbnails */
.th-img { width: 100%; height: 100%; object-fit: cover; }
.th-page { position: absolute; inset: 14px 22% 0; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px var(--line), 0 6px 16px rgb(15 18 30 / 0.06); padding: 12px 11px; overflow: hidden; }
.th-page .h { font: 700 8px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.th-page .s { font: 500 5.5px/1.3 var(--font); color: var(--muted); margin-top: 3px; }
.th-page .ln { height: 3px; border-radius: 2px; background: #e8e9ee; margin-top: 4px; }
.th-page .blk { height: 26px; border-radius: 3px; margin-top: 7px; }
.th-slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.th-slide .sl { width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; background: #1d2370; color: #fff; padding: 9% 9%; position: relative; overflow: hidden; box-shadow: 0 6px 16px rgb(15 18 30 / 0.16); }
.th-slide .sl b { display: block; font: 700 13px/1.05 var(--font-display); letter-spacing: -0.02em; }
.th-slide .sl span { display: block; font: 500 6px/1.3 var(--font); opacity: 0.7; margin-top: 4px; }
.th-slide .sl i { position: absolute; right: -14%; bottom: -30%; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #3d44e5; }
.th-slide .sl em { position: absolute; right: 12%; bottom: 14%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: #c9ccf8; }
.th-sheet { position: absolute; inset: 14px 14px 0; background: #fff; border-radius: 4px 4px 0 0; box-shadow: 0 0 0 1px var(--line); display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); font: 500 6px/1 var(--font); color: var(--ink-2); overflow: hidden; }
.th-sheet span { border-right: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; padding: 4px 3px; white-space: nowrap; overflow: hidden; }
.th-sheet span.h { background: #f4f5f8; font-weight: 700; }
.th-sheet span.g { color: #0b7a3b; }
.th-logo { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.th-logo .lm { width: 34%; aspect-ratio: 1; border-radius: 22%; background: #0e1726; display: grid; place-items: center; color: #fff; font: 700 30px/1 var(--font-display); letter-spacing: -0.04em; }
.th-audio { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(#fff, #fff); }
.th-audio .wave { display: flex; align-items: center; gap: 3px; height: 40%; }
.th-audio .wave i { width: 3px; border-radius: 3px; background: var(--accent); }
.th-badge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgb(11 13 18 / 0.72); color: #fff; font-size: 10.5px; font-weight: 550; backdrop-filter: blur(6px); }
.th-badge svg.i { width: 11px; height: 11px; }

/* ---------- inspector ---------- */
.panel { border-left: 1px solid var(--line); overflow-y: auto; min-height: 0; background: var(--surface); animation: panel-in 0.22s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateX(8px); } }
.panel-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0 16px; }
.panel-h .t { font-weight: 600; font-size: 12.5px; color: var(--muted); }
.panel .preview { margin: 12px 16px 0; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sunken); position: relative; box-shadow: inset 0 0 0 1px var(--line); }
.panel .title { padding: 14px 16px 0; }
.panel .title h3 { margin: 0; font: 600 15px/1.3 var(--font-display); letter-spacing: -0.015em; word-break: break-word; }
.panel .title .row { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.panel .desc { margin: 12px 16px 0; padding: 9px 11px; border-radius: var(--r); background: var(--sunken); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; outline: none; transition: box-shadow 0.12s; }
.panel .desc[contenteditable="true"]:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.panel .desc[contenteditable="true"]:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); background: #fff; }
.panel .acts { display: flex; gap: 6px; padding: 12px 16px 0; }
.panel .acts .btn { flex: 1; }
.kv { margin: 14px 16px 0; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 10px; font-size: 12.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); display: flex; align-items: center; gap: 6px; min-width: 0; }
.kv dd span { overflow: hidden; text-overflow: ellipsis; }
.p-sec { margin: 18px 16px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.p-sec h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.p-sec h4 .link { margin-left: auto; font-weight: 500; color: var(--muted); }
.versions { position: relative; display: flex; flex-direction: column; }
.ver { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 0 0 14px; position: relative; }
.ver::before { content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 0; width: 1px; background: var(--line-2); }
.ver:last-child::before { display: none; }
.ver .vt { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.ver .vt b { font-weight: 600; color: var(--ink); }
.ver .vt .vn { font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--hover); padding: 1px 5px; border-radius: 4px; margin-left: 2px; }
.ver .why { margin-top: 4px; font-size: 12px; color: var(--ink-2); }
.ver .when { margin-top: 3px; font-size: 11.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.ver .when button { color: var(--accent-ink); font-weight: 550; opacity: 0; transition: opacity 0.12s; }
.ver:hover .when button { opacity: 1; }
.ai-read { display: flex; gap: 10px; align-items: flex-start; padding: 10px 11px; border-radius: var(--r); background: var(--sunken); font-size: 12px; color: var(--ink-2); }
.ai-read .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.ai-read b { display: block; font-weight: 600; color: var(--ink); font-size: 12.5px; }

/* ---------- file page ---------- */
.file-page { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; min-height: 0; }
.stage { background: var(--canvas); overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 36px 32px 60px; gap: 18px; }
.stage .doc { width: min(680px, 100%); background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 18px 48px -18px rgb(15 18 30 / 0.22); padding: 56px 64px 64px; }
.stage .doc .kicker { font-size: 11px; font-weight: 650; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.stage .doc h1 { font: 700 30px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 10px 0 8px; }
.stage .doc h2 { font: 650 15px/1.3 var(--font-display); margin: 26px 0 8px; letter-spacing: -0.01em; }
.stage .doc p { color: var(--ink-2); font-size: 13.5px; line-height: 1.65; margin: 0 0 10px; }
.stage .doc .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 6px; }
.stage .doc .facts div { padding: 12px; border-radius: 8px; background: var(--accent-soft); }
.stage .doc .facts b { display: block; font: 700 20px/1 var(--font-display); color: var(--accent-ink); letter-spacing: -0.02em; }
.stage .doc .facts span { font-size: 11px; color: var(--ink-2); }
.stage .slide-big { container-type: inline-size; width: min(860px, 100%); aspect-ratio: 16 / 9; border-radius: 8px; background: #1d2370; color: #fff; position: relative; overflow: hidden; padding: 6% 7%; box-shadow: 0 18px 48px -18px rgb(15 18 30 / 0.4); }
.stage .slide-big .k { font-size: 1.4cqw; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; font-weight: 600; }
.stage .slide-big h1 { font: 700 6.5cqw/1 var(--font-display); letter-spacing: -0.035em; margin: 1.6cqw 0 1.4cqw; max-width: 70%; }
.stage .slide-big p { font-size: 1.86cqw; opacity: 0.75; max-width: 52%; margin: 0; line-height: 1.5; }
.stage .slide-big > i { position: absolute; right: -10%; bottom: -34%; width: 52%; aspect-ratio: 1; border-radius: 50%; background: #3d44e5; }
.stage .slide-big > em { position: absolute; right: 12%; bottom: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #c9ccf8; }
.stage .slide-big .lg { position: absolute; left: 7%; bottom: 8%; display: flex; align-items: center; gap: 0.93cqw; font-weight: 600; font-size: 1.5cqw; }
.stage .slide-big .lg span { width: 2.56cqw; height: 2.56cqw; border-radius: 0.7cqw; background: #fff; color: #1d2370; display: grid; place-items: center; font-weight: 800; font-size: 1.4cqw; }
.stage .photo { width: min(900px, 100%); border-radius: 8px; overflow: hidden; box-shadow: 0 18px 48px -18px rgb(15 18 30 / 0.35); }
.strip { display: flex; gap: 10px; max-width: 100%; overflow-x: auto; padding: 3px; }
.strip .s { flex: none; }
.strip .s { width: 104px; aspect-ratio: 16 / 9; border-radius: 5px; background: #1d2370; box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; cursor: pointer; opacity: 0.75; }
.strip .s.on { box-shadow: 0 0 0 2px var(--accent); opacity: 1; }
.strip .s:nth-child(2) { background: #fff; }
.strip .s:nth-child(3) { background: #eef0fe; }
.strip .s:nth-child(4) { background: #0e1726; }
.strip .s b { position: absolute; left: 8px; top: 8px; right: 8px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.8); }
.strip .s:nth-child(2) b, .strip .s:nth-child(3) b { background: #0e1726; }
.file-side { border-left: 1px solid var(--line); overflow-y: auto; }
.tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.tabs button { height: 34px; padding: 0 10px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-color: var(--ink); }

/* ---------- tables, people ---------- */
.table { border-radius: var(--r-lg); box-shadow: var(--sh-card); overflow: hidden; background: var(--surface); }
.trow { display: grid; align-items: center; gap: 12px; padding: 0 16px; min-height: 58px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
.trow.head { min-height: 36px; font-size: 11.5px; font-weight: 550; color: var(--muted); background: var(--sunken); }
.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person .t { min-width: 0; line-height: 1.3; }
.person b { display: block; font-weight: 600; font-size: 13px; }
.person span { font-size: 12px; color: var(--muted); }
.person .t > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select { appearance: none; height: 30px; padding: 0 28px 0 10px; border-radius: var(--r); border: 0; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7080' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; box-shadow: var(--sh-card); font-weight: 500; font-size: 12.5px; cursor: pointer; }
.ais-inline { display: flex; gap: 4px; }

/* ---------- connect ---------- */
.connect-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 24px; padding: 26px 30px; border-radius: var(--r-xl); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 26px; overflow: hidden; }
.connect-hero h1 { margin: 0; font: 650 26px/1.15 var(--font-display); letter-spacing: -0.03em; }
.connect-hero p { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 440px; line-height: 1.5; }
.connect-hero img { width: 100%; }
.addr { display: flex; align-items: center; gap: 8px; margin-top: 18px; height: 40px; padding: 0 6px 0 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-card); max-width: 380px; }
.addr code { flex: 1; font-family: var(--mono); font-size: 13px; }
.apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.app-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-card); text-align: left; transition: box-shadow 0.15s, transform 0.15s; position: relative; }
.app-card:hover { box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px rgb(15 18 30 / 0.08); transform: translateY(-1px); }
.app-card b { font-weight: 600; font-size: 13.5px; display: block; }
.app-card span { font-size: 12px; color: var(--muted); }
.app-card .chip { position: absolute; top: 14px; right: 14px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; position: relative; }
.step::before { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line-2); }
.step:last-child::before { display: none; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; color: var(--ink-2); }
.step.done .n { background: var(--accent); color: #fff; box-shadow: none; }
.step h4 { margin: 4px 0 4px; font-size: 13.5px; font-weight: 600; }
.step p { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.code { position: relative; border-radius: var(--r-md); background: #0e1018; color: #e6e8f0; font: 12px/1.6 var(--mono); padding: 12px 44px 12px 14px; white-space: pre; overflow-x: auto; }
.code .c { color: #8d93a8; }
.code .k { color: #9fa6ff; }
.code button { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 7px; color: #aeb3c4; display: grid; place-items: center; }
.code button:hover { background: rgb(255 255 255 / 0.08); color: #fff; }

/* ---------- brand, skills, brief, memory ---------- */
.brand-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.logo-tile { aspect-ratio: 1; border-radius: var(--r-lg); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; position: relative; }
.logo-tile .lm { width: 38%; aspect-ratio: 1; border-radius: 22%; background: #0e1726; color: #fff; display: grid; place-items: center; font: 700 52px/1 var(--font-display); letter-spacing: -0.05em; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sw { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-card); background: var(--surface); }
.sw i { display: block; aspect-ratio: 5 / 3; }
.sw div { padding: 8px 10px 9px; line-height: 1.3; }
.sw b { display: block; font-size: 12px; font-weight: 600; }
.sw span { font: 11px var(--mono); color: var(--muted); }
.type-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-spec .card { padding: 16px 18px; }
.type-spec .big { font: 600 34px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 6px 0; }
.type-spec .serif { font-family: "Iowan Old Style", Georgia, serif; font-weight: 500; letter-spacing: -0.01em; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.skill { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skill .top { display: flex; align-items: center; gap: 10px; }
.skill .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.skill b { font-weight: 600; font-size: 13.5px; }
.skill p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; flex: 1; }
.skill .foot { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.toggle { width: 32px; height: 19px; border-radius: 999px; background: var(--line-2); position: relative; transition: background 0.18s; margin-left: auto; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.18s var(--ease); }
.toggle.on { background: var(--accent); }
.toggle.on::after { transform: translateX(13px); }
.skill.new { border: 1.5px dashed var(--line-2); box-shadow: none; background: none; align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 160px; }
.skill.new:hover { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.brief-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.doc-body { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.doc-body h2 { font: 650 16px/1.3 var(--font-display); color: var(--ink); margin: 28px 0 8px; letter-spacing: -0.012em; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body ul { margin: 0; padding-left: 18px; }
.doc-body li { margin: 3px 0; }
.doc-body li::marker { color: var(--faint); }
.doc-body b { color: var(--ink); font-weight: 600; }
.doc-body .lede { font-size: 17px; line-height: 1.55; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 6px; }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.note b { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.note p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.note .foot { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }

/* ---------- inbox ---------- */
.inbox-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--accent-soft); margin-bottom: 18px; }
.inbox-banner .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.inbox-banner b { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink); }
.inbox-banner span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- later overrides ---------- */
.mini-th { width: 40px; height: 30px; border-radius: 6px; overflow: hidden; position: relative; flex: none; box-shadow: inset 0 0 0 1px var(--line); background: var(--sunken); }
.icon-tile { width: 28px; height: 28px; border-radius: 8px; background: var(--hover); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.sheet-doc { padding: 24px; }
.sheet-doc .th-sheet { position: static; inset: auto; font: 500 13px/1 var(--font); border-radius: 6px; }
.sheet-doc .th-sheet span { padding: 11px 12px; }
.grow { flex: 1; }
.toggle:disabled { opacity: 0.6; cursor: default; }
.av { font: 600 8.5px/1 var(--font); letter-spacing: 0; }
.av.md { font-size: 10.5px; }
.av.xs { width: 16px; height: 16px; font-size: 8.5px; }
.av .badge { width: 12px; height: 12px; right: -4px; bottom: -3px; border-radius: 4px; }
.av.md .badge { width: 14px; height: 14px; right: -5px; bottom: -4px; }
.av .badge svg { width: 8px; height: 8px; }
.proto { left: auto; right: 12px; }
.toasts { left: 50%; right: auto; transform: translateX(-50%); align-items: center; bottom: 24px; }
.crumbs .ft { flex: none; padding: 0; width: 14px; height: 17px; }
.crumbs .here { display: inline-flex; align-items: center; gap: 7px; }
.strip .s { border: 0; padding: 0; display: block; }
.strip .s span { position: absolute; right: 6px; bottom: 4px; font-size: 10px; font-weight: 600; color: rgb(255 255 255 / 0.7); }
.strip .s1 { background: #fff; } .strip .s2 { background: #eef0fe; } .strip .s3 { background: #0e1726 url(assets/plant.jpg) center/cover; } .strip .s4 { background: #3d44e5; }
.strip .s1 span, .strip .s2 span { color: var(--muted); }
.strip .s1 b, .strip .s2 b { background: #0e1726; }
.slide-big.light { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 18px 48px -18px rgb(15 18 30 / 0.25); }
.slide-big.tint { background: #eef0fe; color: var(--ink); }
.slide-big.blue { background: #3d44e5; }
.slide-big.light .lg span, .slide-big.tint .lg span { background: #0e1726; color: #fff; }
.slide-big .big-n { font: 700 14cqw/0.95 var(--font-display); letter-spacing: -0.05em; margin: 2.1cqw 0 1.6cqw; }
.slide-big.light .big-n { color: var(--accent); }
.slide-big .bars-h { position: absolute; right: 7%; top: 30%; width: 34%; display: flex; flex-direction: column; gap: 1.6cqw; }
.slide-big .bars-h i { height: 3cqw; border-radius: 0.7cqw; background: #c9ccf8; }
.slide-big .bars-h i:first-child { background: var(--accent); }
.slide-big .chart { position: absolute; right: 7%; bottom: 16%; width: 48%; height: 52%; display: flex; align-items: flex-end; gap: 3%; }
.slide-big .chart i { flex: 1; background: var(--accent); border-radius: 5px 5px 0 0; position: relative; }
.slide-big .chart i span { position: absolute; bottom: -2.6cqw; left: 50%; transform: translateX(-50%); font: 600 1.16cqw var(--font); color: var(--muted); font-style: normal; }
.slide-big.photo-sl { background: #0e1726; }
.slide-big.photo-sl img { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; height: 100%; object-fit: cover; }
.slide-big.photo-sl h1, .slide-big.photo-sl p, .slide-big.photo-sl .k { position: relative; max-width: 40%; }
.slide-big .funds { position: absolute; right: 7%; top: 28%; display: flex; flex-direction: column; gap: 1.16cqw; width: 30%; }
.slide-big .funds div { background: rgb(255 255 255 / 0.12); border-radius: 1.16cqw; padding: 1.4cqw 1.63cqw; font-size: 1.5cqw; }
.slide-big .funds b { display: block; font: 700 3cqw/1.1 var(--font-display); letter-spacing: -0.02em; }

/* ---------- round 2 additions ---------- */
.desc:empty::before { content: attr(data-ph); color: var(--faint); }
.desc[contenteditable="true"]:focus { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--accent-soft); background: #fff; }
.folder-preview { display: grid; place-items: center; aspect-ratio: 16 / 9 !important; }
.big-folder { width: 76px; height: 66px; }
.multi { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 9px; }
.multi div { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.multi .ft, .multi svg { flex: none; }
.hint { padding: 12px 16px 0; margin: 0; font-size: 12px; color: var(--muted); }
.kv-link { display: flex; gap: 6px; align-items: center; min-width: 0; color: var(--ink); }
.kv-link:hover { color: var(--accent-ink); }
.kv-link svg { color: var(--faint); }
.panel .preview { display: block; }
.auto-card .top { justify-content: space-between; align-items: flex-start; }
.auto-card li a { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.auto-card li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.auto-card li svg { color: var(--faint); }
.auto-card li .n { display: inline-flex; color: var(--muted); }
.auto-card li .n svg { color: var(--green); }
.brief-card ul li { padding-left: 12px; position: relative; display: block; }
.brief-card ul li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.inbox-banner { gap: 16px; }
.inbox-banner .logo-stack .ai { box-shadow: 0 0 0 2px var(--accent-soft); }
.rail-hero { padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.rail-hero img { width: 56px; }
.rail-hero b { display: block; font-size: 13px; margin-bottom: 6px; }
.brief-doc { padding: 30px 34px 34px; transition: box-shadow 0.15s; }
.brief-doc.editing { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-soft); }
.brief-doc [contenteditable] { outline: none; min-height: 1.7em; }
.note-h { display: flex; align-items: center; gap: 8px; }
.note-h .faint { margin-left: auto; font-size: 11.5px; }
.voice { padding: 16px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-2); outline: none; }
.voice[contenteditable]:focus { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-soft); }
.sw { position: relative; display: block; }
.sw.editable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.sw.editable:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px rgb(15 18 30 / 0.08); }
.sw input[type="color"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.logo-tile img { max-width: 60%; max-height: 60%; object-fit: contain; }
.invest-card { margin-top: 22px; padding: 18px 20px; display: flex; align-items: center; gap: 18px; }
.invest-card img { width: 92px; }
.invest-card b { font-size: 14px; }
.invest-card p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.invest-card p b { font-size: 12.5px; color: var(--ink-2); }
.app-card .chip.green svg { width: 12px; height: 12px; }
.choice { position: relative; }
.choice .tick { margin-left: auto; color: var(--accent); }
.flow-form .back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; margin: -14px 0 18px; }
.flow-form .back:hover { color: var(--ink); }
.flow-r .quote .chip { background: var(--surface); }
.lrow .check { position: static; opacity: 0; }
.lrow:hover .check, .has-sel .lrow .check, .lrow.sel .check { opacity: 1; }
.drive-body { min-height: 100%; }
.th-logo .lm { font-size: 30px; }
.icon-tile svg { width: 14px; height: 14px; }

/* Names people type can be one long word: let them wrap instead of widening the page. */
.page-h h1, .page-h p, .hello h1, .desc, .kv dd, .ver, .ev, .set-card, .person .t, .consent .box, .note, .sk-card, .modal-h, .sheet-h, .menu-head, .multi { word-break: break-word; }
