:root {

  --ground:        #FAFAFD;
  --surface:       #FFFFFF;
  --surface-2:     #F3F2F8;
  --surface-3:     #E8E6F1;
  --ink:           #15141B;
  --ink-2:         #54526B;
  --ink-3:         #8A88A3;
  --rule:          #ECEAF4;
  --rule-2:        #D9D6E7;
  --accent-ink:    #FFFFFF;
  --brass:         #A96A16;
  --brass-dim:     #FAF1E1;
  --oxide:         #CE4F45;
  --oxide-dim:     #FBEBE9;
  --green:         #2F9E63;
  --green-dim:     #E7F6EE;
  --violet:        #B057D8;
  --violet-dim:    #F8ECFC;
  --grid-line:     rgba(20,18,30,.05);
  --scrim:         rgba(18,16,28,.34);

  --shadow-sm:     0 1px 2px rgba(20,18,30,.05), 0 1px 1px rgba(20,18,30,.04);
  --shadow-md:     0 2px 6px -1px rgba(20,18,30,.06), 0 8px 18px -6px rgba(20,18,30,.10);
  --shadow-lg:     0 8px 24px -10px rgba(20,18,30,.14), 0 28px 60px -20px rgba(40,20,80,.22);

  --accent:       #9333EA;
  --accent-deep:  #7C22CE;
  --accent-dim:   color-mix(in srgb, var(--accent) 10%, var(--surface));
  --halo:         color-mix(in srgb, var(--accent) 28%, transparent);
  --wash-1:       color-mix(in srgb, var(--accent) 9%, transparent);
  --wash-2:       color-mix(in srgb, var(--violet) 6%, transparent);

  --glow:         0 0 20px -4px var(--halo);
  --glow-strong:  0 0 30px -6px color-mix(in srgb, var(--accent) 45%, transparent);
  --glow-text:    none;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  --f-ui:   "Inter", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --topbar-h: 60px;

  --chat-handle-w: 22px;
  --rail-icon-w: 60px;
  --rail-w: 248px;
  --pane-w: 268px;
  --side-w: 280px;

  --stage:        #0A0A0F;
  --stage-1:      #131319;
  --stage-2:      #1B1B23;
  --stage-3:      #26262F;
  --stage-rule:   #26262F;
  --stage-ink:    #EAEAF4;
  --stage-ink-2:  #B7B7C9;
  --stage-ink-3:  #8A8A9E;
  --stage-veil:   rgba(6,6,10,.68);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:        #08080C;
    --surface:       #101014;
    --surface-2:     #17171D;
    --surface-3:     #212028;
    --ink:           #EDEDF4;
    --ink-2:         #A4A3B6;
    --ink-3:         #71708A;
    --rule:          #1E1D26;
    --rule-2:        #2C2B37;
    --accent-ink:    #0A0510;
    --brass:         #E0A855;
    --brass-dim:     #2C2415;
    --oxide:         #EE8078;
    --oxide-dim:     #33201E;
    --green:         #4FC98B;
    --green-dim:     #13291F;
    --violet:        #D08BEF;
    --violet-dim:    #2C1E36;
    --grid-line:     rgba(170,150,220,.06);
    --scrim:         rgba(4,3,8,.62);

    --shadow-sm:     0 1px 2px rgba(0,0,0,.55);
    --shadow-md:     0 2px 8px -2px rgba(0,0,0,.6), 0 10px 22px -8px rgba(0,0,0,.55);
    --shadow-lg:     0 12px 30px -12px rgba(0,0,0,.7), 0 34px 72px -24px rgba(0,0,0,.62);

    --accent:       #B36BFF;
    --accent-deep:  #C88FFF;
    --accent-dim:   color-mix(in srgb, var(--accent) 16%, var(--surface));
    --halo:         color-mix(in srgb, var(--accent) 38%, transparent);
    --wash-1:       color-mix(in srgb, var(--accent) 12%, transparent);
    --wash-2:       color-mix(in srgb, var(--violet) 8%, transparent);

    --glow:         0 0 22px -3px var(--halo);
    --glow-strong:  0 0 36px -4px color-mix(in srgb, var(--accent) 60%, transparent);
    --glow-text:    0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
  }
}

:root[data-theme="dark"] {
  --ground:        #08080C;
  --surface:       #101014;
  --surface-2:     #17171D;
  --surface-3:     #212028;
  --ink:           #EDEDF4;
  --ink-2:         #A4A3B6;
  --ink-3:         #71708A;
  --rule:          #1E1D26;
  --rule-2:        #2C2B37;
  --accent-ink:    #0A0510;
  --brass:         #E0A855;
  --brass-dim:     #2C2415;
  --oxide:         #EE8078;
  --oxide-dim:     #33201E;
  --green:         #4FC98B;
  --green-dim:     #13291F;
  --violet:        #D08BEF;
  --violet-dim:    #2C1E36;
  --grid-line:     rgba(170,150,220,.06);
  --scrim:         rgba(4,3,8,.62);

  --shadow-sm:     0 1px 2px rgba(0,0,0,.55);
  --shadow-md:     0 2px 8px -2px rgba(0,0,0,.6), 0 10px 22px -8px rgba(0,0,0,.55);
  --shadow-lg:     0 12px 30px -12px rgba(0,0,0,.7), 0 34px 72px -24px rgba(0,0,0,.62);

  --accent:       #B36BFF;
  --accent-deep:  #C88FFF;
  --accent-dim:   color-mix(in srgb, var(--accent) 16%, var(--surface));
  --halo:         color-mix(in srgb, var(--accent) 38%, transparent);
  --wash-1:       color-mix(in srgb, var(--accent) 12%, transparent);
  --wash-2:       color-mix(in srgb, var(--violet) 8%, transparent);

  --glow:         0 0 22px -3px var(--halo);
  --glow-strong:  0 0 36px -4px color-mix(in srgb, var(--accent) 60%, transparent);
  --glow-text:    0 0 18px color-mix(in srgb, var(--accent) 45%, transparent);
}

:root[data-accent="purple"] { --accent: #9333EA; --accent-deep: #7C22CE; }
:root[data-theme="dark"][data-accent="purple"] { --accent: #B36BFF; --accent-deep: #C88FFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="purple"] { --accent: #B36BFF; --accent-deep: #C88FFF; }
}
:root[data-accent="green"] { --accent: #0E9F6E; --accent-deep: #07835A; }
:root[data-theme="dark"][data-accent="green"] { --accent: #4BF0A5; --accent-deep: #7DF7C1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="green"] { --accent: #4BF0A5; --accent-deep: #7DF7C1; }
}
:root[data-accent="cyan"] { --accent: #0891B2; --accent-deep: #0A7490; }
:root[data-theme="dark"][data-accent="cyan"] { --accent: #4FD8F5; --accent-deep: #84E6FA; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="cyan"] { --accent: #4FD8F5; --accent-deep: #84E6FA; }
}
:root[data-accent="pink"] { --accent: #DB2777; --accent-deep: #BE185D; }
:root[data-theme="dark"][data-accent="pink"] { --accent: #FF6EC7; --accent-deep: #FF9BD9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="pink"] { --accent: #FF6EC7; --accent-deep: #FF9BD9; }
}
:root[data-accent="amber"] { --accent: #C2680A; --accent-deep: #9A5208; }
:root[data-theme="dark"][data-accent="amber"] { --accent: #FFB84D; --accent-deep: #FFD08A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="amber"] { --accent: #FFB84D; --accent-deep: #FFD08A; }
}
:root[data-accent="blue"] { --accent: #2563EB; --accent-deep: #1D4ED8; }
:root[data-theme="dark"][data-accent="blue"] { --accent: #6E9BFF; --accent-deep: #9DBBFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-accent="blue"] { --accent: #6E9BFF; --accent-deep: #9DBBFF; }
}

:root[data-theme="light"][data-base="paper"] { --ground: #FAFAFD; --surface: #FFFFFF; --surface-2: #F3F2F8; --surface-3: #E8E6F1; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"])[data-base="paper"] { --ground: #FAFAFD; --surface: #FFFFFF; --surface-2: #F3F2F8; --surface-3: #E8E6F1; }
}
:root[data-theme="light"][data-base="snow"] { --ground: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F4F6; --surface-3: #E9E9ED; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"])[data-base="snow"] { --ground: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F4F6; --surface-3: #E9E9ED; }
}
:root[data-theme="light"][data-base="linen"] { --ground: #FBFAF6; --surface: #FFFFFF; --surface-2: #F4F2EB; --surface-3: #E9E5DA; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"])[data-base="linen"] { --ground: #FBFAF6; --surface: #FFFFFF; --surface-2: #F4F2EB; --surface-3: #E9E5DA; }
}
:root[data-theme="light"][data-base="mist"] { --ground: #F4F7FA; --surface: #FFFFFF; --surface-2: #EBF0F6; --surface-3: #DDE5EF; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"])[data-base="mist"] { --ground: #F4F7FA; --surface: #FFFFFF; --surface-2: #EBF0F6; --surface-3: #DDE5EF; }
}
:root[data-theme="dark"][data-base="ink"] { --ground: #08080C; --surface: #101014; --surface-2: #17171D; --surface-3: #212028; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-base="ink"] { --ground: #08080C; --surface: #101014; --surface-2: #17171D; --surface-3: #212028; }
}
:root[data-theme="dark"][data-base="carbon"] { --ground: #0C0C0E; --surface: #141416; --surface-2: #1B1B1E; --surface-3: #26262A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-base="carbon"] { --ground: #0C0C0E; --surface: #141416; --surface-2: #1B1B1E; --surface-3: #26262A; }
}
:root[data-theme="dark"][data-base="midnight"] { --ground: #070912; --surface: #0F1220; --surface-2: #161A2B; --surface-3: #20263B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-base="midnight"] { --ground: #070912; --surface: #0F1220; --surface-2: #161A2B; --surface-3: #20263B; }
}
:root[data-theme="dark"][data-base="moss"] { --ground: #070B09; --surface: #0E1411; --surface-2: #151D18; --surface-3: #1F2A23; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-base="moss"] { --ground: #070B09; --surface: #0E1411; --surface-2: #151D18; --surface-3: #1F2A23; }
}

:root[data-glow="off"] {
  --glow: 0 0 0 transparent;
  --glow-strong: 0 0 0 transparent;
  --glow-text: none;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { height: 100%; margin: 0; overflow-x: hidden; }

body {

  background:
    radial-gradient(1200px 760px at 8% -12%, var(--wash-1), transparent 62%),
    radial-gradient(1000px 680px at 102% 108%, var(--wash-2), transparent 62%),
    var(--ground);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: var(--r-pill); border: 3px solid var(--ground); }

.brand-mark {
  width: 28px; height: 28px; flex: none; border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--accent) 0%, var(--violet) 100%);
  box-shadow: var(--glow-strong), inset 0 1px 0 rgba(255,255,255,.22);
  position: relative;
}

.brand-mark::after {
  content: ''; position: absolute; inset: 34%;
  border-radius: 2px; background: rgba(255,255,255,.9);
}

.auth-screen {

  height: 100%; overflow-y: auto; padding: 40px 24px;
  background:
    radial-gradient(1100px 620px at 15% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(900px 520px at 105% 110%, color-mix(in srgb, var(--brass) 10%, transparent), transparent 60%),
    var(--ground);
}
.auth-card {
  width: 100%; max-width: 424px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-xl);
  padding: 34px 36px 30px; box-shadow: var(--shadow-lg);
}

.auth-theme-toggle {
  position: fixed; top: 18px; right: 20px; z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.auth-theme-toggle:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }
.auth-theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.auth-version {
  position: fixed; right: 20px; bottom: 16px; margin: 0;
  font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  letter-spacing: .04em; pointer-events: none;
}

.auth-masthead {
  width: 100%; max-width: 424px; margin: 0 auto 20px; justify-content: center;
}
.auth-masthead h1 { font-size: 24px; }
.auth-masthead .brand-sub { font-size: 13.5px; }

.auth-join-card { margin-bottom: 16px; padding: 24px 28px 22px; }
.auth-card-title { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.auth-card-sub { margin: 4px 0 16px; font-size: 12.5px; color: var(--ink-3); }
.auth-join-card .auth-form { gap: 12px; }

.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-brand h1 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.brand-sub { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-3); }

.tabs { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: var(--r-sm); margin-bottom: 22px; }
.tab {
  flex: 1; padding: 8px 10px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 500; cursor: pointer;
}
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); }
.auth-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-hint { font-size: 11px; font-weight: 400; color: var(--ink-3); }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=datetime-local], input[type=number],
input[type=search], input[type=url], input[type=tel], select, textarea {
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-sm);
  padding: 10px 12px; font-size: 14px; color: var(--ink); width: 100%;
  transition: border-color .16s ease, box-shadow .16s ease;
}

select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238B8BA1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px;
}
select:hover { border-color: var(--rule-2); background-color: var(--surface-2); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--halo), var(--glow);
}

.password-field { position: relative; }
.password-field input[type=password], .password-field input[type=text] { padding-right: 38px; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--ink-3); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink-2); background: var(--surface-3); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: var(--r-sm); padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  line-height: 1.2;
  transition: background .16s cubic-bezier(.2,.8,.3,1), border-color .16s ease,
              box-shadow .16s ease, transform .08s ease-out;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--glow-strong), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-ghost { background: var(--surface); border-color: var(--rule-2); color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--rule-2); }
.btn-danger { background: var(--oxide); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.btn-danger:hover { filter: brightness(.94); }
.btn.small { padding: 7px 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

.form-error {
  margin: 0; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--oxide-dim); color: var(--oxide); font-size: 12.5px;
  border: 1px solid color-mix(in srgb, var(--oxide) 30%, transparent);
}
.auth-hint {
  margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: var(--f-ui); font-size: 11px; line-height: 1.6; color: var(--ink-3);
}
.link-btn {
  border: 0; background: none; padding: 0; font: inherit; font-size: inherit;
  color: var(--accent); cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--accent-ink); }

.shell {
  height: 100%; display: grid; position: relative;
  grid-template-columns: var(--rail-icon-w) var(--pane-w) minmax(0,1fr);
  transition: grid-template-columns .18s ease;
}

