/* Zora Team 1.1: the app, the portal (Zora for Organisations) and the sign-in screens.
   A dark sidebar that folds to icons, a slim top bar, soft surfaces, Zora's gradient used
   sparingly, status colours, light and dark modes. No outside assets. */

:root {
	color-scheme: light;
	--bg: #f5f4f8; --paper: #fff; --panel: #f0eef5; --subtle: #faf9fc; --hover: #f4f2f9;
	--ink: #17141f; --ink-2: #393446; --muted: #6b6578; --faint: #9a95a6;
	--line: #ebe8f1; --line-2: #dcd7e6; --ring: rgba(23, 20, 31, .06);
	--brand: #6d28d9; --brand-2: #8b5cf6; --brand-soft: #f1ebfe; --brand-line: #ddd0fb;
	--grad: linear-gradient(100deg, #3a2ad6, #9b1a9a 60%, #e0204a);
	--ok: #13804a; --ok-soft: #e6f5ec; --warn: #9a6200; --warn-soft: #fcf2dd; --bad: #c0283c; --bad-soft: #fdeaed; --info: #2c59c9; --info-soft: #eaf0fd;
	--btn: #17141f; --btn-ink: #fff;
	--side-bg: #14111c; --side-ink: #d8d4e3; --side-muted: #807a90; --side-line: #242031; --side-hover: rgba(255, 255, 255, .06); --side-on: rgba(255, 255, 255, .1);
	--side: 236px; --rail: 64px; --top: 56px;
	--r: 10px; --r-sm: 7px; --r-lg: 14px;
	--shadow: 0 0 0 1px var(--ring), 0 1px 2px rgba(20, 10, 40, .04), 0 2px 8px -2px rgba(20, 10, 40, .05);
	--shadow-lg: 0 0 0 1px var(--ring), 0 14px 36px -8px rgba(20, 10, 40, .22), 0 4px 10px -4px rgba(20, 10, 40, .08);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0e0c13; --paper: #17141e; --panel: #1f1b28; --subtle: #1a1722; --hover: #201c2a;
	--ink: #eeebf4; --ink-2: #cdc8d8; --muted: #9a94a8; --faint: #6f6a7c;
	--line: #26222f; --line-2: #34303f; --ring: rgba(255, 255, 255, .06);
	--brand: #a78bfa; --brand-2: #c4b5fd; --brand-soft: rgba(167, 139, 250, .14); --brand-line: rgba(167, 139, 250, .35);
	--ok: #4cc283; --ok-soft: rgba(76, 194, 131, .13); --warn: #e7a83a; --warn-soft: rgba(231, 168, 58, .13); --bad: #f0707c; --bad-soft: rgba(240, 112, 124, .13); --info: #7aa2ff; --info-soft: rgba(122, 162, 255, .13);
	--btn: #eeebf4; --btn-ink: #121016;
	--side-bg: #0a090e; --side-line: #1d1a25;
	--shadow: 0 0 0 1px var(--ring), 0 1px 2px rgba(0, 0, 0, .3);
	--shadow-lg: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -10px rgba(0, 0, 0, .7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.zt-body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; font-weight: 750; }
h2 { font-size: 1rem; font-weight: 700; }
h3 { font-size: .95rem; margin: 1.1em 0 .4em; }
p { margin: 0 0 .7em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen-reader-text:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 300; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.zt-icon { flex: none; vertical-align: -3px; }
.zt-muted { color: var(--muted); }
.zt-center { text-align: center; }
.zt-pad { padding: 14px 16px; }
.zt-table td, .zt-stat__value, .zt-kv dd, time { font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .zt-if-dark, :root:not([data-theme="dark"]) .zt-if-light { display: inline-flex; }
:root[data-theme="dark"] .zt-if-light, :root:not([data-theme="dark"]) .zt-if-dark { display: none; }

/* ---------- Shell: sidebar, top bar ---------- */
.zt-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .22s var(--ease); }
.zt-rail .zt-shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
.zt-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-ink); overflow: hidden; z-index: 40; }
.zt-side__top { display: flex; align-items: center; height: var(--top); padding: 0 16px; flex: none; }
.zt-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.zt-brand b { background: linear-gradient(100deg, #b9a6ff, #ff7aa8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zt-nav { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.zt-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-weight: 550; white-space: nowrap; }
.zt-nav a:hover { background: var(--side-hover); color: #fff; }
.zt-nav a[aria-current] { background: var(--side-on); color: #fff; }
.zt-nav a[aria-current]::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #a78bfa; }
.zt-nav a span { flex: 1; }
.zt-side__foot { border-top: 1px solid var(--side-line); padding: 10px; }
.zt-side__me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; color: var(--side-ink); text-decoration: none; white-space: nowrap; }
.zt-side__me:hover { background: var(--side-hover); }
.zt-side__me strong { display: block; font-size: 13px; color: #fff; }
.zt-side__me small { color: var(--side-muted); font-size: 12px; }
.zt-rail .zt-nav a span, .zt-rail .zt-side__me span, .zt-rail .zt-brand span, .zt-rail .zt-nav .zt-count { display: none; }
.zt-rail .zt-nav a { justify-content: center; padding: 10px 0; }
.zt-rail .zt-side__top { padding: 0; justify-content: center; }
.zt-wrap { min-width: 0; display: flex; flex-direction: column; }
.zt-top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 20px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.zt-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; }
.zt-crumb a { color: var(--ink); text-decoration: none; }
.zt-crumb span:last-child { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.zt-search { position: relative; flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); color: var(--muted); }
.zt-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); }
.zt-search kbd { font-size: 11px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }
.zt-palette { position: absolute; top: 42px; left: 0; right: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow-y: auto; z-index: 60; }
.zt-palette a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.zt-palette a span { color: var(--faint); font-size: 12px; white-space: nowrap; }
.zt-palette a:hover, .zt-palette a.is-on { background: var(--hover); }
.zt-top__right { display: flex; align-items: center; gap: 6px; }
.zt-icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; }
.zt-icon-btn:hover { background: var(--hover); color: var(--ink); }
.zt-icon-btn .zt-count { position: absolute; top: 1px; right: -1px; }
.zt-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e0204a; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.zt-main { padding: 22px clamp(16px, 3vw, 34px) 60px; width: 100%; max-width: 1320px; outline: none; }
.zt-tabbar { display: none; }

/* ---------- Pop-over menus (details.zt-pop) ---------- */
.zt-pop { position: relative; }
.zt-pop > summary { list-style: none; cursor: pointer; }
.zt-pop > summary::-webkit-details-marker { display: none; }
.zt-pop__menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; z-index: 70; }
.zt-pop.is-right .zt-pop__menu { left: auto; right: 0; }
.zt-pop__menu.is-wide { width: min(380px, 92vw); padding: 0; }
.zt-pop__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; white-space: nowrap; }
.zt-pop__item:hover { background: var(--hover); }
.zt-pop__item .zt-icon { color: var(--muted); }
.zt-pop__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.zt-pop__body { max-height: 60vh; overflow-y: auto; }
.zt-pop__foot { display: block; padding: 10px 14px; border-top: 1px solid var(--line); text-align: center; font-weight: 600; text-decoration: none; }
.zt-note { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.zt-note:hover { background: var(--hover); }
.zt-note span { color: var(--muted); font-size: 13px; }
.zt-note time { color: var(--faint); font-size: 12px; }
.zt-note.is-new strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #e0204a; vertical-align: 2px; }
.zt-me { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; }

/* ---------- Page head, tabs, toolbars ---------- */
.zt-head { margin-bottom: 18px; }
.zt-head__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.zt-head__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zt-sub { color: var(--muted); margin: 4px 0 0; max-width: 780px; }
.zt-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.zt-back:hover { color: var(--brand); }
.zt-sectabs { display: flex; gap: 2px; margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.zt-sectabs a { position: relative; padding: 9px 14px 11px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.zt-sectabs a:hover { color: var(--ink); }
.zt-sectabs a[aria-current] { color: var(--ink); }
.zt-sectabs a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.zt-sectabs b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 11px; }
.zt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.zt-tabs a { padding: 5px 12px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.zt-tabs a[aria-current] { background: var(--btn); color: var(--btn-ink); box-shadow: none; }
.zt-tabs a b { opacity: .7; margin-left: 3px; }
.zt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.zt-toolbar .zt-tabs { margin: 0; }
.zt-toolbar__grow { flex: 1; }

/* ---------- Cards, tiles, empty states ---------- */
.zt-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 16px; min-width: 0; }
.zt-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.zt-card__head h2 { margin: 0; font-size: 15px; }
.zt-section { margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.zt-grid { display: grid; gap: 0 16px; }
.zt-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zt-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.zt-grid.is-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .zt-grid.is-3, .zt-grid.is-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .zt-grid.is-2 { grid-template-columns: minmax(0, 1fr); } }
.zt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.zt-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.zt-stat:hover { box-shadow: var(--shadow-lg); }
.zt-stat__label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.zt-stat__value { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; }
.zt-stat__sub { color: var(--faint); font-size: 12px; }
.zt-stat.is-bad .zt-stat__value { color: var(--bad); }
.zt-stat.is-good .zt-stat__value { color: var(--ok); }
.zt-stat.is-warn .zt-stat__value { color: var(--warn); }
.zt-empty { color: var(--faint); margin: 6px 0; }
.zt-emptystate { text-align: center; padding: 34px 16px; }
.zt-emptystate__t { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.zt-emptystate .zt-btn { margin-top: 10px; }
.zt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.zt-list { margin: 0; padding: 0; list-style: none; }
.zt-list > li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zt-list > li:last-child { border: 0; }
.zt-list > li > .zt-icon { margin-top: 2px; color: var(--muted); }
.zt-kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; margin: 0; }
.zt-kv dt { color: var(--muted); }
.zt-kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Buttons and forms ---------- */
.zt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid transparent; background: var(--btn); color: var(--btn-ink); font-weight: 650; font-size: 13.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .05s, filter .15s; }
.zt-btn:hover { filter: brightness(1.15); color: var(--btn-ink); }
.zt-btn:active { transform: translateY(1px); }
.zt-btn.is-brand { background: var(--brand); color: #fff; }
.zt-btn.is-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.zt-btn.is-ghost:hover { background: var(--hover); filter: none; }
.zt-btn.is-small { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.zt-btn.is-block { display: flex; width: 100%; }
.zt-btn.is-danger { background: var(--bad); color: #fff; }
.zt-btn.is-busy, .zt-btn:disabled { opacity: .6; cursor: progress; }
.zt-link-btn { border: 0; background: none; padding: 0; color: var(--brand); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.zt-link { font-weight: 600; font-size: 13px; text-decoration: none; }
.zt-inline { display: inline; margin: 0; }
.zt-form { max-width: 860px; }
.zt-field { margin: 0 0 14px; min-width: 0; }
.zt-field > label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 5px; color: var(--ink-2); }
.zt-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .zt-field select, .zt-field textarea, .zt-quick input:not([type=checkbox]):not([type=file]), .zt-quick select, .zt-comment-form textarea, .zt-lines input:not([type=checkbox]), .zt-input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); color: var(--ink); }
.zt-field textarea, .zt-comment-form textarea { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.5; }
.zt-field input:focus, .zt-field select:focus, .zt-field textarea:focus, .zt-quick input:focus, .zt-comment-form textarea:focus { border-color: var(--brand-2); outline: 3px solid var(--brand-soft); outline-offset: 0; }
.zt-help { display: block; color: var(--faint); font-size: 12.5px; margin-top: 4px; }
.zt-check { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; cursor: pointer; }
.zt-check input { margin-top: 3px; accent-color: var(--brand); }
.zt-money-in { display: flex; align-items: center; height: 38px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); overflow: hidden; }
.zt-money-in span { padding: 0 2px 0 12px; color: var(--muted); }
.zt-money-in input { border: 0 !important; outline: 0 !important; height: 36px !important; padding-left: 4px !important; }
.zt-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.zt-quick input[type=text], .zt-quick input[type=search], .zt-quick input[type=number] { flex: 1 1 200px; width: auto; }
.zt-quick input[type=date], .zt-quick input[type=time], .zt-quick input[type=tel], .zt-quick select { flex: 0 1 auto; width: auto; }
.zt-more > summary { cursor: pointer; color: var(--brand); font-size: 13px; font-weight: 650; margin: 6px 0; list-style: none; }
.zt-more > summary::-webkit-details-marker { display: none; }
.zt-more > summary::before { content: "+ "; }
.zt-more[open] > summary::before { content: "– "; }
.zt-chip { border: 1px solid var(--line-2); background: var(--paper); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; color: var(--ink-2); }
.zt-chip:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.zt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zt-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; }

