/* Imported from the khabot-new-design demo (read-only source). These files are ADDITIVE:
   the legacy assets/ui.css + assets/website.css stay untouched because the admin board and
   apps/ still load them. Never merge the two systems on one page. */
/* ==========================================================================
   Components — shared by the website, dashboard and docs.
   Naming: block.element--modifier kept flat (.btn, .btn-primary, .card, …).
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 40px;
  appearance: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--bg-elev); color: var(--text);
  font-size: var(--fs-sm); font-weight: 590; letter-spacing: -.005em; line-height: 1;
  text-decoration: none !important; white-space: nowrap;
  transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur), box-shadow var(--dur), opacity var(--dur);
}
.btn:hover { background: var(--bg-hover); border-color: var(--text-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: var(--shadow-glow); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--text-inv); }
.btn-dark:hover { opacity: .88; background: var(--text); border-color: var(--text); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: transparent; }
.btn-soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn-sm { --btn-h: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { --btn-h: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn-lg { --btn-h: 48px; padding: 0 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn .kbd { margin-left: 4px; }
.icon-btn { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--text-2); cursor: pointer; transition: background var(--dur), color var(--dur); }
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- Cards ---------- */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.card-flat { box-shadow: none; }
.card-pad-lg { padding: 28px; }
.card-pad-sm { padding: 14px 16px; }
.card-title { font-size: 15px; font-weight: 620; letter-spacing: -.012em; margin-bottom: 4px; }
.card-sub { color: var(--text-2); font-size: var(--fs-sm); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-hover { transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.card-hover:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card-glass { background: color-mix(in srgb, var(--bg-elev) 72%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.card-accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow-sm); }
.card-dashed { border-style: dashed; background: transparent; box-shadow: none; }

/* ---------- Badges / chips / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--bg-sunken); color: var(--text-2); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; line-height: 1; }
.badge svg { width: 12px; height: 12px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-outline { background: transparent; border-color: var(--border-strong); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { background: var(--ok-soft); color: var(--ok); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); animation: pulse 2.2s infinite; }
.badge-new { background: linear-gradient(90deg, var(--accent), var(--cyan-400)); color: #fff; }
.badge-soon { background: transparent; border-color: var(--border-strong); color: var(--text-3); border-style: dashed; }
.badge-beta { background: var(--warn-soft); color: var(--warn); }
.badge-hue { background: color-mix(in srgb, var(--hue) 14%, transparent); color: var(--hue); }
.badge-method { font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: .04em; height: 20px; padding: 0 6px; border-radius: 5px; }
.badge-method.get { background: var(--ok-soft); color: var(--ok); }
.badge-method.post { background: var(--info-soft); color: var(--info); }
.badge-method.put { background: var(--warn-soft); color: var(--warn); }
.badge-method.delete { background: var(--danger-soft); color: var(--danger); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); font-size: 13px; font-weight: 560; cursor: pointer; white-space: nowrap; transition: background var(--dur), border-color var(--dur), color var(--dur), transform var(--dur); }
.chip svg { width: 15px; height: 15px; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.on, .chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--text-inv); }
.chip-hue { --hue: var(--accent); }
.chip-hue.on, .chip-hue[aria-pressed="true"] { background: color-mix(in srgb, var(--hue) 16%, var(--bg-elev)); border-color: var(--hue); color: var(--text); box-shadow: inset 0 0 0 1px var(--hue); }
.chip-hue .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 20%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.pill-tabs { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--bg-sunken); border: 1px solid var(--border); }
.pill-tabs button { border: 0; background: transparent; padding: 6px 14px; border-radius: var(--r-pill); color: var(--text-2); font-size: 13px; font-weight: 580; cursor: pointer; transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.pill-tabs button[aria-selected="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }

.kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--bg-elev); color: var(--text-2); font-family: var(--sans); font-size: 11px; font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 14px; }
.label { font-size: 13px; font-weight: 600; color: var(--text); }
.label .opt { color: var(--text-3); font-weight: 500; margin-left: 4px; }
.help { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.input, .select, .textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg-elev); color: var(--text); font: inherit; font-size: var(--fs-md); transition: border-color var(--dur), box-shadow var(--dur); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input.mono { font-family: var(--mono); font-size: 13px; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input-group { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: var(--bg-elev); overflow: hidden; transition: border-color var(--dur), box-shadow var(--dur); }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input-group .input { border: 0; box-shadow: none; }
.input-group .affix { padding: 0 12px; color: var(--text-3); font-size: 13px; white-space: nowrap; border-right: 1px solid var(--border); align-self: stretch; display: flex; align-items: center; background: var(--bg-inset); }
.input-group .affix.right { border-right: 0; border-left: 1px solid var(--border); }
.input-group svg { width: 16px; height: 16px; color: var(--text-3); margin-left: 12px; flex: none; }
.input-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg-elev); color: var(--text-3); font-size: 13.5px; cursor: text; transition: border-color var(--dur), box-shadow var(--dur); }
.input-search:hover, .input-search:focus-within { border-color: var(--border-strong); }
.input-search svg { width: 16px; height: 16px; flex: none; }
.input-search input { border: 0; background: transparent; outline: 0; color: var(--text); font: inherit; width: 100%; }
.input-search .kbd { margin-left: auto; }

.switch { --sw: 38px; position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: var(--sw); height: 22px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background var(--dur); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform var(--dur) var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-ring); }
.checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.radio-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.radio-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 10px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--bg-elev); cursor: pointer; font-weight: 600; transition: border-color var(--dur), box-shadow var(--dur), background var(--dur); }
.radio-card small { font-weight: 500; color: var(--text-3); font-size: 11.5px; }
.radio-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elev); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--bg-inset); color: var(--text-3); font-size: 11px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-hover); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .cell-main { font-weight: 600; color: var(--text); }
.table .cell-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }
.table-dense th, .table-dense td { padding: 8px 12px; }
.table tr.clickable { cursor: pointer; }

/* ---------- Code ---------- */
.code { position: relative; border: 1px solid var(--code-border); border-radius: var(--r-md); background: var(--code-bg); color: var(--code-text); overflow: hidden; }
.code pre { padding: 16px 18px; overflow-x: auto; font-size: 12.5px; line-height: 1.7; tab-size: 2; }
.code-head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--code-border); background: var(--code-bg-2); color: var(--code-muted); font-size: 12px; }
.code-head .title { font-family: var(--mono); font-size: 11.5px; }
.code-head .spacer { flex: 1; }
.code-tabs { display: flex; gap: 2px; }
.code-tabs button { border: 0; background: transparent; color: var(--code-muted); padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.code-tabs button:hover { color: var(--code-text); }
.code-tabs button[aria-selected="true"] { background: rgba(255,255,255,.08); color: #fff; }
.code .copy { border: 0; background: transparent; color: var(--code-muted); padding: 6px; border-radius: 6px; cursor: pointer; display: inline-grid; place-items: center; }
.code .copy:hover { background: rgba(255,255,255,.08); color: #fff; }
.code .copy svg { width: 15px; height: 15px; }
.code .copy.done { color: var(--mint-400); }
.code-dots { display: inline-flex; gap: 5px; margin-right: 8px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A3650; }
.code-dots i:nth-child(1) { background: #F87171; } .code-dots i:nth-child(2) { background: #FBBF24; } .code-dots i:nth-child(3) { background: #34D399; }
.tok-k { color: var(--code-key); } .tok-s { color: var(--code-str); } .tok-n { color: var(--code-num); } .tok-kw { color: var(--code-kw); } .tok-c { color: var(--code-cmt); font-style: italic; } .tok-m { color: var(--mint-400); font-weight: 600; } .tok-p { color: var(--code-muted); }
.code-inline, :not(pre) > code { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg-sunken); color: var(--text); font-size: .86em; }
.code .caret { display: inline-block; width: 7px; height: 14px; background: var(--code-text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* ---------- Tabs / segmented ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); }
.tabs button, .tabs a { position: relative; border: 0; background: transparent; padding: 10px 12px; color: var(--text-2); font-size: 13.5px; font-weight: 580; cursor: pointer; text-decoration: none !important; }
.tabs button:hover, .tabs a:hover { color: var(--text); }
.tabs [aria-selected="true"], .tabs .active { color: var(--text); }
.tabs [aria-selected="true"]::after, .tabs .active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-sm); background: var(--bg-sunken); border: 1px solid var(--border); }
.segmented button { border: 0; background: transparent; padding: 5px 11px; border-radius: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.segmented button[aria-selected="true"] { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Modal / drawer / toast / tooltip / menu ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; background: var(--overlay); backdrop-filter: blur(6px); overflow-y: auto; animation: fade-in .15s; }
.modal { width: 100%; max-width: 520px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: fade-up .22s var(--ease); }
.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 16px 22px 22px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 22px 22px; }
.toaster { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 11px 14px; border-radius: var(--r-md); background: var(--text); color: var(--text-inv); font-size: 13.5px; box-shadow: var(--shadow-lg); animation: fade-up .22s var(--ease); }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast-ok svg { color: var(--mint-400); } .toast-error svg { color: #F87171; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 50; padding: 6px 9px; border-radius: 7px; background: var(--text); color: var(--text-inv); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; animation: fade-in .12s; }
.menu { position: absolute; z-index: 60; min-width: 200px; padding: 6px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-elev); box-shadow: var(--shadow-lg); animation: fade-up .15s var(--ease); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; text-decoration: none !important; }
.menu a:hover, .menu button:hover { background: var(--bg-hover); }
.menu svg { width: 16px; height: 16px; color: var(--text-3); }
.menu hr { margin: 6px 0; }
.menu .danger { color: var(--danger); }
.menu-head { padding: 8px 10px 6px; font-size: 12px; color: var(--text-3); }

/* ---------- Meters / rings / stats ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s var(--ease); }
.meter.ok > i { background: var(--ok); } .meter.warn > i { background: var(--warn); } .meter.danger > i { background: var(--danger); }
.meter-sm { height: 5px; }
.meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.meter-row .v { color: var(--text-2); font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 64px; height: 64px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ring .bg { stroke: var(--bg-sunken); } .ring .fg { stroke: var(--accent); transition: stroke-dashoffset .8s var(--ease); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 640; font-variant-numeric: tabular-nums; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.stat-value { font-size: 26px; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-value small { font-size: 14px; color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.stat-delta { font-size: 12.5px; color: var(--text-2); }
.stat-delta.up { color: var(--ok); } .stat-delta.down { color: var(--danger); }

/* ---------- Avatar / empty / skeleton / spinner ---------- */
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--blue-500)); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--text-2); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }
.empty .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-sunken); color: var(--text-3); }
.empty .ico svg { width: 22px; height: 22px; }
.empty-title { font-weight: 620; color: var(--text); }
.skeleton { border-radius: 6px; background: linear-gradient(90deg, var(--bg-sunken) 25%, var(--bg-hover) 50%, var(--bg-sunken) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- Family hue helper + service glyph ---------- */
[data-family="ai"]      { --hue: var(--hue-ai); }
[data-family="web"]     { --hue: var(--hue-web); }
[data-family="social"]  { --hue: var(--hue-social); }
[data-family="media"]   { --hue: var(--hue-media); }
[data-family="storage"] { --hue: var(--hue-storage); }
[data-family="compute"] { --hue: var(--hue-compute); }
[data-family="assets"]  { --hue: var(--hue-assets); }
.glyph { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--hue, var(--accent)) 14%, transparent); color: var(--hue, var(--accent)); flex: none; }
.glyph svg { width: 18px; height: 18px; }
.glyph-lg { width: 44px; height: 44px; border-radius: 12px; } .glyph-lg svg { width: 22px; height: 22px; }
.glyph-sm { width: 26px; height: 26px; border-radius: 7px; } .glyph-sm svg { width: 14px; height: 14px; }
.hue-text { color: var(--hue, var(--accent)); }