.rail { grid-column: 1; }
.pane { grid-column: 2; }
.main { grid-column: 3; }
.shell:has(#section-pane[hidden]) { grid-template-columns: var(--rail-icon-w) 0 minmax(0,1fr); }

.rail {
  position: relative; z-index: 40; width: var(--rail-icon-w);
  background: color-mix(in srgb, var(--surface) 72%, var(--ground));
  border-right: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  display: flex; flex-direction: column; min-height: 0;
  transition: width .18s ease, box-shadow .18s ease;
}
.shell.rail-open .rail {
  width: var(--rail-w);
  box-shadow: 18px 0 40px -22px rgba(0,0,0,.55);
}
.rail-head { display: flex; align-items: center; padding: 10px 8px 8px; }

.rail-toggle {
  position: absolute; top: 68px; right: -11px; z-index: 3;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--rule-2); background: var(--surface-2); color: var(--ink-3);
  transition: color .12s ease-out, border-color .12s ease-out, transform .18s ease;
}
.rail-toggle:hover { color: var(--accent); border-color: var(--accent); box-shadow: var(--glow); }
.shell.rail-open .rail-toggle { transform: rotate(180deg); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rail-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 9px; }
.rail-nav::-webkit-scrollbar { width: 0; }
.rail-btn {
  position: relative; width: 100%; display: flex; align-items: center; gap: 11px;
  padding: 9px 9px; margin-bottom: 2px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px;
  text-align: left; cursor: pointer; white-space: nowrap;
  transition: background .12s ease-out, color .12s ease-out;
}
.rail-btn:hover { background: var(--surface-2); color: var(--ink); }
.rail-btn .sigil {
  flex: none; width: 22px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: color .12s ease-out;
}
.rail-btn:hover .sigil { color: var(--ink); }
.rail-btn .label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.rail-btn.is-active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.rail-btn.is-active .sigil { color: var(--accent); }
.rail-btn.is-active::before {
  content: ''; position: absolute; left: -9px; top: 7px; bottom: 7px; width: 2.5px;
  border-radius: 0 2px 2px 0; background: var(--accent); box-shadow: var(--glow);
}
.rail-btn-count {
  flex: none; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 10px;
  font-weight: 700; display: none; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ground); box-shadow: var(--glow);
}
.rail-btn-count:not(:empty) { display: inline-flex; }
.rail-btn-count.is-live { background: var(--oxide); color: #fff; }

.shell:not(.rail-open) .rail-btn .label,
.shell:not(.rail-open) .rail-btn kbd,
.shell:not(.rail-open) .me-text,
.shell:not(.rail-open) .workspace-text,
.shell:not(.rail-open) .workspace-btn .caret,
.shell:not(.rail-open) .rail-open-only { display: none; }
.shell:not(.rail-open) .rail-btn { justify-content: center; padding: 9px 0; gap: 0; }
.shell:not(.rail-open) .rail-btn-count:not(:empty) {
  position: absolute; top: 3px; right: 6px; min-width: 8px; width: 8px; height: 8px;
  padding: 0; font-size: 0; border-radius: 50%;
}

.rail-tip {
  position: fixed; z-index: 200; transform: translateY(-50%);
  padding: 5px 9px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--rule-2);
  font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.workspace-btn {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 5px 6px; border: 0; border-radius: var(--r-md); cursor: pointer;
  background: transparent; color: var(--ink); text-align: left;
  transition: background .12s ease-out;
}
.workspace-btn:hover { background: var(--surface-2); }
.shell:not(.rail-open) .workspace-btn { justify-content: center; padding: 5px 0; }
.workspace-mark {
  flex: none; width: 30px; height: 30px; border-radius: var(--r-md); display: grid;
  place-items: center; font-size: 13px; font-weight: 700;
  background: linear-gradient(145deg, var(--accent), var(--violet));
  color: #fff; text-transform: uppercase;
  box-shadow: var(--glow), inset 0 1px 0 rgba(255,255,255,.22);
}
.workspace-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.workspace-text strong { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-text span { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-btn .caret { flex: none; color: var(--ink-3); }

.rail-btn kbd {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .04em;
  padding: 2px 5px; border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink-3);
}

.icon-btn {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--r-sm);
  color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1;
  transition: background .12s ease-out, color .12s ease-out;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn.tiny { width: 22px; height: 22px; font-size: 13px; }

.rail-foot {
  flex: none; border-top: 1px solid var(--rule); padding: 8px 9px;
  display: flex; flex-direction: column; gap: 1px;
}
.rail-me { margin-top: 2px; }
.rail-open-only { margin-top: 6px; }
.avatar {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--surface-3); color: var(--accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.rail-me .avatar { margin-left: -2px; }
.me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; flex: 1; }
.me-text strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text span { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pane {
  display: flex; flex-direction: column; min-width: 0; min-height: 0;
  background: color-mix(in srgb, var(--surface) 45%, var(--ground));
  border-right: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  overflow: hidden;
}
.pane-head {
  flex: none; display: flex; align-items: center; gap: 8px; height: 60px;
  padding: 0 10px 0 14px; border-bottom: 1px solid var(--rule);
}
.pane-head h2 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; flex: 1; }
.scope-seg { margin: 10px 12px 8px; }
.seg-count {
  margin-left: 5px; font-family: var(--f-ui); font-variant-numeric: tabular-nums;
  font-size: 10px; opacity: .7;
}
.pane-search {
  margin: 0 12px 8px; padding: 6px 9px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface-2);
  color: var(--ink-3);
}
.pane-search:focus-within { border-color: var(--accent); box-shadow: var(--glow); }
.pane-search input {
  flex: 1; min-width: 0; border: 0; background: none; color: var(--ink);
  font: inherit; font-size: 13px; outline: none;
}
.pane-list {
  flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0;
  padding: 0 8px 12px; display: flex; flex-direction: column; gap: 1px;
}

.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.rail-list li, .pane-list li {
  display: flex; align-items: center; gap: 8px; padding: 7px 6px 7px 9px;
  border-radius: var(--r-sm); cursor: pointer; font-size: 13.5px; color: var(--ink-2); position: relative;
}
.rail-list li:hover, .pane-list li:hover { background: var(--surface-2); color: var(--ink); }
.rail-list li.is-active, .pane-list li.is-active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.rail-list li .sigil, .pane-list li .sigil {
  font-family: var(--f-ui); font-size: 12px; color: var(--ink-3); flex: none;
  display: inline-flex; align-items: center; justify-content: center; width: 16px;
}
.rail-list li.is-active .sigil, .pane-list li.is-active .sigil { color: var(--accent); }

.rail-list li.is-active::before, .pane-list li.is-active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px;
  border-radius: 0 2px 2px 0; background: var(--accent); box-shadow: var(--glow);
}
.rail-list li .label, .pane-list li .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.rail-list li .lock, .pane-list li .lock { font-size: 10px; color: var(--brass); flex: none; }
.empty-note {
  padding: 14px 10px; font-size: 12.5px; line-height: 1.55; color: var(--ink-3);
  cursor: default; list-style: none;
}
.empty-note:hover { background: none; color: var(--ink-3); }

.dots {
  flex: none; width: 20px; height: 20px; border: 0; background: transparent;
  color: var(--ink-3); border-radius: var(--r-sm); cursor: pointer; font-size: 14px;
  line-height: 1; opacity: 0; display: grid; place-items: center;
}
.rail-list li:hover .dots, .pane-list li:hover .dots, .drive-row:hover .dots { opacity: 1; }
.dots:hover { background: var(--surface-3); color: var(--ink); }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: transparent; }
.topbar {
  height: 60px; flex: none; display: flex; align-items: center; gap: 12px;
  padding: 0 16px; border-bottom: 1px solid var(--rule); background: var(--surface);
}
.topbar-title { display: flex; align-items: baseline; gap: 11px; min-width: 0; flex: 1; }
.topbar-title h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.018em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-sub { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 6px; flex: none; }

.notif-btn { position: relative; }
.notif-count {
  position: absolute; top: -4px; right: -4px; min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: var(--r-md); background: var(--oxide); color: #fff;
  font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 9px; font-weight: 700;
  display: grid; place-items: center; border: 1.5px solid var(--surface);
}
.notif-panel {
  position: fixed; z-index: 60; width: 360px; max-width: calc(100vw - 24px);
  max-height: 70vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 13px; border-bottom: 1px solid var(--rule); flex: none;
}
.notif-list { overflow-y: auto; min-height: 0; }
.notif-row {
  display: flex; gap: 10px; padding: 11px 13px; border-bottom: 1px solid var(--rule);
  cursor: pointer; align-items: flex-start;
}
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: var(--surface-2); }
.notif-row.is-unread { background: var(--accent-dim); }
.notif-row.is-unread:hover { background: color-mix(in srgb, var(--accent-dim) 70%, var(--surface-2)); }
.notif-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.notif-row:not(.is-unread) .notif-dot { background: transparent; }
.notif-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notif-body strong { font-size: 13px; font-weight: 600; }
.notif-body span { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.notif-when { font-size: 11px; color: var(--ink-3); }
.notif-empty { padding: 34px 16px; text-align: center; color: var(--ink-3); font-size: 13px; }

.search-backdrop {
  position: fixed; inset: 0; z-index: 70; background: var(--scrim);
  display: grid; place-items: start center; padding: 10vh 16px 16px;
  backdrop-filter: blur(8px) saturate(.9);
  animation: overlay-in .14s ease-out;
}
.search-panel {
  width: min(680px, 100%); max-height: 72vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: modal-in .2s cubic-bezier(.2,.8,.3,1);
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--rule); flex: none; }
.search-field > svg { flex: none; color: var(--ink-3); }
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 0;
  font: inherit; font-size: 15.5px; color: var(--ink);
}
.search-field input:focus { outline: none; box-shadow: none; border: 0; }
.search-field .icon-btn { flex: none; width: auto; padding: 0 8px; font-size: 11px; font-weight: 600; }
.search-scopes { display: flex; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; flex: none; }
.search-scopes:empty { display: none; }
.search-scope {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink-2);
  border-radius: var(--r-pill); padding: 4px 6px 4px 11px; font: inherit; font-size: 12px;
  cursor: pointer; transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.search-scope:hover { background: var(--surface-2); color: var(--ink); }
.search-scope.is-active {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600; box-shadow: var(--glow);
}

.search-scope-n {
  min-width: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-3);
  font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  line-height: 17px; text-align: center;
}
.search-scope.is-active .search-scope-n {
  background: color-mix(in srgb, var(--accent-ink) 24%, transparent);
  color: var(--accent-ink);
}

.search-results { overflow-y: auto; min-height: 0; padding: 6px; }
.search-results:empty { display: none; }
.search-group-title {
  padding: 11px 10px 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.search-hit {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 10px; border-radius: var(--r-md); cursor: pointer;
  transition: background .12s ease;
}
.search-hit:hover { background: var(--surface-2); }
.search-hit .sigil {
  flex: none; width: 26px; height: 26px; border-radius: var(--r-sm);
  display: grid; place-items: center; font-size: 12px;
  background: var(--surface-2); color: var(--ink-3);
}
.search-hit:hover .sigil { background: var(--accent-dim); color: var(--accent); }
.search-hit-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.search-hit-title {
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-hit-sub {
  font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-hit mark { background: color-mix(in srgb, var(--brass) 30%, transparent); color: inherit; border-radius: 2px; }
.search-empty { padding: 26px 20px 30px; color: var(--ink-3); font-size: 13px; }
.search-empty p { margin: 0 0 8px; }
.search-empty p:last-child { margin-bottom: 0; }
.search-empty .hint { font-size: 12px; line-height: 1.6; color: var(--ink-3); opacity: .85; }

.conn { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-pill); }
.conn-up   { background: var(--accent-dim); color: var(--accent); text-shadow: var(--glow-text); }
.conn-down { background: var(--oxide-dim);  color: var(--oxide); }

.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.stat-chip { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.pill-tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); background: var(--brass-dim); color: var(--brass); }

.rail-team-badge {
  flex: none; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px; padding: 1px 6px; border-radius: 3px; margin-left: auto;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.inline-input { padding: 6px 9px !important; font-size: 12.5px !important; }

.pinned-strip { flex: none; border-bottom: 1px solid var(--rule); background: var(--brass-dim); padding: 8px 18px; }
.pin-head { display: flex; align-items: center; gap: 10px; }
.pin-tag { font-size: 10.5px; font-weight: 700; color: var(--brass); letter-spacing: .07em; text-transform: uppercase; }
.pin-counter { font-size: 11.5px; color: var(--ink-3); }
.pin-nav {
  background: none; border: 0; color: var(--brass); cursor: pointer;
  font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 10.5px; padding: 2px 6px; border-radius: 3px;
}
.pin-nav:last-of-type { margin-left: auto; }
.pin-nav:hover { background: color-mix(in srgb, var(--brass) 18%, transparent); }
.pin-current { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pin-current:hover { color: var(--ink); }

.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 3px; }
.msg { display: flex; gap: 11px; padding: 5px 10px; border-radius: var(--r-sm); position: relative; }
.msg:hover { background: var(--surface); }
.msg.is-flash { background: var(--brass-dim); }
.msg .avatar { width: 30px; height: 30px; margin-top: 2px; }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 9px; }
.msg-author { font-size: 13.5px; font-weight: 600; }
.msg-time { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.msg-seq { font-family: var(--f-mono); font-size: 9.5px; color: var(--ink-3); opacity: .7; }
.msg-text { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.msg-file-chip {
  display: inline-flex; align-items: center; gap: 7px; margin: 3px 2px 0;
  padding: 5px 10px 5px 6px; border-radius: var(--r-sm); border: 1px solid var(--rule-2);
  background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 500;
  cursor: pointer; vertical-align: middle;
}
.msg-file-chip:hover { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.msg-file-chip .file-icon.small { width: 22px; height: 22px; font-size: 8.5px; }
.msg.is-pinned { background: var(--brass-dim); }
.msg-actions {
  position: absolute; top: 3px; right: 8px; display: none; gap: 3px;
  background: var(--surface-2); border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 2px;
}
.msg:hover .msg-actions { display: flex; }
.msg-actions button { background: none; border: 0; cursor: pointer; color: var(--ink-3); font-size: 11.5px; font-weight: 500; padding: 3px 7px; border-radius: var(--r-sm); }
.msg-actions button:hover { background: var(--surface-3); color: var(--accent); }
.msg-actions button.on { color: var(--brass); }

.gap-marker {
  align-self: center; margin: 8px 0; font-family: var(--f-ui); font-size: 10.5px;
  color: var(--brass); background: var(--brass-dim);
  border: 1px solid color-mix(in srgb, var(--brass) 25%, transparent);
  padding: 3px 10px; border-radius: var(--r-pill);
}

.rail-list li.is-unread { color: var(--ink); font-weight: 600; }
.rail-list li.is-unread .sigil { color: var(--ink); }
.rail-count, .rail-at {
  flex: none; font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 9.5px; line-height: 1;
  padding: 3px 5px; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-2);
}
.rail-at { background: var(--oxide); color: #fff; font-weight: 700; padding: 3px 6px; }
.rail-list li:hover .rail-count, .rail-list li:hover .rail-at { display: none; }

.msg-mention {
  background: var(--accent-dim); color: var(--accent); font-weight: 600;
  padding: 0 3px; border-radius: 3px;
}
.msg-mention.is-me { background: var(--oxide); color: #fff; }

.mention-pop {
  position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0,0,0,.28); overflow: hidden; padding: 4px;
}
.mention-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: var(--r-sm); cursor: pointer; font-size: 13px;
}
.mention-row.is-active, .mention-row:hover { background: var(--accent-dim); }
.mention-row .avatar { width: 22px; height: 22px; font-size: 9px; }
.mention-name { font-weight: 600; color: var(--ink); }
.mention-mail {
  margin-left: auto; font-family: var(--f-ui); font-size: 10px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rail-list li.is-live-meeting .sigil { color: var(--oxide); }
.rail-list li.is-ended-meeting { opacity: 0.6; }
.meeting-bar {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 18px;
  border-bottom: 1px solid var(--rule); background: var(--surface-2); flex-wrap: wrap;
}
.meeting-bar-spacer { flex: 1; }
.meeting-clock {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.meeting-rec-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .07em; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--oxide-dim); color: var(--oxide); font-weight: 700;
}
.rec-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--oxide);
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.meeting-rec-tag.is-finalizing {
  background: var(--brass-dim); color: var(--brass);
}
.meeting-rec-tag.is-finalizing .rec-dot {
  background: var(--brass); animation: none;
}
.lobby-count {
  display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 4px;
  border-radius: var(--r-md); background: var(--oxide); color: #fff;
  font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 10px; font-weight: 700; text-align: center;
}
.meeting-role-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-2);
}
.meeting-role-tag.role-host { background: var(--brass-dim); color: var(--brass); }
.meeting-role-tag.role-moderator { background: var(--accent-dim); color: var(--accent); }
.meeting-bar .btn { margin-left: 0; }
.meeting-state-tag {
  font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--oxide-dim); color: var(--oxide); margin-left: 6px;
}
.meeting-row-actions { display: flex; gap: 4px; margin-left: auto; }
.meeting-row-actions button {
  background: var(--surface-3); border: 0; border-radius: var(--r-sm); cursor: pointer;
  font-size: 12px; padding: 3px 7px; color: var(--ink-2);
}
.meeting-row-actions button:hover { background: var(--surface); color: var(--ink); }

