/* ОСТРО Студия — interface. Dark «штаб» surface so slides stay the brightest thing on screen.
   Sharp corners everywhere (the brand is literally «острый»), no shadows, gold for focus/active. */
@font-face { font-family: "OSTRO UI"; src: url("/fonts/Inter-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #0d0a0b;
  --panel: #141011;
  --raised: #1b1517;
  --hover: #241c1f;
  --line: #2a2124;
  --line-2: #3a2e32;
  --text: #f1ebe8;
  --text-2: #b5a9ab;
  --text-3: #85797c;
  --gold: #a2845e;
  --gold-hi: #c3a27a;
  --wine: #390517;
  --wine-hi: #6a1534;
  --green: #162f2c;
  --danger: #e06a5f;
  --warn: #d9a441;
  --ok: #78ad8e;
  --ui: "OSTRO UI", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 500 13px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11" 0;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(162, 132, 94, .45); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 1px; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.pre { white-space: pre-wrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -.01em; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.display { font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .9; }
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--panel); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; white-space: nowrap;
  font-weight: 500; letter-spacing: .01em; transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { background: var(--hover); border-color: #4a3b40; }
.btn:disabled { opacity: .45; cursor: default; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; gap: 6px; }
.btn-icon-only { padding: 0; width: 36px; }
.btn-sm.btn-icon-only { width: 30px; }
.btn-primary { background: var(--text); border-color: var(--text); color: #120d0e; font-weight: 600; clip-path: var(--cut); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #120d0e; font-weight: 700; clip-path: var(--cut); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-wine { background: var(--wine-hi); border-color: var(--wine-hi); color: #fff; }
.btn-wine:hover { background: #7e1c40; }
.btn-ghost { border-color: transparent; }
.btn-ghost:hover { border-color: transparent; }
.btn-danger { border-color: rgba(224, 106, 95, .5); color: #ffb3ab; }
.btn-danger:hover { background: rgba(224, 106, 95, .14); border-color: var(--danger); }
.btn .ic { flex: none; }

.ibtn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent;
  color: var(--text-2); cursor: pointer; transition: background .12s ease, color .12s ease; flex: none;
}
.ibtn:hover { background: var(--hover); color: var(--text); }
.ibtn.is-active { color: var(--gold-hi); background: rgba(162, 132, 94, .12); border-color: rgba(162, 132, 94, .35); }
.ibtn:disabled { opacity: .35; cursor: default; background: transparent; }

.spinner { display: inline-block; border: 2px solid var(--line-2); border-top-color: var(--gold-hi); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kbd { display: inline-block; min-width: 20px; padding: 1px 5px; border: 1px solid var(--line-2); font: 600 11px/16px var(--ui); color: var(--text-2); text-align: center; }

/* ------------------------------------------------------------ inputs */
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text);
  border-radius: 0; outline: none; transition: border-color .12s ease;
}
.textarea { height: auto; min-height: 90px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.select { appearance: none; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-inline { grid-template-columns: 110px 1fr; align-items: center; margin-bottom: 8px; }
.field-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.field-hint { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.row { display: flex; gap: 8px; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap-lg { gap: 16px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); background: var(--raised); }
.seg-btn { height: 32px; min-width: 34px; padding: 0 10px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--text-2); cursor: pointer; font-size: 12px; white-space: nowrap; flex: none; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn:hover { color: var(--text); background: var(--hover); }
.seg-btn.is-on { background: rgba(162, 132, 94, .18); color: var(--gold-hi); }
.seg-sm .seg-btn { height: 28px; min-width: 30px; padding: 0 7px; }
.seg-full { display: flex; } .seg-full .seg-btn { flex: 1; }

.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 0; margin-bottom: 8px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { width: 32px; height: 18px; border: 1px solid var(--line-2); background: var(--raised); position: relative; flex: none; transition: background .15s; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; background: var(--text-3); transition: transform .15s ease, background .15s; }
.toggle input:checked + .toggle-track { background: rgba(162, 132, 94, .25); border-color: var(--gold); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(14px); background: var(--gold-hi); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--gold-hi); }
.toggle-label { display: grid; font-size: 13px; }
.toggle-label small { color: var(--text-3); font-size: 12px; }

.num { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--line-2); background: var(--raised); min-width: 0; }
.num:focus-within { border-color: var(--gold); }
.num-label { padding: 0 0 0 8px; color: var(--text-3); font-size: 11px; letter-spacing: .06em; flex: none; }
.num input { width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; padding: 0 6px; font-variant-numeric: tabular-nums; }
.num-suffix { padding-right: 8px; color: var(--text-3); font-size: 11px; }
.slider { width: 100%; accent-color: var(--gold); height: 18px; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; padding: 0; position: relative; display: grid; place-items: center; }
.sw:hover { transform: translateY(-1px); }
.sw.is-on { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.sw-none { background: linear-gradient(135deg, transparent 46%, var(--danger) 46%, var(--danger) 54%, transparent 54%), var(--raised); }
.sw-custom { background: var(--raised); color: var(--text-2); overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ------------------------------------------------------------ menus, dialogs, toasts */
.menu {
  position: fixed; z-index: 1000; min-width: 220px; max-width: 340px; padding: 6px 0; background: var(--raised);
  border: 1px solid var(--line-2); animation: pop .12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.menu-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 0; background: transparent; cursor: pointer; text-align: left; color: var(--text); }
.menu-item:hover, .menu-item:focus { background: var(--hover); outline: none; }
.menu-item:disabled { opacity: .4; cursor: default; background: transparent; }
.menu-item.is-danger { color: #ffb3ab; }
.menu-item.is-checked .menu-ic { color: var(--gold-hi); }
.menu-ic { width: 16px; display: grid; place-items: center; color: var(--text-2); flex: none; }
.menu-label { flex: 1; }
.menu-hint { color: var(--text-3); font-size: 11px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-head { padding: 8px 14px 4px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }

.modal { padding: 0; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); max-height: calc(100vh - 48px); }
.modal::backdrop { background: rgba(5, 3, 4, .72); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .16s ease-out; }
.modal-body { display: flex; flex-direction: column; max-height: calc(100vh - 50px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px 24px; }
.modal-head h2 { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.modal-content { padding: 12px 24px 18px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--line); }
.modal p { margin: 0 0 12px; line-height: 1.55; }

.toasts { position: fixed; z-index: 2000; right: 20px; bottom: 20px; display: grid; gap: 8px; max-width: min(440px, calc(100vw - 40px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; background: var(--raised); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); animation: pop .16s ease-out; line-height: 1.45; }
.toast .ic { margin-top: 1px; flex: none; color: var(--gold-hi); }
.toast-error { border-left-color: var(--danger); } .toast-error .ic { color: var(--danger); }
.toast-ok { border-left-color: var(--ok); } .toast-ok .ic { color: var(--ok); }

.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; font-size: 11px; letter-spacing: .06em; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.st-draft { color: var(--text-2); }
.st-review { color: #e8c98f; border-color: rgba(217, 164, 65, .45); }
.st-sent { color: #b9d7c5; border-color: rgba(120, 173, 142, .45); }
.st-won { color: #121; background: var(--ok); border-color: var(--ok); }
.st-lost { color: var(--text-3); border-style: dashed; }
.st-archived { color: var(--text-3); }

.empty { text-align: center; padding: 64px 24px; color: var(--text-2); }
.empty-ic { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--gold); }
.empty h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 8px; color: var(--text); }
.empty p { max-width: 460px; margin: 0 auto 18px; line-height: 1.55; }

/* thumbnails */
.thumb { position: relative; overflow: hidden; background: #000; width: 100%; aspect-ratio: 16 / 9; }
.thumb > .os-slide { position: absolute; left: 0; top: 0; pointer-events: none; }

/* ------------------------------------------------------------ app shell */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.topnav {
  position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: rgba(13, 10, 11, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px);
}
.brandmark { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; flex: none; }
.brandmark .logo-box { width: 74px; height: 27px; color: #fff; }
.brandmark .logo-box svg, .brandmark .logo-box img { width: 100%; height: 100%; display: block; }
.brandmark b { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); font-weight: 500; padding-left: 12px; border-left: 1px solid var(--line-2); }
.navlinks { display: flex; gap: 4px; height: 100%; }
.navlink {
  display: flex; align-items: center; height: 100%; padding: 0 12px; color: var(--text-2); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 2px solid transparent; text-decoration: none !important; white-space: nowrap;
}
.navlink:hover { color: var(--text); }
.navlink.is-on { color: var(--text); border-bottom-color: var(--gold); }
.topnav .spacer { flex: 1; }
.userbtn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text); }
.userbtn:hover { background: var(--hover); }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; background: var(--wine-hi); color: #fff; font-weight: 800; font-size: 12px; clip-path: var(--cut); flex: none; }
.userbtn small { display: block; color: var(--text-3); font-size: 11px; text-align: left; }

.page { width: 100%; max-width: 1480px; margin: 0 auto; padding: 36px 40px 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.page-title { font-size: clamp(40px, 6vw, 76px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; line-height: .86; }
.page-title sup { font-size: .3em; letter-spacing: 0; color: var(--gold); vertical-align: top; margin-left: 10px; font-weight: 700; }
.page-sub { margin-top: 12px; color: var(--text-2); max-width: 680px; line-height: 1.55; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.search { position: relative; display: block; width: min(360px, 100%); }
.search .ic { position: absolute; left: 10px; top: 9px; color: var(--text-3); }
.search .input { padding-left: 36px; }

/* presentations grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 26px 22px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.card .thumb { outline: 1px solid var(--line); transition: outline-color .15s ease, transform .2s ease; }
.card:hover .thumb { outline-color: var(--gold); }
.card-meta { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s ease; }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; }
.card-actions .ibtn { background: rgba(13, 10, 11, .86); color: var(--text); }
.card-actions .ibtn:hover { background: var(--raised); }
.card-new {
  display: grid; place-items: center; aspect-ratio: 16 / 9; border: 1px dashed var(--line-2); color: var(--text-2); background: transparent;
  cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.card-new:hover { border-color: var(--gold); color: var(--gold-hi); }
.card-new div { display: grid; gap: 8px; justify-items: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* recipe picker */
.recipes { display: grid; gap: 10px; }
.recipe { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px 16px; border: 1px solid var(--line-2); background: transparent; text-align: left; cursor: pointer; }
.recipe:hover { border-color: #4f4045; background: var(--raised); }
.recipe.is-on { border-color: var(--gold); background: rgba(162, 132, 94, .08); }
.recipe h4 { font-size: 15px; text-transform: uppercase; }
.recipe p { margin: 0; grid-column: 1 / -1; color: var(--text-2); font-size: 12px; }
.recipe .strip { grid-column: 1 / -1; display: flex; gap: 4px; overflow: hidden; }
.recipe .strip .thumb { width: 74px; flex: none; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); }
.login-art { position: relative; overflow: hidden; background: var(--wine); }
.login-art-mark { position: absolute; left: 38%; top: 18%; width: 125%; color: #4a0f26; pointer-events: none; }
.login-art-mark svg { width: 100%; height: auto; display: block; }
.login-art-copy { position: absolute; left: 7%; bottom: 9%; right: 7%; color: #fff; }
.login-art-copy .display { font-size: clamp(44px, 6vw, 96px); line-height: 1.04; }
.login-art-copy p { margin: 18px 0 0; color: rgba(255, 255, 255, .7); max-width: 520px; font-size: 15px; line-height: 1.5; }
.login-art-logo { position: absolute; left: 7%; top: 8%; width: 180px; color: #fff; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--bg); }
.login-form { width: min(380px, 100%); }
.login-form h1 { font-size: 34px; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 8px; }
.login-form .btn { width: 100%; height: 44px; margin-top: 8px; }
.form-error { color: #ffb3ab; margin: 8px 0 0; min-height: 20px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-art { display: flex; flex-direction: column; gap: 44px; padding: 32px 24px 36px; }
  .login-art-logo, .login-art-copy { position: relative; inset: auto; }
  .login-art-logo { width: 132px; }
  .login-art-copy .display { font-size: clamp(34px, 10vw, 64px); }
  .login-art-copy p { font-size: 14px; }
  .login-panel { padding: 36px 24px 48px; }
}

/* brand kit */
.bk { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.bk-nav { position: sticky; top: 84px; display: grid; gap: 2px; }
.bk-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: var(--text-2); border-left: 2px solid transparent; text-decoration: none !important; }
.bk-nav a:hover { color: var(--text); background: var(--panel); }
.bk-nav a.is-on { color: var(--text); border-left-color: var(--gold); background: var(--panel); }
.bk-nav .count { margin-left: auto; color: var(--text-3); font-size: 11px; }
.bk-nav .sep { height: 1px; background: var(--line); margin: 10px 0; }
.bk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.bk-head h2 { font-size: 40px; text-transform: uppercase; letter-spacing: -.03em; line-height: .9; }
.format-note { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; margin-bottom: 22px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); line-height: 1.5; }
.format-note b { color: var(--text); font-weight: 600; }
.format-note .ic { color: var(--gold); margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tiles-lg { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tile { position: relative; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.tile:hover { border-color: var(--line-2); }
.tile-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.tile-art.wide { aspect-ratio: 16 / 9; }
.tile-art.on-dark { background: var(--wine); }
.tile-art.on-light { background: #f3eeeb; }
.tile-art.on-check { background: repeating-conic-gradient(#2b2326 0 25%, #221b1d 0 50%) 0 0 / 18px 18px; }
.tile-art img, .tile-art svg { max-width: 78%; max-height: 74%; object-fit: contain; display: block; }
.tile-art .full { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.tile-body { padding: 10px 12px 12px; display: grid; gap: 3px; }
.tile-name { font-weight: 600; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { color: var(--text-3); font-size: 11px; }
.tile-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.tile:hover .tile-actions, .tile:focus-within .tile-actions { opacity: 1; }
.tile-actions .ibtn { background: rgba(13, 10, 11, .86); color: var(--text); width: 30px; height: 30px; }
.badge { position: absolute; left: 8px; top: 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 3px 6px; background: rgba(13, 10, 11, .8); color: var(--text-2); }
.dropzone {
  display: grid; place-items: center; text-align: center; gap: 8px; min-height: 150px; padding: 18px; border: 1px dashed var(--line-2);
  color: var(--text-2); background: transparent; cursor: pointer; transition: border-color .15s, background .15s; width: 100%;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); color: var(--gold-hi); background: rgba(162, 132, 94, .05); }
.dropzone small { color: var(--text-3); }
.palette-card { border: 1px solid var(--line); background: var(--panel); }
.palette-row { display: flex; height: 64px; }
.palette-row span { flex: 1; }
.palette-meta { padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.color-list { display: grid; gap: 6px; }
.color-row { display: grid; grid-template-columns: 34px 1fr 110px 30px; gap: 8px; align-items: center; }
.color-row .swatch { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .15); position: relative; overflow: hidden; }
.color-row .swatch input { position: absolute; inset: -6px; width: 48px; height: 48px; opacity: 0; cursor: pointer; }
.font-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.font-sample { font-size: 34px; line-height: 1.1; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.font-meta { margin-top: 6px; color: var(--text-3); font-size: 12px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.role-card { border: 1px solid var(--line); background: var(--panel); padding: 14px 16px; }
.role-card .sample { font-size: 30px; margin: 8px 0 10px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guide-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.guide-table th { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.guide-table td:first-child { font-weight: 700; color: var(--text); white-space: nowrap; }
.guide-table code { font: 600 12px/1 var(--ui); color: var(--gold-hi); }
.swatch-strip { display: flex; gap: 0; height: 120px; margin: 4px 0 26px; }
.swatch-strip div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; font-size: 11px; letter-spacing: .12em; }

/* team */
.team-table { width: 100%; border-collapse: collapse; }
.team-table th, .team-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.team-table th { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.panel { border: 1px solid var(--line); background: var(--panel); padding: 22px 24px; }
.panel h3 { font-size: 15px; text-transform: uppercase; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; }

.boot { min-height: 100vh; display: grid; place-items: center; color: var(--text-3); }
.boot-mark { width: 120px; color: var(--text); opacity: .9; animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .boot-mark { animation: none; } * { scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .topnav { gap: 12px; padding: 0 14px; }
  .brandmark b { display: none; }
  .navlink { padding: 0 8px; letter-spacing: .1em; }
  .page { padding: 24px 16px 60px; }
  .bk { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bk-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .bk-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .bk-nav a.is-on { border-bottom-color: var(--gold); }
  .bk-nav .sep { display: none; }
  .roles { grid-template-columns: 1fr; }
}

/* phones: the library and brand kit work on a phone; the editor shows a notice instead */
@media (max-width: 600px) {
  .topnav { gap: 6px; padding: 0 10px; }
  .brandmark .logo-box { width: 58px; height: 22px; }
  .navlinks { gap: 0; }
  .navlink { padding: 0 8px; font-size: 11px; letter-spacing: .06em; }
  .userbtn { padding: 0 2px; }
  .userbtn > span:first-child { display: none; }
  .toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .modal { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .modal-body { max-height: calc(100vh - 26px); max-height: calc(100dvh - 26px); }
  .modal-head { padding: 14px 12px 4px 18px; }
  .modal-content { padding: 10px 18px 14px; }
  .modal-foot { padding: 12px 18px 14px; }
  .guide-table thead { display: none; }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; }
  .guide-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .guide-table td { padding: 3px 0; border: 0; }
  .guide-table td:first-child { white-space: normal; font-size: 15px; padding-bottom: 6px; }
  .guide-table td[data-label]::before { content: attr(data-label) ': '; color: var(--text-3); }
  .swatch-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); height: auto; }
  .swatch-strip div { min-height: 76px; padding: 8px; font-size: 10px; letter-spacing: .06em; overflow-wrap: anywhere; }
}

.toolbar > a.dim { display: inline-flex; align-items: center; gap: 6px; }
.ed-small { display: none; }
@media (max-width: 860px) {
  .ed-small { display: grid; position: fixed; inset: 0; z-index: 300; place-items: center; padding: 24px; text-align: center; background: var(--bg); }
  .ed-small h2 { text-transform: uppercase; font-size: 26px; margin: 14px 0 10px; }
  .ed-small p { color: var(--text-2); max-width: 360px; margin: 0 auto 18px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
