@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-regular.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(/fonts/cormorant-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
:root {
  --ink: #1a2433; --ink-2: #3d4a5c; --ink-3: #6b7789; --ink-faint: #8b95a5;
  --line: #e3e8ef; --bg-soft: #f4f6f9;
  --accent: #1a7a8c; --accent-soft: #e6f5f7; --warm: #c56a2e; --warm-soft: #fff1e6;
  --navy: #071226; --cobalt: #1f4fd1; --cyan: #3fd0e8;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font-family: var(--ui); color: var(--ink); background: var(--navy); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--ink-faint); } .small { font-size: 12px; }
[hidden] { display: none !important; }

/* Banner */
#banner { position: fixed; top: 0; left: 0; right: 0; height: 30px; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 11.5px; background: rgba(8, 14, 28, .82); color: #cfd8e6; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); }
#banner .b-left { color: #ffb37a; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px; display: flex; align-items: center; gap: 7px; }
#banner .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff9a4d; box-shadow: 0 0 8px #ff9a4d; }
#banner .b-mid { color: #8fa0b8; }
.b-btn { background: rgba(255,255,255,.07); color: #dfe7f2; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px 10px; font-size: 11px; margin-left: 6px; }
.b-btn:hover { background: rgba(255,255,255,.14); }

.screen { position: fixed; inset: 30px 0 0 0; display: none; }
.screen.active { display: block; animation: fadeIn .7s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Orb sizes */
.pearl { position: relative; display: inline-block; flex-shrink: 0; }
.pearl svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.pearl-hero-sm { width: 220px; height: 220px; }
.pearl-lg { width: 96px; height: 96px; }
.pearl-md { width: 38px; height: 38px; }
.pearl-sm { width: 26px; height: 26px; }
.pearl-hero-sm::after, .pearl-lg::after { content: ""; position: absolute; left: 14%; right: 14%; top: 86%; height: 22%; background: radial-gradient(ellipse at 50% 40%, rgba(63,208,232,.22), transparent 70%); z-index: -1; }

/* Arrival */
#arrival { background: radial-gradient(ellipse at 50% 38%, #12244a 0%, #0a1530 42%, #050b18 100%); }
.arrival-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #eef3fb; }
#arrivalOrb { animation: breathe 6s ease-in-out infinite; transition: filter .6s, transform .6s; }
#arrivalOrb.bright { filter: brightness(1.25) saturate(1.15); transform: scale(1.04); }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.q { font-size: 44px; font-style: italic; margin: 18px 0 4px; letter-spacing: -.01em; }
#nameForm { display: flex; flex-direction: column; align-items: center; gap: 14px; }
#nameInput { width: 340px; padding: 14px 18px; font-size: 18px; text-align: center; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; outline: none; font-family: var(--ui); }
#nameInput:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(63,208,232,.15); }
.voice-pick { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #b8c4d6; flex-wrap: wrap; justify-content: center; max-width: 460px; }
.voice-pick label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.voice-pick input { accent-color: var(--cyan); }
.vp-label { color: #8fa0b8; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.vp-hint { width: 100%; text-align: center; font-size: 11.5px; color: #7d8ca3; }
.btn-primary { background: linear-gradient(180deg, #2b6cf0, #1f4fd1); color: #fff; border: 0; border-radius: 12px; padding: 12px 26px; font-size: 15px; font-weight: 600; box-shadow: 0 6px 24px rgba(31,79,209,.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: default; }

/* Intro */
#intro { background: radial-gradient(ellipse at 30% 20%, #16306a 0%, #0a1530 50%, #050b18 100%); display: none; }
#intro.active { display: flex; align-items: center; justify-content: center; }
.intro-card { width: 720px; max-width: calc(100% - 48px); background: rgba(255,255,255,.96); border-radius: 22px; padding: 36px 40px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.intro-head { display: flex; gap: 22px; align-items: center; }
.intro-head h1 { font-size: 40px; margin: 0; font-style: italic; line-height: 1.1; }
.intro-sub { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }
.intro-list { list-style: none; padding: 0; margin: 26px 0 10px; display: grid; gap: 10px; }
.intro-list li { position: relative; padding: 12px 14px 12px 44px; background: var(--bg-soft); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.intro-list li.show { opacity: 1; transform: none; }
.intro-list li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #9fe9f5 25%, #1f4fd1 70%, #071226 100%); }
.intro-list b { color: var(--ink); }
.closing { font-size: 21px; font-style: italic; color: var(--ink); margin: 20px 0 0; line-height: 1.35; }
.intro-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

/* Desktop */
#desktop { overflow: hidden; }
.wallpaper { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 72% 18%, rgba(63,208,232,.28), transparent 45%),
  radial-gradient(ellipse at 20% 85%, rgba(31,79,209,.45), transparent 55%),
  linear-gradient(160deg, #0d2350 0%, #123a7a 45%, #0a1a3d 100%); }
.icons { position: absolute; top: 18px; left: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.dicon { width: 84px; background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; padding: 8px 4px; border-radius: 8px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.dicon:hover { background: rgba(255,255,255,.12); }
.ic { display: inline-block; width: 40px; height: 40px; border-radius: 10px; position: relative; }
.ic.sm { width: 20px; height: 20px; border-radius: 5px; }
.ic-mail { background: linear-gradient(180deg, #3d8bff, #1f5fd6); }
.ic-mail::after { content: ""; position: absolute; inset: 28% 18%; border: 2px solid #fff; border-radius: 3px; background: linear-gradient(to bottom right, transparent 47%, #fff 48%, #fff 52%, transparent 53%), linear-gradient(to bottom left, transparent 47%, #fff 48%, #fff 52%, transparent 53%); background-size: 100% 100%; }
.ic.sm.ic-mail::after { border-width: 1.5px; }
.ic-folder { background: linear-gradient(180deg, #ffd36b, #f2a93b); border-radius: 6px 10px 10px 10px; }
.ic-folder::before { content: ""; position: absolute; top: -4px; left: 0; width: 45%; height: 8px; background: #f2b84f; border-radius: 4px 4px 0 0; }
.ic.sm.ic-folder::before { top: -2px; height: 4px; }
.ic-audit { background: linear-gradient(180deg, #8b6cff, #5b3fd6); }
.ic-audit::after { content: ""; position: absolute; inset: 26% 26%; border-top: 3px solid #fff; border-bottom: 3px solid #fff; }

.win { position: absolute; top: 26px; left: 120px; width: 900px; height: calc(100% - 100px); max-height: 620px; background: #fff; border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; z-index: 5; animation: pop .25s ease both; }
.win-sm { width: 420px; height: auto; max-height: 460px; left: 360px; top: 80px; z-index: 6; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.win-bar { height: 36px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 14px; background: #f3f5f8; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.win-ctrls { display: flex; align-items: center; gap: 4px; }
.win-ctrls i { width: 26px; height: 2px; }
.win-x { width: 30px; height: 26px; border: 0; background: none; font-size: 18px; color: var(--ink-3); border-radius: 6px; }
.win-x:hover { background: #e81123; color: #fff; }

.mail { flex: 1; display: grid; grid-template-columns: 150px 270px 1fr; min-height: 0; }
.mail-nav { background: #fafbfc; border-right: 1px solid var(--line); padding: 12px 8px; }
.mn { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.mn.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.count { background: var(--warm); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 1px 7px; font-weight: 700; }
.count.muted { background: var(--bg-soft); color: var(--ink-3); }
.mail-list { border-right: 1px solid var(--line); overflow-y: auto; }
.mail-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; }
.mail-item:hover { background: #f7f9fb; }
.mail-item.sel { background: #eef4ff; }
.mail-item.unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #2b6cf0; }
.mail-item .mi-from { font-size: 13px; font-weight: 650; display: flex; justify-content: space-between; }
.mail-item .mi-from small { font-weight: 400; color: var(--ink-faint); }
.mail-item .mi-subj { font-size: 12.5px; margin-top: 2px; }
.mail-item .mi-prev { font-size: 12px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.mail-item .mi-tag { display: inline-block; margin-top: 5px; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: #e8f6ec; color: #237a3c; font-weight: 600; }
.mail-read { display: flex; flex-direction: column; min-height: 0; }
.mail-read .empty, .mail-list .empty { padding: 30px 20px; color: var(--ink-faint); font-size: 13px; text-align: center; }
.mr-head { padding: 18px 22px 12px; border-bottom: 1px solid var(--line); }
.mr-subj { font-size: 18px; font-weight: 650; margin: 0 0 8px; }
.mr-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #f08a5d, #b83b5e); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.mr-body { padding: 16px 22px; font-size: 14px; line-height: 1.6; color: var(--ink-2); overflow-y: auto; flex: 1; }
.mr-body p { margin: 0 0 10px; }
.mr-thread { margin-top: 14px; padding: 10px 12px; background: var(--bg-soft); border-radius: 10px; font-size: 13px; }
.mr-thread .sent-label { font-size: 11px; color: #237a3c; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.reply { border-top: 1px solid var(--line); padding: 12px 16px; background: #fbfcfd; }
.reply textarea { width: 100%; height: 92px; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 13.5px/1.5 var(--ui); color: var(--ink); outline: none; }
.reply textarea:focus { border-color: #2b6cf0; }
.reply textarea.filled { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: #eaf6ff; } 100% { background: #fff; } }
.reply-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.reply-actions .note { margin-left: auto; font-size: 11.5px; color: var(--ink-faint); }
.btn-send-mail { background: #2b6cf0; color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; font-weight: 600; font-size: 13px; }
.btn-send-mail:disabled { opacity: .45; cursor: default; }
.btn-ask { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px 7px 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.btn-ask:hover { border-color: #b9c6d8; }
.btn-ask .mini-orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #9fe9f5 22%, #1f4fd1 65%, #071226 100%); }

.folder { padding: 14px 16px; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-size: 13px; border-bottom: 1px solid var(--line); }
.fi { width: 18px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #e9eef6, #cfd8e6); }
.folder-note { margin: 12px 0 0; }
.audit { padding: 12px 16px; overflow-y: auto; }
.audit ol { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; }
.audit li { margin-bottom: 8px; color: var(--ink-2); }
.audit li code { font-size: 11.5px; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px; color: var(--accent); }
.audit li small { color: var(--ink-faint); display: block; }

/* Toast */
.toast { position: absolute; right: 14px; bottom: 62px; width: 340px; background: rgba(250,251,253,.98); border-radius: 12px; box-shadow: 0 18px 50px rgba(0,0,0,.4); padding: 12px 14px; z-index: 20; animation: slideUp .35s ease both; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.t-app { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.t-from { font-weight: 700; font-size: 13.5px; margin-top: 6px; }
.t-subj { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.t-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-ghost { flex: 1; background: #eef1f6; border: 0; border-radius: 8px; padding: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.btn-ghost:hover { background: #e2e7ef; }

/* Taskbar */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: rgba(18, 28, 48, .78); backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; padding: 0 8px; gap: 4px; z-index: 30; }
.start { width: 40px; height: 40px; border: 0; background: none; border-radius: 6px; display: grid; grid-template-columns: 9px 9px; gap: 2px; place-content: center; }
.start span { width: 9px; height: 9px; background: #6cb6ff; border-radius: 1px; }
.start:hover, .tb-app:hover { background: rgba(255,255,255,.1); }
.tb-app { width: 40px; height: 40px; border: 0; background: none; border-radius: 6px; display: grid; place-items: center; position: relative; }
.tb-app.open::after { content: ""; position: absolute; bottom: 3px; left: 15px; right: 15px; height: 3px; border-radius: 2px; background: #6cb6ff; }
.tb-spacer { flex: 1; }
.tray-orb { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 4px 12px 4px 5px; color: #fff; transition: opacity .4s, background .3s, border-color .3s; text-align: left; }
.tray-orb.idle { opacity: .55; }
.tray-orb.idle:hover { opacity: .9; }
.tray-orb.needs { opacity: 1; background: rgba(197,106,46,.22); border-color: rgba(255,170,110,.55); }
.tray-orb.active { opacity: 1; background: rgba(63,208,232,.14); border-color: rgba(63,208,232,.45); }
.tray-text { display: flex; flex-direction: column; line-height: 1.15; }
.tray-text b { font-size: 12px; font-weight: 650; }
.tray-text small { font-size: 10px; color: #a9b7cc; }
.clock { color: #fff; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; padding: 0 8px 0 12px; line-height: 1.25; }
.clock small { font-size: 11px; color: #c6d1e2; }

/* Dwin panel */
.dwin { position: absolute; right: 14px; bottom: 62px; top: 14px; width: 400px; background: rgba(252,253,255,.98); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: hidden; z-index: 15; animation: slideUp .3s ease both; }
.dwin-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); }
.dh-text { display: flex; flex-direction: column; line-height: 1.2; }
.dh-text b { font-family: var(--serif); font-style: italic; font-size: 21px; font-weight: 400; }
.dh-text span { font-size: 11.5px; color: var(--ink-3); }
.honest { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--warm); background: var(--warm-soft); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.dwin-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; font-size: 13.5px; line-height: 1.5; }
.msg.user { align-self: flex-end; background: #2b6cf0; color: #fff; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.msg.dwin-m { align-self: flex-start; background: var(--bg-soft); padding: 10px 12px; border-radius: 14px 14px 14px 4px; color: var(--ink-2); }
.msg.dwin-m p { margin: 0 0 6px; } .msg.dwin-m p:last-child { margin-bottom: 0; }
.msg.dwin-m b { color: var(--ink); }
.typing { display: inline-flex; gap: 4px; padding: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.evidence { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; }
.evidence .ev-k { font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.evidence dl { margin: 6px 0 0; display: grid; grid-template-columns: 82px 1fr; gap: 3px 8px; }
.evidence dt { color: var(--ink-faint); } .evidence dd { margin: 0; color: var(--ink); }
.steps-btn { margin-top: 8px; background: none; border: 0; padding: 0; color: var(--accent); font-size: 12px; font-weight: 650; }
.steps { margin: 6px 0 0; padding-left: 18px; font-size: 12px; color: var(--ink-3); }
.steps li { margin-bottom: 3px; }
.approval { margin-top: 8px; border: 1px solid rgba(197,106,46,.45); background: var(--warm-soft); border-radius: 12px; padding: 11px 12px; }
.approval .ap-k { font-size: 10.5px; font-weight: 800; color: var(--warm); text-transform: uppercase; letter-spacing: .07em; }
.approval .ap-t { font-size: 13.5px; font-weight: 650; color: var(--ink); margin: 4px 0; }
.approval .ap-d { font-size: 12px; color: var(--ink-2); }
.approval .ap-btns { display: flex; gap: 8px; margin-top: 10px; }
.approval .ap-btns button { flex: 1; border-radius: 8px; padding: 7px; font-size: 12.5px; font-weight: 650; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.approval .ap-btns .ap-yes { background: var(--warm); color: #fff; border-color: var(--warm); }
.approval .ap-done { margin-top: 8px; font-size: 12px; font-weight: 650; color: #237a3c; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 4px; border-top: 1px solid var(--line); }
.chip { background: #fff; border: 1px solid #cfd9e6; color: var(--ink); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 550; }
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip.used { opacity: .55; }
.dwin-input { display: flex; gap: 8px; padding: 8px 14px 14px; }
.dwin-input input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: 13px var(--ui); outline: none; }
.dwin-input input:focus { border-color: var(--accent); }
.btn-send { width: 36px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; }
.to-line { margin-left: auto; }
.ev-q { margin: 6px 0 0; color: var(--ink); font-style: italic; }
body.dwin-open #mailWin { left: 100px; width: calc(100% - 100px - 428px); }
body.dwin-open .mail { grid-template-columns: 112px 220px 1fr; }
.dh-text span { white-space: nowrap; }
.honest { font-size: 10px; padding: 3px 7px; }

/* ---- v2 additions ---- */
.wp-brand { position: absolute; right: 48px; bottom: 90px; text-align: right; color: rgba(255,255,255,.88); user-select: none; }
.wp-brand b { display: block; font-family: var(--serif); font-size: 76px; font-weight: 400; letter-spacing: .14em; line-height: 1; }
.wp-brand span { display: block; font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 6px; }
.wp-brand i { display: block; font-family: var(--serif); font-size: 17px; color: rgba(255,255,255,.55); margin-top: 10px; }
.icons { gap: 4px; }
.dicon { width: 92px; }
.ic-cal { background: linear-gradient(180deg, #fff, #e9edf3); }
.ic-cal::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30%; background: #e5484d; border-radius: 10px 10px 0 0; }
.ic.sm.ic-cal::before { border-radius: 5px 5px 0 0; }
.ic-cal::after { content: "10"; position: absolute; left: 0; right: 0; top: 34%; text-align: center; font: 700 15px var(--ui); color: var(--ink); }
.ic.sm.ic-cal::after { font-size: 8px; top: 30%; }
.ic-note { background: linear-gradient(180deg, #fff7c2, #f5e27a); }
.ic-note::after { content: ""; position: absolute; inset: 30% 22% 24%; background: repeating-linear-gradient(to bottom, #b8a640 0 2px, transparent 2px 7px); }
.mail-nav { display: flex; flex-direction: column; gap: 2px; }
.mn { cursor: pointer; } .mn.dim { opacity: .5; cursor: default; }
.btn-new { margin: 0 2px 8px; background: #2b6cf0; color: #fff; border: 0; border-radius: 8px; padding: 8px; font-size: 12.5px; font-weight: 650; }
.mail-item.read-old .mi-from { font-weight: 550; }
.mi-tag.sb { background: #fff1e6; color: var(--warm); }
.att-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.att { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.att:hover { border-color: #2b6cf0; background: #f3f7ff; }
.att .fi { width: 14px; height: 18px; }
.sb-label { display: inline-block; font-size: 11px; font-weight: 700; color: var(--warm); background: var(--warm-soft); border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
.sent-label.demo { color: #237a3c; }
.win-compose { left: 260px; top: 60px; width: 600px; height: auto; max-height: 600px; z-index: 8; }
.compose { padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.cf { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 4px 0; font-size: 13px; }
.cf span { width: 56px; color: var(--ink-faint); }
.cf input { flex: 1; border: 0; outline: none; font: 13.5px var(--ui); color: var(--ink); padding: 4px 0; }
.compose textarea { height: 210px; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 13.5px/1.5 var(--ui); outline: none; }
.c-note { font-size: 12px; color: var(--warm); min-height: 0; }
.c-att { display: flex; gap: 6px; flex-wrap: wrap; }
.win-doc { left: 300px; top: 40px; width: 560px; height: auto; max-height: calc(100% - 110px); z-index: 7; }
.doc { padding: 16px 20px; overflow-y: auto; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.doc h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); }
.doc .meta { display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; font-size: 12.5px; margin: 10px 0; }
.doc .meta dt { color: var(--ink-faint); } .doc .meta dd { margin: 0; color: var(--ink); }
.doc .tmsg { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.doc .tmsg .th { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.doc .tmsg.flag { border-color: rgba(197,106,46,.6); background: var(--warm-soft); }
.doc .src { font-size: 11.5px; color: var(--ink-faint); margin-top: 12px; }
.art { position: relative; height: 150px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 28px; color: #fff; margin: 8px 0 12px; background: linear-gradient(120deg, #052a4a 0%, #0b5d8f 55%, #18b3c9 100%); }
.art.v3 { background: linear-gradient(120deg, #2a1f4a 0%, #38608f 60%, #7fb0c9 100%); }
.art b { font-size: 30px; letter-spacing: .02em; } .art span { font-size: 13px; opacity: .85; margin-top: 4px; }
.art .vid { position: absolute; right: 10px; bottom: 8px; font: 600 11px ui-monospace, Menlo, Consolas, monospace; background: rgba(0,0,0,.35); padding: 2px 6px; border-radius: 4px; }
.art .wm { position: absolute; inset: 0; display: grid; place-items: center; font: 800 34px var(--ui); color: rgba(255,255,255,.55); letter-spacing: .2em; transform: rotate(-14deg); }
.cal-day { margin-bottom: 12px; } .cal-day h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cal-ev { border-left: 3px solid #2b6cf0; background: #f3f7ff; padding: 6px 10px; border-radius: 0 8px 8px 0; margin-bottom: 6px; font-size: 13px; }
.cal-ev.red { border-color: #e5484d; background: #fff2f2; } .cal-ev.grey { border-color: #b5bfcc; background: var(--bg-soft); }
.chips-hint { font-size: 11px; color: var(--ink-faint); padding: 8px 14px 0; border-top: 1px solid var(--line); }
.chips { border-top: 0; }
.acts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.act { text-align: left; background: #fff; border: 1px solid #cfd9e6; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; font-weight: 650; color: var(--accent); }
.act:hover { background: var(--accent-soft); border-color: var(--accent); }
.tones { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tones button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; color: var(--ink-2); }
.tones button:hover { border-color: var(--accent); color: var(--accent); }
.evidence .ev-open { margin-top: 6px; background: none; border: 0; padding: 0; color: #2b6cf0; font-size: 12px; font-weight: 650; }
.msg.dwin-m ul { margin: 4px 0 6px; padding-left: 18px; } .msg.dwin-m li { margin-bottom: 3px; }
.karl-q p { margin: 0 0 6px; }
.att-file { cursor: pointer; } .att-file:hover { background: #f3f7ff; }
.mn { white-space: nowrap; font-size: 12.5px; gap: 6px; align-items: center; }
body.dwin-open .mail { grid-template-columns: 132px 206px 1fr; }
.win-compose { max-height: calc(100% - 76px); top: 40px; }
.compose { overflow-y: auto; }
.compose textarea { height: 170px; flex-shrink: 0; }