.recording-card {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 4px 10px 4px; margin-bottom: 8px; background: var(--surface-2);
}
.recording-card .member-row { border: 0; background: none; padding: 6px 0; }
.recording-player { padding: 0 0 10px; }
.recording-video {
  display: block; width: 100%; max-height: min(56vh, 460px);
  border-radius: var(--r-sm); background: #000;
}
.meeting-waiting {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px; color: var(--ink-2); font-size: 14px;
}

.chat-body { flex: 1; min-height: 0; display: flex; overflow: hidden; position: relative; }

.chat-column { position: relative; flex: 1; min-width: 280px; display: flex; flex-direction: column; min-height: 0; }

.meeting-main:not([hidden]) ~ .chat-column {
  flex: 0 0 336px; min-width: 260px; border-left: 1px solid var(--rule);
  background: var(--surface);
}

.shell.in-call,
.shell.in-call:has(#section-pane[hidden]) { grid-template-columns: var(--rail-icon-w) 0 minmax(0,1fr); }
.shell.in-call .pane { display: none; }
.shell.in-call .side { display: none; }
.shell.in-call #toggle-side { display: none; }

.meeting-main {
  flex: 1; min-width: 0; min-height: 0; position: relative;
  display: flex; flex-direction: column;

  container-type: inline-size;

  background: var(--stage);
}
:root[data-theme="light"] .meeting-main { background: var(--stage-1); }
.meeting-surface { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 12px 12px 0; }

.meeting-stage {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-content: center; justify-content: center;
}
.meeting-tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--stage-1); flex: 0 0 auto;
  width: var(--tile-w, 240px); height: var(--tile-h, 135px);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; transition: border-color .12s ease-out;
}
.meeting-tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: var(--stage-1);
}

.meeting-tile.is-self video { transform: scaleX(-1); }
.meeting-tile .avatar {
  width: 15%; min-width: 40px; max-width: 88px; aspect-ratio: 1; height: auto;
  font-size: clamp(13px, 2.4vw, 26px); z-index: 1;
}
.meeting-tile-name {
  position: absolute; left: 10px; bottom: 9px; z-index: 2; max-width: calc(100% - 76px);
  font-size: 12px; font-weight: 600; color: var(--stage-ink);
  padding: 3px 9px; border-radius: var(--r-lg); background: var(--stage-veil);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.meeting-tile-name .tile-role {
  font-family: var(--f-ui); font-size: 9px; text-transform: uppercase;
  letter-spacing: .06em; opacity: .8;
}
.meeting-tile.is-host .tile-role { color: var(--brass); }
.meeting-tile.is-moderator .tile-role { color: var(--accent); }
.meeting-tile-badges { position: absolute; top: 9px; right: 9px; z-index: 2; display: flex; gap: 5px; }
.meeting-tile-badges span {
  width: 24px; height: 24px; border-radius: 50%; background: var(--stage-veil);
  display: grid; place-items: center; color: var(--stage-ink);
}
.meeting-tile-badges .badge-muted { background: rgba(158,67,38,.85); }
.meeting-tile-badges .badge-hand { background: var(--brass); color: #1A1207; }

.meeting-tile.is-speaking { border-color: var(--accent); }
.meeting-tile.is-speaking::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-md); pointer-events: none;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: speak-pulse 1.1s ease-in-out infinite;
}
@keyframes speak-pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
.meeting-tile.is-hand { border-color: var(--brass); }

.meeting-tile-overflow {
  background: var(--stage-1); flex-direction: column; gap: 4px; color: var(--ink-2);
}
.meeting-tile-overflow .overflow-count { font-size: clamp(16px, 3vw, 30px); font-weight: 700; color: var(--stage-ink-2); }
.meeting-tile-overflow .overflow-label { font-size: 11px; color: var(--stage-ink-3); }

