/* viberoom - Copyright (c) 2026 Todor Rusev - AGPL-3.0-or-later; see LICENSE */
@import url("fonts/nunito.css");
@import url("fonts/inter.css");
@import url("fonts/noto-sans.css");
@import url("fonts/jetbrains-mono.css");
@import url("fonts/fira-code.css");
@import url("fonts/source-code-pro.css");
@import url("fonts/open-sans.css");
@import url("fonts/source-sans-3.css");
@import url("fonts/ibm-plex-sans.css");
@import url("fonts/manrope.css");
@import url("fonts/rubik.css");
@import url("fonts/montserrat.css");
@import url("fonts/golos-text.css");
@import url("fonts/exo-2.css");
@import url("fonts/comfortaa.css");
@import url("fonts/ubuntu-sans.css");
@import url("fonts/ibm-plex-mono.css");
@import url("fonts/pt-mono.css");
@import url("fonts/victor-mono.css");
@import url("fonts/anonymous-pro.css");
@import url("fonts/cascadia-code.css");
:root {
  --primary: #5b5bf0;
  --primary-light: #6a6af7;
  --primary-deep: #4f4fe0;
  --primary-dark: #4343cc;
  --violet: #8b5cf6;
  --iris: #6d5dfc;
  --ink: #1c1b33;
  --ink-2: #2c2b4a;
  --ink-3: #5c5c80;
  --indigo: #1f1d3a;
  --muted: #8080a3;
  --faint: #b3b3cc;
  --placeholder: #a3a3c0;
  --grey: #9ca3af;
  --white: #ffffff;
  --black: #000000;
  --bg: #eef0fb;
  --soft: #f6f6fb;
  --softer: #f1f1f8;
  --lav: #eef0fb;
  --lav-2: #e4e6fb;
  --canvas-top: #fdfdff;
  --canvas-mid: #f7f7fe;
  --canvas-bottom: #f0f1fd;
  --shadow-ink: #322878;
  --mint: #d9f7e8;
  --mint-2: #c4efdb;
  --mint-tint: #e4f7ee;
  --mint-ink: #1d8f6a;
  --forest: #14533f;
  --green: #2fc97e;
  --warm: #fff3cc;
  --warm-2: #ffeaa8;
  --warm-ink: #a07408;
  --bronze: #5a4200;
  --amber: #f5a524;
  --honey: #ffcf8f;
  --spark: #ffd166;
  --peach: #ffe3cc;
  --peach-2: #ffe4d6;
  --orange: #ff8a3d;
  --orange-light: #ff9447;
  --orange-deep: #e8642a;
  --orange-dark: #c9461c;
  --ember: #ff7a45;
  --ember-deep: #f0452c;
  --rose: #fff0ee;
  --rose-2: #ffe1dd;
  --rose-ink: #e0554a;
  --rose-dark: #c9463c;
  --pink: #be185d;
  --pink-tint: #fff1f7;
  --sky: #dcefff;
  --blue: #4f8ef7;
  --blue-deep: #2a6fbf;
  --blue-soft: #7aa7ff;
  --orchid: #f3e4fb;
  --orchid-ink: #8a3fc2;
  --orchid-mid: #b06be0;
  --periwinkle: #cdcdf9;
  --periwinkle-deep: #a9a9f5;
  --deep: #26244a;
  --deep-gutter: #211f43;
  --deep-ink: #f4f2ff;
  --deep-muted: #7c78ad;
  --deep-head: #e8e6ff;
  --deep-meta: #a9a5d8;
  --lav-grey: #c9c6ea;
  --lilac: #b9a7ff;
  --seafoam: #8fe3bd;
  --azure: #9cd2ff;
  --salmon: #ff9f9f;
  --magenta: #f2b8ff;
  --st-ready: #d9f7e8;
  --st-ready-ink: #1d8f6a;
  --st-ready-dot: #2fc97e;
  --st-waiting: #dcefff;
  --st-waiting-ink: #2a6fbf;
  --st-waiting-dot: #7aa7ff;
  --st-thinking: #fff3cc;
  --st-thinking-ink: #a07408;
  --st-thinking-dot: #f5a524;
  --st-writing: #f3e4fb;
  --st-writing-ink: #8a3fc2;
  --st-writing-dot: #b06be0;
  --st-error: #fff0ee;
  --st-error-ink: #e0554a;
  --st-error-dot: #e0554a;
  --st-asleep: #f1f1f8;
  --st-asleep-ink: #8080a3;
  --st-asleep-dot: #b3b3cc;
  --attention: #ff8a3d;
  --attention-ink: #c9461c;
  --attention-grad: linear-gradient(135deg, #ff9447, #e8642a);
  --attention-shadow: 0 8px 18px -10px rgba(232, 100, 42, 0.7);
  --unread-grad: linear-gradient(135deg, #ff7a45, #f0452c);
  --note-hover: #ffeaa8;
  --done: #d9f7e8;
  --done-ink: #1d8f6a;
  --done-hover: #c4efdb;
  --tick-mine: #cdcdf9;
  --tick-mine-view: #a9a9f5;
  --tick-fallback: #9ca3af;
  --grad-primary: linear-gradient(135deg, #6a6af7, #4f4fe0);
  --panel: #ffffff;
  --card: #ffffff;
  --primary-soft: #eef0fb;
  --primary-softer: #f6f6fb;
  --primary-ghost: rgba(91, 91, 240, 0.1);
  --mint-soft: #d9f7e8;
  --warn: #f5a524;
  --warn-soft: #fff3cc;
  --danger: #e0554a;
  --danger-soft: #fff0ee;
  --danger-dark: #c9463c;
  --info: #4f8ef7;
  --info-soft: #dcefff;
  --muted-2: #b3b3cc;
  --panel-soft: #f6f6fb;
  --panel-tint: #f6f6fb;
  --border: #eef0fb;
  --border-strong: #e4e6fb;
  --mine: linear-gradient(135deg, #6a6af7, #4f4fe0);
  --mine-border: transparent;
  --text: #1c1b33;
  --ok: #2fc97e;
  --edge: 0 2px 0 rgba(28, 27, 51, 0.04);
  --shadow-tile: 0 4px 12px -4px rgba(28, 27, 51, 0.15);
  --shadow-pop: 0 10px 24px -10px rgba(28, 27, 51, 0.25);
  --shadow-primary: 0 8px 18px -8px rgba(91, 91, 240, 0.8);
  --shadow-dialog: 0 30px 60px -30px rgba(50, 40, 120, 0.4);
  --shadow-1: 0 2px 0 rgba(28, 27, 51, 0.04);
  --shadow-2: 0 30px 60px -30px rgba(50, 40, 120, 0.4);
  --shadow-card: 0 2px 0 rgba(28, 27, 51, 0.04);
  --shadow-ctl: none;
  --shadow-ctl-hover: 0 4px 12px -4px rgba(28, 27, 51, 0.15);
  --shadow-glow: 0 8px 18px -8px rgba(91, 91, 240, 0.8);
  --shadow-inset: none;
  --shadow-soft: 0 2px 0 rgba(28, 27, 51, 0.04);
  --shadow: 0 2px 0 rgba(28, 27, 51, 0.04);
  --bevel: none;
  --shadow-room: 0px;
  --bevel-pressed: none;
  --grad-canvas: radial-gradient(900px 520px at 100% 100%, rgba(91, 91, 240, 0.06), transparent 70%), radial-gradient(640px 380px at 0% 0%, rgba(47, 201, 126, 0.04), transparent 70%), linear-gradient(165deg, #fdfdff 0%, #f7f7fe 55%, #f0f1fd 100%);
  --canvas-pattern: radial-gradient(circle at 1px 1px, rgba(91, 91, 240, 0.13) 0.9px, transparent 1.6px);
  --canvas-pattern-size: 22px 22px;
  --grad-page: #eef0fb;
  --sb-w: 8px;
  --sb-thumb: rgba(91, 91, 240, 0.22);
  --sb-thumb-hover: rgba(91, 91, 240, 0.45);
  --r-scale: 1;
  --r-ctl-min: 0px;
  --r-xs: calc(8px * var(--r-scale));
  --r-sm: calc(12px * var(--r-scale));
  --r-md: calc(14px * var(--r-scale));
  --r-lg: calc(18px * var(--r-scale));
  --r-xl: calc(18px * var(--r-scale));
  --r-pill: calc(99px * var(--r-scale));
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, "Courier New", monospace;
  --line-height: 1.45;
  --fs-scale: 1;
  --fs-xs: calc(11px * var(--fs-scale));
  --fs-sm: calc(12px * var(--fs-scale));
  --fs-md: calc(14px * var(--fs-scale));
  --fs-lg: calc(16px * var(--fs-scale));
  --fs-xl: calc(18px * var(--fs-scale));
  --fs-2xl: calc(22px * var(--fs-scale));
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --page-bg: #eef0fb;
  --page-ink: #1c1b33;
  --page-selection: #e4e6fb;
  --focus-ring: rgba(91, 91, 240, 0.35);
  --link-ink: #5b5bf0;
  --link-underline: rgba(91, 91, 240, 0.35);
  --btn-bg: #f1f1f8;
  --btn-ink: #5c5c80;
  --btn-hover-bg: #eef0fb;
  --btn-hover-ink: #5b5bf0;
  --btn-on-primary: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-hover-bg: #ffffff;
  --btn-soft-bg: #eef0fb;
  --btn-soft-hover-bg: #e4e6fb;
  --btn-ghost-ink: #8080a3;
  --btn-ghost-hover-bg: #f6f6fb;
  --btn-danger-bg: #fff0ee;
  --btn-danger-ink: #e0554a;
  --btn-danger-hover-bg: #ffe1dd;
  --btn-danger-solid-ink: #ffffff;
  --btn-danger-solid-hover-bg: #c9463c;
  --btn-danger-solid-shadow: 0 8px 18px -8px rgba(224, 85, 74, 0.8);
  --btn-spinner-track: rgba(255, 255, 255, 0.5);
  --btn-spinner-head: #ffffff;
  --btn-spinner-track-quiet: #e4e6fb;
  --btn-spinner-head-quiet: #5b5bf0;
  --btn-disabled-opacity: 0.45;
  --btn-dark-bg: rgba(244, 242, 255, 0.12);
  --btn-dark-ink: #f4f2ff;
  --btn-dark-hover-bg: #5b5bf0;
  --btn-warn-ink: #a07408;
  --btn-warn-hover-bg: #fff3cc;
  --btn-inverse-bg: rgba(255, 255, 255, 0.92);
  --btn-inverse-ink: #c9461c;
  --btn-inverse-hover-bg: #ffffff;
  --btn-link-ink: #5b5bf0;
  --btn-ok-bg: #d9f7e8;
  --btn-ok-ink: #1d8f6a;
  --btn-ok-hover-bg: #c4efdb;
  --btn-paper-bg: #ffffff;
  --btn-paper-ink: #5c5c80;
  --btn-paper-hover-bg: #f6f6fb;
  --btn-border: 0;
  --btn-case: none;
  --btn-tracking: 0px;
  --btn-link-underline: none;
  --btn-ghost-bg: transparent;
  --btn-shadow: none;
  --btn-hover-shadow: none;
  --btn-hover-lift: 0px;
  --btn-active-shadow: none;
  --btn-primary-active-shadow: var(--shadow-primary);
  --btn-primary-hover-filter: brightness(1.05);
  --btn-secondary-hover-shadow: var(--shadow-tile);
  --btn-secondary-active-shadow: var(--shadow-tile);
  --btn-danger-solid-hover-shadow: 0 8px 18px -8px rgba(224, 85, 74, 0.8);
  --btn-danger-solid-active-shadow: 0 8px 18px -8px rgba(224, 85, 74, 0.8);
  --btn-ok-shadow: none;
  --btn-warn-shadow: none;
  --btn-h: 42px;
  --btn-h-sm: 34px;
  --btn-h-xs: 24px;
  --btn-h-lg: 48px;
  --btn-h-cta: 46px;
  --btn-fs: calc(13px * var(--fs-scale));
  --btn-fs-sm: calc(12px * var(--fs-scale));
  --btn-fs-lg: calc(15px * var(--fs-scale));
  --btn-fs-cta: calc(14px * var(--fs-scale));
  --icon-button-ink: #8080a3;
  --icon-button-hover-bg: #f6f6fb;
  --icon-button-hover-ink: #5b5bf0;
  --icon-button-disabled-opacity: 0.4;
  --icon-button-size: 36px;
  --icon-button-icon: 18px;
  --icon-button-size-sm: 30px;
  --icon-button-icon-sm: 16px;
  --icon-button-size-xs: 18px;
  --icon-button-icon-xs: 12px;
  --icon-button-size-primary: 44px;
  --icon-button-ghost-ink: #b3b3cc;
  --icon-button-hover-bg-strong: #5b5bf0;
  --icon-button-inline-bg: #e4e6fb;
  --icon-button-inline-ink: #5c5c80;
  --icon-button-inline-on-bg: rgba(91, 91, 240, 0.1);
  --icon-button-inline-on-ink: #5b5bf0;
  --icon-button-ghost-bg: transparent;
  --icon-button-shadow: none;
  --icon-button-hover-shadow: none;
  --icon-button-hover-lift: 0px;
  --icon-button-active-shadow: none;
  --icon-button-primary-shadow: var(--shadow-primary);
  --icon-button-primary-hover-shadow: var(--shadow-primary);
  --icon-button-primary-active-shadow: var(--shadow-primary);
  --badge-bg: #eef0fb;
  --badge-ink: #5b5bf0;
  --badge-attention-bg: #fff3cc;
  --badge-attention-ink: #a07408;
  --badge-muted-bg: #f1f1f8;
  --badge-muted-ink: #8080a3;
  --badge-outline-border: #e4e6fb;
  --badge-outline-w: 2px;
  --badge-outline-ink: #8080a3;
  --badge-fs-xs: calc(10px * var(--fs-scale));
  --badge-fill: 100%;
  --badge-border: 0;
  --badge-case: none;
  --badge-tracking: 0px;
  --badge-shadow: none;
  --chip-bg: #eef0fb;
  --chip-ink: #5b5bf0;
  --chip-hover-bg: #e4e6fb;
  --chip-fill: 100%;
  --chip-border: 0;
  --chip-shadow: none;
  --chip-hover-shadow: none;
  --chip-hover-lift: 0px;
  --chip-active-shadow: none;
  --chip-active-drop: 0px;
  --file-card-bg: #26244a;
  --file-card-ink: #f4f2ff;
  --file-card-head-bg: rgba(244, 242, 255, 0.06);
  --file-card-head-ink: #e8e6ff;
  --file-card-head-meta: #a9a5d8;
  --file-card-note-ink: #e0554a;
  --file-card-image-body-bg: rgba(244, 242, 255, 0.04);
  --file-card-image-bg: #ffffff;
  --file-card-shadow: var(--edge);
  --tool-call-check-bg: #eef0fb;
  --tool-call-check-ink: #1c1b33;
  --tool-call-ready-bg: #d9f7e8;
  --tool-call-ready-ink: #1d8f6a;
  --tool-call-error-bg: #fff0ee;
  --tool-call-error-ink: #e0554a;
  --tool-call-thinking-bg: #fff3cc;
  --tool-call-thinking-ink: #a07408;
  --tool-call-pending-bg: #eef0fb;
  --tool-call-pending-ink: #5b5bf0;
  --tool-call-body-bg: #ffffff;
  --tool-call-pre-bg: #f6f6fb;
  --tool-call-pre-ink: #1c1b33;
  --tool-call-quiet-ink: #8080a3;
  --tool-call-fs: calc(12px * var(--fs-scale));
  --tool-call-pre-fs: calc(11.5px * var(--fs-scale));
  --tool-call-label-fs: calc(10.5px * var(--fs-scale));
  --settings-group-bg: #eef0fb;
  --settings-group-ink: #1c1b33;
  --settings-group-heading-ink: #5b5bf0;
  --settings-group-danger-bg: #fff0ee;
  --settings-group-danger-ink: #e0554a;
  --tool-fold-ink: #8080a3;
  --tool-fold-bg: #f6f6fb;
  --tool-fold-hover-bg: #eef0fb;
  --tool-fold-hover-ink: #5b5bf0;
  --tool-fold-failed-ink: #e0554a;
  --tool-fold-fs: calc(11px * var(--fs-scale));
  --tool-fold-shadow: none;
  --ask-card-bg: #fff3cc;
  --ask-card-ink: #1c1b33;
  --ask-card-quiet-ink: #8080a3;
  --ask-card-resolved-opacity: 0.7;
  --ask-card-fs: calc(13px * var(--fs-scale));
  --ask-card-kind-fs: calc(11px * var(--fs-scale));
  --ask-card-input-fs: calc(11px * var(--fs-scale));
  --ask-card-outcome-fs: calc(12px * var(--fs-scale));
  --ask-card-shadow: none;
  --reply-note-ink: #8080a3;
  --reply-note-bg: #f6f6fb;
  --reply-note-attention-ink: #a07408;
  --reply-note-attention-bg: #fff3cc;
  --reply-note-error-ink: #e0554a;
  --reply-note-error-bg: #fff0ee;
  --reply-note-fs: calc(12px * var(--fs-scale));
  --login-dialog-ink: #1c1b33;
  --login-dialog-quiet-ink: #8080a3;
  --login-dialog-fs: calc(13.5px * var(--fs-scale));
  --login-dialog-border: #e4e6fb;
  --login-dialog-scene-bg: #f6f6fb;
  --login-dialog-scene-ink: #1c1b33;
  --login-dialog-scene-muted: #e4e6fb;
  --login-dialog-scene-paper: #ffffff;
  --login-dialog-scene-accent: #5b5bf0;
  --login-dialog-scene-dark: #1f1d3a;
  --login-dialog-scene-on-dark: #ffffff;
  --login-dialog-ok-bg: #e4f7ee;
  --login-dialog-ok-ink: #1d8f6a;
  --login-dialog-bad-bg: #fff0ee;
  --login-dialog-bad-ink: #e0554a;
  --login-dialog-step-bg: #5b5bf0;
  --login-dialog-step-ink: #ffffff;
  --login-dialog-code-bg: #ffffff;
  --login-dialog-code-ink: #1c1b33;
  --login-dialog-code-border: #e4e6fb;
  --login-dialog-input-bg: #ffffff;
  --login-dialog-input-border: #e4e6fb;
  --login-dialog-lines-bg: #f6f6fb;
  --login-dialog-lines-ink: #8080a3;
  --login-dialog-geek-ink: #5b5bf0;
  --look-card-w: 150px;
  --look-card-paper-h: 84px;
  --look-card-bg: #ffffff;
  --look-card-ink: #1c1b33;
  --look-card-border: #e4e6fb;
  --look-card-hover-border: #a9a9f5;
  --look-card-on-border: #5b5bf0;
  --look-card-shadow: none;
  --choice-bg: #f6f6fb;
  --choice-ink: #5c5c80;
  --choice-hover-bg: #eef0fb;
  --choice-on-ink: #5b5bf0;
  --choice-on-border: #5b5bf0;
  --choice-quiet-ink: #8080a3;
  --choice-h: 32px;
  --choice-border: transparent;
  --choice-shadow: none;
  --choice-hover-shadow: none;
  --choice-hover-lift: 0px;
  --choice-active-shadow: none;
  --choice-active-drop: 0px;
  --choice-on-shadow: none;
  --control-knob: #ffffff;
  --control-knob-shadow: 0 1px 3px rgba(28, 27, 51, 0.25);
  --control-box-bg: #ffffff;
  --control-tick: #ffffff;
  --tile-badge-bg: #ffffff;
  --tile-count-ink: #ffffff;
  --room-mark-ink: #ffffff;
  --room-mark-hue-from: 0;
  --room-mark-hue-span: 360;
  --room-mark-grad-angle: 135deg;
  --room-mark-grad-from: 72% 66%;
  --room-mark-grad-to: 68% 52%;
  --room-mark-emoji: 70% 93%;
  --room-mark-shadow: none;
  --room-mark-radius: calc(14px * var(--r-scale));
  --room-mark-radius-lg: calc(16px * var(--r-scale));
  --room-mark-radius-rail: calc(13px * var(--r-scale));
  --pop-bg: #ffffff;
  --pop-shadow: 0 10px 28px -12px rgba(28, 27, 51, 0.45);
  --pop-arrow-shadow: 3px 3px 4px -3px rgba(28, 27, 51, 0.25);
  --pop-dark-bg: #2c2b4a;
  --pop-dark-ink: #ffffff;
  --pop-dark-shadow: 0 6px 16px -6px rgba(28, 27, 51, 0.6);
  --dialog-backdrop: rgba(28, 27, 51, 0.4);
  --scrim-bg: rgba(28, 27, 51, 0.72);
  --scrim-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --scrim-image-bg: #ffffff;
  --toast-bg: #1c1b33;
  --toast-ink: #ffffff;
  --rail-logo-shadow: 0 8px 18px -6px rgba(91, 91, 240, 0.6);
  --rail-active-bg: #ffffff;
  --cast-c-1: #5b5bf0;
  --cast-c-2: #1d8f6a;
  --cast-c-3: #f5a524;
  --cast-c-4: #e0554a;
  --cast-c-5: #4f8ef7;
  --cast-c-6: #be185d;
  --cast-c-7: #8a3fc2;
  --cast-c-8: #e8642a;
  --timeline-view-bg: rgba(28, 27, 51, 0.08);
  --timeline-view-edge: rgba(28, 27, 51, 0.45);
  --timeline-tick-blend: #ffffff;
  --timeline-pin-halo: #ffffff;
  --timeline-flash: rgba(91, 91, 240, 0.55);
  --timeline-flash-out: rgba(91, 91, 240, 0);
  --bubble-bg: #ffffff;
  --bubble-ink: #2c2b4a;
  --bubble-border: transparent;
  --bubble-shadow: 0 2px 0 rgba(28, 27, 51, 0.06), 0 1px 3px rgba(28, 27, 51, 0.04);
  --bubble-mine-bg: linear-gradient(135deg, #6a6af7, #4f4fe0);
  --bubble-mine-ink: #ffffff;
  --bubble-mine-soft-ink: rgba(255, 255, 255, 0.85);
  --bubble-mine-waiting-ink: rgba(255, 255, 255, 0.92);
  --bubble-mine-shadow: 0 8px 18px -10px rgba(91, 91, 240, 0.7);
  --bubble-mine-rule: rgba(255, 255, 255, 0.35);
  --bubble-mine-border: rgba(255, 255, 255, 0.35);
  --bubble-mine-chip-bg: rgba(255, 255, 255, 0.22);
  --bubble-mine-code-bg: rgba(255, 255, 255, 0.18);
  --bubble-mine-th-bg: rgba(255, 255, 255, 0.18);
  --bubble-mine-link-underline: rgba(255, 255, 255, 0.5);
  --bubble-mine-quote-border: rgba(255, 255, 255, 0.5);
  --bubble-mine-btn-bg: rgba(255, 255, 255, 0.92);
  --bubble-mine-btn-hover-bg: #ffffff;
  --bubble-mine-ghost-hover-bg: rgba(255, 255, 255, 0.18);
  --bubble-mine-cta-bg: #ffffff;
  --bubble-mine-cta-ink: #5b5bf0;
  --bubble-inset-bg: #ffffff;
  --bubble-prop-row-bg: rgba(255, 255, 255, 0.6);
  --quote-mine-bg: rgba(255, 255, 255, 0.16);
  --quote-mine-border: rgba(255, 255, 255, 0.55);
  --quote-mine-hover-bg: rgba(255, 255, 255, 0.26);
  --quote-mine-hover-border: #ffffff;
  --quote-mine-head-ink: rgba(255, 255, 255, 0.85);
  --quote-mine-text-ink: #ffffff;
  --attach-thumb-bg: #ffffff;
  --attach-thumb-shadow: 0 1px 3px rgba(28, 27, 51, 0.16);
  --attach-overlay-bg: rgba(28, 27, 51, 0.72);
  --attach-overlay-ink: #ffffff;
  --attach-ref-bg: rgba(28, 27, 51, 0.1);
  --attach-mine-ref-bg: rgba(255, 255, 255, 0.24);
  --attach-mine-chip-open-bg: rgba(255, 255, 255, 0.42);
  --attach-mine-chip-open-ink: #1c1b33;
  --table-stripe: rgba(91, 91, 240, 0.03);
  --code-bg: #26244a;
  --code-ink: #f4f2ff;
  --code-gutter-bg: #211f43;
  --code-gutter-ink: #7c78ad;
  --code-line-mark-ink: #ffcf8f;
  --code-line-mark-bg: rgba(255, 207, 143, 0.16);
  --code-head-bg: rgba(244, 242, 255, 0.06);
  --code-head-ink: #e8e6ff;
  --code-head-meta: #a9a5d8;
  --code-head-btn-bg: rgba(244, 242, 255, 0.12);
  --code-head-btn-ink: #f4f2ff;
  --code-body-bg: rgba(244, 242, 255, 0.04);
  --code-sb-track: rgba(0, 0, 0, 0.25);
  --code-sb-thumb: rgba(244, 242, 255, 0.3);
  --code-sb-thumb-hover: rgba(244, 242, 255, 0.5);
  --code-sb-firefox: rgba(244, 242, 255, 0.35);
  --code-find-hit-bg: #ffcf8f;
  --code-find-hit-ink: #26244a;
  --syntax-comment: #7c78ad;
  --syntax-punctuation: #c9c6ea;
  --syntax-keyword: #b9a7ff;
  --syntax-string: #8fe3bd;
  --syntax-number: #ffcf8f;
  --syntax-function: #9cd2ff;
  --syntax-tag: #ff9f9f;
  --syntax-attr: #f2b8ff;
  --diagram-bar-bg: #ffffff;
  --diagram-bar-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  --diagram-node-shadow: rgba(28, 27, 51, 0.1);
  --diagram-node-ink: #1c1b33;
  --input-bg: #ffffff;
  --input-focus-border: #5b5bf0;
  --input-shadow: none;
  --profile-bg: linear-gradient(160deg, #eef0fb, #e4f7ee);
  --profile-badge-bg: #ffffff;
  --face-paper: #ffffff;
  --face-tint: 16%;
  --face-corner: 0.32;
  --face-ring: #ffffff;
  --face-me-ring: #5b5bf0;
  --face-alert-ring: #ff8a3d;
  --face-dot-bg: #b3b3cc;
  --face-card-bg: #ffffff;
  --face-fallback: #9ca3af;
  --face-human-ink: #1f1d3a;
  --face-avatar-default: #5b5bf0;
  --face-avatar-gloss: #ffffff;
  --face-avatar-label-ink: #ffffff;
  --face-shadow: 0 0 0 0 transparent;
  --face-card-shadow: var(--shadow-pop);
  --logo-tile-bg: #ffffff;
  --logo-tile-ink: #1f1d3a;
  --logo-tile-badge-bg: #ffffff;
  --logo-tile-badge-border: #ffffff;
  --logo-tile-badge-ink: #1f1d3a;
  --logo-tile-muted-bg: #fff3cc;
  --logo-tile-muted-ink: #a07408;
  --logo-tile-unplugged-bg: #eef0fb;
  --logo-tile-unplugged-ink: #1f1d3a;
  --logo-tile-sm: 30px;
  --logo-tile-md: 36px;
  --logo-tile-lg: 40px;
  --logo-tile-shadow: var(--shadow-tile);
  --logo-tile-radius: calc(12px * var(--r-scale));
  --logo-tile-radius-sm: calc(10px * var(--r-scale));
  --logo-tile-radius-lg: calc(13px * var(--r-scale));
  --logo-tile-radius-badge: calc(6px * var(--r-scale));
  --unseen-line-ink: #be185d;
  --unseen-line-bg: #fff1f7;
  --unseen-line-line: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'><path d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='%23be185d' stroke-width='1.6'/></svg>") repeat-x center / 16px 8px;
  --unseen-line-line-h: 8px;
  --unseen-line-line-opacity: 0.55;
  --unseen-line-label-border: 0;
  --unseen-line-label-case: none;
  --unseen-line-label-tracking: 0px;
  --unseen-line-label-shadow: none;
  --number-field-step-w: 22px;
  --number-field-step-ink: #8080a3;
  --number-field-step-hover-bg: #eef0fb;
  --number-field-step-hover-ink: #5b5bf0;
  --adjust-row-swatch-border: #e4e6fb;
  --adjust-row-value-ink: #8080a3;
  --adjust-row-hint-ink: #8080a3;
  --adjust-row-changed-ink: #5b5bf0;
  --adjust-row-back-ink: #8080a3;
  --adjust-row-back-hover-bg: #eef0fb;
  --row-button-size: 24px;
  --row-button-icon: 14px;
  --row-button-radius: calc(8px * var(--r-scale));
  --row-button-bg: #f1f1f8;
  --row-button-ink: #8080a3;
  --row-button-hover-bg: #5b5bf0;
  --row-button-hover-ink: #ffffff;
  --row-button-disabled-opacity: 0.4;
  --row-button-shadow: none;
  --row-button-active-shadow: none;
  --hub-row-ink: #8080a3;
  --hub-row-attention-ink: #a07408;
  --hub-row-error-ink: #e0554a;
  --hub-row-action-bg: #d9f7e8;
  --hub-row-action-ink: #1d8f6a;
  --hub-row-action-hover-bg: #c4efdb;
  --hub-row-face-size: 18px;
  --hub-row-prefix: none;
  --hub-row-prefix-gap: 0px;
  --hub-row-action-shadow: var(--edge);
  --hero-ink: #ffffff;
  --hero-bg: linear-gradient(120deg, #6a6af7 0%, #5b5bf0 45%, #8b5cf6 100%);
  --hero-shadow: 0 18px 40px -22px rgba(91, 91, 240, 0.9);
  --hero-blob-a: rgba(255, 255, 255, 0.1);
  --hero-blob-b: rgba(47, 201, 126, 0.18);
  --hero-cta-bg: #ffffff;
  --hero-cta-shadow: 0 10px 22px -10px rgba(28, 27, 51, 0.5);
  --hero-ghost-bg: rgba(255, 255, 255, 0.16);
  --hero-ghost-hover-bg: rgba(255, 255, 255, 0.26);
  --hero-face-bg: rgba(255, 255, 255, 0.55);
  --hero-bubble-shadow: 0 10px 24px -14px rgba(28, 27, 51, 0.6);
  --hero-bubble-1-bg: #ffffff;
  --hero-bubble-2-bg: #d9f7e8;
  --hero-bubble-2-ink: #14533f;
  --hero-bubble-3-bg: #fff3cc;
  --hero-bubble-3-ink: #5a4200;
  --hero-spark: #ffd166;
  --feature-emoji-bg: rgba(255, 255, 255, 0.8);
  --feature-peach-bg: #ffe4d6;
  --feature-shadow: var(--edge);
  --composer-shadow: none;
  --composer-bg: transparent;
  --composer-radius: 0px;
  --composer-pad-x: 0px;
  --step-bg: #ffffff;
  --step-num-ink: #ffffff;
  --tpl-shadow: 0 1px 3px rgba(28, 27, 51, 0.06);
  --tpl-check-ink: #ffffff;
  --browser-theme-color: #6d5dfc;
}
html {
  --ui-scale: 0.8;
  --layout-vw: calc(1vw / var(--ui-scale));
  --layout-vh: calc(1vh / var(--ui-scale));
  zoom: var(--ui-scale);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { font-family: var(--font); color: var(--page-ink); background: var(--page-bg); font-size: var(--fs-md); font-weight: 600; line-height: var(--line-height); -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.2; }
p { margin: 0 0 8px; }
pre, code { font-family: var(--mono); font-size: calc(12px * var(--fs-scale)); font-weight: 500; }
code { background: var(--lav); padding: 1px 6px; border-radius: calc(6px * var(--r-scale)); overflow-wrap: anywhere; }
pre { background: var(--code-bg); color: var(--code-ink); padding: 10px 12px; border-radius: var(--r-sm); overflow-x: auto; white-space: pre-wrap; }
[hidden] { display: none !important; }
::selection { background: var(--page-selection); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: calc(8px * var(--r-scale)); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
*::-webkit-scrollbar { width: var(--sb-w); height: var(--sb-w); }
*::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.25em; display: inline-block; background-color: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.i.lg { width: 20px; height: 20px; }
.i.xl { width: 24px; height: 24px; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.h-ico { width: 40px; height: 40px; border-radius: calc(13px * var(--r-scale)); background: var(--lav); color: var(--primary); display: inline-grid; place-content: center; flex: none; }
.h-ico .i { width: 20px; height: 20px; }
.h-ico.danger { background: var(--rose); color: var(--rose-ink); }
.hint { color: var(--faint); font-size: var(--fs-xs); font-weight: 600; line-height: 1.45; }
.hint.accent { color: var(--primary); }
.hint.warn { color: var(--warm-ink); }
.hint.req { color: var(--rose-ink); font-weight: 700; }
.hint.error, .error { color: var(--rose-ink); font-size: var(--fs-sm); font-weight: 700; }
.eyebrow { font-size: calc(11px * var(--fs-scale)); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 800; }
.muted { color: var(--muted); }
.saved { color: var(--mint-ink); font-size: var(--fs-sm); font-weight: 700; }
.saved:empty { display: none; }
.saved:not(:empty) { animation: fade-in var(--t-base) var(--ease-out); }
.linklike { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 800; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 12px; min-width: 0; }
.field > .label, .field > span.label { font-weight: 800; color: var(--ink-3); font-size: calc(12px * var(--fs-scale)); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.field .hint { margin: 0; }
.field .hint.error { margin-top: 2px; }
.field.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.field.row > .label { flex: 1; }
.field.row > .input, .field.row > .select { flex: 0 1 58%; min-width: 0; }
.input, .select, .textarea,
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-width: 0; height: 42px; padding: 0 14px; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--soft);
  font-size: calc(14px * var(--fs-scale)); font-weight: 700; color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.input:hover, .select:hover, .textarea:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--lav-2); }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: var(--card); }
.input.invalid, .field.invalid input, .field.invalid textarea { border-color: var(--rose-ink); }
.input::placeholder, .textarea::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--placeholder); font-weight: 600; }
.select, .field select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238f8fb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.select:disabled, .field select:disabled, .input:disabled, .field input:disabled { opacity: 0.55; cursor: default; }
.textarea, .field textarea { resize: vertical; min-height: 76px; height: auto; padding: 10px 14px; line-height: 1.5; }
:is(.input, .select, .textarea, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .field .rules-editor, .dialog input:not([type="checkbox"]):not([type="radio"]), .dialog select, .dialog textarea) { transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
:is(.input, .select, .textarea, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .field .rules-editor, .dialog input:not([type="checkbox"]):not([type="radio"]), .dialog select, .dialog textarea):hover:not(:disabled):not(:focus) { border-color: var(--lav-2); background: var(--card); }
:is(.input, .select, .textarea, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .field .rules-editor, .dialog input:not([type="checkbox"]):not([type="radio"]), .dialog select, .dialog textarea):focus { transform: translateY(-1px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent), 0 4px 10px color-mix(in srgb, var(--primary) 10%, transparent); animation: field-ring var(--t-slow) var(--ease-out); }
@keyframes field-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 34%, transparent), 0 0 0 transparent; } }
:is(.input, .textarea, .field input, .field textarea, .dialog input, .dialog textarea)::placeholder { transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
:is(.input, .textarea, .field input, .field textarea, .dialog input, .dialog textarea):focus::placeholder { opacity: 0.55; transform: translateX(3px); }
.field:hover > .label { color: var(--ink); }
.field:focus-within > .label { color: var(--primary); }
.field > .label { transition: color var(--t-fast); }
.field .rules-editor { display: block; width: 100%; box-sizing: border-box; min-height: 118px; max-height: 320px; overflow-y: auto; padding: 10px 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--soft); color: var(--ink); font-size: calc(14px * var(--fs-scale)); font-weight: 700; font-family: inherit; }
.field .rules-editor:hover { border-color: var(--lav-2); }
.field .rules-editor:focus { outline: none; border-color: var(--primary); background: var(--card); }
.field .rules-editor:empty::before { content: attr(data-placeholder); color: var(--placeholder); pointer-events: none; }
.mention-chip { display: inline-flex; align-items: center; gap: 4px; vertical-align: baseline; padding: 0 6px 0 2px; border-radius: calc(7px * var(--r-scale)); background: var(--soft); font-weight: 800; white-space: nowrap; line-height: 1.35; user-select: all; }
.mention-chip .chip-name { color: inherit; }
.field.inline-num input { width: 84px; }
.field-grid { display: grid; gap: 8px 10px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.field-grid.three { grid-template-columns: 1.3fr 1fr 1fr; }
.field-grid .field { margin-bottom: 4px; }
.field-note { font-size: var(--fs-xs); color: var(--faint); margin: -4px 0 10px; line-height: 1.45; }
.pair-offer { display: flex; gap: 14px; align-items: flex-start; }
.pair-qr { flex: none; width: 152px; height: 152px; border-radius: 8px; overflow: hidden; } 
.pair-qr svg { display: block; width: 100%; height: 100%; }
.pair-words { min-width: 0; overflow-wrap: anywhere; }
.pair-words p { margin: 0 0 6px; }
.switch, .toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: calc(13px * var(--fs-scale)); font-weight: 700; color: var(--ink-2); margin-bottom: 10px; cursor: pointer; }
.switch .label { flex: 1; }
.switch .label .hint { display: block; margin-top: 2px; }
.switch input, .toggle input { flex: none; width: 42px; height: 24px; appearance: none; -webkit-appearance: none; background: var(--lav-2); border-radius: var(--r-pill); position: relative; cursor: pointer; transition: background var(--t-base) var(--ease-out); margin: 0; }
.switch input::after, .toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: var(--control-knob); border-radius: calc(50% * var(--r-scale)); box-shadow: var(--control-knob-shadow); transition: transform var(--t-base) var(--ease-pop); }
.switch input:checked, .toggle input:checked { background: var(--primary); }
.switch input:checked::after, .toggle input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { outline: 3px solid var(--focus-ring); }
.check-list { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.check-row { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; font-size: calc(13px * var(--fs-scale)); font-weight: 700; color: var(--ink-2); cursor: pointer; margin-bottom: 0; padding: 8px 10px; border-radius: calc(12px * var(--r-scale)); transition: background var(--t-fast); }
.check-row:hover { background: var(--soft); }
.check-row input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 2px solid var(--lav-2); border-radius: calc(7px * var(--r-scale)); background: var(--control-box-bg); margin: 0; flex: none; display: grid; place-content: center; transition: background var(--t-fast), border-color var(--t-fast); cursor: pointer; }
.check-row input::before { content: ""; width: 10px; height: 10px; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: var(--control-tick); transform: scale(0); transition: transform var(--t-fast) var(--ease-pop); }
.check-row input:checked { background: var(--primary); border-color: var(--primary); }
.check-row input:checked::before { transform: scale(1); }
.check-row input:disabled { opacity: 0.45; }
.check-row .hint { display: block; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-size: calc(13px * var(--fs-scale)); font-weight: 600; color: var(--ink-2); background: var(--soft); border: 2px solid var(--soft); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.choice:hover { border-color: var(--lav-2); }
.switch input, .toggle input { transition: background var(--t-base) var(--ease-out), box-shadow var(--t-fast); }
.switch:hover input, .toggle:hover input { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.switch input::after, .toggle input::after { transition: transform var(--t-base) var(--ease-pop), width var(--t-fast) var(--ease-out); }
.switch input:active::after, .toggle input:active::after { width: 22px; }
.switch input:checked:active::after, .toggle input:checked:active::after { transform: translateX(14px); }
.switch:hover input:not(:checked, :active)::after, .toggle:hover input:not(:checked, :active)::after { transform: translateX(2px); }
.switch:hover input:checked:not(:active)::after, .toggle:hover input:checked:not(:active)::after { transform: translateX(16px); }
.check-row input { transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-base) var(--ease-pop); }
.check-row:hover input:not(:disabled) { border-color: var(--primary); transform: scale(1.08); }
.check-row:active input:not(:disabled) { transform: scale(0.9); }
.choice { transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
.choice:hover { transform: translateY(-1px); box-shadow: var(--shadow-tile); }
.choice:active { transform: none; box-shadow: none; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--lav); }
.choice input[type="radio"] { margin-top: 3px; accent-color: var(--primary); }
.choice-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.card { background: var(--soft); border: 0; border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.card.hover { transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), background var(--t-base); cursor: pointer; }
.card.hover:hover { transform: translateY(-2px); background: var(--lav); }
.card.cta { border: 2px dashed var(--lav-2); background: transparent; color: var(--primary); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; }
.card.cta:hover { background: var(--soft); transform: translateY(-2px); }
.card.cta .plus { width: 44px; height: 44px; border-radius: calc(14px * var(--r-scale)); background: var(--grad-primary); color: var(--btn-on-primary); display: grid; place-content: center; box-shadow: var(--shadow-primary); }
.card.cta .plus .i { width: 20px; height: 20px; }
.section { background: var(--soft); border: 0; border-radius: var(--r-lg); padding: 16px 16px 12px; margin-bottom: 12px; min-width: 0; }
.section > h4 { margin: 0 0 12px; font-size: calc(11px * var(--fs-scale)); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 7px; }
.section > h4 .i { display: none; }
.section > h4 .spacer { flex: 1; }
.section.danger { background: var(--rose); }
.section.danger > h4 { color: var(--rose-ink); }
.save-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 2px; }
.save-row .hint { flex: 1; margin: 0; }
.field > .label .fsaved { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--mint-ink); font-size: calc(11px * var(--fs-scale)); font-weight: 800; animation: fade-in var(--t-base) var(--ease-out); }
.field > .label .fsaved .i { width: 13px; height: 13px; }
.switch > .label .fsaved { float: right; display: inline-flex; align-items: center; gap: 3px; color: var(--mint-ink); font-size: calc(11px * var(--fs-scale)); font-weight: 800; animation: fade-in var(--t-base) var(--ease-out); }
.switch > .label .fsaved .i { width: 13px; height: 13px; }
.section .row-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin: 2px 0 6px; flex-wrap: wrap; }
.row-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.row-btns.start { justify-content: flex-start; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: var(--fs-sm); font-weight: 700; overflow-wrap: anywhere; }
.kv span:nth-child(odd) { color: var(--muted); font-weight: 600; overflow-wrap: normal; }
.kv span:nth-child(even) { text-align: right; color: var(--ink-2); }
.divider { height: 2px; background: var(--lav); margin: 10px 0; border-radius: calc(2px * var(--r-scale)); }
.geek { margin: 4px 0 2px; min-width: 0; }
.geek > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--lav); color: var(--primary); font-weight: 800; font-size: calc(12px * var(--fs-scale)); cursor: pointer; user-select: none; white-space: nowrap; min-width: 0; transition: background var(--t-fast); }
.geek > summary::-webkit-details-marker { display: none; }
.geek > summary:hover { background: var(--lav-2); }
.geek > summary .i { width: 16px; height: 16px; flex: none; }
.geek > summary .g-hint { font-weight: 600; color: var(--muted); font-size: var(--fs-xs); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.geek > summary .chev { margin-left: auto; display: inline-flex; flex: none; transition: transform var(--t-base) var(--ease-out); }
.geek[open] > summary .chev { transform: rotate(180deg); }
.geek > summary .chev { transition: transform var(--t-base) var(--ease-pop); }
.geek:not([open]) > summary:hover .chev { animation: fold-nod-down 560ms var(--ease-pop); }
.geek[open] > summary:hover .chev { animation: fold-nod-up 560ms var(--ease-pop); }
.geek > summary .chev .i { animation: none; transform: none; }
.geek-body { padding-top: 10px; animation: fade-in var(--t-base) var(--ease-out); min-width: 0; }
.geek-body > .section:last-child { margin-bottom: 0; }
.geek-tip { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--primary); padding: 0 0 1px; margin-left: auto; cursor: pointer; font-size: calc(11px * var(--fs-scale)); font-weight: 800; line-height: 1; white-space: nowrap; vertical-align: middle; box-shadow: inset 0 -1.5px 0 transparent; transition: box-shadow var(--t-fast); }
.geek-tip .i { width: 17px; height: 17px; display: block; }
p .geek-tip, .hint > .geek-tip, .switch .label > .geek-tip { margin-left: 8px; }
.geek-tip:hover { box-shadow: inset 0 -1.5px 0 currentColor; }
.geek-text { display: block; flex: 1 0 100%; font-size: calc(11.5px * var(--fs-scale)); font-weight: 600; color: var(--muted); background: var(--lav); border-radius: calc(10px * var(--r-scale)); padding: 8px 10px; margin: 4px 0 2px; line-height: 1.45; animation: fade-in var(--t-base) var(--ease-out); }
.geek-text code { font-size: calc(11px * var(--fs-scale)); }
.choice-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.choice-row > .label { font-size: calc(12px * var(--fs-scale)); font-weight: 800; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 2px 0 14px; }
.agent-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border: 2px solid transparent; border-radius: var(--r-md); background: var(--soft); cursor: pointer; text-align: center; transition: transform var(--t-fast) var(--ease-out), border-color var(--t-fast), background var(--t-fast); min-width: 0; }
.agent-tile .at-name { font-size: calc(12px * var(--fs-scale)); font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.agent-tile .at-sub { font-size: calc(10px * var(--fs-scale)); font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.agent-tile:hover:not(.off) { transform: translateY(-2px); background: var(--lav); }
.agent-tile.selected { border-color: var(--primary); background: var(--lav); }
.agent-tile.off { opacity: 0.5; filter: grayscale(1); cursor: default; }
.agent-tile :is(.avatar .glyph, [data-ui="logo-tile"] .mark, [data-ui="logo-tile"] .i) { transition: transform var(--t-base) var(--ease-pop); }
.agent-tile:hover:not(.off) .avatar .glyph { transform: scale(1.12) rotate(-4deg); }
.agent-tile:hover:not(.off) :is([data-ui="logo-tile"] .mark, [data-ui="logo-tile"] .i) { transform: scale(1.15) rotate(-6deg); }
.count-pill { background: var(--primary); color: var(--tile-count-ink); border-radius: var(--r-pill); font-size: calc(10px * var(--fs-scale)); padding: 1px 7px; font-weight: 800; line-height: calc(15px * var(--fs-scale)); }
.zzz { font-size: calc(10px * var(--fs-scale)); font-weight: 800; color: var(--muted); background: var(--softer); padding: 3px 8px; border-radius: var(--r-pill); }
.live-dot { width: 8px; height: 8px; border-radius: calc(50% * var(--r-scale)); background: var(--st-thinking-dot); box-shadow: 0 0 0 3px var(--st-thinking); animation: pulse 1.2s ease-in-out infinite; display: inline-block; }
.avatar-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin: 4px 0 8px; max-height: 148px; overflow-y: auto; padding: 2px 4px 2px 2px; scroll-padding: 4px; }
.avatar-picker button { aspect-ratio: 1; width: 100%; border-radius: calc(12px * var(--r-scale)); border: 2px solid transparent; background: var(--soft); font-size: 20px; padding: 0; display: inline-flex; align-items: center; justify-content: center; transition: transform var(--t-fast) var(--ease-pop), border-color var(--t-fast), background var(--t-fast); }
.avatar-picker button:hover { transform: translateY(-1px); background: var(--lav); }
.avatar-picker button.selected { border-color: var(--primary); background: var(--lav); }
.avatar-picker button.none { font-size: 12px; font-weight: 800; color: var(--muted); }
.avatar-picker button:hover { transform: translateY(-2px) scale(1.14) rotate(-4deg); }
.avatar-picker button:active { transform: scale(0.94); }
.emoji-pick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; min-width: 0; }
.emoji-pick .avatar-picker { margin: 0; }
.emoji-pick .emoji-search, .field .emoji-pick .emoji-search { width: 100%; box-sizing: border-box; height: 32px; min-height: 0; padding: 0 12px; border-radius: var(--r-sm); border: 2px solid var(--lav); background: var(--soft); font: inherit; font-size: calc(13px * var(--fs-scale)); font-weight: 700; color: var(--ink); }
.emoji-pick .emoji-search:focus, .field .emoji-pick .emoji-search:focus { outline: none; border-color: var(--primary); }
.emoji-none { grid-column: 1 / -1; color: var(--muted); font-size: calc(12px * var(--fs-scale)); font-weight: 700; padding: 8px 4px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.vendor-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 8px; }
.vendor-card .vc-head, .vendor-row { display: flex; align-items: center; gap: 10px; }
.vendor-row { padding: 6px 0; }
.vc-name { font-weight: 800; flex: 1; min-width: 0; }
.vc-name .hint { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vendor-card .vc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vendor-card .vc-fields .field { margin-bottom: 0; }
.action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 16px; }
.action { height: 58px; border: 0; border-radius: var(--r-md); background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: calc(11px * var(--fs-scale)); font-weight: 800; color: var(--ink-3); cursor: pointer; padding: 0; transition: background var(--t-fast), transform var(--t-fast) var(--ease-out); }
.action .ico { display: flex; color: inherit; }
.action .ico .i { width: 16px; height: 16px; }
.action:first-child { color: var(--primary); }
.action:hover:not(:disabled) { background: var(--lav); transform: translateY(-1px); }
.action.danger { background: var(--rose); color: var(--rose-ink); }
.action.danger:hover:not(:disabled) { background: var(--btn-danger-hover-bg); }
.action:disabled { opacity: 0.45; cursor: default; }
.open-link { color: var(--link-ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--link-underline); text-underline-offset: 2px; cursor: pointer; overflow-wrap: anywhere; }
.open-link:hover { text-decoration-color: var(--primary); }
code .open-link { color: inherit; }
.mermaid-block, .csv-block { margin: 8px 0; background: var(--card); border-radius: calc(14px * var(--r-scale)); padding: 10px 12px 4px; max-width: 100%; overflow-x: auto; box-shadow: var(--edge); }
.mermaid-block .mm-out svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.mermaid-block .mm-out pre { margin: 0; }
.mermaid-block .mm-bar, .csv-block .mm-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 2px; }
.mermaid-block .mm-src, .csv-block .mm-src { border: 0; background: transparent; color: var(--faint); font-size: calc(11px * var(--fs-scale)); font-weight: 800; cursor: pointer; padding: 2px 6px; border-radius: calc(6px * var(--r-scale)); }
.mermaid-block .mm-src:hover, .csv-block .mm-src:hover { background: var(--soft); color: var(--primary); }
.mermaid-block .mm-code, .csv-block .mm-code { margin: 6px 0 0; }
.csv-block .csv-wrap { box-shadow: none; max-height: 320px; }
.csv-block .csv-count { margin: 4px 2px 0; }
.mermaid-block.preview { margin-top: 4px; }
.mermaid-block.preview .mm-bar { display: none; }
.diagram-presets .swatch { width: 14px; height: 14px; border-radius: calc(5px * var(--r-scale)); border: 2px solid; display: inline-block; }
.menu, .mention-menu { position: absolute; background: var(--card); border: 0; border-radius: calc(14px * var(--r-scale)); box-shadow: var(--shadow-pop); padding: 6px; z-index: 30; min-width: 240px; max-height: 280px; overflow-y: auto; animation: rise var(--t-base) var(--ease-out); transform-origin: bottom left; }
.menu button, .mention-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: calc(10px * var(--r-scale)); text-align: left; font-size: calc(13px * var(--fs-scale)); font-weight: 800; color: var(--ink); }
.menu button.active, .menu button:hover, .mention-menu button.active, .mention-menu button:hover { background: var(--lav); }
.menu button, .mention-menu button { transition: background var(--t-fast), transform var(--t-fast) var(--ease-pop); }
.menu button:hover, .mention-menu button:hover { transform: translateX(2px); } 
.menu .mm-sub, .mention-menu .mm-sub { color: var(--muted); font-size: calc(11px * var(--fs-scale)); font-weight: 600; line-height: 1.3; }
.menu .mm-skill, .mention-menu .mm-skill { font-weight: 800; color: var(--primary); min-width: 84px; }
.mention-host { position: relative; }
.mention-menu.inline { left: 0; top: 100%; bottom: auto; margin-top: 4px; }
.emoji-menu { min-width: 0; width: 352px; padding: 8px; }
.emoji-menu .avatar-picker { margin: 0; grid-template-columns: repeat(8, 1fr); }
#rp-emoji-picker .avatar-picker { max-height: 236px; }
.dialog { border: 0; border-radius: calc(22px * var(--r-scale)); padding: 24px 26px; width: 580px; max-width: calc(94 * var(--layout-vw)); max-height: calc(90 * var(--layout-vh)); box-shadow: var(--shadow-dialog); overflow: auto; overflow-x: hidden; background: var(--card); color: var(--ink); }
.dialog::backdrop { background: var(--dialog-backdrop); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop var(--t-slow) var(--ease-pop); }
.dialog[open]::backdrop { animation: fade-in var(--t-base) var(--ease-out); }
.dialog.closing { animation: pop-out var(--t-base) var(--ease-out) forwards; }
.dialog.closing::backdrop { animation: fade-out var(--t-base) var(--ease-out) forwards; }
.dialog form { min-width: 0; }
.dialog h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font-size: calc(20px * var(--fs-scale)); }
.dialog .lead { color: var(--muted); font-size: calc(13px * var(--fs-scale)); font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.dialog label:not(.check-row):not(.choice):not(.switch) { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: calc(12px * var(--fs-scale)); font-weight: 800; color: var(--ink-3); margin-bottom: 12px; min-width: 0; }
.dialog label:not(.check-row):not(.choice):not(.switch) > .hint { margin: 0; }
.dialog label:not(.check-row):not(.choice):not(.switch) > input:not([type="checkbox"]):not([type="radio"]),
.dialog label:not(.check-row):not(.choice):not(.switch) > select,
.dialog label:not(.check-row):not(.choice):not(.switch) > textarea,
.dialog label:not(.check-row):not(.choice):not(.switch) > div,
.dialog label:not(.check-row):not(.choice):not(.switch) > .geek-text { flex: 1 0 100%; margin-top: 2px; }
.dialog label:not(.check-row):not(.choice):not(.switch) > input[type="number"] { flex: 0 0 120px; }
.dialog input:not([type="checkbox"]):not([type="radio"]), .dialog select, .dialog textarea { width: 100%; min-width: 0; height: 42px; padding: 0 14px; border: 2px solid var(--lav); border-radius: var(--r-sm); background: var(--soft); font-size: calc(14px * var(--fs-scale)); font-weight: 700; color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast); }
.dialog input:focus, .dialog select:focus, .dialog textarea:focus { outline: none; border-color: var(--primary); background: var(--card); }
.dialog input::placeholder, .dialog textarea::placeholder { color: var(--placeholder); font-weight: 600; }
.dialog select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238f8fb0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.dialog select:disabled { opacity: 0.55; }
.dialog textarea { resize: vertical; min-height: 76px; height: auto; padding: 10px 14px; line-height: 1.5; }
.dialog .two { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.dialog .three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.dialog .two > label, .dialog .three > label { min-width: 0; }
.dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dialog .actions .spacer { flex: 1; }
.dialog.wide { width: 720px; }
.dialog.narrow { width: 440px; }
.dialog.narrow.three-way { width: 580px; }
.dialog.narrow.three-way .actions { flex-wrap: nowrap; }
.dialog.narrow.three-way .actions [data-ui="button"] { white-space: nowrap; }
.toasts { position: fixed; right: 18px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 400px; z-index: 50; pointer-events: none; }
.toast { pointer-events: auto; background: var(--toast-bg); color: var(--toast-ink); padding: 10px 14px; border-radius: calc(12px * var(--r-scale)); font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-pop); cursor: pointer; animation: slide-in-right var(--t-slow) var(--ease-pop); line-height: 1.4; display: flex; gap: 8px; align-items: flex-start; }
.toast .i { width: 15px; height: 15px; margin-top: 1px; opacity: 0.85; }
.toast.warn { background: var(--warm-ink); }
.toast.error { background: var(--rose-ink); }
.toast.leaving { animation: fade-out var(--t-base) var(--ease-out) forwards; }
.segmented { display: inline-flex; background: var(--soft); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 6px 12px; font-size: var(--fs-sm); font-weight: 800; color: var(--muted); transition: background var(--t-fast), color var(--t-fast); }
.segmented button.active { background: var(--card); color: var(--primary); box-shadow: var(--shadow-tile); }
.segmented button { transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-pop); }
.segmented button:not(.active):hover { background: color-mix(in srgb, var(--card) 55%, transparent); color: var(--ink-2); }
.segmented button:active { transform: scale(0.96); }
.empty { margin: auto; text-align: center; color: var(--muted); max-width: 400px; line-height: 1.55; padding: 24px; font-weight: 600; }
.empty .art { color: var(--primary); margin-bottom: 8px; }
.empty .art .i { width: 48px; height: 48px; }
.empty strong { color: var(--ink); }
.empty .art .i { transition: transform var(--t-base) var(--ease-pop); }
.empty:hover .art .i { transform: translateY(-3px) rotate(-4deg) scale(1.06); }
@keyframes pulse { 50% { transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pop-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes bubble-in { from { transform: translateY(8px) scale(0.98); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