/* ---------- Dialogs and toasts ---------- */
/* Every pop-up is a drawer that slides in from the right (as in ES Cloud). */
.zt-dialog { position: fixed; inset: 0 0 0 auto; margin: 0; border: 0; padding: 0; border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); width: min(520px, 100vw); height: 100vh; height: 100dvh; max-height: none; max-width: 100vw; overflow: hidden; }
.zt-dialog.is-wide { width: min(820px, 100vw); }
.zt-dialog[open] { display: flex; flex-direction: column; animation: zt-slide .26s var(--ease); }
.zt-dialog::backdrop { background: rgba(14, 10, 24, .38); backdrop-filter: blur(2px); }
.zt-dialog__box { display: flex; flex-direction: column; height: 100%; min-height: 0; }
@keyframes zt-slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes zt-pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.zt-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 12px 0 22px; height: 60px; flex: none; border-bottom: 1px solid var(--line); background: var(--paper); }
.zt-dialog__head h2 { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-dialog__body { padding: 20px 22px 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.zt-dialog__body::after { content: ""; display: block; height: 22px; }
.zt-dialog__foot { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 22px -22px 0; padding: 14px 22px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--line); }
.zt-dialog__body > .zt-drawer-content > .zt-head { margin-bottom: 14px; }
.zt-dialog__body .zt-head__row { justify-content: flex-end; }
.zt-dialog__body .zt-grid.is-main { grid-template-columns: 1fr; }
.zt-dialog__body .zt-card { box-shadow: none; border: 1px solid var(--line); }
.zt-dialog .zt-form { max-width: none; }
.zt-toasts { position: fixed; z-index: 200; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(460px, calc(100vw - 24px)); pointer-events: none; }
.zt-toast { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 16px; border-radius: 12px; background: var(--btn); color: var(--btn-ink); box-shadow: var(--shadow-lg); font-weight: 550; animation: zt-pop .2s var(--ease); pointer-events: auto; }
.zt-toast span { flex: 1; }
.zt-toast.is-error { background: var(--bad); color: #fff; }
.zt-toast button { border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.zt-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: .3s; }
.zt-flash { padding: 11px 14px; border-radius: 12px; margin: 0 0 16px; background: var(--info-soft); color: var(--info); }
.zt-flash.is-success { background: var(--ok-soft); color: var(--ok); }
.zt-flash.is-error { background: var(--bad-soft); color: var(--bad); }
.zt-flash.is-warn { background: var(--warn-soft); color: var(--warn); }

/* ---------- Tables, badges, avatars ---------- */
.zt-table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); margin: 0 0 16px; }
.zt-card .zt-table-wrap { box-shadow: none; border-radius: 0; margin: 0 -6px; }
.zt-table { width: 100%; border-collapse: collapse; }
.zt-table th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.zt-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.zt-table tr:last-child td { border-bottom: 0; }
.zt-table tbody tr:hover { background: var(--subtle); }
.zt-table td a { font-weight: 650; color: var(--ink); text-decoration: none; }
.zt-table td a:hover { color: var(--brand); }
@media (max-width: 700px) {
	.zt-table thead { display: none; }
	.zt-table, .zt-table tbody, .zt-table tr, .zt-table td { display: block; width: 100%; }
	.zt-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
	.zt-table td { padding: 2px 0; border: 0; }
	.zt-table td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; color: var(--faint); font-size: 12px; }
	.zt-table td:first-child::before, .zt-lines td::before { content: none !important; }
}
.zt-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 11.5px; font-weight: 650; white-space: nowrap; vertical-align: 1px; }
.zt-badge.is-good { background: var(--ok-soft); color: var(--ok); }
.zt-badge.is-warn { background: var(--warn-soft); color: var(--warn); }
.zt-badge.is-bad { background: var(--bad-soft); color: var(--bad); }
.zt-badge.is-info, .zt-badge.is-lock { background: var(--info-soft); color: var(--info); }
.zt-badge.is-ai, .zt-badge.is-brand { background: var(--brand-soft); color: var(--brand); }
.zt-badge.is-muted { opacity: .7; }
.zt-avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; }
.zt-avatar.is-initial { background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--brand-line); }
.zt-person-cell { display: flex; align-items: center; gap: 10px; }

/* ---------- Charts ---------- */
.zt-bars { display: grid; gap: 8px; }
.zt-bars__row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.zt-bars__l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.zt-bars__track { height: 9px; border-radius: 9px; background: var(--panel); overflow: hidden; }
.zt-bars__track i { display: block; height: 100%; border-radius: 9px; background: var(--brand-2); }
.zt-bars__v { font-weight: 650; font-variant-numeric: tabular-nums; }
.zt-cols { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 6px; }
.zt-cols__c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.zt-cols__c i { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: var(--brand-2); opacity: .85; }
.zt-cols__c span { font-size: 11px; color: var(--faint); }

/* ---------- Home, lists ---------- */
.zt-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.zt-tray { list-style: none; margin: 0; padding: 0; }
.zt-tray li { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zt-tray li:last-child { border: 0; }
.zt-tray a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; color: var(--ink); }
.zt-activity, .zt-notes { list-style: none; margin: 0; padding: 0; }
.zt-activity li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.zt-activity li:last-child { border: 0; }
.zt-notes { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.zt-notes li a { display: grid; gap: 2px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.zt-notes li a:hover { background: var(--hover); }
.zt-notes li.is-new a strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #e0204a; vertical-align: 2px; }
.zt-notes li span { color: var(--muted); }
.zt-notes li small { color: var(--faint); }

/* ---------- Tasks ---------- */
.zt-tasklist { list-style: none; margin: 0; padding: 0; }
.zt-tasklist li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.zt-tasklist li:last-child { border: 0; }
.zt-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.zt-board__col { background: var(--panel); border-radius: var(--r-lg); padding: 10px; min-height: 200px; transition: background .15s; }
.zt-board__col.is-over { background: var(--brand-soft); outline: 2px dashed var(--brand-line); }
.zt-board__col h2 { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 4px 6px 10px; }
.zt-board__col h2 b { font-weight: 650; }
.zt-board__list { min-height: 80px; display: flex; flex-direction: column; gap: 8px; }
.zt-board__card { background: var(--paper); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: grab; }
.zt-board__card.is-dragging { opacity: .5; }
.zt-board__card a { font-weight: 650; text-decoration: none; color: var(--ink); }
.zt-board__card p { margin: 6px 0 0; font-size: 12.5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---------- Journeys and checklists ---------- */
.zt-journey { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 16px; padding: 0; }
.zt-journey li { display: flex; align-items: center; }
.zt-journey li + li::before { content: ""; width: 12px; height: 2px; background: var(--line-2); margin: 0 2px; }
.zt-journey span, .zt-step-btn { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650; border: 1px solid var(--line-2); background: var(--paper); color: var(--muted); white-space: nowrap; }
.zt-step-btn { cursor: pointer; }
.zt-step-btn:hover { border-color: var(--brand-line); color: var(--ink); }
.zt-journey .is-past span, .zt-journey .is-past .zt-step-btn { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
.zt-journey .is-here span { background: var(--ink); color: var(--paper); border-color: transparent; }
.zt-checklist { list-style: none; margin: 0; padding: 0; }
.zt-check-btn { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; border: 0; background: none; padding: 6px 0; cursor: pointer; }
.zt-check-btn::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-2); }
.zt-checklist .is-done .zt-check-btn { color: var(--faint); text-decoration: line-through; }
.zt-checklist .is-done .zt-check-btn::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--ok); }
.zt-tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: var(--paper); color: #fff; font-size: 13px; font-weight: 800; padding: 0; cursor: pointer; flex: none; }
.zt-tick.is-done { background: var(--ok); border-color: var(--ok); }