.meeting-surface.is-presenting .meeting-present { display: flex; }
.meeting-present {
  flex: 1; min-width: 0; min-height: 0; display: none; flex-direction: column;
  background: var(--stage); border-radius: var(--r-lg); overflow: hidden;
}
.present-head {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--stage-1); border-bottom: 1px solid var(--stage-rule);
}
.present-label {
  font-size: 12.5px; font-weight: 600; color: var(--stage-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.present-tools { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.present-tools .tool { color: var(--stage-ink-2); }
.present-body { flex: 1; min-height: 0; position: relative; display: flex; }
.present-video { width: 100%; height: 100%; object-fit: contain; background: var(--stage); }
.present-self-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--stage); color: var(--stage-ink); text-align: center; padding: 24px;
}
.present-self-placeholder .present-self-icon { font-size: 40px; }
.present-self-placeholder .hint { max-width: 360px; }
.present-canvas-wrap { position: relative; flex: 1; min-height: 0; background: var(--surface); }
.present-canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.present-doc { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; background: var(--surface); }

.meeting-surface.is-presenting .meeting-stage {
  flex: 0 0 194px; flex-direction: column; flex-wrap: nowrap;
  align-content: stretch; justify-content: flex-start; overflow-y: auto;
}
.meeting-surface.is-presenting .meeting-tile {
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 10;
}

.meeting-surface.is-presenting.people-hidden .meeting-stage { display: none; }

.meeting-present:fullscreen { background: var(--stage); border-radius: 0; }
.meeting-present:fullscreen .present-body { padding: 0; }

.meeting-dock {
  flex: none; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 12px 12px; flex-wrap: wrap;
}
.dock-btn {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 3px; min-width: 58px; padding: 8px 10px 6px; border: 0; cursor: pointer;
  border-radius: var(--r-lg); background: var(--stage-2); color: var(--stage-ink);
  transition: background .12s ease-out, color .12s ease-out;
}
.dock-btn:hover { background: var(--stage-3); }
.dock-btn:disabled { opacity: .45; cursor: default; }
.dock-btn:disabled:hover { background: var(--stage-2); }
.dock-btn .dock-label { font-size: 10px; letter-spacing: .02em; color: var(--stage-ink-3); }
.dock-btn .ic-off { display: none; }

.dock-btn.is-off { background: var(--oxide); color: #fff; }
.dock-btn.is-off .dock-label { color: rgba(255,255,255,.82); }
.dock-btn.is-off .ic-on { display: none; }
.dock-btn.is-off .ic-off { display: block; }
.dock-btn.is-on { background: var(--accent); color: var(--accent-ink); }
.dock-btn.is-on .dock-label { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.dock-btn.is-active { background: var(--brass); color: #1A1207; }
.dock-btn.is-active .dock-label { color: rgba(26,18,7,.75); }

.dock-btn.is-locked { outline: 2px dashed rgba(255,255,255,.55); outline-offset: 2px; }
.dock-btn.dock-leave { background: var(--oxide); color: #fff; margin-left: 6px; }
.dock-btn.dock-leave .dock-label { color: rgba(255,255,255,.82); }
.dock-btn.dock-leave:hover { background: color-mix(in srgb, var(--oxide) 82%, #000); }
.dock-btn.is-recording { background: var(--oxide); color: #fff; }
.dock-btn.is-recording .dock-label { color: rgba(255,255,255,.82); }
.dock-sep { width: 1px; height: 30px; background: var(--stage-rule); margin: 0 4px; }
.dock-badge {
  position: absolute; top: 3px; right: 6px; min-width: 16px; padding: 0 4px;
  border-radius: var(--r-md); background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 9.5px; font-weight: 700; line-height: 16px;
}

.emoji-tray {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 30;
  display: flex; gap: 4px; padding: 7px 9px; border-radius: var(--r-pill);
  background: var(--stage-2); box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
.emoji-tray button {
  border: 0; background: transparent; cursor: pointer; font-size: 22px;
  line-height: 1; padding: 4px 6px; border-radius: var(--r-md);
}
.emoji-tray button:hover { background: var(--stage-3); transform: scale(1.12); }

.meeting-reactions { position: absolute; inset: 0; pointer-events: none; z-index: 25; overflow: hidden; }
.reaction-float {
  position: absolute; bottom: 84px; font-size: 30px;
  animation: reaction-rise 2.4s ease-out forwards;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.5));
}
.reaction-float span {
  display: block; font-size: 10.5px; text-align: center; color: var(--stage-ink-2);
  background: var(--stage-veil); border-radius: var(--r-md); padding: 1px 6px; margin-top: 2px;
}
@keyframes reaction-rise {
  0%   { opacity: 0; transform: translateY(10px) scale(.7); }
  15%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-190px) scale(1.05); }
}

.meeting-audio { position: fixed; width: 0; height: 0; overflow: hidden; }

.call-pip {
  position: fixed; right: 16px; bottom: 16px; z-index: 500;
  width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; border-radius: var(--r-lg);
  background: var(--stage-1); box-shadow: 0 16px 40px rgba(0,0,0,.4);
  transition: opacity .15s ease;
}
.call-pip.is-active {
  width: 224px; height: auto; opacity: 1; pointer-events: auto;
}
.call-pip-video-wrap {
  position: relative; width: 224px; aspect-ratio: 16 / 10; background: #000;
  border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; flex: none;
}
.call-pip-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.call-pip-info {
  display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 4px;
}
.call-pip-info strong {
  font-size: 12.5px; color: var(--stage-ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.call-pip-sub { font-size: 11px; color: var(--stage-ink-3); }
.call-pip-actions {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px 10px;
}
.call-pip-actions .dock-btn { min-width: 0; padding: 7px; }
.call-pip-actions .btn { flex: 1; }
@media (max-width: 480px) {
  .call-pip, .call-pip-video-wrap { width: 168px; }
  .call-pip.is-active { width: 168px; }
}

.shell.recorder-mode,
.shell.recorder-mode:has(#section-pane[hidden]) { grid-template-columns: minmax(0, 1fr); }
.shell.recorder-mode .pane { display: none; }
.shell.recorder-mode .main { grid-column: 1; }
.shell.recorder-mode .rail,
.shell.recorder-mode .side,
.shell.recorder-mode .topbar,
.shell.recorder-mode .meeting-dock,
.shell.recorder-mode #meeting-copy-link-btn,
.shell.recorder-mode #meeting-end-btn,
.shell.recorder-mode #meeting-lobby-btn,
.shell.recorder-mode #meeting-role-tag,
.shell.recorder-mode .composer,
.shell.recorder-mode #emoji-tray { display: none; }
.shell.recorder-mode .meeting-surface { padding: 14px; }

.shell.recorder-mode *,
.shell.recorder-mode *::before,
.shell.recorder-mode *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: none !important;
  animation: none !important;
}

.meeting-toast-stack {
  position: absolute; top: 14px; right: 14px; z-index: 20;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  max-width: 280px;
}
.meeting-msg-toast {
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: var(--r-md);
  padding: 9px 12px; box-shadow: 0 8px 22px rgba(0,0,0,.28);
  animation: toast-in .15s ease-out, toast-out .25s ease-in 2.75s forwards;
}
.meeting-msg-toast strong { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.meeting-msg-toast span { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(12px); } }

@container (max-width: 760px) {
  .dock-btn { min-width: 46px; padding: 8px 8px 6px; }
  .dock-btn .dock-label { display: none; }
}
@container (max-width: 480px) {
  .meeting-dock { gap: 3px; padding: 8px 6px 10px; }
  .dock-btn { min-width: 38px; padding: 7px 5px; }
  .dock-sep { margin: 0 1px; }
}

@media (max-width: 1080px) {
  .meeting-main:not([hidden]) ~ .chat-column { flex: 0 0 280px; }
}

@media (max-width: 820px) {
  .meeting-main:not([hidden]) ~ .chat-column {
    position: absolute; top: 0; right: 0; bottom: 0; left: auto;

    flex: none; min-width: 0;
    width: min(360px, calc(100vw - var(--rail-icon-w) - var(--chat-handle-w) * 2));
    z-index: 40;
    box-shadow: -18px 0 40px -22px rgba(0,0,0,.55);
  }

  .meeting-dock { gap: 4px; padding: 8px 6px 10px; }
  .dock-btn { min-width: 0; padding: 8px; gap: 0; }
  .dock-btn span:not(.dock-badge):not(.rec-dot) { display: none; }
}

.call-popup {
  position: fixed; top: 20px; right: 20px; z-index: 90;
}
.call-popup-card {
  width: 280px; background: var(--surface); border: 1px solid var(--rule-2);
  border-radius: var(--r-lg); box-shadow: 0 14px 34px rgba(0,0,0,.32); padding: 16px;
  animation: call-pop-in .18s ease-out;
}
@keyframes call-pop-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.call-popup-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.call-popup-team { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.call-popup-actions { display: flex; gap: 8px; justify-content: flex-end; }

.drive-folder {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px 5px;
  font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  border-top: 1px solid var(--rule);
}
.drive-folder .drive-folder-name { flex: 1; }

.artifact-create {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.artifact-create .hint { margin: 0; }
.artifact-list { list-style: none; margin: 0; padding: 0; }
.artifact-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px;
  border-radius: 7px;
}
.artifact-list li:hover { background: var(--surface-2); }
.artifact-list .label { flex: 1; font-size: 13.5px; color: var(--ink); }
.artifact-list .sigil { color: var(--ink-3); }

.checkbox-row { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 3px 0; }
.checkbox-row input { margin: 0; }
.invite-list {
  margin: 6px 0 4px 22px; max-height: 140px; overflow-y: auto;
  border-left: 2px solid var(--rule-2); padding-left: 10px;
}

.msg-edited { font-size: 11px; color: var(--ink-3); font-style: italic; }
.msg-forward-tag {
  font-family: var(--f-ui); font-size: 10px; color: var(--brass);
  margin-bottom: 2px; display: flex; align-items: center; gap: 4px;
}
.msg-forward-tag::before { content: '↪'; }
.msg-quote {
  display: flex; gap: 7px; align-items: baseline; margin: 2px 0 4px;
  padding: 3px 8px; border-left: 2px solid var(--accent); background: var(--surface-2);
  border-radius: 0 4px 4px 0; cursor: pointer; font-size: 12px;
}
.msg-quote:hover { background: var(--surface-3); }
.quote-author { font-weight: 600; color: var(--accent); flex: none; }
.quote-text { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-edit-input {
  width: 100%; font-size: 14px; padding: 4px 7px; border-radius: var(--r-sm);
  border: 1px solid var(--accent); background: var(--surface); color: var(--ink);
}

.reply-bar {
  flex: none; display: flex; align-items: center; gap: 8px; font-size: 12px;
  padding: 7px 18px; border-top: 1px solid var(--rule); background: var(--surface-2);
}
.reply-tag { font-family: var(--f-ui); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.reply-to-text { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.reply-cancel { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 16px; padding: 0 4px; }
.reply-cancel:hover { color: var(--oxide); }
.forward-preview {
  padding: 9px 11px; border-radius: var(--r-sm); background: var(--surface-2);
  border-left: 2px solid var(--accent); margin-bottom: 14px; font-size: 13px;
}

.msg-system {
  align-self: center; margin: 6px 0; font-size: 11.5px; text-align: center;
  color: var(--ink-2); opacity: 0.75;
}
.composer { flex: none; display: flex; gap: 9px; padding: 13px 18px; border-top: 1px solid var(--rule); background: var(--surface); }
.composer input { flex: 1; }
.composer-mic { flex: none; align-self: center; }
.composer-mic:hover { color: var(--accent); border-color: var(--accent); }

.voice-bar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-top: 1px solid var(--rule); background: var(--surface);
}
.voice-spacer { flex: 1; }
.voice-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--oxide); flex: none;
  animation: voice-pulse 1.1s ease-in-out infinite;
}
.voice-bar.is-ready .voice-dot { background: var(--accent); animation: none; }
@keyframes voice-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.voice-time {
  font-family: var(--f-mono); font-variant-numeric: tabular-nums;
  font-size: 12.5px; color: var(--ink); min-width: 38px;
}
.voice-state { font-size: 12px; color: var(--ink-2); }
.voice-preview { height: 32px; max-width: 260px; }

.toolbar {
  flex: none; display: flex; align-items: center; gap: 14px; padding: 8px 14px;
  border-bottom: 1px solid var(--rule); background: var(--surface); flex-wrap: wrap;
}
.tool-group { display: flex; align-items: center; gap: 5px; }
.tool-group.right { margin-left: auto; }
.tool {
  padding: 5px 11px; border-radius: var(--r-sm); cursor: pointer; background: var(--surface-2);
  border: 1px solid var(--rule-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500;
}
.tool:hover { color: var(--ink); }
.tool.is-active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.tool-icon { display: grid; place-items: center; width: 32px; height: 30px; padding: 0; }
.tool-icon svg { display: block; }
.swatch { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; padding: 0; }
.swatch.is-active { border-color: var(--ink); }
.width-label { display: flex; align-items: center; gap: 7px; font-family: var(--f-ui); font-size: 10.5px; color: var(--ink-3); }
.width-label input { width: 80px; accent-color: var(--accent); }

.canvas-wrap { flex: 1; position: relative; min-height: 0; overflow: hidden; }
#board-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.cursor-layer { position: absolute; inset: 0; pointer-events: none; }
.canvas-hint {
  position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono);
  font-size: 10px; color: var(--ink-3); pointer-events: none; opacity: .75;
}
.canvas-text-input {
  position: absolute; z-index: 5; min-width: 140px;
  background: var(--surface) !important; border: 1px solid var(--accent) !important;
  border-radius: var(--r-sm); padding: 5px 8px; resize: none; overflow: hidden;
  font-family: "Archivo", Arial, sans-serif; line-height: 1.35; color: var(--ink);
  outline: none;
}
.canvas-text-input.is-node { text-align: center; }
.peer-cursor { position: absolute; transform: translate(-2px,-2px); font-family: var(--f-mono); font-size: 10px; white-space: nowrap; transition: left .08s linear, top .08s linear; }
.peer-cursor .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.peer-cursor .tag { margin-left: 4px; padding: 1px 5px; border-radius: 3px; background: var(--surface-3); color: var(--ink-2); }

.doc-toolbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.doc-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 3px; max-width: 860px; width: 100%; margin: 0 auto; }

.block-row { display: flex; align-items: flex-start; gap: 10px; padding: 3px 6px; border-radius: var(--r-sm); }
.block-row:hover { background: var(--surface); }
.block-row .grip { flex: none; color: var(--ink-3); font-family: var(--f-mono); font-size: 11px; padding-top: 6px; cursor: default; user-select: none; }
.block-text {
  flex: 1; min-height: 26px; padding: 4px 6px; border-radius: var(--r-sm);
  outline: none; font-size: 15px; line-height: 1.6; color: var(--ink);
  border: 1px solid transparent;
}
.block-text:focus { border-color: var(--rule-2); background: var(--surface); }
.block-text:empty::before { content: attr(data-placeholder); color: var(--ink-3); }
.block-del { flex: none; opacity: 0; background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 15px; padding: 4px 6px; }
.block-row:hover .block-del, .task-row:hover .block-del { opacity: 1; }
.block-del:hover { color: var(--oxide); }

.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 6px; border-radius: var(--r-sm); }
.task-row:hover { background: var(--surface); }
.task-row input[type=checkbox] { width: 16px; height: 16px; margin-top: 6px; flex: none; accent-color: var(--accent); cursor: pointer; }
.task-row.done .block-text { color: var(--ink-3); text-decoration: line-through; }

.drive-toolbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.upload-label { display: inline-flex; align-items: center; cursor: pointer; }
.upload-progress { flex: none; padding: 8px 18px; background: var(--accent-dim); border-bottom: 1px solid var(--rule); font-family: var(--f-ui); font-size: 11px; color: var(--accent); }

.drive-columns { flex: 1; min-height: 0; display: flex; }
.drive-col {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
  min-height: 0; background: var(--ground);
}

.drive-selbar {
  flex: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 12px; background: var(--accent-dim); border-bottom: 1px solid var(--rule);
}
.drive-selall {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--accent);
}
.drive-selall input { width: 14px; height: 14px; accent-color: var(--accent); cursor: pointer; }
.drive-selbar .btn-danger { margin-left: auto; }

.drive-col-list { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.drive-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--r-sm); border: 1px solid transparent; cursor: pointer; user-select: none;
}
.drive-row:hover { background: var(--surface); border-color: var(--rule); }
.drive-row.is-selected { background: var(--accent-dim); border-color: var(--accent); }
.drive-check { width: 15px; height: 15px; flex: none; accent-color: var(--accent); cursor: pointer; }
.file-icon {
  width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--surface-3); color: var(--accent); font-family: var(--f-ui); font-size: 10px; font-weight: 600;
}
.file-main { flex: 1; min-width: 0; }
.file-name { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-empty { padding: 30px 16px; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.6; }

.cal-toolbar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.cal-month { margin: 0; font-size: 16px; font-weight: 600; min-width: 190px; }

@media (max-width: 640px) {
  .cal-month { min-width: 0; flex: 1; }
  .drive-toolbar, .cal-toolbar { padding: 10px 12px; }
  .tool-group.right { margin-left: 0; }
}
.cal-weekdays {
  flex: none; display: grid; grid-template-columns: repeat(7,1fr);
  border-bottom: 1px solid var(--rule); background: var(--surface);
}
.cal-weekdays span { padding: 7px 10px; font-family: var(--f-ui); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cal-grid { flex: 1; display: grid; grid-template-columns: repeat(7,1fr); grid-auto-rows: minmax(96px,1fr); overflow-y: auto; }
.cal-day { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-height: 0; cursor: pointer; }
.cal-day:hover { background: var(--surface); }
.cal-day.muted { background: color-mix(in srgb, var(--ground) 60%, var(--surface-2)); }
.cal-day.muted .cal-daynum { color: var(--ink-3); }
.cal-day.today .cal-daynum { background: var(--accent); color: var(--accent-ink); border-radius: 50%; }
.cal-daynum { font-family: var(--f-ui); font-variant-numeric: tabular-nums; font-size: 11px; color: var(--ink-2); width: 20px; height: 20px; display: grid; place-items: center; flex: none; }
.cal-event {
  font-size: 11.5px; padding: 2px 6px; border-radius: 3px; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--accent-dim); color: var(--accent); border-left: 2px solid var(--accent);
}
.cal-event.brass { background: var(--brass-dim); color: var(--brass); border-left-color: var(--brass); }
.cal-event.oxide { background: var(--oxide-dim); color: var(--oxide); border-left-color: var(--oxide); }
.cal-event .rep { font-family: var(--f-ui); font-size: 9px; opacity: .8; }

.empty-view { display: grid; place-items: center; padding: 40px; }
.empty-card { max-width: 400px; text-align: center; }
.empty-card h3 { font-size: 19px; margin: 0 0 8px; font-weight: 650; letter-spacing: -.015em; }
.empty-card p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.65; }

.empty-art {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: var(--r-xl);
  display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(150deg, var(--accent-dim), var(--surface-2));
  border: 1px solid var(--rule);
}
.empty-actions { display: flex; gap: 9px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

.side {

  position: absolute; top: var(--topbar-h); right: 0; bottom: 0; width: var(--side-w); z-index: 45;
  background: color-mix(in srgb, var(--surface) 92%, var(--ground));
  border-left: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  padding: 16px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px;
  transform: translateX(100%); transition: transform .18s ease;
  box-shadow: -18px 0 40px -22px rgba(0,0,0,.55);
}
.shell.side-open .side { transform: none; }
#toggle-side[aria-expanded="true"] { color: var(--accent); background: var(--accent-dim); }
.side-section h4 { margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.side-head h4 { margin-bottom: 0; }
.presence-list, .mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.presence-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.presence-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

.scroll-list { max-height: 156px; overflow-y: auto; margin-top: 8px !important; padding-right: 4px; }
.mini-list li { font-size: 12.5px; color: var(--ink-2); padding: 7px 9px; background: var(--surface-2); border-radius: var(--r-sm); cursor: pointer; border-left: 2px solid var(--brass); }
.mini-list li:hover { color: var(--ink); }
.mini-list li .where { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.side-empty { font-size: 12.5px; color: var(--ink-3); }

.stat-grid { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; }
.stat-grid dt { font-size: 12px; color: var(--ink-3); }
.stat-grid dd { margin: 0; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; }
.stat-grid dd.good { color: var(--accent); }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 55; padding: 24px;
  background: var(--scrim); backdrop-filter: blur(8px) saturate(.9);
  display: grid; place-items: center;
  animation: overlay-in .12s ease-out;
}
.modal {
  width: 100%; max-width: 468px; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); animation: modal-in .22s cubic-bezier(.2,.8,.3,1);
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.975); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal { animation: none; }
}
.modal.wide { max-width: 600px; }
.modal-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--rule); }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; }
.modal-body label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); }
.modal-body .hint { margin: 0; font-family: var(--f-ui); font-size: 11px; color: var(--ink-3); line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.modal-section { border-top: 1px solid var(--rule); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.modal-section:first-child { border-top: 0; padding-top: 0; }
.modal-section h4 { margin: 0; font-family: var(--f-ui); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field-row { display: flex; gap: 8px; align-items: flex-end; }
.field-row label { flex: 1; }

.seg { display: flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: var(--r-sm); }
.seg button { flex: 1; padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.member-row, .grant-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.member-row:last-child, .grant-row:last-child { border-bottom: 0; }
.member-row .role, .grant-row .cap {
  margin-left: auto; font-family: var(--f-ui); font-size: 10px; padding: 2px 7px;
  border-radius: 3px; background: var(--surface-3); color: var(--ink-3);
}
.member-row .role.owner { background: var(--brass-dim); color: var(--brass); }
.grant-row .cap { background: var(--accent-dim); color: var(--accent); margin-left: auto; }
.role-select {
  margin-left: auto; font-family: var(--f-ui); font-size: 10.5px; padding: 3px 6px;
  border-radius: var(--r-sm); background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--rule-2); cursor: pointer;
}
.row-x { background: none; border: 0; color: var(--ink-3); cursor: pointer; font-size: 15px; padding: 0 2px; }
.row-x:hover { color: var(--oxide); }

.context-menu {
  position: fixed; z-index: 50; min-width: 170px; padding: 5px;
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 7px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 1px;
}
.context-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 7px 10px; border: 0; border-radius: var(--r-sm); background: transparent;
  color: var(--ink-2); font-size: 13px; cursor: pointer;
}
.context-menu button:hover { background: var(--surface-2); color: var(--ink); }
.context-menu button.danger { color: var(--oxide); }
.context-menu button.danger:hover { background: var(--oxide-dim); }
.context-menu .sep { height: 1px; background: var(--rule); margin: 4px 2px; }

.toast {

  pointer-events: none;
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 60;
  padding: 10px 18px; border-radius: var(--r-sm); background: var(--surface-3);
  border: 1px solid var(--rule-2); color: var(--ink); font-size: 13px; box-shadow: var(--shadow-lg);
}
.toast.bad { background: var(--oxide-dim); border-color: var(--oxide); color: var(--oxide); }

@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.crm-view { display: flex; flex-direction: column; min-height: 0; }
.crm-toolbar {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--surface) 80%, var(--ground));
}

.crm-toolbar .seg { flex: 0 1 auto; min-width: 0; }
.crm-toolbar .seg button { flex: none; padding: 7px 14px; }
.crm-picker { display: flex; align-items: center; gap: 8px; }
.crm-picker select { width: auto; min-width: 170px; padding: 7px 10px; font-size: 13px; }
.crm-search {
  display: flex; align-items: center; gap: 7px; padding: 0 11px;
  border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-3); height: 34px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.crm-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo), var(--glow); }
.crm-search input { border: 0; background: transparent; padding: 0; width: 180px; font-size: 13px; }
.crm-search input:focus { outline: none; box-shadow: none; }

.crm-pane { flex: 1; min-height: 0; padding: 20px 22px; overflow: hidden; }
.crm-pane-scroll { overflow-y: auto; }
#crm-overview { overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }

.crm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.crm-stat {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow-sm);
}
.crm-stat-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}
.crm-stat-value {
  font-size: 23px; font-weight: 650; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1.15;
}
.crm-stat-note { font-size: 12px; color: var(--ink-3); }
.crm-stat.tone-good .crm-stat-value { color: var(--green); }
.crm-stat.tone-warn .crm-stat-value { color: var(--brass); }

.crm-columns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1080px) { .crm-columns { grid-template-columns: 1fr; } }
.crm-block {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 14px 16px 16px; box-shadow: var(--shadow-sm);
}
.crm-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crm-block-head h4 {
  margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}

.crm-pipelines { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.crm-pipeline-card {
  display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
  text-align: left; padding: 13px 14px; cursor: pointer;
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--r-md); color: inherit; font: inherit;
  transition: border-color .16s ease, background .16s ease, transform .08s ease;
}
.crm-pipeline-card:hover { border-color: var(--accent); background: var(--accent-dim); }
.crm-pipeline-card:active { transform: translateY(1px); }
.crm-pipeline-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-pipeline-head strong { font-size: 14px; font-weight: 600; }
.crm-pipeline-meta { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.crm-due-list { display: flex; flex-direction: column; gap: 6px; }
.crm-due {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  padding: 9px 10px; border: 0; border-radius: var(--r-md);
  background: var(--surface-2); color: inherit; font: inherit; cursor: pointer;
}
.crm-due:hover { background: var(--surface-3); }
.crm-due-kind {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3); padding-top: 2px; min-width: 46px;
}
.crm-due-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.crm-due-text { font-size: 13px; overflow-wrap: anywhere; }
.crm-due-when { font-size: 11.5px; color: var(--ink-3); }
.crm-due.is-overdue .crm-due-when { color: var(--oxide); font-weight: 600; }