/* ---------- Visor line (brand motif) & marquee ---------- */
.visor { height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--cyan-400) 70%, transparent); box-shadow: 0 0 24px 2px color-mix(in srgb, var(--cyan-400) 40%, transparent); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Command palette ---------- */
.palette { max-width: 620px; padding: 0; overflow: hidden; }
.palette .input-search { height: 52px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 15px; padding: 0 18px; }
.palette-list { max-height: 380px; overflow-y: auto; padding: 8px; }
.palette-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; cursor: pointer; color: var(--text); text-decoration: none !important; }
.palette-item:hover, .palette-item.active { background: var(--bg-hover); }
.palette-item .t { font-weight: 580; font-size: 13.5px; }
.palette-item .d { font-size: 12px; color: var(--text-3); }
.palette-item .kbd { margin-left: auto; }

/* ---------- Helptip ---------- */
.helptip { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg-sunken); color: var(--text-3); font-size: 10.5px; font-weight: 700; cursor: help; vertical-align: middle; }

/* ---------- Callouts ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); background: var(--accent-soft); color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.callout svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.callout strong { color: var(--text); }
.callout-warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: var(--warn-soft); } .callout-warn svg { color: var(--warn); }
.callout-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); background: var(--ok-soft); } .callout-ok svg { color: var(--ok); }
.callout-danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); background: var(--danger-soft); } .callout-danger svg { color: var(--danger); }

@media (max-width: 640px) {
  .modal-backdrop { padding: 12px; align-items: flex-end; }
  .modal { border-radius: var(--r-lg); }
  .toaster { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

.form-error { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--border)); background: var(--danger-soft); color: var(--danger); font-size: 13px; }