/* ---------- Organisations ---------- */
.zt-orghead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.zt-orghead__logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-line); font-weight: 800; font-size: 20px; flex: none; }
.zt-orghead__t { flex: 1; min-width: 200px; }
.zt-orghead__t h1 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.zt-orghead__t p { margin: 4px 0 0; color: var(--muted); }
.zt-orgcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.zt-orgcard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.zt-orgcard:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.zt-orgcard__top { display: flex; gap: 10px; align-items: center; }
.zt-orgcard__logo { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-weight: 800; flex: none; }
.zt-orgcard strong { display: block; }
.zt-orgcard small { color: var(--muted); }
.zt-orgcard__next { font-size: 13px; color: var(--ink-2); }
.zt-orgcard__foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.zt-people { list-style: none; margin: 0; padding: 0; }
.zt-person { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.zt-person:last-child { border: 0; }
.zt-person > div { flex: 1; min-width: 0; }
.zt-next { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-lg); background: var(--brand-soft); border: 1px solid var(--brand-line); margin: 0 0 16px; }
.zt-next strong { flex: 1; min-width: 200px; }
.zt-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.zt-timeline li { position: relative; padding: 0 0 16px; }
.zt-timeline li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); border: 2px solid var(--paper); }
.zt-timeline li.is-stage::before { background: var(--brand-2); }
.zt-timeline li.is-email::before, .zt-timeline li.is-message::before { background: var(--info); }
.zt-timeline li.is-money::before { background: var(--ok); }
.zt-timeline p { margin: 0 0 2px; }
.zt-timeline small { color: var(--faint); font-size: 12px; }
.zt-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.zt-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--panel); }
.zt-msg.is-team { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--brand-soft); }
.zt-msg__who { font-size: 12.5px; margin: 0 0 4px; }
.zt-msg p:last-child { margin: 0; }
.zt-inbox { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 440px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
.zt-inbox__list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.zt-inbox__list a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.zt-inbox__list a:hover, .zt-inbox__list a[aria-current] { background: var(--hover); }
.zt-inbox__list a strong { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.zt-inbox__list a small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-inbox__main { padding: 18px 20px; min-width: 0; }
@media (max-width: 800px) { .zt-inbox { grid-template-columns: minmax(0, 1fr); } .zt-inbox__list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); } }
.zt-doc { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: var(--subtle); max-height: 60vh; overflow-y: auto; margin: 10px 0 16px; }
.zt-progress { height: 8px; border-radius: 8px; background: var(--panel); overflow: hidden; }
.zt-progress i { display: block; height: 100%; background: var(--ok); border-radius: 8px; }
.zt-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.zt-project { padding: 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.zt-project__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zt-project a { font-weight: 700; color: var(--ink); text-decoration: none; }

/* ---------- Comments and files ---------- */
.zt-comments { display: flex; flex-direction: column; gap: 12px; }
.zt-comment { display: flex; gap: 10px; }
.zt-comment > div { flex: 1; min-width: 0; }
.zt-comment__who { font-size: 13px; margin: 0 0 2px; }
.zt-comment-form { display: flex; gap: 8px; align-items: flex-end; }
.zt-comment-form textarea { flex: 1; }
.zt-files { list-style: none; margin: 0 0 6px; padding: 0; }
.zt-files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.zt-files li:last-child { border: 0; }
.zt-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed var(--line-2); border-radius: var(--r-lg); background: var(--subtle); text-align: center; color: var(--muted); transition: .15s; }
.zt-drop strong { color: var(--ink); }
.zt-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zt-drop.is-over { border-color: var(--brand-2); background: var(--brand-soft); color: var(--brand); }
.zt-drop__list { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; text-align: left; font-size: 13px; position: relative; z-index: 1; }
.zt-drop__list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--paper); margin-top: 4px; }

/* ---------- Invoices (always on white paper) ---------- */
.zt-invoice { background: #fff; color: #17141f; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(18px, 4vw, 36px); margin: 0 0 16px; max-width: 860px; }
.zt-invoice__head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.zt-invoice__head h2 { font-size: 1.5rem; margin: 8px 0 2px; }
.zt-invoice__no { color: #6b6578; font-weight: 600; margin: 0; }
.zt-invoice__from { text-align: right; font-size: 13.5px; color: #6b6578; }
.zt-invoice__from strong { color: #17141f; }
.zt-invoice__meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.zt-invoice__lines { width: 100%; border-collapse: collapse; }
.zt-invoice__lines th { text-align: left; font-size: 11.5px; color: #8a849a; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid #17141f; padding: 8px 6px; }
.zt-invoice__lines td { padding: 9px 6px; border-bottom: 1px solid #ebe8f1; }
.zt-invoice__lines th:not(:first-child), .zt-invoice__lines td:not(:first-child) { text-align: right; white-space: nowrap; }
.zt-invoice__totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; max-width: 320px; margin: 16px 0 0 auto; }
.zt-invoice__totals dd { margin: 0; text-align: right; }
.zt-invoice__notes { margin-top: 20px; padding-top: 14px; border-top: 1px solid #ebe8f1; }
.zt-invoice__small, .zt-invoice .zt-muted { font-size: 12.5px; margin-top: 14px; color: #6b6578; }
.zt-bank { margin-top: 14px; padding: 14px 16px; background: var(--subtle); border-radius: 12px; }
.zt-bank dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0 0 8px; }
.zt-bank dd { margin: 0; font-weight: 650; }
.zt-lines td { padding: 6px; }
.zt-lines td:nth-child(2) { width: 90px; }
.zt-lines td:nth-child(3) { width: 150px; }
.zt-lines td:nth-child(4) { width: 50px; text-align: center; }
.zt-mail-frame { width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.zt-copy { cursor: copy; }
.zt-copy.is-copied::after { content: " ✓ copied"; color: var(--ok); font-family: inherit; }

/* ---------- Expenses ---------- */
.zt-exp-month { display: inline-flex; align-items: center; gap: 6px; }
.zt-exp-month a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; }
.zt-exp-month strong { min-width: 120px; text-align: center; }
.zt-scan { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; align-items: start; }
.zt-scan__side { display: flex; flex-direction: column; gap: 10px; }
.zt-scan__preview { border-radius: var(--r-lg); background: var(--subtle); border: 1px solid var(--line); min-height: 160px; display: grid; place-items: center; overflow: hidden; color: var(--faint); text-align: center; padding: 8px; font-size: 13px; }
.zt-scan__preview img { max-height: 340px; object-fit: contain; }
.zt-scan__status { font-size: 13px; color: var(--muted); }
.zt-scan__status.is-ok { color: var(--ok); }
@media (max-width: 760px) { .zt-scan { grid-template-columns: minmax(0, 1fr); } }
.zt-receipts { display: flex; flex-wrap: wrap; gap: 10px; }
.zt-receipts a { display: block; width: 130px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--paper); text-decoration: none; color: var(--ink); font-size: 12px; }
.zt-receipts img { display: block; width: 130px; height: 130px; object-fit: cover; background: var(--panel); }
.zt-receipts span { display: block; padding: 6px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-receipts .is-doc { display: grid; place-items: center; width: 130px; height: 130px; background: var(--panel); color: var(--muted); }

/* ---------- The assistant ---------- */
.zt-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 28px -6px rgba(110, 40, 200, .55); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.zt-fab:hover { transform: scale(1.06); }
.zt-assist { position: fixed; right: 22px; bottom: 88px; z-index: 95; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: zt-pop .18s var(--ease); }
.zt-assist__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.zt-assist__head strong { display: flex; align-items: center; gap: 8px; }
.zt-assist__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.zt-assist__hello { color: var(--ink-2); }
.zt-amsg { max-width: 90%; padding: 9px 13px; border-radius: 14px; background: var(--panel); overflow-wrap: anywhere; }
.zt-amsg.is-user { align-self: flex-end; background: var(--brand-soft); }
.zt-amsg.is-error { background: var(--bad-soft); color: var(--bad); }
.zt-amsg.is-wait { color: var(--muted); font-style: italic; }
.zt-amsg p:last-child { margin: 0; }
.zt-atools { font-size: 11.5px; color: var(--faint); margin: -4px 0 0 4px; }
.zt-assist__form { display: flex; gap: 6px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); }
.zt-assist__form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; background: var(--paper); max-height: 140px; }
.zt-icon-btn.is-send { background: var(--brand); color: #fff; width: 40px; height: 40px; border-radius: 12px; }

/* ---------- Sign-in screens and the portal ---------- */
body.is-plain { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: var(--side-bg); }
.zt-login { width: 100%; max-width: 420px; background: var(--paper); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-lg); }
.zt-login > img { display: block; margin: 0 0 14px; }
.zt-login h1 { font-size: 1.35rem; margin-bottom: 10px; }
.zt-portal-top { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.zt-portal-top__in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(16px, 4vw, 40px); }
.zt-portal-top .zt-brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.zt-portal-top .zt-brand b { font-weight: 500; color: var(--muted); }
.zt-portal-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zt-portal-who > span { display: grid; line-height: 1.25; min-width: 0; }
.zt-portal-who strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-portal-who small { color: var(--muted); font-size: 12px; }
.zt-portal-tabs { max-width: 1120px; margin: 0 auto; display: flex; gap: 2px; padding: 0 clamp(10px, 4vw, 34px); overflow-x: auto; scrollbar-width: none; }
.zt-portal-tabs::-webkit-scrollbar { display: none; }
.zt-portal-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 11px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.zt-portal-tabs a:hover { color: var(--ink); }
.zt-portal-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }
.zt-portal-tabs a[aria-current] .zt-icon { color: var(--brand); }
.zt-portal-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.zt-portal { max-width: 1120px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 60px; }
.zt-hint { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: -4px 0 18px; }
.zt-hint .zt-icon { color: var(--info); margin-top: 2px; }
.zt-welcome { list-style: none; padding: 0; margin: 4px 0 12px; display: grid; gap: 10px; }
.zt-welcome li { display: flex; gap: 10px; align-items: flex-start; }
.zt-welcome__i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--paper); color: var(--brand); box-shadow: var(--shadow); }
.zt-todo { list-style: none; margin: 0; padding: 0; }
.zt-todo li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.zt-todo li:last-child { border-bottom: 0; }
.zt-todo li .zt-icon { color: var(--brand); }
.zt-ibx.is-portal { height: calc(100vh - 230px); min-height: 520px; }
.zt-ibx__dot.is-new { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 640px) { .zt-portal-top .zt-brand span { display: none; } .zt-portal-who small { display: none; } }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
	.zt-shell, .zt-rail .zt-shell { display: block; }
	.zt-side { position: fixed; inset: 0 auto 0 0; width: min(290px, 84vw); transform: translateX(-105%); transition: transform .22s var(--ease); box-shadow: var(--shadow-lg); z-index: 120; }
	body.is-menu .zt-side { transform: none; }
	body.is-menu::after { content: ""; position: fixed; inset: 0; z-index: 110; background: rgba(14, 10, 24, .45); }
	.zt-rail .zt-nav a span, .zt-rail .zt-side__me span, .zt-rail .zt-brand span { display: inline; }
	.zt-rail .zt-nav a { justify-content: flex-start; padding: 9px 12px; }
	.zt-top { padding: 0 10px; gap: 6px; }
	.zt-crumb { display: none; }
	.zt-search { margin-left: 0; min-width: 0; }
	.zt-search kbd, .zt-top .zt-pop > summary.zt-btn span { display: none; }
	.zt-main { padding: 16px 14px calc(96px + var(--safe-b)); }
	.zt-tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; padding: 6px 4px calc(6px + var(--safe-b)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
	.zt-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none; }
	.zt-tabbar [aria-current] { color: var(--brand); }
	.zt-fab { bottom: calc(76px + var(--safe-b)); right: 14px; width: 48px; height: 48px; }
	.zt-assist { right: 8px; left: 8px; width: auto; bottom: calc(132px + var(--safe-b)); height: min(560px, calc(100vh - 170px)); }
	.zt-toasts { bottom: calc(80px + var(--safe-b)); }
}
@media (max-width: 480px) { .zt-top__right .zt-icon-btn[data-zt-theme] { display: none; } }