.crm-board {
  height: 100%; display: flex; gap: 12px; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; padding-bottom: 6px;
}
.deal-column {
  flex: 0 0 264px; display: flex; flex-direction: column; min-height: 0;
  background: color-mix(in srgb, var(--surface) 62%, var(--ground));
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  transition: background .16s ease, border-color .16s ease;
}

.deal-column.kind-won  { border-color: color-mix(in srgb, var(--green) 34%, var(--rule)); }
.deal-column.kind-lost { border-color: color-mix(in srgb, var(--oxide) 26%, var(--rule)); }
.deal-column.is-target {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-dim) 72%, var(--surface));
}
.deal-column-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 11px 12px 9px;
}
.deal-column-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.deal-column-name {
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.deal-column.kind-won  .deal-column-name { color: var(--green); }
.deal-column.kind-lost .deal-column-name { color: var(--oxide); }
.deal-column-count {
  flex: none; min-width: 19px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--surface-3); color: var(--ink-3);
  font-size: 10.5px; font-weight: 600; line-height: 17px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.deal-column-sum {
  flex: none; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.deal-column-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 0 9px 9px;
  display: flex; flex-direction: column; gap: 8px;
}
.deal-column-empty { margin: 6px 3px; font-size: 12px; color: var(--ink-3); }
.deal-column-add {
  flex: none; padding: 8px; border: 1px dashed var(--rule-2);
  border-radius: var(--r-md); background: transparent; color: var(--ink-3);
  font: inherit; font-size: 12.5px; cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.deal-column-add:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }

.deal-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 11px 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .16s ease, border-color .16s ease, transform .08s ease;
}
.deal-card:hover { border-color: var(--rule-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.deal-card[draggable=true] { cursor: grab; }
.deal-card.is-dragging { opacity: .45; cursor: grabbing; }
.deal-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.deal-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.deal-amount {
  font-size: 13px; font-weight: 650; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.deal-company {
  font-size: 11.5px; color: var(--ink-3); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 140px;
}
.deal-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.deal-chip {
  font-size: 10.5px; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-3);
}
.deal-chip.is-overdue { background: var(--oxide-dim); color: var(--oxide); font-weight: 600; }
.deal-owner {
  margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 9.5px; font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
}

.crm-pane-scroll > .crm-table {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm-table th {
  text-align: left; padding: 12px 14px 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule); background: var(--surface-2);
}
.crm-table th:first-child { border-top-left-radius: var(--r-lg); }
.crm-table th:last-child  { border-top-right-radius: var(--r-lg); }

.crm-table th.num { text-align: right; }
.crm-table tbody tr:last-child td { border-bottom: 0; }
.crm-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--rule);
  color: var(--ink-2); vertical-align: middle;
}
.crm-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.crm-table tbody tr { cursor: pointer; transition: background .12s ease; }
.crm-table tbody tr:hover { background: var(--surface-2); }
.crm-cell-stack { display: flex; flex-direction: column; gap: 2px; }
.crm-cell-person { display: flex; align-items: center; gap: 9px; }
.crm-cell-title { font-weight: 600; color: var(--ink); }
.crm-cell-sub { font-size: 11.5px; color: var(--ink-3); }
.crm-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
  background: var(--accent-dim); color: var(--accent);
}

.crm-empty { margin: 0; padding: 22px 4px; font-size: 13px; color: var(--ink-3); }

.crm-activities { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.crm-activity {
  display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}
.crm-activity:last-child { border-bottom: 0; }
.crm-activity.is-done { opacity: .55; }
.crm-activity.is-done .crm-activity-text { text-decoration: line-through; }
.crm-activity-kind {
  flex: none; min-width: 52px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--ink-3); text-align: center;
}
.crm-activity-kind.kind-call    { background: var(--accent-dim); color: var(--accent); }
.crm-activity-kind.kind-email   { background: var(--violet-dim); color: var(--violet); }
.crm-activity-kind.kind-meeting { background: var(--green-dim);  color: var(--green); }
.crm-activity-kind.kind-task    { background: var(--brass-dim);  color: var(--brass); }
.crm-activity-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.crm-activity-text { font-size: 13px; overflow-wrap: anywhere; }
.crm-activity-meta { font-size: 11px; color: var(--ink-3); }
.crm-activity-due { font-size: 11px; color: var(--ink-3); }
.crm-activity-due.is-overdue { color: var(--oxide); font-weight: 600; }
.crm-activity-tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule-2);
  background: transparent; color: var(--ink-3); cursor: pointer; line-height: 1;
}
.crm-activity-tick:hover { border-color: var(--green); color: var(--green); }