/* ---------- Print (invoices) ---------- */
@media print {
	body.zt-body { background: #fff; }
	.zt-side, .zt-top, .zt-tabbar, .zt-head, .zt-card, .zt-toasts, .zt-btn, .zt-sectabs, .zt-fab, .zt-assist, .zt-portal-top, .zt-portal-tabs, .zt-badge, .zt-orghead, .zt-next { display: none !important; }
	.zt-shell { display: block; }
	.zt-main, .zt-portal { padding: 0; max-width: none; }
	.zt-invoice { box-shadow: none; padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.zt-nowrap { white-space: nowrap; }

/* ---------- 1.2: guides, explainers, icons ---------- */
.zt-explain { margin: 0 0 16px; border: 1px solid var(--info-soft); background: color-mix(in srgb, var(--info-soft) 55%, var(--paper)); border-radius: var(--r-lg); }
.zt-explain summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer; list-style: none; font-weight: 650; color: var(--info); }
.zt-explain summary::-webkit-details-marker { display: none; }
.zt-explain summary span:nth-child(2) { flex: 1; }
.zt-explain__t::after { content: "Hide"; font-size: 12px; font-weight: 600; color: var(--muted); }
.zt-explain:not([open]) .zt-explain__t::after { content: "Show"; }
.zt-explain__b { padding: 0 16px 14px 39px; color: var(--ink-2); font-size: 13.5px; }
.zt-explain__b ol, .zt-explain__b ul { margin: 4px 0 0; padding-left: 18px; }
.zt-explain__b li { margin: 3px 0; }
.zt-q { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; position: relative; vertical-align: 1px; }
.zt-q:hover, .zt-q:focus { color: var(--brand); border-color: var(--brand-line); }
.zt-card__head h2 { display: flex; align-items: center; gap: 8px; }
.zt-card__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--panel); color: var(--ink-2); flex: none; }
.zt-stat__label { display: flex; align-items: center; gap: 7px; }
.zt-stat__icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--panel); color: var(--ink-2); }
.zt-field.is-wide { grid-column: 1 / -1; }
.zt-flash { padding: 10px 14px; border-radius: 10px; background: var(--info-soft); color: var(--ink); margin: 0 0 14px; }
.zt-flash.is-error, .zt-flash.is-bad { background: var(--bad-soft); }
.zt-flash.is-warn { background: var(--warn-soft); }
.zt-flash.is-success { background: var(--ok-soft); }
.zt-avatar.is-initial.h1 { background: #ece8fb; color: #5b3fc4; } .zt-avatar.is-initial.h2 { background: #e3f1ec; color: #1f7a55; } .zt-avatar.is-initial.h3 { background: #fbeee2; color: #9a5512; } .zt-avatar.is-initial.h4 { background: #e6eefb; color: #2d5bb8; } .zt-avatar.is-initial.h5 { background: #fbe7ee; color: #a8325c; }
:root[data-theme="dark"] .zt-avatar.is-initial[class*=" h"] { background: var(--panel); color: var(--ink-2); }

/* Drop zone with a name for each file */
.zt-drop__list li.has-meta { align-items: flex-start; }
.zt-drop__ext { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 8px; background: var(--panel); font-size: 10.5px; font-weight: 800; color: var(--muted); }
.zt-drop__name { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; word-break: break-word; }
.zt-drop__name input { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }

/* File cards */
.zt-fcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.zt-fcard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.zt-fcard:hover { box-shadow: var(--shadow-lg); }
.zt-fcard__thumb { position: relative; display: grid; place-items: center; height: 120px; background: var(--panel); color: var(--muted); overflow: hidden; }
.zt-fcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.zt-fcard__thumb b { position: absolute; left: 10px; bottom: 10px; padding: 2px 7px; border-radius: 6px; background: var(--paper); color: var(--ink-2); font-size: 10.5px; letter-spacing: .03em; }
.zt-fcard__thumb.k-pdf { background: #fbeceb; color: #b4372e; } .zt-fcard__thumb.k-doc { background: #e8effc; color: #2d5bb8; } .zt-fcard__thumb.k-sheet { background: #e4f3ea; color: #1f7a55; } .zt-fcard__thumb.k-slides { background: #fcefe2; color: #a35a14; } .zt-fcard__thumb.k-video { background: #efe9fb; color: #5b3fc4; }
:root[data-theme="dark"] .zt-fcard__thumb[class*="k-"] { background: var(--panel); }
.zt-fcard__b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.zt-fcard__b strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-fcard__b small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-fcard__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.zt-fview { display: grid; place-items: center; min-height: 240px; border-radius: 12px; background: var(--panel); overflow: hidden; margin-bottom: 16px; }
.zt-fview img { max-height: 60vh; width: auto; }
.zt-fview iframe { width: 100%; height: 62vh; border: 0; background: #fff; }
.zt-filebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.zt-filebar input[type=search] { height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); min-width: 220px; }

/* Signature pad and the agreement document */
.zt-sign { border: 1px dashed var(--line-2); border-radius: 12px; background: #fff; position: relative; }
.zt-sign canvas { display: block; width: 100%; height: 160px; touch-action: none; cursor: crosshair; }
.zt-sign__line { position: absolute; left: 20px; right: 20px; bottom: 34px; border-bottom: 1px solid #c9c4d4; pointer-events: none; }
.zt-sign__hint { position: absolute; left: 20px; bottom: 10px; font-size: 12px; color: #8a8496; pointer-events: none; }
.zt-sign.is-signed .zt-sign__hint { visibility: hidden; }
.zt-sign__clear { position: absolute; top: 8px; right: 8px; }
.zt-agr { background: #fff; color: #1d1a24; border-radius: 4px; box-shadow: var(--shadow); padding: 48px 56px; max-width: 820px; margin: 0 auto 18px; font: 15px/1.65 Georgia, "Times New Roman", serif; }
.zt-agr__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 3px solid #6d28d9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.zt-agr__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #17141f; }
.zt-agr__brand img { width: 34px; height: 34px; }
.zt-agr__ref { text-align: right; font-size: 12px; color: #6b6578; line-height: 1.5; }
.zt-agr__ref strong { display: block; font-size: 13px; color: #17141f; letter-spacing: .04em; }
.zt-agr h1 { font: 700 26px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0 0 6px; color: #17141f; }
.zt-agr h2 { font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 26px 0 8px; color: #17141f; }
.zt-agr p { margin: 0 0 10px; }
.zt-agr__parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 8px; font: 13.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.zt-agr__parties div { padding: 12px 14px; border: 1px solid #e7e3ee; border-radius: 10px; background: #faf9fc; }
.zt-agr__parties small { display: block; color: #6b6578; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; margin-bottom: 3px; }
.zt-agr__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 8px 0 4px; border: 1px solid #e7e3ee; border-radius: 10px; overflow: hidden; font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.zt-agr__facts div { padding: 10px 12px; border-right: 1px solid #e7e3ee; }
.zt-agr__facts div:last-child { border-right: 0; }
.zt-agr__facts dt { color: #6b6578; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.zt-agr__facts dd { margin: 2px 0 0; font-weight: 600; }
.zt-agr__sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 18px; font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.zt-agr__sig small { color: #6b6578; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.zt-agr__sigline { height: 72px; display: flex; align-items: flex-end; border-bottom: 1px solid #b9b3c6; margin: 6px 0 8px; }
.zt-agr__sigline img { max-height: 68px; max-width: 100%; }
.zt-agr__typed { font: italic 30px/1 "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; color: #1d1a24; padding-bottom: 6px; }
.zt-agr__foot { margin-top: 30px; padding-top: 12px; border-top: 1px solid #e7e3ee; font: 11.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #8a8496; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zt-audit { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.zt-audit li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.zt-audit li:last-child { border: 0; }
.zt-audit small { display: block; color: var(--muted); }
.zt-clauses { display: flex; flex-direction: column; gap: 10px; }
.zt-clause { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--subtle); }
.zt-clause__head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.zt-clause__head input { flex: 1; font-weight: 650; }
.zt-clause textarea { width: 100%; }
@media (max-width: 640px) { .zt-agr { padding: 26px 20px; } .zt-agr__parties, .zt-agr__sigs { grid-template-columns: 1fr; } }

/* Reminders and the portal card */
.zt-rem { list-style: none; margin: 0; padding: 0; }
.zt-rem li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zt-rem li:last-child { border: 0; }
.zt-rem__when { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--panel); line-height: 1.05; text-align: center; }
.zt-rem__when b { font-size: 15px; }
.zt-rem__when small { font-size: 10.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.zt-rem__t { flex: 1; min-width: 0; }
.zt-rem__t small { display: block; color: var(--muted); }
.zt-rem li.is-late .zt-rem__when { background: var(--bad-soft); color: var(--bad); }
.zt-rem li.is-soon .zt-rem__when { background: var(--warn-soft); color: var(--warn); }
.zt-remind { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.zt-remind .zt-field { flex: 1 1 160px; }
.zt-channel { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--panel); color: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.zt-msg.is-logged { box-shadow: none; outline: 1px dashed var(--line-2); outline-offset: -1px; }
a.zt-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.zt-chip b { font-size: 11px; color: var(--muted); font-weight: 700; }
.zt-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.zt-chip.is-on b { color: inherit; opacity: .7; }
.zt-orgpick { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--subtle); margin-bottom: 14px; }
.zt-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zt-lines td:last-child { width: 36px; }
.zt-steps { margin: 0 0 14px; padding-left: 20px; }
.zt-steps li { margin: 4px 0; }
.zt-thread .zt-chips { margin-top: 8px; }

/* Organisation logos */
.zt-orglogo { display: inline-grid; place-items: center; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 800; box-shadow: inset 0 0 0 1px var(--brand-line); overflow: hidden; }
.zt-orglogo.has-img { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.zt-orglogo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.zt-orghead__pick { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 15px; position: relative; }
.zt-orghead__pick:hover .zt-orglogo { box-shadow: inset 0 0 0 2px var(--brand-2); }
.zt-orghead .zt-orglogo { border-radius: 15px; }
.zt-logopick { display: flex; align-items: center; gap: 14px; }
.zt-logopick > div { display: flex; flex-direction: column; gap: 6px; }
.zt-portal-org { display: inline-flex; align-items: center; gap: 8px; }
.zt-person-cell .zt-orglogo { border-radius: 8px; }

/* ---------- 1.3: rich text (the editor and what it writes) ---------- */
.zt-rich > :first-child { margin-top: 0; }
.zt-rich > :last-child { margin-bottom: 0; }
.zt-rich p { margin: 0 0 .65em; }
.zt-rich h3 { font-size: 1.02rem; margin: 1em 0 .35em; }
.zt-rich h4 { font-size: .94rem; margin: .9em 0 .3em; }
.zt-rich ul, .zt-rich ol { margin: 0 0 .7em; padding-left: 1.35em; }
.zt-rich li { margin: .15em 0; }
.zt-rich li::marker { color: var(--muted); }
.zt-rich blockquote { margin: 0 0 .7em; padding: 2px 0 2px 12px; border-left: 3px solid var(--brand-line); color: var(--ink-2); }
.zt-rich hr { border: 0; border-top: 1px solid var(--line); margin: 1em 0; }
.zt-rich a { word-break: break-word; }
.zt-rte { border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.zt-rte.is-focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.zt-rte.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.zt-rte__bar { display: flex; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--line); background: var(--subtle); border-radius: 10px 10px 0 0; flex-wrap: wrap; position: sticky; top: 0; z-index: 1; }
.zt-rte__b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 14px; line-height: 1; }
.zt-rte__b:hover { background: var(--hover); color: var(--ink); }
.zt-rte__b[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.zt-rte__b b, .zt-rte__b i, .zt-rte__b u { font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.zt-rte__ol { font-weight: 700; font-size: 12.5px; }
.zt-rte__q { font: 700 22px/1 Georgia, serif; margin-top: 8px; }
.zt-rte__x { font-family: Georgia, serif; font-size: 14px; } .zt-rte__x sub { font-size: 9px; }
.zt-rte__code { font: 600 11.5px ui-monospace, Menlo, monospace; }
.zt-rte__sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }
.zt-rte__grow { flex: 1; }
.zt-rte__link { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); background: var(--subtle); }
.zt-rte__link input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); }
.zt-rte__area { min-height: calc(var(--rows, 4) * 1.5em + 20px); max-height: 60vh; overflow: auto; padding: 10px 12px; outline: none; line-height: 1.55; cursor: text; }
.zt-rte.is-empty .zt-rte__area::before { content: attr(data-placeholder); color: var(--faint); pointer-events: none; position: absolute; }
.zt-rte textarea.zt-rte__src, .zt-field .zt-rte textarea.zt-rte__src { display: none; width: 100%; padding: 10px 12px; background: var(--paper); color: var(--ink); resize: vertical; border: 0; border-radius: 0 0 10px 10px; min-height: calc(var(--rows, 4) * 1.5em + 20px); font: 12.5px/1.5 ui-monospace, Menlo, monospace; outline: none; }
.zt-rte.is-source .zt-rte__area { display: none; }
.zt-rte.is-source textarea.zt-rte__src { display: block; }
.zt-rte.is-source .zt-rte__b:not([data-cmd="source"]) { opacity: .35; pointer-events: none; }
.zt-rte:not([data-zt-rte]) textarea, .no-js .zt-rte textarea { display: block; }
.zt-rte__area { position: relative; }
.zt-comment-form { flex-direction: column; align-items: stretch; }
.zt-comment-form .zt-field { width: 100%; margin-bottom: 8px; }
.zt-comment-form .zt-field > label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zt-comment-form > .zt-btn { align-self: flex-end; }

/* ---------- 1.3: the messages inbox (list on the left, conversation on the right) ---------- */
.zt-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .zt-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zt-ibx { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--top) - 120px); min-height: 560px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.zt-ibx__side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--subtle); }
.zt-ibx__tools { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.zt-ibx__new { display: flex; gap: 6px; }
.zt-ibx__new > .zt-btn { flex: 1; justify-content: center; }
.zt-ibx__search { position: relative; display: block; }
.zt-ibx__search .zt-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.zt-ibx__search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); }
.zt-ibx__search input:focus { border-color: var(--brand-2); outline: 3px solid var(--brand-soft); outline-offset: 0; }
.zt-ibx__chips { margin: 0; gap: 5px; }
.zt-ibx__chips .zt-chip { padding: 4px 10px; font-size: 12px; }
.zt-ibx__list { overflow-y: auto; flex: 1; min-height: 0; }
.zt-ibx__item { display: grid; gap: 4px; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.zt-ibx__item:hover { background: var(--hover); }
.zt-ibx__item.is-on { background: var(--paper); box-shadow: inset 3px 0 0 var(--brand); }
.zt-ibx__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.zt-ibx__top strong { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 7px; min-width: 0; }
.zt-ibx__top small { color: var(--faint); font-size: 11.5px; white-space: nowrap; flex: none; }
.zt-ibx__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.zt-ibx__prev { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-ibx__prev b { color: var(--ink-2); font-weight: 600; }
.zt-ibx__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zt-ibx__tags small { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); font-size: 11.5px; }
.zt-ibx__none { padding: 22px 16px; color: var(--muted); font-size: 13px; }
.zt-ibx__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.zt-ibx__back { display: none; align-items: center; gap: 6px; padding: 12px 16px 0; font-size: 13px; text-decoration: none; }
.zt-ibx__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 16px 22px 14px; border-bottom: 1px solid var(--line); }
.zt-ibx__head h2 { font-size: 1.08rem; }
.zt-ibx__head p { margin: 4px 0 0; font-size: 12.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.zt-ibx__acts { display: flex; align-items: center; gap: 8px; flex: none; }
.zt-ibx__body { flex: 1; overflow-y: auto; padding: 18px 22px; min-height: 0; background: var(--paper); }
.zt-ibx__reply { border-top: 1px solid var(--line); padding: 12px 22px 16px; background: var(--subtle); max-height: 58%; overflow-y: auto; }
.zt-ibx__empty { margin: auto; max-width: 420px; }
.zt-ibx__send { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.zt-ibx__send > .zt-muted { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.zt-ibx__send .zt-check { margin: 0; font-size: 13px; }
.zt-ibx__send .zt-help { display: none; }
.zt-ibx__attach { margin-top: 8px; font-size: 13px; }
.zt-ibx__attach summary { cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; list-style: none; }
.zt-ibx__attach summary::-webkit-details-marker { display: none; }
.zt-ibx__attach[open] summary { margin-bottom: 8px; }
.zt-mono { font: 12px ui-monospace, Menlo, monospace; }
.zt-thread__earlier > summary { cursor: pointer; text-align: center; font-size: 12.5px; color: var(--brand); list-style: none; padding: 6px; border: 1px dashed var(--line-2); border-radius: 999px; margin-bottom: 10px; }
.zt-thread__earlier > summary::-webkit-details-marker { display: none; }
.zt-thread__earlier[open] > summary { display: none; }
.zt-msgrow { display: flex; gap: 10px; align-items: flex-end; max-width: 86%; }
.zt-msgrow.is-team { align-self: flex-end; flex-direction: row-reverse; }
.zt-msgrow > .zt-avatar, .zt-msgrow > img { flex: none; border-radius: 50%; }
.zt-msgrow .zt-msg { max-width: none; min-width: 0; }
.zt-msg .zt-rich { font-size: 14px; }
/* Send / Log switch */
.zt-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border-radius: 10px; margin-bottom: 10px; }
.zt-seg label { cursor: pointer; }
.zt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.zt-seg span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.zt-seg input:checked + span { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.zt-seg input:focus-visible + span { outline: 2px solid var(--brand-2); }
.zt-mode__log { display: none; }
.zt-mode:has(input[value="log"]:checked) .zt-mode__log { display: block; }
.zt-mode:has(input[value="log"]:checked) .zt-mode__send { display: none; }
@media (max-width: 860px) {
	.zt-ibx { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; }
	.zt-ibx__side { border-right: 0; }
	.zt-ibx.is-open .zt-ibx__side { display: none; }
	.zt-ibx:not(.is-open) .zt-ibx__pane { display: none; }
	.zt-ibx__back { display: inline-flex; }
	.zt-ibx__list { max-height: none; }
	.zt-ibx__head, .zt-ibx__body, .zt-ibx__reply { padding-left: 14px; padding-right: 14px; }
	.zt-ibx__reply { max-height: none; }
	.zt-msgrow { max-width: 100%; }
}
/* Room under the page so the assistant button never sits on top of a Save or Send button. */
.zt-body:not(.is-portal) .zt-main { padding-bottom: 104px; }
.zt-fab { transition: transform .15s, opacity .15s; }
.is-writing .zt-fab { opacity: 0; pointer-events: none; transform: scale(.7); }
@media (max-width: 860px) { .zt-ibx.is-portal { height: auto; min-height: 0; } }
@media (max-width: 560px) { .zt-rte__bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .zt-rte__bar::-webkit-scrollbar { display: none; } .zt-rte__grow { min-width: 6px; } }
/* ---------- 1.3: Team / Office switch in the sidebar ---------- */
.zt-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 0 12px 10px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .06); flex: none; }
.zt-apps > * { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--side-muted); text-decoration: none; }
.zt-apps a:hover { color: #fff; background: var(--side-hover); }
.zt-apps .zt-apps__on { background: rgba(255, 255, 255, .12); color: #fff; }
.zt-rail .zt-apps { grid-template-columns: 1fr; margin: 0 10px 10px; }
.zt-rail .zt-apps span span { display: none; }
.zt-rail .zt-apps > * > span { display: none; }

/* ---------- 1.3: organisation logos, redone ---------- */
.zt-orglogo { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 24%; overflow: hidden; font-weight: 750; letter-spacing: -.02em; line-height: 1; box-shadow: none; background: var(--panel); color: var(--ink-2); }
.zt-orglogo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(23, 20, 31, .08); pointer-events: none; }
.zt-orglogo.has-img { background: #fff; }
.zt-orglogo img { width: 100%; height: 100%; object-fit: contain; padding: 9%; display: block; }
.zt-orglogo.is-initial.h1 { background: linear-gradient(145deg, #efeafe, #e2d9fc); color: #5531c4; }
.zt-orglogo.is-initial.h2 { background: linear-gradient(145deg, #e6f5ee, #d3ecdf); color: #1b6e4c; }
.zt-orglogo.is-initial.h3 { background: linear-gradient(145deg, #fdf1e4, #f8e1c8); color: #93500f; }
.zt-orglogo.is-initial.h4 { background: linear-gradient(145deg, #e7f0fd, #d4e3fb); color: #234fae; }
.zt-orglogo.is-initial.h5 { background: linear-gradient(145deg, #fdeaf0, #f9d6e1); color: #a42a55; }
:root[data-theme="dark"] .zt-orglogo.is-initial[class*=" h"] { background: var(--panel); color: var(--ink-2); }
:root[data-theme="dark"] .zt-orglogo::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- 1.3: the organisation's record card ---------- */
.zt-rec { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px 24px 18px; margin: 0 0 14px; }
.zt-rec__top { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.zt-rec__logo { box-shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 6px 16px -8px rgba(20, 10, 40, .18); }
.zt-rec__pick { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 24%; flex: none; }
.zt-rec__pick:hover .zt-orglogo::after { box-shadow: inset 0 0 0 2px var(--brand-2); }
.zt-rec__cam { position: absolute; right: -5px; bottom: -5px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink-2); box-shadow: var(--shadow); opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; }
.zt-rec__pick:hover .zt-rec__cam, .zt-rec__pick:focus-visible .zt-rec__cam { opacity: 1; transform: none; }
.zt-rec__t { flex: 1; min-width: 240px; }
.zt-rec__t h1 { font-size: 1.6rem; letter-spacing: -.02em; }
.zt-rec__tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 7px 0 0; }
.zt-rec__reach { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 13.5px; }
.zt-rec__reach a, .zt-rec__reach span { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; }
.zt-rec__reach a:hover { color: var(--brand); }
.zt-rec__reach .zt-icon { color: var(--faint); }
.zt-rec__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 18px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.zt-rec__facts > div { padding: 10px 14px; border-right: 1px solid var(--line); margin-right: -1px; min-width: 0; background: var(--subtle); }
.zt-rec__facts dt { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); margin-bottom: 3px; }
.zt-rec__facts dd { margin: 0; font-weight: 650; font-size: 14px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.zt-rec__facts dd > .zt-avatar { display: none; }
.zt-rec__facts dd small { font-weight: 500; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-rec__facts .is-warn dd { color: var(--warn); }
.zt-rec__facts .is-bad dd { color: var(--bad); }
.zt-rec__facts .is-good dd { color: var(--ok); }
.zt-rec__facts .is-muted dd { color: var(--muted); font-weight: 550; }
.zt-rec .zt-journey { margin: 16px 0 0; }
/* What's next */
.zt-nextbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin: 0 0 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow); border-left: 4px solid var(--brand); }
.zt-nextbar__i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.zt-nextbar__t { flex: 1; min-width: 0; }
.zt-nextbar__l { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.zt-nextbar__t p { margin: 1px 0 0; font-weight: 600; }
.zt-nextbar__t p small { font-weight: 450; color: var(--muted); font-size: 13px; }
.zt-nextbar__own { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.zt-nextbar__b { flex: none; }
.zt-nextbar.is-warn { border-left-color: var(--warn); } .zt-nextbar.is-warn .zt-nextbar__i { background: var(--warn-soft); color: var(--warn); } .zt-nextbar.is-warn .zt-nextbar__l { color: var(--warn); }
.zt-nextbar.is-wait { border-left-color: var(--info); } .zt-nextbar.is-wait .zt-nextbar__i { background: var(--info-soft); color: var(--info); } .zt-nextbar.is-wait .zt-nextbar__l { color: var(--info); }
.zt-nextbar.is-done { border-left-color: var(--ok); } .zt-nextbar.is-done .zt-nextbar__i { background: var(--ok-soft); color: var(--ok); } .zt-nextbar.is-done .zt-nextbar__l { color: var(--ok); }
.zt-link-btn { border: 0; background: none; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
	.zt-rec { padding: 16px; }
	.zt-rec__top { gap: 14px; }
	.zt-rec__t { min-width: 0; flex-basis: calc(100% - 100px); }
	.zt-rec__t h1 { font-size: 1.3rem; }
	.zt-rec__top .zt-head__actions { width: 100%; }
	.zt-rec__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.zt-rec__facts > div { border-bottom: 1px solid var(--line); }
	.zt-nextbar { flex-wrap: wrap; }
	.zt-nextbar__b { width: 100%; padding-left: 48px; }
}
@media print { .zt-rec, .zt-nextbar { box-shadow: none; } .zt-nextbar { display: none; } }
.zt-rec__facts dd a { color: inherit; text-decoration: none; } .zt-rec__facts dd a:hover { text-decoration: underline; }

/* ---------- 1.3: organisation cards and lists ---------- */
.zt-orgcards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.zt-orgcard { gap: 12px; padding: 16px 16px 12px; transition: box-shadow .15s, transform .15s; }
.zt-orgcard:hover { transform: translateY(-1px); }
.zt-orgcard.is-closed { opacity: .7; }
.zt-orgcard__top { align-items: flex-start; gap: 12px; }
.zt-orgcard__name { flex: 1; min-width: 0; padding-top: 2px; }
.zt-orgcard__name strong { font-size: 14.5px; line-height: 1.3; }
.zt-orgcard__name small { display: block; margin-top: 3px; font-size: 12.5px; }
.zt-orgcard__top .zt-ibx__dot { margin-top: 8px; }
.zt-orgcard__next { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 9px; background: var(--subtle); font-size: 13px; color: var(--ink-2); min-height: 40px; }
.zt-orgcard__next > span { display: flex; gap: 6px; align-items: flex-start; } .zt-orgcard__next .zt-icon { margin-top: 3px; color: var(--muted); }
.zt-orgcard__next.is-none { color: var(--faint); align-items: center; }
.zt-orgcard__foot { align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.zt-orgcard__meta { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12.5px; margin-right: auto; }
.zt-orgcard__meta .zt-avatar { margin-right: 6px; }
.zt-searchbox { position: relative; display: inline-flex; align-items: center; }
.zt-searchbox .zt-icon { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.zt-quick .zt-searchbox input[type=search], .zt-searchbox input { padding-left: 34px !important; min-width: 260px; }
.zt-table tr.is-link { cursor: pointer; }
.zt-table tr.is-link:hover td { background: var(--hover); }
@media (max-width: 720px) { .zt-quick .zt-searchbox, .zt-searchbox input { min-width: 0; width: 100%; } }
/* ---------- 1.3: stat tiles with a small trend line ---------- */
.zt-stat { position: relative; overflow: hidden; }
.zt-stat__row { display: flex; align-items: baseline; gap: 8px; }
.zt-delta { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.zt-delta.is-up { color: var(--ok); background: var(--ok-soft); }
.zt-delta.is-down { color: var(--bad); background: var(--bad-soft); }
.zt-delta.is-flat { color: var(--muted); background: var(--panel); }
.zt-spark { display: block; width: 100%; height: 30px; margin-top: 8px; }
.zt-spark__line { fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.zt-spark__fill { fill: var(--brand-soft); opacity: .8; }
.zt-stat.is-warn .zt-spark__line { stroke: var(--warn); } .zt-stat.is-warn .zt-spark__fill { fill: var(--warn-soft); }
.zt-stat.is-bad .zt-spark__line { stroke: var(--bad); } .zt-stat.is-bad .zt-spark__fill { fill: var(--bad-soft); }
.zt-otasks { list-style: none; margin: 0 0 12px; padding: 0; }
.zt-otask { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.zt-otask:last-child { border-bottom: 0; }
.zt-otask > a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 550; }
.zt-otask > a:hover { color: var(--brand); }
.zt-otask .zt-tick:hover { border-color: var(--ok); background: var(--ok-soft); }
.zt-otask__add { display: flex; gap: 6px; }
.zt-otask__add input[type=text] { flex: 1; }
.zt-otask__add input[type=date] { width: 150px; flex: none; }
@media (max-width: 560px) { .zt-otask__add { flex-wrap: wrap; } .zt-otask__add input[type=date] { flex: 1; } }
.zt-keys { list-style: none; margin: 0; padding: 0; }
.zt-keys li { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.zt-keys li > span { flex: none; min-width: 150px; display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12.5px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--subtle); color: var(--ink-2); font: 600 11.5px ui-monospace, Menlo, monospace; }

/* ---------- 1.3.1: "?" bubbles, the logo picker, drawer buttons at the bottom ---------- */
.zt-tip { position: fixed; z-index: 1000; max-width: min(300px, calc(100vw - 16px)); padding: 9px 12px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font-size: 12.5px; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow-lg); pointer-events: none; animation: zt-pop .12s var(--ease); }
.zt-field__label { display: flex; align-items: center; font-weight: 650; font-size: 13px; margin-bottom: 8px; color: var(--ink-2); }
.zt-logopick { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--subtle); }
.zt-logopick__tile { position: relative; flex: none; cursor: pointer; border-radius: 24%; transition: transform .15s; }
.zt-logopick__tile:hover { transform: scale(1.03); }
.zt-logopick__tile .zt-orglogo { box-shadow: 0 1px 2px rgba(20, 10, 40, .06), 0 6px 16px -8px rgba(20, 10, 40, .2); }
.zt-logopick__tile.is-over .zt-orglogo::after { box-shadow: inset 0 0 0 3px var(--brand-2); }
.zt-orglogo.is-empty { background: var(--paper); color: var(--faint); }
.zt-logopick__t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zt-logopick__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.zt-logopick__rm { cursor: pointer; }
.zt-logopick__rm.is-on { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.zt-logopick.is-removing .zt-logopick__tile { opacity: .4; }
.zt-logopick .zt-help { margin: 0; word-break: break-word; }
.zt-help.is-bad { color: var(--bad); }
.zt-dialog__body { display: flex; flex-direction: column; }
.zt-dialog__body > form, .zt-dialog__body > .zt-drawer-content, .zt-drawer-content > form { flex: 1 0 auto; display: flex; flex-direction: column; }
.zt-dialog__body > form > .zt-dialog__foot, .zt-drawer-content > form > .zt-dialog__foot { margin-top: auto; }
.zt-dialog__body:has(.zt-dialog__foot)::after { display: none; }
.zt-dialog__body:has(.zt-dialog__foot) .zt-dialog__foot { margin-bottom: 0; }
.zt-drawer-content > .zt-card:last-child:has(.zt-dialog__foot) { flex: 1 0 auto; display: flex; flex-direction: column; }
.zt-drawer-content > .zt-card:last-child > form:has(> .zt-dialog__foot) { flex: 1 0 auto; display: flex; flex-direction: column; }
.zt-drawer-content > .zt-card:last-child > form > .zt-dialog__foot { margin-top: auto; }
.zt-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.zt-logopick__tile:focus-within .zt-orglogo::after { box-shadow: inset 0 0 0 2px var(--brand-2); }
.zt-drawer-content > .zt-card:last-child:has(.zt-dialog__foot) { border: 0 !important; padding: 0; background: none; box-shadow: none; border-radius: 0; }

/* ---------- 1.4: every text box and drop-down looks the same, wherever it sits ---------- */
:where(.zt-body) :where(select, input[type=text], input[type=search], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=password]) { height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background-color: var(--paper); color: var(--ink); font: inherit; font-size: 14px; max-width: 100%; }
:where(.zt-body) :where(textarea) { padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; max-width: 100%; }
:where(.zt-body) :where(select, input, textarea):focus-visible { border-color: var(--brand-2); outline: 3px solid var(--brand-soft); outline-offset: 0; }
.zt-body select { -webkit-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6578' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; text-overflow: ellipsis; }
.zt-body select:hover { border-color: var(--faint); }
.zt-body input:disabled, .zt-body select:disabled { background-color: var(--panel); color: var(--muted); cursor: not-allowed; }
.zt-filebar { gap: 10px; }
.zt-filebar .zt-searchbox { flex: 1 1 240px; max-width: 360px; }
.zt-filebar .zt-searchbox input { width: 100%; min-width: 0; }
.zt-filebar select { height: 36px; width: auto; }
.zt-filebar .zt-chips { margin: 0; }
.zt-emptystate { display: flex; flex-direction: column; align-items: center; padding: 40px 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.zt-card .zt-emptystate, .zt-ibx .zt-emptystate, .zt-dialog .zt-emptystate { background: none; box-shadow: none; padding: 26px 12px; }
.zt-emptystate__i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.zt-emptystate .zt-muted { max-width: 440px; margin: 0 auto; }

/* ---------- 1.4: file-type icons, file chips, the viewer ---------- */
.zt-ftype { flex: none; display: block; overflow: visible; --ft: #6b6578; }
.zt-ftype__p { fill: var(--paper); stroke: var(--line-2); stroke-width: 1.4; }
.zt-ftype__f { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.4; stroke-linejoin: round; }
.zt-ftype__l { fill: var(--ft); }
.zt-ftype__t { fill: #fff; font: 700 8.6px/1 Inter, system-ui, sans-serif; letter-spacing: .03em; }
.zt-ftype.k-pdf { --ft: #d43f33; } .zt-ftype.k-doc { --ft: #2f66d0; } .zt-ftype.k-sheet { --ft: #1f8a5b; } .zt-ftype.k-slides { --ft: #d9730d; } .zt-ftype.k-image { --ft: #8b5cf6; } .zt-ftype.k-video { --ft: #c0338f; } .zt-ftype.k-zip { --ft: #8a6d1d; } .zt-ftype.k-design { --ft: #0f8a94; } .zt-ftype.k-text { --ft: #55506a; }
.zt-fcard__thumb { height: 128px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.zt-fcard__thumb[class*="k-"] { color: inherit; }
.zt-fcard__thumb.k-pdf { background: #fdf1f0; } .zt-fcard__thumb.k-doc { background: #eef3fd; } .zt-fcard__thumb.k-sheet { background: #ebf6f0; } .zt-fcard__thumb.k-slides { background: #fdf3e8; } .zt-fcard__thumb.k-video { background: #fbeef6; } .zt-fcard__thumb.k-zip { background: #f8f3e4; } .zt-fcard__thumb.k-design { background: #e8f5f6; } .zt-fcard__thumb.k-text, .zt-fcard__thumb.k-other { background: var(--subtle); }
.zt-fcard__thumb .zt-ftype { filter: drop-shadow(0 4px 8px rgba(20, 10, 40, .1)); transition: transform .18s var(--ease); }
.zt-fcard:hover .zt-fcard__thumb .zt-ftype { transform: translateY(-2px) scale(1.04); }
.zt-fcard__thumb img { transition: transform .25s var(--ease); }
.zt-fcard:hover .zt-fcard__thumb img { transform: scale(1.03); }
.zt-fcard__n { display: flex; align-items: center; gap: 7px; min-width: 0; }
.zt-fcard__n strong { min-width: 0; }
.zt-fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.zt-fchip { display: inline-flex; align-items: center; gap: 8px; max-width: 280px; padding: 6px 12px 6px 8px; border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-size: 13px; }
.zt-fchip:hover { box-shadow: var(--shadow-lg); }
.zt-fchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.zt-fchip small { color: var(--muted); flex: none; font-size: 11.5px; }
.zt-drop__ico { flex: none; display: grid; place-items: center; width: 30px; }
.zt-receipts .is-doc { display: grid; place-items: center; }
.zt-minefiles { list-style: none; margin: 0; padding: 0; }
.zt-minefiles li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.zt-minefiles li:last-child { border-bottom: 0; }
.zt-minefiles li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.zt-inline { display: inline; margin: 0; }
.zt-viewer { position: fixed; inset: 0; margin: auto; width: min(1120px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10, 5, 25, .55), 0 0 0 1px var(--ring); overflow: hidden; }
.zt-viewer[open] { display: flex; flex-direction: column; animation: zt-pop .18s var(--ease); }
.zt-viewer::backdrop { background: rgba(14, 10, 24, .62); backdrop-filter: blur(3px); }
.zt-viewer__head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); flex: none; min-height: 60px; }
.zt-viewer__ico { flex: none; }
.zt-viewer__t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.zt-viewer__t strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-viewer__t small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-viewer__acts { display: flex; align-items: center; gap: 6px; flex: none; }
.zt-viewer__nav { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
.zt-viewer__nav[hidden], .zt-viewer [hidden] { display: none !important; }
.zt-viewer__count { font-size: 12px; color: var(--muted); min-width: 48px; text-align: center; }
.zt-viewer__body { flex: 1; min-height: 0; display: grid; place-items: center; background: var(--panel); overflow: auto; position: relative; }
.zt-viewer__wait { color: var(--muted); font-size: 13px; }
.zt-viewer__img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.zt-viewer__img.is-zoom { max-width: none; max-height: none; cursor: zoom-out; }
.zt-viewer.is-pdf .zt-viewer__body, .zt-viewer.is-office .zt-viewer__body { display: flex; flex-direction: column; }
.zt-viewer__frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.zt-viewer__video { max-width: 100%; max-height: 100%; background: #000; }
.zt-viewer__note { flex: none; margin: 0; padding: 7px 14px; font-size: 12px; color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); text-align: center; }
.zt-viewer__text { align-self: stretch; justify-self: stretch; margin: 0; padding: 20px 24px; background: var(--paper); font: 13px/1.6 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; overflow: auto; }
.zt-viewer__sheet { align-self: stretch; justify-self: stretch; overflow: auto; background: var(--paper); }
.zt-viewer__sheet table { border-collapse: collapse; font-size: 12.5px; min-width: 100%; }
.zt-viewer__sheet th, .zt-viewer__sheet td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.zt-viewer__sheet th { position: sticky; top: 0; background: var(--subtle); font-weight: 650; }
.zt-viewer__none { display: grid; justify-items: center; gap: 6px; padding: 30px; text-align: center; }
.zt-viewer__none .zt-ftype { margin-bottom: 10px; filter: drop-shadow(0 6px 12px rgba(20, 10, 40, .12)); }
.zt-viewer__none p { margin: 0; } .zt-viewer__none .zt-btn { margin-top: 12px; }
@media (max-width: 720px) {
	.zt-viewer { width: 100vw; height: 100dvh; border-radius: 0; }
	.zt-viewer__acts .zt-btn span { display: none; }
	.zt-viewer__count { display: none; }
}
/* ---------- 1.4: notification choices (switches in a table) ---------- */
.zt-prefs { width: 100%; border-collapse: collapse; }
.zt-prefs th, .zt-prefs td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.zt-prefs thead th { font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; padding-top: 0; }
.zt-prefs thead th .zt-icon { vertical-align: -2px; }
.zt-prefs tbody th { text-align: left; font-weight: 500; padding-left: 0; }
.zt-prefs tbody th strong { display: block; font-weight: 650; font-size: 14px; }
.zt-prefs tbody th small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.zt-prefs tbody tr:last-child th, .zt-prefs tbody tr:last-child td { border-bottom: 0; }
.zt-prefs td { width: 84px; }
.zt-prefs td select { height: 34px; font-size: 13px; }
.zt-prefs td.is-when { width: 170px; }
.zt-switch { position: relative; display: inline-flex; cursor: pointer; }
.zt-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.zt-switch span { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background .15s; position: relative; }
.zt-switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s var(--ease); }
.zt-switch input:checked + span { background: var(--brand); }
.zt-switch input:checked + span::after { transform: translateX(16px); }
.zt-switch input:focus-visible + span { outline: 3px solid var(--brand-soft); }
.zt-switch input:disabled + span { opacity: .45; }
.zt-always { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok); font-weight: 600; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .zt-prefs td { width: 58px; } .zt-prefs td.is-when { width: 120px; } }

/* ---------- 1.4: voting on ideas ---------- */
.zt-vote__bar { position: relative; height: 10px; border-radius: 999px; background: var(--panel); margin: 4px 0 10px; }
.zt-vote__bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand-2); transition: width .3s var(--ease); max-width: 100%; }
.zt-vote__bar.is-passed i { background: var(--ok); }
.zt-vote__bar b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink-2); }
.zt-vote__n { margin: 0 0 10px; font-size: 13.5px; }
.zt-vote__whos { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.zt-vote__who { display: inline-flex; align-items: center; gap: 4px; }
.zt-vote__who em { font-style: normal; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 4px; }
.zt-vote__who.is-yes em { color: var(--ok); }
.zt-vote__who .zt-avatar { margin-left: -4px; box-shadow: 0 0 0 2px var(--paper); }
.zt-vote.is-compact { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.zt-vote.is-compact .zt-vote__bar { flex: 1; height: 7px; margin: 0; min-width: 64px; }
.zt-vote.is-compact .zt-vote__bar b { top: -3px; bottom: -3px; }
.zt-vote.is-compact small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.zt-votebtns { display: flex; gap: 8px; flex-wrap: wrap; }
.zt-votebtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.zt-votebtn:hover { border-color: var(--faint); }
.zt-votebtn.is-yes:hover, .zt-votebtn.is-yes.is-on { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.zt-votebtn.is-no:hover, .zt-votebtn.is-no.is-on { background: var(--panel); border-color: var(--muted); color: var(--ink); }
.zt-votebtn.is-small { height: 28px; width: 30px; padding: 0; justify-content: center; border-radius: 8px; }
.zt-card .zt-votebtns .zt-inline { flex: 1; } .zt-card .zt-votebtns .zt-votebtn { width: 100%; justify-content: center; }
/* ---------- 1.4: a release's work ---------- */
.zt-relprog { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.zt-relprog .zt-progress { flex: 1; }
.zt-relprog span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.zt-work { list-style: none; margin: 0; padding: 0; }
.zt-work__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.zt-work__row:last-child { border-bottom: 0; }
.zt-work__row > .zt-icon { flex: none; color: var(--muted); }
.zt-work__row.is-idea > .zt-icon { color: var(--warn); }
.zt-work__row.is-done > .zt-icon { color: var(--ok); }
.zt-work__row > a { flex: 1; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-work__row.is-idea > a { font-weight: 650; }
.zt-work__row > a:hover { color: var(--brand); }
.zt-work__row.is-child { padding-left: 26px; }
.zt-work__row.is-done > a { color: var(--muted); text-decoration: line-through; }
.zt-icon-btn.is-tiny { width: 26px; height: 26px; }
.zt-picks { display: grid; gap: 2px; max-height: 34vh; overflow: auto; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.zt-picks__h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 6px; }
.zt-pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.zt-pick:hover { background: var(--hover); }
.zt-pick[hidden] { display: none; }
.zt-pick > span { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 7px; font-weight: 550; }
.zt-pick input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.zt-pick:has(input:checked) { background: var(--brand-soft); }

/* ---------- 1.4: the wiki ---------- */
.zt-wiki { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 18px; align-items: start; }
.zt-wiki > aside { position: sticky; top: calc(var(--top) + 14px); display: grid; gap: 14px; }
.zt-tree { list-style: none; margin: 0 -8px; padding: 0; }
.zt-tree a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 550; }
.zt-tree a:hover { background: var(--hover); color: var(--ink); }
.zt-tree a.is-on { background: var(--brand-soft); color: var(--brand); }
.zt-tree a .zt-icon { flex: none; color: var(--faint); } .zt-tree a.is-on .zt-icon { color: var(--brand); }
.zt-tree a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-tree a b { font-size: 11.5px; font-weight: 650; color: var(--faint); }
.zt-card.is-flush { padding: 0; overflow: hidden; }
.zt-wlist { list-style: none; margin: 0; padding: 0; }
.zt-wlist li + li { border-top: 1px solid var(--line); }
.zt-wlist a { display: flex; align-items: flex-start; gap: 12px; padding: 13px 18px; color: var(--ink); text-decoration: none; }
.zt-wlist a:hover { background: var(--hover); }
.zt-wlist a > .zt-icon { flex: none; margin-top: 2px; color: var(--brand-2); }
.zt-wlist a.is-folder > .zt-icon { color: var(--warn); }
.zt-wlist a > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.zt-wlist strong { font-size: 14.5px; font-weight: 650; }
.zt-wlist small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-wlist em { flex: none; font-style: normal; font-size: 12px; color: var(--faint); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; margin-top: 3px; }
.zt-wlist em i { font-style: normal; display: inline-flex; align-items: center; gap: 3px; }
.zt-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; margin: 0 0 8px; color: var(--muted); }
.zt-crumbs a { color: var(--muted); text-decoration: none; } .zt-crumbs a:hover { color: var(--brand); }
.zt-crumbs span { color: var(--ink-2); font-weight: 600; }
.zt-crumbs .zt-icon { transform: rotate(-90deg); color: var(--faint); }
.zt-doc { padding: 28px 32px; font-size: 15px; line-height: 1.7; }
.zt-doc > h1 { font-size: 1.7rem; letter-spacing: -.02em; margin: 0 0 4px; }
.zt-doc__meta { margin: 0 0 18px; font-size: 13px; }
.zt-doc .zt-rich { max-width: 74ch; }
.zt-doc .zt-rich h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; } .zt-doc .zt-rich h4 { font-size: 1.02rem; margin: 1.3em 0 .3em; }
.zt-doc .zt-rich p { margin-bottom: .9em; }
.zt-wikiform { padding: 22px 24px; }
.zt-wikiform .zt-rte__area { max-height: none; min-height: 46vh; font-size: 15px; line-height: 1.7; }
.zt-wikiform__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.zt-grid.is-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.zt-feed { list-style: none; margin: 0; padding: 0; }
.zt-feed li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.zt-feed li:last-child { border-bottom: 0; }
.zt-feed li > span { flex: 1; min-width: 0; }
.zt-feed small { display: block; color: var(--muted); font-size: 12px; }
.zt-feed.is-versions li { align-items: center; }
.zt-shares { list-style: none; margin: 0; padding: 0; }
.zt-shares li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.zt-shares li:last-child { border-bottom: 0; padding-bottom: 0; } .zt-shares li:first-child { padding-top: 0; }
.zt-shares__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.zt-shares small { font-size: 12px; }
.zt-wfiles { list-style: none; margin: 10px 0 0; padding: 0; }
.zt-wfiles li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.zt-wfiles li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; font-size: 13.5px; }
.zt-viewlog { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--muted); }
.zt-sharepage { max-width: 860px; }
.zt-sharepage__h { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; margin: 0 0 2px; }
.zt-sharegate { max-width: 400px; margin: 8vh auto 0; text-align: center; padding: 28px; display: grid; justify-items: center; }
.zt-sharegate h1 { font-size: 1.15rem; margin: 0 0 6px; } .zt-sharegate form { width: 100%; text-align: left; margin-top: 12px; }
@media (max-width: 900px) {
	.zt-wiki { grid-template-columns: minmax(0, 1fr); }
	.zt-wiki > aside { position: static; }
	.zt-grid.is-2-1 { grid-template-columns: minmax(0, 1fr); }
	.zt-doc { padding: 20px 18px; }
	.zt-wlist em { display: none; }
}
/* ---------- 1.4: thoughts: a wall of sticky notes ---------- */
.zt-subtabs { margin-bottom: 18px; }
.zt-subtabs a { display: inline-flex; align-items: center; gap: 6px; }
.zt-notes-board { columns: 4 250px; column-gap: 16px; }
.zt-note { --n: #fff6bf; --n-ink: #4a3f06; position: relative; break-inside: avoid; margin: 0 0 16px; padding: 16px 16px 12px; border-radius: 4px 4px 14px 4px; background: var(--n); color: var(--n-ink); box-shadow: 0 1px 1px rgba(40, 30, 0, .08), 0 8px 18px -10px rgba(40, 30, 0, .35); transition: transform .15s var(--ease), box-shadow .15s; }
.zt-note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; border-radius: 12px 0 14px 0; background: rgba(0, 0, 0, .07); }
.zt-notes-board .zt-note:nth-child(3n+1) { transform: rotate(-.6deg); } .zt-notes-board .zt-note:nth-child(3n+2) { transform: rotate(.5deg); }
.zt-notes-board .zt-note:hover { transform: translateY(-2px) rotate(0); box-shadow: 0 1px 1px rgba(40, 30, 0, .08), 0 16px 26px -12px rgba(40, 30, 0, .45); }
.zt-note-c-yellow { --n: #fff3b0; --n-ink: #473c04; } .zt-note-c-pink { --n: #ffd9e4; --n-ink: #561a2c; } .zt-note-c-blue { --n: #d6e8ff; --n-ink: #14315c; } .zt-note-c-green { --n: #d9f3d4; --n-ink: #173f17; } .zt-note-c-purple { --n: #e8ddff; --n-ink: #33206b; } .zt-note-c-orange { --n: #ffe2c2; --n-ink: #5a3208; }
.zt-note h3 { font-size: 15px; margin: 0 0 6px; color: inherit; }
.zt-note__b { font-size: 14px; line-height: 1.5; }
.zt-note__b .zt-rich a, .zt-note .zt-rich a { color: inherit; text-decoration: underline; }
.zt-note__b p { margin: 0 0 .5em; }
.zt-note footer { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; opacity: .78; }
.zt-note footer span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-note footer b { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; }
.zt-note__open { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.zt-note__open:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.zt-note__b a { position: relative; z-index: 2; }
.zt-note__pin { position: absolute; top: -8px; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; box-shadow: 0 3px 6px rgba(0, 0, 0, .25); z-index: 2; }
.zt-note.is-open { margin: 0 0 16px; padding: 22px 24px; font-size: 15px; line-height: 1.6; border-radius: 6px 6px 18px 6px; }
.zt-swatches { display: inline-flex; gap: 8px; }
.zt-swatches label { position: relative; cursor: pointer; }
.zt-swatches input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.zt-swatches i { display: block; width: 30px; height: 30px; border-radius: 8px; background: var(--n); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.zt-swatches input:checked + i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.zt-swatches input:focus-visible + i { outline: 3px solid var(--brand-soft); }
:root[data-theme="dark"] .zt-note { filter: saturate(.85) brightness(.92); }
.zt-note footer > .zt-avatar { flex: none; }
.zt-note footer > span:not(.zt-avatar) { flex: 1; }
.zt-note footer > span.zt-avatar { flex: none; overflow: visible; }
.zt-note__pin .zt-icon { color: #fff; stroke: #fff; }
.zt-flash.is-info { background: var(--info-soft); color: var(--info); }
.zt-flash.is-info a { color: inherit; font-weight: 650; }
.zt-card__head > .zt-row { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
	.zt-prefs.is-stack thead { display: none; }
	.zt-prefs.is-stack, .zt-prefs.is-stack tbody { display: block; }
	.zt-prefs.is-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
	.zt-prefs.is-stack th, .zt-prefs.is-stack td { border: 0; padding: 0; width: auto; }
	.zt-prefs.is-stack tbody th { flex: 1 0 100%; }
	.zt-prefs.is-stack td { display: inline-flex; align-items: center; gap: 6px; }
	.zt-prefs.is-stack td::before { content: attr(data-th); font-size: 12px; color: var(--muted); }
	.zt-prefs.is-stack td.is-when { width: auto; flex: 1 1 100%; }
	.zt-prefs.is-stack td.is-when select { flex: 1; }
}
@media (max-width: 960px) { .zt-grid.is-side-first > :last-child { order: -1; } }