.crm-compose { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.crm-compose textarea { resize: vertical; min-height: 54px; }
.crm-compose-row { display: flex; gap: 8px; align-items: center; }
.crm-compose-row select { width: auto; min-width: 104px; }
.crm-compose-row input[type=date] { width: auto; }
.crm-compose-row .btn { margin-left: auto; }

.crm-events { display: flex; flex-direction: column; gap: 4px; max-height: 170px; overflow-y: auto; }
.crm-event { display: flex; flex-direction: column; gap: 1px; padding: 6px 4px; border-bottom: 1px solid var(--rule); }
.crm-event:last-child { border-bottom: 0; }
.crm-event-what { font-size: 12.5px; }
.crm-event-who { font-size: 11px; color: var(--ink-3); }

.swatch-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 30px; height: 30px; border-radius: var(--r-pill); cursor: pointer;
  border: 2px solid transparent; padding: 0;
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--ink); box-shadow: var(--glow); }
.swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.swatch-base { border: 2px solid var(--rule-2); position: relative; overflow: hidden; }
.swatch-base::after {
  content: ''; position: absolute; inset: 38% 0 0 38%;
  background: var(--swatch-surface, transparent);
}
.swatch-base.is-active { border-color: var(--accent); box-shadow: var(--glow); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.swatch[data-accent="purple"] { background: #9333EA; }
:root[data-theme="dark"] .swatch[data-accent="purple"] { background: #B36BFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch[data-accent="purple"] { background: #B36BFF; }
}
.swatch[data-accent="green"] { background: #0E9F6E; }
:root[data-theme="dark"] .swatch[data-accent="green"] { background: #4BF0A5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch[data-accent="green"] { background: #4BF0A5; }
}
.swatch[data-accent="cyan"] { background: #0891B2; }
:root[data-theme="dark"] .swatch[data-accent="cyan"] { background: #4FD8F5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch[data-accent="cyan"] { background: #4FD8F5; }
}
.swatch[data-accent="pink"] { background: #DB2777; }
:root[data-theme="dark"] .swatch[data-accent="pink"] { background: #FF6EC7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch[data-accent="pink"] { background: #FF6EC7; }
}
.swatch[data-accent="amber"] { background: #C2680A; }
:root[data-theme="dark"] .swatch[data-accent="amber"] { background: #FFB84D; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch[data-accent="amber"] { background: #FFB84D; }
}
.swatch[data-accent="blue"] { background: #2563EB; }
:root[data-theme="dark"] .swatch[data-accent="blue"] { background: #6E9BFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch[data-accent="blue"] { background: #6E9BFF; }
}
.swatch-base[data-base="paper"] { background: #FAFAFD; --swatch-surface: #FFFFFF; }
.swatch-base[data-base="snow"] { background: #FFFFFF; --swatch-surface: #F4F4F6; }
.swatch-base[data-base="linen"] { background: #FBFAF6; --swatch-surface: #FFFFFF; }
.swatch-base[data-base="mist"] { background: #F4F7FA; --swatch-surface: #FFFFFF; }
:root[data-theme="dark"] .swatch-base[data-base="ink"] { background: #08080C; --swatch-surface: #101014; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch-base[data-base="ink"] { background: #08080C; --swatch-surface: #101014; }
}
:root[data-theme="dark"] .swatch-base[data-base="carbon"] { background: #0C0C0E; --swatch-surface: #141416; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch-base[data-base="carbon"] { background: #0C0C0E; --swatch-surface: #141416; }
}
:root[data-theme="dark"] .swatch-base[data-base="midnight"] { background: #070912; --swatch-surface: #0F1220; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch-base[data-base="midnight"] { background: #070912; --swatch-surface: #0F1220; }
}
:root[data-theme="dark"] .swatch-base[data-base="moss"] { background: #070B09; --swatch-surface: #0E1411; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .swatch-base[data-base="moss"] { background: #070B09; --swatch-surface: #0E1411; }
}

.scope-seg button.is-active {
  background: var(--accent-dim); color: var(--accent); font-weight: 600;
  box-shadow: none;
}
.scope-seg button.is-active .seg-count { opacity: .85; }

.home-view { overflow: hidden; }
.home-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 30px 40px; }
.home-hero {
  display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
  padding-bottom: 22px; border-bottom: 1px solid var(--rule);
}
.home-avatar {
  width: 52px; height: 52px; font-size: 19px;
  background: linear-gradient(145deg, var(--accent), var(--violet)); color: #fff;
  box-shadow: var(--glow-strong);
}
.home-hero-text h2 {
  margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.02em;
  text-shadow: var(--glow-text);
}
.home-hero-text p { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); }

.home-hero, .home-grid { max-width: 1140px; }
.home-grid {
  display: grid; gap: 18px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.home-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow-md);
}
.home-card-head h3 {
  margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em;
}
.home-card-head p { margin: 4px 0 0; }
.home-card .modal-actions { margin-top: 4px; }
.home-card input:disabled { opacity: .55; cursor: not-allowed; }

.home-members { display: flex; flex-wrap: wrap; gap: 8px; }
.home-member {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px;
  border: 1px solid var(--rule); border-radius: 999px; background: var(--surface-2);
  font-size: 12.5px; color: var(--ink-2);
}
.home-member .avatar { width: 22px; height: 22px; font-size: 10px; }
.home-member-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {

  .side { width: min(var(--side-w), 86vw); }

  .shell.in-call,
  .shell.in-call:has(#section-pane[hidden]) {
    grid-template-columns: var(--rail-icon-w) minmax(0,1fr);
  }
}

.reach-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--rule);
}
.reach-row:first-of-type { border-top: 0; }
.reach-text { flex: 1; min-width: 0; }
.reach-url {
  display: block; font-family: var(--f-mono); font-size: 12.5px;
  color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.reach-row .hint { margin-top: 3px; }

@media (orientation: portrait) {
  .meeting-main:not([hidden]) ~ .chat-column {
    bottom: var(--dock-h, 74px);
    border-radius: var(--r-md) var(--r-md) 0 0;
  }
}

.shell.pane-sheet,
.shell.pane-sheet:has(#section-pane[hidden]),
.shell.pane-sheet.in-call,
.shell.pane-sheet.in-call:has(#section-pane[hidden]) {
  grid-template-columns: var(--rail-icon-w) minmax(0, 1fr);
}
.shell.pane-sheet .main { grid-column: 2; }

.shell.pane-sheet .pane {

  position: absolute; left: 0; top: var(--topbar-h); bottom: 0;
  width: min(var(--pane-w), calc(100vw - var(--rail-icon-w) - 32px));
  z-index: 35;
  box-shadow: 18px 0 46px -20px rgba(0,0,0,.6);
}

.rail-peek {
  display: none;

  flex: none; width: 13px; height: 18px; padding: 0; margin-left: 1px;
  align-items: center; justify-content: center;

  border: 1px solid var(--accent); border-radius: var(--r-sm);
  background: var(--surface); color: var(--accent); cursor: pointer;
}
.shell.pane-sheet.pane-shut .rail-btn.is-active > .rail-peek { display: flex; }
.rail-peek:hover { background: var(--accent); color: var(--ground); }
.rail-peek:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.shell.rail-open .rail-peek { display: none; }

@media (orientation: portrait) {

  .shell.rail-open .rail { width: var(--rail-icon-w); }
  .shell.rail-open .rail .label,
  .shell.rail-open .rail .me-text,
  .shell.rail-open .rail .workspace-text,
  .shell.rail-open .rail kbd,
  .shell.rail-open .rail .rail-open-only { display: none; }
  .rail-toggle { display: none; }

  .side { width: min(var(--side-w), 88vw); }
}

@media (orientation: landscape) and (max-height: 560px) {
  .topbar { padding-block: 6px; min-height: 0; }
  .home-hero { padding-block: 14px; }
  .home-scroll { padding-block: 14px; }
  .pane-head { padding-block: 8px; }
  .cal-toolbar, .drive-toolbar { padding-block: 6px; }
  .cal-weekdays { padding-block: 4px; }

  .meeting-dock { padding: 5px 6px 6px; gap: 4px; }
  .dock-btn { padding: 6px 8px; }
  .dock-btn .dock-label { display: none; }

  .cal-grid { min-height: 420px; }
}

.meeting-main { container-type: inline-size; container-name: stage; }

@container stage (max-width: 640px) {
  .meeting-dock { gap: 4px; padding: 8px 6px 10px; }
  .dock-btn { min-width: 0; padding: 8px; gap: 0; }
  .dock-btn span:not(.dock-badge):not(.rec-dot) { display: none; }
}

.meeting-dock { overflow-x: auto; scrollbar-width: none; }
.meeting-dock::-webkit-scrollbar { height: 0; }

.cal-nav {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap;
  min-width: 0;
}
.cal-nav .cal-month {
  min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin: 0; text-align: center;
}
.cal-nav .icon-btn { flex: none; }

.seg.seg-scroll {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.seg.seg-scroll::-webkit-scrollbar { height: 0; }
.seg.seg-scroll button { flex: 0 0 auto; white-space: nowrap; }

.profile-btn {
  flex: none; display: grid; place-items: center; padding: 0;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.profile-btn:hover { box-shadow: 0 0 0 2px var(--rule-2); }
.profile-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-btn .avatar { width: 28px; height: 28px; font-size: 11px; }

.profile-panel {
  position: fixed; z-index: 60; width: 260px; max-width: calc(100vw - 24px);
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.profile-id {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 14px 13px; border-bottom: 1px solid var(--rule);
}
.profile-id-avatar { width: 40px; height: 40px; font-size: 14px; flex: none; }

.profile-id-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.profile-id-text strong { font-size: 14px; color: var(--ink); }
.profile-id-text span {
  font-size: 12px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-actions { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.profile-action {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2); cursor: pointer;
  font-size: 13.5px; font-family: inherit; text-align: left;
}
.profile-action:hover { background: var(--surface-2); color: var(--ink); }
.profile-action .sigil { display: grid; place-items: center; color: var(--ink-3); }
.profile-action.is-danger:hover { background: var(--oxide-dim); color: var(--oxide); }
.profile-action.is-danger:hover .sigil { color: var(--oxide); }

.settings-tabs { margin-bottom: 14px; }
.settings-panel { min-height: 220px; }

.settings-panel .home-card { border: 0; padding: 0; background: none; box-shadow: none; }

.home-center {
  width: min(680px, 100%); margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.home-hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-block: 8px 22px;
}
.home-avatar { width: 56px; height: 56px; font-size: 19px; }
.home-hero h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.home-sub { margin: 0; color: var(--ink-3); font-size: 14px; max-width: 46ch; }

.home-search {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 15px; border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-3);
  transition: border-color .12s ease-out, box-shadow .12s ease-out;
}
.home-search:focus-within { border-color: var(--accent); box-shadow: var(--glow); }
.home-search svg { flex: none; }
.home-search input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none;
  color: var(--ink); font-family: inherit; font-size: 14.5px;
}
.home-search input::placeholder { color: var(--ink-3); }
.home-search-hint { margin: 9px 0 0; }

.home-links {
  display: grid; gap: 10px; width: 100%; margin-top: 26px;

  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}
.home-link {
  position: relative; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 18px 10px;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  transition: border-color .12s ease-out, color .12s ease-out, transform .12s ease-out;
}
.home-link:hover {
  border-color: var(--accent); color: var(--ink); transform: translateY(-1px);
}
.home-link .sigil { color: var(--accent); display: grid; place-items: center; }
.home-link-label { line-height: 1.2; }
.home-link-count {
  position: absolute; top: 8px; right: 9px; min-width: 18px; padding: 1px 5px;
  border-radius: 999px; background: var(--surface-3); color: var(--ink-2);
  font-size: 10.5px; font-weight: 700;
}
.home-link-count.is-live { background: var(--oxide-dim); color: var(--oxide); }

.home-reach-card { width: 100%; margin-top: 26px; text-align: left; }

@media (orientation: portrait) {
  .home-links { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); }
  .home-link { padding: 14px 8px; }
  .home-avatar { width: 48px; height: 48px; font-size: 17px; }
  .home-hero h2 { font-size: 22px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .home-hero { flex-direction: row; padding-block: 4px 14px; gap: 12px; }
  .home-hero h2 { font-size: 20px; }
  .home-avatar { width: 38px; height: 38px; font-size: 14px; }
  .home-links { margin-top: 14px; }
  .home-link { padding: 11px 8px; }
}

.chat-collapse { display: none; }
.meeting-main:not([hidden]) ~ .chat-column > .chat-collapse {

  position: absolute; left: calc(var(--chat-handle-w) * -1); top: 50%;
  transform: translateY(-50%);
  z-index: 2; display: grid; place-items: center;
  width: var(--chat-handle-w); height: 46px; padding: 0;
  border: 1px solid var(--rule-2); border-right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  box-shadow: -6px 0 14px -8px rgba(0,0,0,.4);
}
.meeting-main:not([hidden]) ~ .chat-column > .chat-collapse:hover {
  color: var(--accent); border-color: var(--accent);
}

.presence-list { max-height: 168px; overflow-y: auto; padding-right: 4px; }

.shell.guest-mode,
.shell.guest-mode:has(#section-pane[hidden]),
.shell.guest-mode.in-call,
.shell.guest-mode.in-call:has(#section-pane[hidden]),
.shell.guest-mode.pane-sheet,
.shell.guest-mode.pane-sheet:has(#section-pane[hidden]),
.shell.guest-mode.pane-sheet.in-call,
.shell.guest-mode.pane-sheet.in-call:has(#section-pane[hidden]) { grid-template-columns: minmax(0, 1fr); }
.shell.guest-mode .main { grid-column: 1; }
.shell.guest-mode .rail,
.shell.guest-mode .pane,
.shell.guest-mode .side,
.shell.guest-mode #toggle-side,
.shell.guest-mode #notif-btn,
.shell.guest-mode #profile-btn,

.shell.guest-mode #share-btn { display: none; }

.guest-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--ink-3); padding: 4px 10px;
  border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  white-space: nowrap;
}

.msg-file { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.audio-player {
  --audio-played: var(--accent);
  --audio-rest: color-mix(in srgb, var(--ink-3) 55%, transparent);
  display: flex; align-items: center; gap: 10px; width: min(420px, 100%);
  margin: 4px 0 2px; padding: 8px 8px 8px 8px; border-radius: var(--r-lg);
  border: 1px solid var(--rule-2); background: var(--surface-2);
}
.audio-player:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.audio-player.is-playing { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule-2)); box-shadow: var(--glow); }
.audio-toggle {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.audio-toggle:hover { background: var(--accent-deep); }
.audio-toggle .audio-icon-pause { display: none; }
.audio-player.is-playing .audio-icon-play { display: none; }
.audio-player.is-playing .audio-icon-pause { display: inline; }
.audio-player.is-loading .audio-toggle { opacity: .7; cursor: progress; }
.audio-middle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.audio-wave { width: 100%; height: 30px; display: block; cursor: pointer; touch-action: none; }
.audio-caption { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.audio-name {
  flex: 1; min-width: 0; font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.audio-time { flex: none; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.audio-speed {
  flex: none; min-width: 44px; height: 26px; padding: 0 8px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.audio-speed:hover { border-color: var(--accent); color: var(--accent); }
.audio-more { flex: none; }
.msg-file-dots {
  width: 22px; height: 22px; font-size: 14px; line-height: 1; padding: 0;
  border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-3);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.msg-file-dots:hover { background: var(--surface-3); color: var(--ink); }

.file-viewer {
  position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--stage) 92%, transparent);
  backdrop-filter: blur(3px);
}
.fv-bar {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--rule);
}
.fv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fv-title strong {
  font-size: 13.5px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fv-meta { font-size: 11.5px; color: var(--ink-3); }
.fv-body {
  flex: 1; min-height: 0; overflow: auto; display: flex;
  align-items: flex-start; justify-content: center; padding: 20px;
}
.fv-loading, .fv-empty {
  margin: auto; display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--stage-ink-2); font-size: 13.5px;
}
.fv-image { max-width: 100%; max-height: 100%; margin: auto; border-radius: var(--r-md); }
.fv-video { max-width: 100%; max-height: 100%; margin: auto; border-radius: var(--r-md); background: #000; }
.fv-frame { width: 100%; height: 100%; border: 0; border-radius: var(--r-md); background: #fff; }
.fv-audio-wrap {
  margin: auto; display: flex; flex-direction: column; gap: 14px; align-items: center;
  padding: 26px 30px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-lg); max-width: 100%;
}
.fv-audio-name { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; text-align: center; }
.fv-audio { width: min(420px, 76vw); }
.fv-doc {
  width: min(820px, 100%); margin: 0 auto; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px 30px;
  color: var(--ink); font-size: 14px; line-height: 1.65;
}
.fv-pre {
  margin: 0; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink);
}
.md-body h1, .md-body h2, .md-body h3,
.md-body h4, .md-body h5, .md-body h6 {
  margin: 1.3em 0 .5em; line-height: 1.3; text-wrap: balance;
}
.md-body h1:first-child, .md-body h2:first-child { margin-top: 0; }
.md-body h1 { font-size: 24px; }
.md-body h2 { font-size: 19px; }
.md-body h3 { font-size: 16px; }
.md-body p { margin: 0 0 1em; }
.md-body ul, .md-body ol { margin: 0 0 1em; padding-left: 1.5em; }
.md-body li { margin: .25em 0; }
.md-body blockquote {
  margin: 0 0 1em; padding: 4px 0 4px 14px;
  border-left: 3px solid var(--accent); color: var(--ink-2);
}
.md-body code {
  font-family: var(--f-mono); font-size: .88em;
  background: var(--surface-3); padding: 1px 5px; border-radius: var(--r-sm);
}
.md-body pre {
  background: var(--surface-3); padding: 14px 16px; border-radius: var(--r-md);
  overflow-x: auto; margin: 0 0 1em;
}
.md-body pre code { background: none; padding: 0; }
.md-body hr { border: 0; border-top: 1px solid var(--rule); margin: 1.6em 0; }
.md-body a { color: var(--accent); }
.fv-table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.fv-table th, .fv-table td {
  border: 1px solid var(--rule); padding: 6px 10px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px;
}
.fv-table th { background: var(--surface-3); font-weight: 600; position: sticky; top: 0; }
.fv-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
@media (max-width: 640px) {
  .fv-body { padding: 10px; }
  .fv-doc { padding: 18px 16px; }
}

.assistant-view {
  position: relative; display: flex; flex-direction: row; min-height: 0; overflow: hidden;
  background: var(--ground);
}
.ai-side {
  flex: 0 0 264px; min-width: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--rule); background: var(--surface-2);
}
.ai-side-head { flex: none; padding: 12px 12px 8px; }
.ai-new {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.ai-new:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.ai-side-search { flex: none; padding: 0 12px 8px; }
.ai-side-search input { padding: 8px 11px; font-size: 13px; border-radius: var(--r-md); }
.ai-chat-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 12px; }
.ai-chat-empty { padding: 14px 8px; font-size: 12.5px; color: var(--ink-3); margin: 0; }
.ai-chat-group {
  margin: 14px 8px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.ai-chat-group-list { list-style: none; margin: 0; padding: 0; }
.ai-chat-item {
  position: relative; display: flex; align-items: center; border-radius: var(--r-sm); min-width: 0;
}
.ai-chat-item:hover { background: var(--surface-3); }
.ai-chat-item.is-active { background: var(--accent-dim); }
.ai-chat-open {
  flex: 1; min-width: 0; padding: 8px 10px; border: 0; background: none; cursor: pointer;
  text-align: left; font: inherit;
}
.ai-chat-title {
  display: block; font-size: 13px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-chat-item.is-active .ai-chat-title { color: var(--accent); font-weight: 600; }
.ai-chat-dots { opacity: 0; }
.ai-chat-item:hover .ai-chat-dots, .ai-chat-item.is-active .ai-chat-dots { opacity: 1; }
.ai-side-foot {
  flex: none; display: flex; flex-direction: column; gap: 2px; padding: 8px;
  border-top: 1px solid var(--rule);
}
.ai-side-link {
  text-align: left; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none;
  color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer;
}
.ai-side-link:hover { background: var(--surface-3); color: var(--ink); }

.ai-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-top {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
}
.ai-side-toggle {
  display: none; width: 34px; height: 34px; border: 0; border-radius: var(--r-sm);
  background: none; color: var(--ink-2); cursor: pointer; place-items: center;
}
.ai-model-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid transparent; border-radius: var(--r-md); background: none;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  max-width: min(520px, 70vw);
}
.ai-model-button:hover { background: var(--surface-2); border-color: var(--rule-2); }
#ai-model-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-badge {
  flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r-pill); color: var(--ink-3); background: var(--surface-3);
}
.ai-badge:empty { display: none; }
.ai-badge.is-free { color: var(--accent); background: var(--accent-dim); }
.ai-top-spacer { flex: 1; }
.ai-remaining { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ai-remaining.is-low { color: var(--oxide); }

.ai-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 24px; scroll-behavior: auto; }
.ai-column { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.ai-main.is-fresh .ai-thread {
  flex: 0 1 auto; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: max(40px, 18vh);
}
.ai-main.is-fresh .ai-composer { flex: 1; justify-content: flex-start; }

.ai-hello { max-width: 768px; margin: 0 auto 22px; text-align: center; }
.ai-hello-mark {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  color: var(--accent); background: var(--accent-dim); box-shadow: var(--glow-strong);
  margin-bottom: 14px;
}
.ai-hello-title {
  margin: 0; font-size: clamp(24px, 3.2vw, 34px); font-weight: 650; letter-spacing: -.02em;
  color: var(--ink); text-wrap: balance;
}
.ai-hello-sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-3); }

.ai-setup {
  max-width: 480px; margin: 12vh auto 0; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: 12px; color: var(--accent);
}
.ai-setup h3 { margin: 4px 0 0; font-size: 19px; color: var(--ink); }
.ai-setup p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }

.ai-msg { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-msg.is-user { align-items: flex-end; }
.ai-bubble {
  max-width: min(85%, 640px); padding: 10px 15px; border-radius: 18px 18px 4px 18px;
  background: var(--surface-3); color: var(--ink); font-size: 15px; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.ai-edit { width: min(100%, 640px); display: flex; flex-direction: column; gap: 8px; }
.ai-edit-input { font-size: 15px; line-height: 1.55; border-radius: var(--r-lg); resize: vertical; }
.ai-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ai-notice {
  align-self: flex-start; font-size: 12.5px; color: var(--brass); background: var(--brass-dim);
  padding: 5px 10px; border-radius: var(--r-sm);
}
.ai-body {
  font-size: 15px; line-height: 1.72; color: var(--ink); overflow-wrap: anywhere; min-width: 0;
}
.ai-msg.is-error .ai-body {
  color: var(--oxide); background: var(--oxide-dim); padding: 10px 14px; border-radius: var(--r-md);
  font-size: 14px;
}
.ai-body > :first-child { margin-top: 0; }
.ai-body > :last-child { margin-bottom: 0; }
.ai-body p { margin: 0 0 .85em; }
.ai-body h1, .ai-body h2, .ai-body h3, .ai-body h4 { margin: 1.2em 0 .5em; line-height: 1.3; }
.ai-body h1 { font-size: 1.35em; } .ai-body h2 { font-size: 1.2em; } .ai-body h3 { font-size: 1.07em; }
.ai-body ul, .ai-body ol { margin: 0 0 .85em; padding-left: 1.4em; }
.ai-body li { margin: .25em 0; }
.ai-body blockquote {
  margin: 0 0 .85em; padding: 2px 14px; border-left: 3px solid var(--accent); color: var(--ink-2);
}
.ai-body code {
  font-family: var(--f-mono); font-size: .86em; background: var(--surface-3);
  padding: 1px 5px; border-radius: 5px;
}
.ai-body a { color: var(--accent); }
.ai-code {
  margin: 0 0 .9em; border: 1px solid var(--rule-2); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface-2);
}
.ai-code-head {
  display: flex; align-items: center; justify-content: space-between; padding: 5px 8px 5px 12px;
  background: var(--surface-3); font-size: 11.5px; color: var(--ink-3);
}
.ai-code-copy {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 0;
  border-radius: 6px; background: none; color: var(--ink-2); font: inherit; font-size: 11.5px;
  cursor: pointer;
}
.ai-code-copy:hover { background: var(--surface); color: var(--accent); }
.ai-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
.ai-code pre code { background: none; padding: 0; font-size: 13px; line-height: 1.55; }

.ai-actions {
  display: flex; align-items: center; gap: 2px; min-height: 26px; opacity: 0;
  transition: opacity .12s ease;
}
.ai-msg:hover .ai-actions, .ai-msg:focus-within .ai-actions,
.ai-msg.is-error .ai-actions { opacity: 1; }
.ai-column > .ai-msg:last-child .ai-actions { opacity: 1; }
.ai-action {
  width: 28px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px;
  background: none; color: var(--ink-3); cursor: pointer;
}
.ai-action:hover { background: var(--surface-2); color: var(--ink); }
.ai-meta { margin-left: 6px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ai-inline-link {
  border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px;
  cursor: pointer; padding: 3px 6px; border-radius: 6px;
}
.ai-inline-link:hover { background: var(--accent-dim); }
.ai-caret {
  display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom;
  border-radius: 2px; background: var(--accent); box-shadow: var(--glow);
  animation: ai-blink 1s steps(2, start) infinite;
}
.ai-typing {
  display: inline-block; width: 38px; height: 12px;
  background: radial-gradient(circle closest-side, var(--accent) 90%, transparent) 0 50% / 10px 10px repeat-x;
  animation: ai-dots 1.1s linear infinite; opacity: .8;
}
@keyframes ai-blink { to { visibility: hidden; } }
@keyframes ai-dots { to { background-position: 14px 50%; } }
@media (prefers-reduced-motion: reduce) {
  .ai-caret, .ai-typing { animation: none; }
}

.ai-composer {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px 20px 12px;
}
.ai-compose-box {
  width: 100%; max-width: 768px; display: flex; flex-direction: column; gap: 6px;
  padding: 12px 12px 10px 16px; border: 1px solid var(--rule-2); border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ai-compose-box:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule-2)); box-shadow: var(--shadow-md), var(--glow); }
#ai-input {
  width: 100%; border: 0; background: none; padding: 2px 0; resize: none; outline: none;
  font-size: 15px; line-height: 1.55; max-height: 240px; box-shadow: none;
}
#ai-input:focus { box-shadow: none; }
.ai-compose-row { display: flex; align-items: center; gap: 8px; }
.ai-compose-spacer { flex: 1; }
.ai-chip-btn {
  padding: 5px 11px; border: 1px solid var(--rule-2); border-radius: var(--r-pill); background: none;
  color: var(--ink-2); font: inherit; font-size: 12.5px; cursor: pointer; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ai-chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.ai-chip-btn.is-on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule-2)); background: var(--accent-dim); }
.ai-send, .ai-stop {
  width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow);
}
.ai-send:hover { background: var(--accent-deep); }
.ai-stop { background: var(--ink); color: var(--surface); box-shadow: none; }
.ai-send[hidden], .ai-stop[hidden] { display: none; }
.ai-suggestions-slot { width: 100%; max-width: 768px; }
.ai-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.ai-suggestion {
  padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer;
}
.ai-suggestion:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.ai-disclaimer { margin: 0; font-size: 11.5px; color: var(--ink-3); text-align: center; }

.ai-popover {
  position: fixed; z-index: 160; width: min(420px, calc(100vw - 16px)); overflow: hidden;
  display: flex; flex-direction: column; border: 1px solid var(--rule-2); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.ai-persona-picker { width: min(340px, calc(100vw - 16px)); }
.ai-picker-head {
  flex: none; display: flex; gap: 8px; align-items: center; padding: 10px;
  border-bottom: 1px solid var(--rule);
}
.ai-picker-search { flex: 1; padding: 8px 11px; font-size: 13px; }
.ai-picker-free {
  flex: none; padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: var(--r-pill);
  background: none; color: var(--ink-2); font: inherit; font-size: 12px; cursor: pointer;
}
.ai-picker-free.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.ai-picker-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px; }
.ai-picker-group { padding: 4px 0 8px; }
.ai-picker-group + .ai-picker-group { border-top: 1px solid var(--rule); padding-top: 8px; }
.ai-picker-group-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 6px; }
.ai-picker-provider { font-size: 12px; font-weight: 700; color: var(--ink); }
.ai-picker-left { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.ai-picker-group-head .ai-inline-link { margin-left: auto; }
.ai-picker-model, .ai-persona-option {
  position: relative; width: 100%; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 34px 8px 10px; border: 0; border-radius: var(--r-sm); background: none;
  text-align: left; font: inherit; cursor: pointer; color: var(--ink);
}
.ai-picker-model:hover:not(:disabled), .ai-persona-option:hover { background: var(--surface-2); }
.ai-picker-model.is-chosen, .ai-persona-option.is-chosen { background: var(--accent-dim); }
.ai-picker-model:disabled { cursor: default; opacity: .5; }
.ai-picker-model-top { display: flex; align-items: baseline; gap: 10px; }
.ai-picker-model-name { font-size: 13.5px; font-weight: 600; }
.ai-picker-price { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ai-picker-price.is-free { color: var(--accent); font-weight: 600; }
.ai-picker-model-detail { font-size: 12px; color: var(--ink-2); }
.ai-picker-model-id { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); }
.ai-picker-tick { position: absolute; right: 10px; top: 10px; color: var(--accent); }
.ai-picker-more, .ai-picker-none { margin: 4px 10px; font-size: 12px; color: var(--ink-3); }
.ai-picker-pricing { display: inline-block; margin: 4px 10px 0; font-size: 11.5px; color: var(--ink-3); }
.ai-picker-foot { flex: none; display: flex; gap: 8px; padding: 8px; border-top: 1px solid var(--rule); }
.ai-persona-share { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; }
.ai-persona-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ai-persona-row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ai-settings-heading {
  margin: 18px 0 8px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
}
.ai-provider-links { display: flex; gap: 14px; margin: 0 0 10px; }
.ai-limit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-model-more { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); }

@media (max-width: 820px) {
  .ai-side {
    position: absolute; inset: 0 auto 0 0; z-index: 30; width: min(300px, 86vw);
    transform: translateX(-100%); transition: transform .18s ease; box-shadow: var(--shadow-lg);
  }
  .assistant-view.side-open .ai-side { transform: none; }
  .ai-side-toggle { display: grid; }
  .ai-thread { padding: 8px 12px 20px; }
  .ai-composer { padding: 6px 10px 10px; }
  .ai-limit-row { grid-template-columns: 1fr; }
}
.pill-tag.is-free { color: var(--accent); background: var(--accent-dim); }
.ai-model-table {
  display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto auto;
  gap: 2px 14px; margin: 10px 0; font-size: 11.5px; color: var(--ink-2);
}
.ai-model-row { display: contents; }
.ai-model-row.is-head > span {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); padding-bottom: 4px; border-bottom: 1px solid var(--rule);
}
.ai-model-row > span { padding: 4px 0; align-self: center; }
.ai-model-name { display: flex; flex-direction: column; }
.ai-model-id { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); }
.ai-model-free { color: var(--accent); font-weight: 600; }
.ai-device-code {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px; margin: 12px 0; border: 1px dashed var(--rule-2); border-radius: var(--r-md);
  background: var(--surface-2);
}
.ai-device-user-code {
  font-family: var(--f-mono); font-size: 26px; letter-spacing: .22em;
  color: var(--accent); font-weight: 700;
}
.ai-device-link { font-size: 12.5px; }
.ai-provider-card {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 14px;
}
.ai-provider-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.ai-provider-vendor { font-size: 11.5px; color: var(--ink-3); flex: 1; }
.pill-tag.is-on { color: var(--accent); border-color: var(--accent); }
.ai-usage { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.ai-usage-text { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ai-usage-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ai-usage-fill { height: 100%; background: var(--accent); }
.ai-usage-fill.is-over { background: var(--oxide); }
.ai-provider-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 820px) {
  .ai-side { flex-basis: 190px; }
}
@media (orientation: portrait) {
  .assistant-view { flex-direction: column; }
  .ai-side { flex: none; height: auto; max-height: 34%; border-right: 0; border-bottom: 1px solid var(--rule); }
}

.mail-view { display: flex; flex-direction: row; min-height: 0; overflow: hidden; }
.mail-side {
  flex: 0 0 220px; display: flex; flex-direction: column; gap: 12px; padding: 12px;
  border-right: 1px solid var(--rule); background: var(--surface-2);
}
.mail-side-head .btn { width: 100%; }
.mail-side { overflow-y: auto; }
.mail-accounts-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.mail-add {
  border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; padding: 3px 6px; border-radius: 6px;
}
.mail-add:hover { background: var(--accent-dim); }
.mail-accounts { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-account { display: flex; align-items: center; border-radius: var(--r-md); min-width: 0; }
.mail-account:hover { background: var(--surface-3); }
.mail-account.is-active { background: var(--accent-dim); }
.mail-account-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 8px;
  border: 0; background: none; cursor: pointer; text-align: left; font: inherit;
}
.mail-account-mark {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 700;
}
.mail-account.is-active .mail-account-mark { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.mail-account-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mail-account-name { font-size: 12.5px; color: var(--ink); font-weight: 600; }
.mail-account-email {
  font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-account-warn {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--oxide); color: #fff; font-size: 11px; font-weight: 700;
}
.mail-account-dots { opacity: 0; }
.mail-account:hover .mail-account-dots, .mail-account.is-active .mail-account-dots { opacity: 1; }
.mail-list-head { display: flex; align-items: center; gap: 6px; padding-right: 8px; }
.mail-list-head .pane-search { flex: 1; }
.mail-refresh.is-spinning svg { animation: mail-spin .9s linear infinite; }
@keyframes mail-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mail-refresh.is-spinning svg { animation: none; } }
.mail-status {
  margin: 0 12px 8px; padding: 7px 10px; border-radius: var(--r-sm); font-size: 12px;
  background: var(--surface-2); color: var(--ink-2);
}
.mail-status.is-bad { background: var(--oxide-dim); color: var(--oxide); }
.mail-item-star { color: var(--brass); display: inline-flex; }
.mail-item-clip { color: var(--ink-3); display: inline-flex; }
.mail-html {
  display: block; width: 100%; height: 70vh; border: 1px solid var(--rule); border-radius: var(--r-md);
  background: #fff;
}
.mail-images-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px 12px;
  border-radius: var(--r-md); background: var(--surface-2); font-size: 12.5px; color: var(--ink-2);
}
.mail-images-bar span { flex: 1; }
.mail-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mail-attachment {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: var(--r-md);
  border: 1px solid var(--rule-2); background: var(--surface-2); color: var(--ink); font: inherit;
  font-size: 12.5px; cursor: pointer;
}
.mail-attachment:hover { border-color: var(--accent); color: var(--accent); }
.mail-attachment-size { color: var(--ink-3); font-size: 11px; }
.mail-provider-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 12px 0 16px;
}
.mail-provider-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  border: 1px solid var(--rule-2); border-radius: var(--r-md); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer;
}
.mail-provider-tile:hover { border-color: var(--accent); }
.mail-provider-tile.is-on { border-color: var(--accent); background: var(--accent-dim); box-shadow: var(--glow); }
.mail-provider-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface-3); font-weight: 700; color: var(--ink-2);
}
.mail-provider-tile.is-on .mail-provider-mark { background: var(--accent); color: var(--accent-ink); }
.mail-provider-panel { display: flex; flex-direction: column; gap: 10px; }
.mail-provider-note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.mail-oauth-btn { align-self: flex-start; }
.mail-or {
  display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); margin: 4px 0;
}
.mail-or::before, .mail-or::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.mail-connect-form { display: flex; flex-direction: column; gap: 8px; }
.mail-servers { border: 1px solid var(--rule); border-radius: var(--r-md); padding: 8px 12px; }
.mail-servers summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.mail-server-row { display: grid; grid-template-columns: 1fr 90px 120px; gap: 8px; }
.mail-connect-error {
  margin: 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--oxide-dim);
  color: var(--oxide); font-size: 12.5px;
}
@media (max-width: 640px) { .mail-server-row { grid-template-columns: 1fr; } }
.mail-address {
  display: flex; flex-direction: column; gap: 5px; padding: 10px;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface);
}
.mail-address-label {
  font-family: var(--f-ui); font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-3);
}
.mail-address code {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--accent);
  overflow-wrap: anywhere;
}
.mail-folders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mail-folder-btn {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 0; background: none; border-radius: var(--r-md); cursor: pointer;
  color: var(--ink-2); font-size: 13px; text-align: left;
}
.mail-folder-btn:hover { background: var(--surface-3); color: var(--ink); }
.mail-folder.is-active .mail-folder-btn { background: var(--accent-dim); color: var(--accent); }
.mail-folder-name { flex: 1; }
.mail-unread {
  min-width: 18px; padding: 0 5px; border-radius: var(--r-pill); text-align: center;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 700; line-height: 18px;
}
.mail-count { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mail-list-pane {
  flex: 0 0 330px; min-width: 0; display: flex; flex-direction: column;
  border-right: 1px solid var(--rule);
}
.mail-list { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
.mail-empty { padding: 20px 16px; font-size: 13px; color: var(--ink-3); }
.mail-item { border-bottom: 1px solid var(--rule); }
.mail-item-btn {
  width: 100%; min-width: 0; max-width: 100%; overflow: hidden;
  display: flex; flex-direction: column; gap: 3px; padding: 11px 14px;
  border: 0; background: none; cursor: pointer; text-align: left;
}
.mail-item-btn > * { min-width: 0; max-width: 100%; }
.mail-item:hover { background: var(--surface-2); }
.mail-item.is-active { background: var(--accent-dim); }
.mail-item-top { display: flex; align-items: baseline; gap: 8px; }
.mail-item-who {
  flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-item.is-unread .mail-item-who { color: var(--ink); font-weight: 600; }
.mail-item-when { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.mail-item-subject {
  font-size: 13px; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-item.is-unread .mail-item-subject { font-weight: 600; }
.mail-item-preview {
  font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-reader { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px; }
.mail-reader-empty { margin-top: 15%; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.mail-reader-head { border-bottom: 1px solid var(--rule); padding-bottom: 16px; margin-bottom: 18px; }
.mail-subject { margin: 0 0 8px; font-size: 20px; color: var(--ink); text-wrap: balance; }
.mail-meta { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.mail-meta span { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.mail-meta-from { color: var(--ink-2) !important; }
.mail-actions { display: flex; gap: 8px; }
.mail-body {
  font-size: 14px; line-height: 1.7; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.mail-compose-body {
  width: 100%; font-family: inherit; font-size: 13.5px; line-height: 1.6; resize: vertical;
}
.mail-directory { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.mail-directory .hint { width: 100%; margin: 0; }
.mail-person {
  font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-2); background: var(--surface-2);
  color: var(--ink-2); cursor: pointer;
}
.mail-person:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1080px) {
  .mail-side { flex-basis: 180px; }
  .mail-list-pane { flex-basis: 280px; }
}
@media (orientation: portrait) {
  .mail-view { flex-direction: column; }
  .mail-side { flex: none; flex-direction: row; align-items: center; flex-wrap: wrap;
               border-right: 0; border-bottom: 1px solid var(--rule); }
  .mail-side-head .btn { width: auto; }
  .mail-address { flex: 1; flex-direction: row; align-items: center; gap: 8px; }
  .mail-folders { flex-direction: row; width: 100%; }
  .mail-list-pane { flex: none; max-height: 40%; border-right: 0; border-bottom: 1px solid var(--rule); }
}

.sheet-view, .slide-view, .text-view { display: flex; flex-direction: column; min-height: 0; }
.sheet-bar, .slide-bar, .text-bar {
  flex: none; display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-bottom: 1px solid var(--rule); background: var(--surface);
}
.slide-bar { flex-wrap: wrap; gap: 4px; row-gap: 6px; }
.slide-bar > #slide-present { margin-left: auto; }
#slide-theme { max-width: 120px; }
.sheet-ref {
  font-family: var(--f-mono); font-size: 12px; color: var(--accent);
  flex: 0 0 auto; width: 84px; padding: 5px 8px; border: 1px solid var(--rule-2);
  border-radius: var(--r-sm); text-align: center; background: var(--surface);
}
.sheet-fx {
  font-family: var(--f-mono); font-size: 11.5px; font-style: italic;
  color: var(--ink-3); padding: 0 2px; flex: none;
}
.sheet-bar #sheet-formula { flex: 1; font-family: var(--f-mono); font-size: 12.5px; }
.sheet-scroll { flex: 1; min-height: 0; overflow: auto; background: var(--surface-2); }
.share-channel-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 10px;
}
.share-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.share-channel:hover:not(:disabled) { border-color: var(--accent); }
.share-channel:disabled { opacity: .5; cursor: default; }
.share-channel-sigil { color: var(--muted); font-weight: 600; }
.share-channel-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.slide-columns { display: flex; gap: 16px; flex: 1; min-height: 0; }
.slide-columns .slide-body-input { flex: 1; }
.slide-card.layout-title { justify-content: center; }
.slide-card.layout-title .slide-title-input { font-size: 40px; text-align: center; }
.slide-notes-input {
  margin-top: 10px; min-height: 62px; border: 1px solid var(--rule); border-radius: 8px;
  background: var(--surface-2); color: var(--ink-2); padding: 8px 10px; font: inherit;
  font-size: 12.5px; resize: vertical; width: 100%; box-sizing: border-box;
}
.slide-thumb.is-target { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.slide-thumb[draggable="true"] { cursor: grab; }
.slide-present-columns { display: flex; gap: 48px; width: 100%; }
.slide-present-column { flex: 1; }
.slide-present-column ul { margin: 0; padding-left: 1.1em; }
.slide-present-column li { margin: .5em 0; }
.slide-present-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .12);
}
.slide-present-progress > span { display: block; height: 100%; background: currentColor; opacity: .55; }
.slide-present-footer {
  position: absolute; left: 0; right: 0; bottom: 14px; display: flex;
  justify-content: space-between; padding: 0 26px; font-size: 13px; opacity: .65;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.slide-show-notes {
  position: absolute; left: 0; right: 0; bottom: 46px; max-height: 32vh; overflow: auto;
  padding: 14px 26px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 15px;
  white-space: pre-wrap; backdrop-filter: blur(3px); z-index: 4;
}
.slide-show-notes.is-empty::after { content: 'No notes for this slide'; opacity: .6; }

.doc-kind-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.doc-kind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.doc-kind:hover { border-color: var(--accent); }
.doc-kind.is-on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.doc-kind-sigil { font-size: 20px; line-height: 1; }
.doc-kind-label { font-size: 11px; text-transform: capitalize; text-align: center; }
@media (max-width: 520px) {
  .doc-kind-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.sheet-grid { border-collapse: collapse; font-size: 12.5px; }
.sheet-grid th, .sheet-grid td {
  border: 1px solid var(--rule); padding: 0; height: 26px;
}
.sheet-grid th {
  background: var(--surface-3); color: var(--ink-3); font-weight: 600;
  font-size: 11px; min-width: 34px; text-align: center; position: sticky; top: 0; z-index: 2;
}
.sheet-grid tr > th:first-child { left: 0; z-index: 3; min-width: 42px; }
.sheet-grid td {
  min-width: 92px; max-width: 220px; padding: 4px 8px; background: var(--surface);
  color: var(--ink); cursor: cell; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; vertical-align: middle; user-select: none; -webkit-user-select: none;
}
.sheet-grid td .sheet-input { user-select: text; -webkit-user-select: text; }
.sheet-grid td.is-number { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-grid td.is-error { color: var(--oxide); }
.sheet-grid td.is-active { outline: 2px solid var(--accent); outline-offset: -2px; }
.sheet-grid td.is-selected { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.sheet-grid td.is-active { position: relative; z-index: 1; background: var(--surface); }
.sheet-grid td.is-filling { outline: 1px dashed var(--accent); outline-offset: -1px; }
.sheet-grid td.is-bold { font-weight: 700; }
.sheet-grid td.is-italic { font-style: italic; }
.sheet-grid td.is-underline { text-decoration: underline; }
.sheet-grid td.is-wrapped { white-space: pre-wrap; word-break: break-word; }
.sheet-corner { position: sticky; left: 0; top: 0; z-index: 5; cursor: pointer; }
.sheet-corner::after {
  content: ''; position: absolute; right: 3px; bottom: 3px;
  border: 5px solid transparent; border-right-color: var(--ink-3);
  border-bottom-color: var(--ink-3);
}
.sheet-grid th.is-lit { background: color-mix(in srgb, var(--accent) 24%, var(--surface-3)); color: var(--ink); }
.sheet-grid th { position: sticky; user-select: none; }
.sheet-grip {
  position: absolute; top: 0; right: -3px; width: 6px; height: 100%;
  cursor: col-resize; z-index: 4;
}
.sheet-grip-row {
  position: absolute; left: 0; bottom: -3px; width: 100%; height: 6px;
  cursor: row-resize; z-index: 4;
}
.sheet-grid th[data-row] { position: sticky; left: 0; }
.sheet-grid th[data-col] { position: sticky; }
.sheet-fill {
  position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px;
  background: var(--accent); border: 1px solid var(--surface); border-radius: 1px;
  cursor: crosshair; z-index: 5;
}
.sheet-scroll:focus { outline: none; }

.sheet-tools {
  display: flex; align-items: center; gap: 4px; row-gap: 6px; padding: 6px 10px;
  border-bottom: 1px solid var(--rule); background: var(--surface-2); flex-wrap: wrap;
}
.sheet-tool {
  min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid transparent;
  border-radius: 6px; background: transparent; color: var(--ink-2);
  cursor: pointer; font: inherit; font-size: 13px; line-height: 1;
}
.sheet-tool:hover { background: var(--surface-3); color: var(--ink); }
.sheet-tool.wide { min-width: 46px; font-size: 11.5px; }
.sheet-tool:disabled { opacity: .35; cursor: default; }
.sheet-tool.is-on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); border-color: var(--accent); }
.sheet-tool-sep { width: 1px; height: 18px; background: var(--rule); margin: 0 4px; }
.sheet-group { display: contents; }
.sheet-sep { width: 1px; height: 20px; background: var(--rule); flex: none; margin: 0 3px; }
.sheet-pick {
  height: 26px; width: auto; min-width: 92px; flex: none; border-radius: 6px;
  font-size: 12px; padding: 0 24px 0 6px; background-position: right 6px center;
}
.sheet-pick-narrow { width: 58px; min-width: 58px; }
.sheet-swatch {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  justify-content: center; width: 28px; height: 26px; border-radius: 6px;
  border: 1px solid transparent; cursor: pointer; color: var(--ink-2);
}
.sheet-swatch:hover { background: var(--surface-3); color: var(--ink); }
.sheet-swatch-mark { font-size: 12px; line-height: 1; }
.sheet-swatch-bar {
  width: 16px; height: 4px; margin-top: 2px; border-radius: 1px;
  border: 1px solid var(--rule-2); background: transparent;
}
.sheet-swatch input[type="color"] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
}
.sheet-tabs {
  flex: none; display: flex; align-items: stretch; gap: 4px; padding: 0 10px;
  border-top: 1px solid var(--rule); background: var(--surface-2); overflow-x: auto;
}
.sheet-tab-list { display: flex; align-items: stretch; gap: 2px; }
.sheet-tab {
  padding: 6px 14px; border: 0; border-top: 2px solid transparent; background: transparent;
  color: var(--ink-3); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.sheet-tab:hover { color: var(--ink); }
.sheet-tab.is-on {
  background: var(--surface); color: var(--ink); font-weight: 600;
  border-top-color: var(--accent);
}
.sheet-tab-add {
  padding: 0 10px; border: 0; background: transparent; color: var(--ink-3);
  font: inherit; font-size: 15px; cursor: pointer;
}
.sheet-tab-add:hover { color: var(--accent); }
.sheet-status {
  display: flex; gap: 16px; padding: 5px 12px; border-top: 1px solid var(--rule);
  background: var(--surface-2); color: var(--ink-3); font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
#sheet-status-range { font-weight: 600; color: var(--ink-2); }
.sheet-input {
  width: 100%; height: 100%; border: 0; background: var(--surface);
  color: var(--ink); font: inherit; font-family: var(--f-mono); padding: 0;
}

.slide-editor { flex: 1; min-height: 0; display: flex; overflow: hidden; }
.slide-strip {
  flex: 0 0 190px; overflow-y: auto; padding: 10px; display: flex;
  flex-direction: column; gap: 8px; border-right: 1px solid var(--rule);
  background: var(--surface-2);
}
.slide-thumb {
  display: grid; grid-template-columns: 18px 1fr; gap: 6px 8px; padding: 8px;
  border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer; text-align: left;
}
.slide-mini {
  position: relative; overflow: hidden; border-radius: 3px;
  border: 1px solid var(--rule); grid-column: 2;
}
.slide-mini .slide-shape { pointer-events: none; }
.slide-mini .slide-shape p, .slide-mini .slide-shape li { margin: 0; }
.slide-thumb-title { grid-column: 2; }
.slide-thumb.is-active { border-color: var(--accent); background: var(--accent-dim); }
.slide-number { font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.slide-thumb-title { font-size: 12px; color: var(--ink); overflow: hidden; }
.slide-stage {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 24px; background: var(--surface-2);
  overflow: auto;
}
.slide-stage .slide-notes-input { width: min(960px, 100%); }
.slide-card {
  position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg);
  overflow: hidden; container-type: inline-size;
}
.slide-shape {
  position: absolute; box-sizing: border-box; line-height: 1.3; cursor: default;
}
.slide-shape-body { position: absolute; inset: 0; padding: 4px 6px; overflow: hidden; }
.slide-card .slide-shape { cursor: move; }
.slide-shape p { margin: 0 0 .35em; white-space: pre-wrap; }
.slide-shape ul { margin: 0; padding-left: 1.1em; list-style: none; }
.slide-shape li { margin: 0 0 .45em; position: relative; }
.slide-shape li::before {
  content: '\2022'; position: absolute; left: -.9em; color: var(--bullet, currentColor);
}
.slide-shape[data-role="title"] { font-weight: 700; line-height: 1.15; }
.slide-shape.is-selected { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.slide-shape.is-line, .slide-shape.is-arrow { padding: 0; }
.slide-shape-arrow::after {
  content: ''; position: absolute; right: -1px; top: 50%;
  border: 6px solid transparent; border-left-color: currentColor;
  transform: translateY(-50%);
}
.slide-placeholder { opacity: .38; font-style: italic; }
.slide-handle {
  position: absolute; width: 9px; height: 9px; background: var(--surface);
  border: 1.5px solid var(--accent); border-radius: 2px; z-index: 3;
}
.slide-handle.is-nw { left: -5px; top: -5px; cursor: nwse-resize; }
.slide-handle.is-ne { right: -5px; top: -5px; cursor: nesw-resize; }
.slide-handle.is-sw { left: -5px; bottom: -5px; cursor: nesw-resize; }
.slide-handle.is-se { right: -5px; bottom: -5px; cursor: nwse-resize; }
.slide-text-input {
  width: 100%; height: 100%; border: 0; background: transparent; resize: none;
  font-family: inherit; font-size: inherit; line-height: inherit; color: inherit;
  padding: 0; text-align: inherit;
}
.slide-text-input:focus { outline: none; }
#slide-format.is-idle > * { opacity: .4; pointer-events: none; }
.slide-present-canvas {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px;
  overflow: hidden;
}
.slide-show {
  position: fixed; inset: 0; z-index: 140; background: var(--stage);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.slide-show-body { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.slide-present {
  width: min(1280px, 94vw); display: flex; flex-direction: column;
  position: relative; color: var(--stage-ink);
}
.slide-present h1 { margin: 0; font-size: clamp(30px, 5vw, 60px); line-height: 1.15; text-wrap: balance; }
.slide-present p { margin: 0; font-size: clamp(16px, 2.1vw, 26px); line-height: 1.6; white-space: pre-wrap; color: var(--stage-ink-2); }
.slide-present-count {
  position: fixed; bottom: 22px; right: 26px; font-size: 13px; color: var(--stage-ink-3);
  font-variant-numeric: tabular-nums;
}
.slide-show-controls { flex: none; display: flex; gap: 8px; padding: 16px; }

.text-kind {
  font-family: var(--f-ui); font-size: 10px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--ink-3);
}
.text-body { flex: 1; min-height: 0; display: flex; }
.text-input {
  flex: 1; min-width: 0; border: 0; background: var(--surface); color: var(--ink);
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.7;
  padding: 24px 28px; resize: none;
}
.text-input:focus { outline: none; }
.text-preview {
  flex: 1; min-width: 0; overflow-y: auto; padding: 24px 28px;
  border-left: 1px solid var(--rule); background: var(--surface-2); color: var(--ink);
  font-size: 14px; line-height: 1.65;
}
@media (max-width: 820px), (orientation: portrait) {
  .text-body { flex-direction: column; }
  .text-preview { border-left: 0; border-top: 1px solid var(--rule); }
  .slide-strip { flex-basis: 130px; }
}

.modal a:not(.btn), .ai-provider-links a { color: var(--accent); text-underline-offset: 2px; }
.modal a:not(.btn):hover { text-decoration: underline; }

.mail-copy-toggles { display: flex; justify-content: flex-end; gap: 4px; margin: -6px 0 0; }
.mail-copy-toggles:not(:has(button:not([hidden]))) { display: none; }
.mail-copy-toggle {
  border: 0; background: none; color: var(--accent); font: inherit; font-size: 12px;
  font-weight: 600; cursor: pointer; padding: 2px 8px; border-radius: 6px;
}
.mail-copy-toggle:hover { background: var(--accent-dim); }

.auth-providers { margin-top: 18px; }
.auth-or {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-family: var(--f-ui); font-size: 11px; color: var(--ink-3);
}
.auth-or::before, .auth-or::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}
.auth-provider-row { display: flex; gap: 8px; }
.auth-provider-row .provider-btn { flex: 1; min-width: 0; }

.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; margin-right: 4px; padding: 0;
  border: 1px solid var(--rule); border-radius: 50%; background: none;
  font-family: var(--f-ui); font-size: 10px; font-style: italic; line-height: 1;
  color: var(--ink-3); cursor: help;
}
.info-dot:hover { border-color: var(--accent); color: var(--accent); }

.verify-tag {
  align-self: flex-start; margin-top: 3px; padding: 1px 7px; border-radius: 999px;
  font-family: var(--f-ui); font-size: 10px; letter-spacing: .02em;
}
.verify-tag.is-ok { background: var(--green-dim); color: var(--green); }
.verify-tag.is-warn { background: var(--oxide-dim); color: var(--oxide); }

.crm-table-wrap { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crm-table th {
  text-align: left; padding: 8px 12px; font-weight: 600; font-size: 11.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3);
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.crm-table td { padding: 9px 12px; border-bottom: 1px solid var(--rule); }
.crm-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.crm-table td.is-overdue { color: var(--danger, #d2544a); font-weight: 600; }
.crm-table tr.is-clickable { cursor: pointer; }
.crm-table tr.is-clickable:hover td { background: var(--surface-2); }
.crm-stat.is-warn .crm-stat-value { color: var(--danger, #d2544a); }
.pill-tag.is-draft { opacity: .7; }
.pill-tag.is-paid, .pill-tag.is-delivered { color: var(--accent); border-color: var(--accent); }
.pill-tag.is-cancelled { opacity: .55; text-decoration: line-through; }

.erp-report-title {
  margin: 20px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3);
}
