/* /assets/style.css */
:root {
  --void: #ecebe4;
  --void-2: #e2e0d7;
  --glass: rgba(255,255,255,0.50);
  --glass-2: rgba(255,255,255,0.78);
  --hair: rgba(20,20,26,0.10);
  --hair-2: rgba(20,20,26,0.20);
  --text: #16161c;
  --muted: #6c6c77;
  --ceramic: #efece6;
  --ceramic-ink: #14141a;
  --jade: #156f9c;
  --danger: #c1473d;
  --radius: 12px;
  --bg:
    radial-gradient(1100px 680px at 50% -240px, #fbfaf6 0%, rgba(236,235,228,0) 60%),
    var(--void);
  --nav-bg: rgba(238,236,229,0.72);
  --grad-from: #16161c;
  --grad-to: #5a5a66;
  --input: rgba(255,255,255,0.55);
  --input-2: rgba(255,255,255,0.85);
  --placeholder: #9a9aa2;
  --primary: #16161c;
  --primary-ink: #f6f5f1;
  --primary-hover: #000;
  --btn-hover-border: rgba(20,20,26,0.34);
  --frame: var(--void);
  --banner:
    radial-gradient(120% 150% at 50% -30%, #f6f4ee 0%, rgba(226,224,215,0) 60%),
    #e2e0d7;
  --card-shadow: 0 30px 70px -50px rgba(20,20,26,0.30);
  --thumb-shadow: 0 18px 36px -22px rgba(20,20,26,0.32);
  font-synthesis: none;
}
:root[data-alyssiun-atmosphere="neo"],
:root[data-atmosphere="void"] {
  --void: #060608;
  --void-2: #0c0c11;
  --glass: rgba(255,255,255,0.035);
  --glass-2: rgba(255,255,255,0.06);
  --hair: rgba(255,255,255,0.09);
  --hair-2: rgba(255,255,255,0.16);
  --text: #f4f4f6;
  --muted: #8b8b97;
  --jade: #5CC8F2;
  --danger: #e0726a;
  --bg:
    radial-gradient(1100px 680px at 50% -240px, #15151d 0%, rgba(6,6,8,0) 60%),
    var(--void);
  --nav-bg: rgba(6,6,8,0.7);
  --grad-from: #ffffff;
  --grad-to: #aeaeba;
  --input: rgba(255,255,255,0.02);
  --input-2: rgba(255,255,255,0.04);
  --placeholder: #55555f;
  --primary: var(--ceramic);
  --primary-ink: var(--ceramic-ink);
  --primary-hover: #fff;
  --btn-hover-border: rgba(255,255,255,0.34);
  --frame: var(--void);
  --banner:
    radial-gradient(120% 150% at 50% -30%, #1a1a24 0%, rgba(8,8,12,0) 60%),
    #08080c;
  --card-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
  --thumb-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; }
h1 { font-weight: 200; }
.muted { color: var(--muted); }
.mono, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
label, .eyebrow {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
header.nav {
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  background: var(--nav-bg); border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 700; letter-spacing: 0.2em; font-size: 14px; text-transform: uppercase; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--muted); font-weight: 400; }
.alyssiun-brand { display: inline-flex; align-items: center; gap: 9px; line-height: 1; }
.alyssiun-wordmark { display: block; height: 16px; width: 80px; background: url("https://drive.alyssiun.com/s/DuOcfsHxUfJVuAGj/alyssiun-name-000000.png") left center/contain no-repeat; }
:root[data-alyssiun-atmosphere="neo"] .alyssiun-wordmark,
:root[data-theme="neo"] .alyssiun-wordmark { background-image: url("https://drive.alyssiun.com/s/alyssiun/alyssiun-name-ffffff.png"); }
.alyssiun-appname { font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text); background: var(--glass); border: 1px solid var(--hair-2);
  padding: 12px 18px; border-radius: 5px; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--btn-hover-border); background: var(--glass-2); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 9px 13px; font-size: 11px; }
.btn:focus-visible { outline: 2px solid var(--hair-2); outline-offset: 2px; }
.btn, .btn-quiet, .aly-chip, .aly-kind-option, .aly-settings-dialog-tab, .cycle-option, .dock-mode-option,
.workspace-rail-item, .workspace-panel-resize, .workspace-panel-toggle { -webkit-user-select: none; user-select: none; }
button.btn, .btn-quiet, .workspace-panel-resize, .workspace-rail-item { -webkit-touch-callout: none; }
.hero { padding: 92px 0 56px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; margin: 18px 0 18px; }
.hero h1 .grad {
  background: linear-gradient(180deg, var(--grad-from), var(--grad-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: var(--muted); max-width: 720px; }
.grid { display: grid; gap: 16px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--glass); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 22px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.section { padding: 40px 0; }
.section h2 { font-size: 24px; margin: 0 0 16px; }
.pill {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 11px;
  border-radius: 5px; border: 1px solid var(--hair-2); color: var(--muted); background: var(--glass);
}
.pill.verified { color: var(--jade); border-color: var(--aly-accent-line, rgba(92,200,242,0.35)); }
.pill.trusted { color: var(--text); }
.pill.limited { color: #e6c07a; border-color: rgba(230,192,122,0.4); }
.pill.under_review { color: var(--muted); }
label { margin: 16px 0 7px; }
input, textarea, select {
  width: 100%; background: var(--input); border: 1px solid var(--hair);
  color: var(--text); padding: 12px 13px; border-radius: 6px; font-size: 14px; font-family: inherit;
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--hair-2); background: var(--input-2); }
textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 200px; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.check input { width: auto; }
.check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin: 14px 0; border: 1px solid var(--hair-2); }
.notice.err { background: rgba(224,114,106,0.08); border-color: rgba(224,114,106,0.5); color: #f0a59f; }
.notice.ok { background: var(--aly-accent-soft, rgba(92,200,242,0.18)); border-color: var(--aly-accent-line, rgba(92,200,242,0.35)); color: var(--jade); }
.codeblock {
  background: var(--void-2); border: 1px solid var(--hair); border-radius: 8px;
  padding: 14px; overflow-x: auto; font-size: 13px; white-space: pre;
}
footer.foot { border-top: 1px solid var(--hair); margin-top: 64px; padding: 30px 0; color: var(--muted); font-size: 12px; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--text); }
.hidden { display: none !important; }
.avatar-img {
  width: 104px; height: 104px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--hair-2); background: var(--void-2);
}
@media (max-width: 600px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 0; gap: 10px 14px; }
  .nav-links { width: 100%; margin-left: 0; justify-content: flex-start; flex-wrap: wrap; gap: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* /assets/aly-theme.css */
:root,
:root[data-alyssiun-atmosphere] {
  --aly-accent: #5CC8F2;
  --aly-accent-soft: rgba(92, 200, 242, 0.18);
  --aly-accent-line: rgba(92, 200, 242, 0.35);
  --aly-glow: rgba(92, 200, 242, 0.25);
  --aly-accent-ink: #156f9c;
  --aly-glass: rgba(255, 255, 255, 0.62);
  --aly-glass-blur: blur(18px) saturate(1.2);
  --jade: var(--aly-accent-ink);
}
:root[data-alyssiun-atmosphere="neo"],
:root[data-atmosphere="void"],
:root[data-theme="neo"] {
  --aly-accent-ink: var(--aly-accent);
  --aly-base: #05070D;
  --aos-bg: var(--aly-base);
  --aly-glass: rgba(14, 20, 32, 0.55);
  --void: var(--aly-base);
  --bg: radial-gradient(1100px 680px at 50% -240px, #0b1220 0%, rgba(5, 7, 13, 0) 60%), var(--aly-base);
  --jade: var(--aly-accent);
}
:root {
  --aly-nav-bg: rgba(255, 255, 255, 0.62);
  --aly-nav-bg-hover: rgba(255, 255, 255, 0.95);
  --aly-nav-line: rgba(20, 20, 26, 0.12);
  --aly-nav-line-strong: rgba(20, 20, 26, 0.28);
  --aly-nav-text: #16161c;
  --aly-nav-muted: #6c6c77;
  --aly-nav-active-bg: var(--aly-accent-soft);
  --aly-nav-accent: var(--aly-accent-ink);
  --aly-nav-tip-bg: #16161c;
  --aly-nav-tip-text: #f6f5f1;
}
:root[data-alyssiun-atmosphere="neo"],
:root[data-atmosphere="void"],
:root[data-theme="neo"] {
  --aly-nav-bg: rgba(255, 255, 255, 0.045);
  --aly-nav-bg-hover: rgba(255, 255, 255, 0.09);
  --aly-nav-line: rgba(255, 255, 255, 0.12);
  --aly-nav-line-strong: rgba(255, 255, 255, 0.28);
  --aly-nav-text: #f4f4f6;
  --aly-nav-muted: #8b8b97;
  --aly-nav-active-bg: var(--aly-accent-soft);
  --aly-nav-accent: var(--aly-accent);
  --aly-nav-tip-bg: #f4f4f6;
  --aly-nav-tip-text: #0c0c11;
}
:root {
  --surface: #ffffff;
  --surface-2: #f7f6f1;
  --surface-line: rgba(20, 20, 26, 0.14);
  --scrim: rgba(24, 23, 20, 0.42);
}
:root[data-alyssiun-atmosphere="neo"],
:root[data-atmosphere="void"],
:root[data-theme="neo"] {
  --surface: #16161c;
  --surface-2: #1d1d24;
  --surface-line: rgba(255, 255, 255, 0.14);
  --scrim: rgba(0, 0, 0, 0.62);
}
input, textarea, select {
  background: var(--surface);
  color: var(--text);
  border-color: var(--surface-line);
}
input:focus, textarea:focus, select:focus {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
}
::placeholder { color: var(--muted); opacity: 1; }
.aly-shell .aly-main .aly-topbar { background: var(--nav-bg) !important; }
.aly-settings-dialog .aly-settings-dialog-head,
.aly-settings-dialog .aly-usage-head,
.aly-dialog-backdrop .aly-dialog header,
.aly-dialog-backdrop .aly-dialog footer,
.aly-dialog-backdrop .aly-dialog section { background: transparent !important; }

/* /assets/aly.css */
.aly-body {
  height: var(--aly-viewport-height, 100dvh);
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--void); color: var(--text); padding: 12px 18px; border: 1px solid var(--hair-2);
}
.skip-link:focus { left: 12px; top: 12px; }
.aly-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
:where(button, a, textarea, input, [tabindex]):focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px; border-radius: 3px;
}
.aly-shell {
  height: var(--aly-viewport-height, 100dvh);
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.aly-shell[hidden] { display: none; }
@media (min-width: 901px) {
  .aly-shell.is-project-focus { grid-template-columns: minmax(0, 1fr); }
  .aly-shell.is-project-focus .aly-sidebar { display: none; }
}
.aly-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0; min-height: 0;
  overflow: hidden;
}
.aly-topbar {
  display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 0 clamp(14px, 3vw, 28px);
  border-bottom: 1px solid var(--hair);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.aly-title {
  margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.aly-topbar-actions { display: flex; gap: 6px; }
.aly-icon-btn {
  border: 1px solid transparent; background: none; color: var(--muted);
  font: inherit; font-size: 13px; cursor: pointer; padding: 7px 10px; border-radius: 6px;
  line-height: 1;
}
.aly-icon-btn:hover:not(:disabled) { color: var(--text); background: var(--glass-2); }
.aly-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.aly-icon-btn.aly-danger:hover { color: var(--danger); }
.aly-sidebar-open, .aly-sidebar-close { display: none; font-size: 16px; }
.aly-copy-btn { padding: 5px 7px; font-size: 12px; }
.aly-copy-icon { display: inline-block; }
.aly-copy-btn.is-copied { color: var(--jade); }
.aly-transcript {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  padding: 0 clamp(14px, 4vw, 28px);
}
.aly-messages {
  width: min(760px, 100%); margin: 0 auto;
  padding: 26px 0 10px; display: flex; flex-direction: column; gap: 30px;
}
.aly-identity {
  width: min(760px, 100%); margin: 0 auto;
  min-height: 52vh; min-height: 52dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 0 16px;
}
.aly-identity[hidden] { display: none; }
.aly-identity-card {
  position: relative; isolation: isolate; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.aly-identity-card::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 0; transform: translateX(-50%);
  width: clamp(200px, 40%, 320px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--jade) 32%, transparent) 0%, transparent 66%);
  filter: blur(36px); opacity: 0.55; pointer-events: none;
}
.aly-identity-mark {
  width: clamp(150px, 22vw, 216px); height: clamp(150px, 22vw, 216px);
  display: grid; place-items: center;
  position: relative;
}
.aly-identity-card:not(:has(.has-sphere))::before { opacity: 0 !important; }
.aly-identity-card:has(.is-orb-entering)::before { animation: aly-orb-bloom-in 1.2s ease both; }
@keyframes aly-orb-bloom-in { 0%, 30% { opacity: 0; } 54% { opacity: 0.95; } }
@media (prefers-reduced-motion: reduce) {
  .aly-identity-card:has(.is-orb-entering)::before { animation: aly-orb-bloom-fade 0.4s ease both; }
}
@keyframes aly-orb-bloom-fade { from { opacity: 0; } }
.aly-sphere-mount canvas { display: block; width: 100%; height: 100%; }
.aly-sphere-compact { width: 34px; height: 34px; flex: 0 0 auto; display: none; }
.aly-sphere-compact.has-sphere { display: block; }
.aly-status {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.aly-status[hidden] { display: none; }
.aly-identity-title {
  margin: 22px 0 0; font-size: clamp(34px, 5.6vw, 54px); font-weight: 200;
  letter-spacing: -0.025em; line-height: 1.08;
}
.aly-message { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aly-message > * { min-width: 0; max-width: 100%; }
.aly-message > .aly-elapsed {
  position: absolute; top: 0; right: 0;
  font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  color: var(--muted); opacity: 0.7; white-space: nowrap; pointer-events: none;
}
.aly-message.is-failed > .aly-elapsed { color: var(--danger); opacity: 0.85; }
.aly-message-role {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); opacity: 0.7;
}
.aly-message-body { font-size: 15.5px; line-height: 1.72; overflow-wrap: anywhere; min-width: 0; }
.aly-message-body > *:first-child { margin-top: 0; }
.aly-message-body > *:last-child { margin-bottom: 0; }
.aly-message-body p { margin: 0 0 14px; }
.aly-message-body ul, .aly-message-body ol { margin: 0 0 14px; padding-left: 22px; }
.aly-message-body li { margin-bottom: 5px; }
.aly-message-body pre {
  background: var(--void-2); border: 1px solid var(--hair); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; margin: 0 0 14px; font-size: 13.5px; line-height: 1.6;
  max-width: 100%;
}
.aly-message-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.aly-message-body :not(pre) > code { background: var(--void-2); padding: 1px 5px; border-radius: 4px; }
.aly-message.is-user { align-items: flex-end; }
.aly-message.is-user .aly-message-body {
  max-width: 88%;
  background: var(--glass-2); border: 1px solid var(--hair);
  border-radius: 18px; padding: 12px 16px; white-space: pre-wrap;
}
.aly-message.is-failed .aly-message-body { border-left: 2px solid var(--danger); padding-left: 13px; }
.aly-agent-card { width:min(760px,100%); border:1px solid var(--hair-2); border-radius:var(--radius); background:var(--glass-2); padding:14px 16px; }
.aly-agent-select { width:100%; margin:8px 0; padding:8px 10px; border:1px solid var(--hair-2); border-radius:var(--radius); background:var(--glass-2); color:inherit; font:inherit; }
.aly-agent-title { margin:0; font-size:14px; font-weight:600; }
.aly-agent-copy { margin:6px 0 12px; color:var(--muted); font-size:13px; line-height:1.5; }
.aly-cursor {
  display: inline-block; width: 2px; height: 1.05em; vertical-align: text-bottom;
  background: var(--text); margin-left: 2px; animation: aly-blink 1.1s steps(2, start) infinite;
}
@keyframes aly-blink { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .aly-cursor { animation: none; } }

/* /assets/aly-composer.css */
.aly-research { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.aly-research li { font-size: 12px; color: var(--muted); background: var(--void-2); border-radius: 999px; padding: 3px 10px; }
.aly-research li.is-failed { color: var(--danger); }
.aly-sources { margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid var(--hair-2); }
.aly-sources-title { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.aly-sources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.aly-sources-list li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; }
.aly-source { color: var(--text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.aly-source-host { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.aly-composer-region {
  padding: 4px clamp(14px, 4vw, 28px)
           calc(8px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  background: linear-gradient(to top, var(--void) 62%, transparent);
}
.aly-composer { position: relative; width: min(760px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.aly-composer.is-read-only { opacity: .62; }
.aly-composer.is-read-only .aly-input { cursor: not-allowed; }
.aly-composer.is-read-only .aly-send,
.aly-composer.is-read-only .aly-composer-actions { pointer-events: none; }
.aly-voice-btn[aria-pressed="true"] {
  color: var(--text); background: var(--void-2); border-color: var(--hair-2);
}
.aly-mic-state {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aly-mic-state[hidden] { display: none; }
.aly-mic-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--danger); flex: 0 0 auto;
  animation: aly-mic-pulse 1.9s ease-in-out infinite;
}
@keyframes aly-mic-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .aly-mic-dot { animation: none; } }
.aly-attachments { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.aly-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 260px;
  border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass-2);
  padding: 5px 7px 5px 10px; font-size: 12.5px; color: var(--muted);
}
.aly-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aly-chip { position: relative; }
.aly-chip-status { display: inline-flex; width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.aly-chip-status svg { width: 100%; height: 100%; overflow: visible; }
.aly-chip-status circle, .aly-chip-status path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.aly-chip-track { opacity: 0.25; }
.aly-chip-ring {
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--aly-upload, 0));
  transform: rotate(-90deg); transform-origin: 12px 12px; transition: stroke-dashoffset 0.2s linear;
}
.aly-chip-check { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.aly-chip.is-done .aly-chip-track, .aly-chip.is-done .aly-chip-ring { opacity: 0; transition: opacity 0.2s ease; }
.aly-chip.is-done .aly-chip-check { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s ease 0.1s, opacity 0.2s ease; }
.aly-chip.is-failed .aly-chip-status { display: none; }
.aly-chip-retry { display: none; }
.aly-chip.is-failed { border-color: var(--danger); }
.aly-chip.is-failed .aly-chip-retry { display: inline-flex; color: var(--text); font-size: 11.5px; font-weight: 600; }
.aly-upload-hint { margin: 4px 2px 0; font-size: 11.5px; color: var(--muted); }
.aly-upload-hint[hidden] { display: none; }
.aly-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; padding: 0 3px; }
.aly-chip button:hover { color: var(--danger); }
.aly-chip-image {
  position: relative; padding: 0; max-width: none;
  width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
}
.aly-chip-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aly-chip-image .aly-chip-remove {
  position: absolute; top: 2px; right: 2px; padding: 0;
  width: 18px; height: 18px; border-radius: 50%; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 10px;
}
.aly-chip-image .aly-chip-remove:hover { background: var(--danger); color: #fff; }
.aly-chip-image .aly-chip-status {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px;
  color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.aly-chip-image.is-pending img { filter: brightness(0.6); }
.aly-chip-image.is-done .aly-chip-status {
  left: 3px; top: auto; bottom: 3px; width: 16px; height: 16px; margin: 0;
  border-radius: 50%; background: rgba(0, 0, 0, 0.5); padding: 2px; transition: all 0.25s ease;
}
.aly-chip-image .aly-chip-retry {
  position: absolute; inset: 0; margin: auto; width: max-content; height: 24px; padding: 0 7px;
  border-radius: 12px; align-items: center; background: rgba(0, 0, 0, 0.6); color: #fff;
}
.aly-chip-image.is-failed img { filter: brightness(0.5); }
@media (prefers-reduced-motion: reduce) { .aly-chip-ring, .aly-chip-check, .aly-chip-image .aly-chip-status { transition: none; } }
.aly-fineprint {
  width: min(760px, 100%); margin: 6px auto 0; text-align: center;
  font-size: 11px; line-height: 1.3; letter-spacing: 0.01em; opacity: 0.48;
}
.aly-notice {
  width: min(760px, 100%); margin: 0 auto 10px;
  border: 1px solid var(--hair-2); border-left: 2px solid var(--danger);
  border-radius: 6px; background: var(--glass-2); padding: 11px 14px; font-size: 13.5px;
}
.aly-notice[hidden] { display: none; }
.aly-support-contact { display: inline-flex; margin-top: 12px; }
.aly-credit-pause {
  width: min(760px, 100%); margin: 0 auto 8px;
  border: 1px solid var(--hair-2); border-radius: 6px;
  background: var(--glass-2); padding: 9px 13px;
  font-size: 13px; color: var(--muted); line-height: 1.45;
}
.aly-credit-pause[hidden] { display: none; }
.aly-gate { height: 100dvh; display: grid; place-items: center; padding: 24px; }
.aly-gate[hidden] { display: none; }
.aly-gate-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 460px; }
.aly-gate-mark { width: 180px; margin-bottom: 10px; }
.aly-gate-title { margin: 0; font-size: clamp(44px, 9vw, 68px); font-weight: 200; letter-spacing: 0.16em; text-indent: 0.16em; }
.aly-gate-sub { margin: 0; font-size: 15px; }
.aly-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 40; }
.aly-scrim[hidden] { display: none; }
@media (max-width: 900px) {
  .aly-shell { grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 100%; }
  .aly-sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(304px, 86vw); z-index: 50;
    background: var(--void); transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .aly-sidebar.is-open { transform: none; }
  .aly-sidebar-open, .aly-sidebar-close { display: inline-block; }
  .aly-sidebar-open {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; padding: 0;
    font-size: 24px; line-height: 1;
    color: var(--text);
    border-color: var(--hair-2);
    background: var(--glass);
  }
  .aly-sidebar-open:hover:not(:disabled), .aly-sidebar-open:focus-visible {
    color: var(--text); background: var(--glass-2); border-color: var(--text);
  }
  .aly-identity { min-height: 44vh; min-height: 44dvh; padding-top: 24px; }
  .aly-identity-mark { width: min(52vw, 200px); height: min(52vw, 200px); }
}
@media (prefers-reduced-motion: reduce) { .aly-sidebar { transition: none; } }
.aly-notice-action {
  display: inline-block; margin-left: 2px; font-weight: 600;
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.aly-in-panel .aly-topbar { padding-right: 56px; }
.aly-plan-steps { margin: 10px 0; padding-left: 20px; display: grid; gap: 8px; }
.aly-plan-step-detail { color: var(--muted); }
.aly-plan-step-status { display: block; font-size: 12px; color: var(--muted); }
.aly-plan-step-status.is-ok { color: var(--jade); }
.aly-plan-step-status.is-failed { color: var(--danger); }
.aly-plan-step-link { font-size: 12px; }
.aly-agent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.aly-choice-option { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.aly-choice-last { font-size: 0.7em; opacity: 0.7; }
.aly-choice-input { flex: 1 1 180px; min-width: 0; font: inherit; }
.aly-plan-step-cost { display: block; font-size: 12px; color: var(--muted); }
.aly-plan-step-blocked { display: block; font-size: 12px; color: var(--danger); }
.aly-plan-step-risk { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 11px; color: var(--muted); border: 1px solid var(--hair-2); }
.aly-plan-step-risk.danger { color: var(--danger); border-color: var(--danger); }
.aly-agent-permissions { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.aly-permission { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.aly-permission-label { flex: 0 0 auto; padding: 1px 6px; border-radius: 4px; color: var(--muted);
  border: 1px solid var(--hair-2); }
.aly-permission.warn .aly-permission-label { color: var(--text); }
.aly-permission.danger .aly-permission-label { color: var(--danger); border-color: var(--danger); }
.aly-permission-copy { color: var(--muted); }
.aly-builder-card { margin-top: 8px; }
.aly-builder-bar { position: relative; height: 4px; margin: 6px 0 10px; border-radius: 2px; background: var(--hair-2); overflow: hidden; }
.aly-builder-bar > span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 2px; background: var(--jade); }
.aly-builder-bar.is-active > span { animation: aly-builder-slide 1.4s ease-in-out infinite; }
@keyframes aly-builder-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.aly-builder-check.is-ok { color: var(--jade); }
.aly-builder-check.is-failed { color: var(--danger); }
.aly-builder-link { font-size: 13px; }
.aly-builder-publish { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hair-2); }
#aly-composer.is-uploading .dock-send:disabled,
.is-uploading .dock-send:disabled { opacity: 0.45; cursor: progress; box-shadow: none; }

/* /assets/aly-surface.css */
.aly-starters {
  --fade: 44px;
  display: flex; gap: 10px; width: 100%;
  margin-top: 34px; padding: 4px 2px 10px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}
.aly-starters::-webkit-scrollbar { display: none; }
.aly-starters.has-after {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent);
}
.aly-starters.has-before {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade));
  mask-image: linear-gradient(to right, transparent, #000 var(--fade));
}
.aly-starters.has-before.has-after {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.aly-starter {
  flex: 0 0 196px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 132px; padding: 16px 16px 15px;
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  border: 1px solid var(--hair); border-radius: 16px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.aly-starter:hover { border-color: var(--hair-2); background: var(--glass-2); transform: translateY(-1px); }
.aly-starter:focus-visible { outline: 0; border-color: var(--text); background: var(--glass-2); }
.aly-starter:active { transform: translateY(0); }
.aly-starter-glyph {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 10px; color: var(--jade);
  background: color-mix(in srgb, var(--jade) 11%, transparent);
}
.aly-starter-glyph svg { display: block; }
.aly-starter-title { font-size: 14px; font-weight: 550; letter-spacing: -0.005em; line-height: 1.3; }
.aly-starter-blurb { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
@media (max-width: 640px) {
  .aly-starters { --fade: 28px; gap: 8px; margin-top: 26px; }
  .aly-starter { flex-basis: 164px; min-height: 124px; padding: 14px 14px 13px; }
}
.aly-starters.aly-smart-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%); margin-left: auto; margin-right: auto;
  overflow: visible; scroll-snap-type: none;
  -webkit-mask-image: none; mask-image: none;
}
.aly-smart-cards .aly-starter { flex: none; min-width: 0; }
.aly-smart-card > * { transition: opacity .28s ease; }
.aly-smart-card.is-swapping > * { opacity: 0; }
@media (max-width: 640px) {
  .aly-starters.aly-smart-cards { grid-template-columns: minmax(0, 1fr); }
  .aly-smart-cards .aly-starter {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center;
    min-height: 0; padding: 12px 14px;
  }
  .aly-smart-cards .aly-starter-glyph { grid-row: 1 / 3; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .aly-smart-card > * { transition: none; } }
.aly-view-more {
  display: block; margin: 16px auto 0; padding: 7px 16px;
  border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: var(--muted); cursor: pointer; transition: background .25s ease, color .2s ease;
}
.aly-view-more:hover { background: var(--hair); color: var(--text); }
.aly-view-more:focus-visible { outline: 2px solid var(--hair-2); outline-offset: 2px; }
#aly-sphere-hero { cursor: pointer; transition: filter .35s ease; }
#aly-sphere-hero:hover { filter: brightness(1.12) drop-shadow(0 0 18px var(--aly-glow)); }
.aly-cards-window {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgb(10 14 26 / .32);
}
.aly-cards-window-card {
  width: min(880px, 100%); max-height: min(720px, calc(100svh - 32px)); overflow: auto; overscroll-behavior: contain;
  padding: 22px 22px 18px; border: 1px solid var(--hair-2); border-radius: 24px;
  background: var(--surface); color: var(--text); text-align: left;
  box-shadow: 0 40px 120px -30px rgb(10 14 30 / .45), 0 2px 10px rgb(10 14 30 / .08);
}
.aly-cards-window-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 6px; }
.aly-cards-window-title { margin: 0; font-size: 20px; font-weight: 300; letter-spacing: -.01em; }
.aly-cards-window-close {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--hair);
  border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s ease, color .2s ease;
}
.aly-cards-window-close svg { width: 18px; height: 18px; }
.aly-cards-window-close:hover { background: var(--hair); color: var(--text); }
.aly-cards-window-close:focus-visible { outline: 2px solid var(--hair-2); outline-offset: 2px; }
.aly-starters.aly-cards-window-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin-top: 12px; padding: 4px 0; overflow: visible; -webkit-mask-image: none; mask-image: none;
}
.aly-cards-window-grid .aly-starter { flex: none; min-width: 0; }
@media (max-width: 860px) { .aly-starters.aly-cards-window-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .aly-cards-window { padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
  .aly-cards-window-card { max-height: 100%; padding: 18px 14px 14px; border-radius: 20px; }
  .aly-starters.aly-cards-window-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .aly-cards-window-grid .aly-starter {
    display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center;
    min-height: 0; padding: 12px 14px;
  }
  .aly-cards-window-grid .aly-starter-glyph { grid-row: 1 / 3; margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .aly-view-more, #aly-sphere-hero { transition: none; } }
.aly-composer-region { background: linear-gradient(to top, var(--void) 80%, transparent); }
   One calm field that starts at a single line and grows as the person types
   (aly-composer.js sets its height). The Project workspace's composer shares
   the row's chrome; these rules are scoped to the main chat's form. */
.aly-composer .dock-composer-actions {
  gap: 6px; padding: 7px 7px 7px 10px; border-radius: 22px;
  border-color: var(--hair-2); background: var(--surface);
  box-shadow: 0 18px 40px -30px rgb(0 0 0 / 0.35);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.aly-composer .dock-composer-actions:focus-within {
  border-color: color-mix(in srgb, var(--jade) 40%, var(--hair-2));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--jade) 9%, transparent), 0 18px 40px -30px rgb(0 0 0 / 0.35);
}
.aly-composer .dock-composer-actions .dock-input {
  min-height: 24px; padding: 7px 6px; font-size: 15px; line-height: 1.55;
  max-height: calc(8 * 1.55em + 14px);
}
.aly-composer .dock-composer-actions .dock-icon { min-width: 36px; min-height: 36px; border-radius: 12px; color: var(--muted); }
.aly-composer .dock-composer-actions .dock-icon:hover { color: var(--text); }
.aly-composer .dock-send { width: 36px; height: 36px; border-radius: 12px; }
.aly-messages { gap: 28px; padding-top: 30px; }
.aly-message-role { font-size: 10px; letter-spacing: 0.16em; opacity: 0.6; }
.aly-message.is-user .aly-message-role { display: none; }
.aly-message.is-user .aly-message-body {
  max-width: min(82%, 560px);
  background: color-mix(in srgb, var(--jade) 7%, var(--glass-2));
  border: 1px solid var(--hair);
  border-radius: 20px 20px 6px 20px; padding: 11px 16px;
  font-size: 15px; line-height: 1.6;
}
.aly-message.is-user[data-author] .aly-message-role { display: block; }
.aly-message.is-aly .aly-message-body { letter-spacing: -0.003em; }
.aly-message { animation: aly-rise .34s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes aly-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.aly-message-body > .aly-cursor:only-child {
  width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin: 6px 0 0;
  background: var(--jade); animation: aly-breathe 1.6s ease-in-out infinite;
}
@keyframes aly-breathe { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .aly-message, .aly-message-body > .aly-cursor:only-child { animation: none; }
  .aly-starter { transition: none; }
}
.aly-sphere-mount.has-sphere { position: relative; isolation: isolate; }
.aly-sphere-mount.has-sphere::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: none;
  border: 1px solid var(--aly-accent-line); opacity: 0;
}
.aly-sphere-mount.is-rippling::after { animation: aly-ripple 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1; }
@keyframes aly-ripple {
  0% { opacity: 0.75; transform: scale(0.92); }
  100% { opacity: 0; transform: scale(1.55); }
}
.aly-topbar { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .aly-sphere-mount.is-rippling::after { animation: none; }
}

/* /assets/orb/aly-orb.css */
.aly-orb-canvas { display: block; width: 100%; height: 100%; }
.aly-orb-static {
  --orb-bright: 1;
  position: relative; width: 83%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgb(214 244 255 / 0.9) 0 1.5%, rgb(92 200 242 / 0.6) 6%,
      rgb(52 128 214 / 0.32) 18%, transparent 38%),
    radial-gradient(circle at 34% 28%, #17398a 0%, #0c1d48 40%, #080f26 68%, #05070d 100%);
  box-shadow:
    inset 0 0 0 1px rgb(143 124 247 / 0.28),
    inset 0 0 16px rgb(143 124 247 / 0.14),
    0 0 42px var(--aly-glow, rgba(92, 200, 242, 0.25));
  filter: brightness(calc(var(--orb-bright) + var(--orb-wake, 0)));
  transition: filter .2s ease;
}
.aly-orb-static::before,
.aly-orb-static::after {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  border: 1px solid rgb(92 200 242 / 0.28);
  transform: rotate(58deg) scaleY(0.34);
}
.aly-orb-static::after { inset: 10%; transform: rotate(-32deg) scaleY(0.62); border-color: rgb(143 124 247 / 0.22); }
.aly-orb-static[data-orb-state="typing"] { --orb-bright: 1.06; }
.aly-orb-static[data-orb-state="thinking"] { --orb-bright: 1.32; }
.aly-orb-static[data-orb-state="answering"] { --orb-bright: 1.16; }
.aly-orb-static.is-waking { --orb-wake: 0.4; }
.aly-orb-static.is-entering { animation: aly-orb-still-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.aly-orb-static.is-entering::before { animation: aly-orb-still-line-a 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.aly-orb-static.is-entering::after { animation: aly-orb-still-line-b 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes aly-orb-still-in {
  0% { opacity: 0; transform: scale(0.03); filter: brightness(2.6);
    box-shadow: inset 0 0 0 1px rgb(143 124 247 / 0.28), inset 0 0 16px rgb(143 124 247 / 0.14), 0 0 0 rgb(92 200 242 / 0); }
  7% { opacity: 1; transform: scale(0.05); filter: brightness(2.6); }
  46% { transform: scale(1); filter: brightness(1.2);
    box-shadow: inset 0 0 0 1px rgb(143 124 247 / 0.28), inset 0 0 16px rgb(143 124 247 / 0.14), 0 0 18px rgb(92 200 242 / 0.2); }
  56% { filter: brightness(1.3);
    box-shadow: inset 0 0 0 1px rgb(143 124 247 / 0.28), inset 0 0 16px rgb(143 124 247 / 0.14), 0 0 64px rgb(92 200 242 / 0.6); }
  100% { opacity: 1; transform: none; filter: brightness(1);
    box-shadow: inset 0 0 0 1px rgb(143 124 247 / 0.28), inset 0 0 16px rgb(143 124 247 / 0.14), 0 0 42px var(--aly-glow, rgba(92, 200, 242, 0.25)); }
}
@keyframes aly-orb-still-line-a {
  0%, 10% { opacity: 0; transform: rotate(-60deg) scale(0.2, 0.05); }
  52%, 100% { opacity: 1; transform: rotate(58deg) scaleY(0.34); }
}
@keyframes aly-orb-still-line-b {
  0%, 16% { opacity: 0; transform: rotate(-150deg) scale(0.2, 0.08); }
  56%, 100% { opacity: 1; transform: rotate(-32deg) scaleY(0.62); }
}
@media (prefers-reduced-motion: reduce) {
  .aly-orb-static.is-entering { animation: aly-orb-still-fade 0.4s ease both; }
  .aly-orb-static.is-entering::before, .aly-orb-static.is-entering::after { animation: none; }
}
@keyframes aly-orb-still-fade { from { opacity: 0; } to { opacity: 1; } }

/* /assets/aly-home.css */
.aly-identity { position: relative; }
.aly-identity-card { z-index: 1; }
.aly-identity-mark { width: clamp(140px, 19vw, 192px); height: clamp(140px, 19vw, 192px); }
@media (max-width: 760px) {
  .aly-identity-mark { width: min(46vw, 176px); height: min(46vw, 176px); }
}
.aly-identity-card::before {
  width: clamp(220px, 44%, 340px); top: -18px;
  background: radial-gradient(circle, var(--aly-glow) 0%, transparent 62%);
  filter: blur(28px); opacity: 0.5;
}
html[data-alyssiun-atmosphere="lux"] .aly-identity-card::before { opacity: 0.35; }
.aly-particles {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  pointer-events: none; color: var(--aly-accent); opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 38%, #000 35%, transparent 100%);
}
html[data-alyssiun-atmosphere="lux"] .aly-particles { color: var(--aly-accent-ink); opacity: 0.35; }
.aly-identity-title { margin-top: 16px; letter-spacing: 0.005em; }
.aly-identity-title { transition: opacity .18s ease, filter .18s ease; }
.aly-identity-title.is-greeting-swap { opacity: 0; filter: blur(3px); }
.aly-orb-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0;
  font-size: 12px; font-weight: 400; letter-spacing: 0.06em; line-height: 1;
  color: var(--muted);
}
.aly-orb-status-dot {
  position: relative; width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: var(--aly-accent);
  animation: aly-status-dot 3.2s ease-in-out infinite;
}
.aly-orb-status-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--aly-accent-soft);
  animation: aly-status-ring 3.2s ease-in-out infinite;
}
@keyframes aly-status-dot { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes aly-status-ring { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } }
@property --aly-trace {
  syntax: '<angle>'; inherits: false; initial-value: 0deg;
}
.aly-starter {
  position: relative; isolation: isolate;
  background: var(--aly-glass);
  -webkit-backdrop-filter: var(--aly-glass-blur); backdrop-filter: var(--aly-glass-blur);
  transition: border-color .4s ease, background .3s ease, transform .3s ease;
}
.aly-starter::before {
  content: ""; position: absolute; top: 0; left: 14px; right: 14px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.14), transparent);
}
html[data-alyssiun-atmosphere="lux"] .aly-starter::before {
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.95), transparent);
}
.aly-starter::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--aly-trace), transparent 0deg, transparent 250deg,
    var(--hair-2) 310deg, var(--muted) 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
}
.aly-starter:hover, .aly-starter:focus-visible {
  border-color: var(--hair-2); background: var(--aly-glass);
}
.aly-starter:hover::after, .aly-starter:focus-visible::after {
  animation: aly-trace 1.5s cubic-bezier(.45, .05, .35, 1) 1 both;
}
@keyframes aly-trace {
  0% { --aly-trace: 0deg; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { --aly-trace: 360deg; opacity: 0; }
}
.aly-starter:focus-visible { outline: 2px solid var(--hair-2); outline-offset: 3px; }
.aly-starter-glyph {
  width: 22px; height: 22px; margin-bottom: 16px; border-radius: 0;
  background: none; color: var(--text); opacity: .72;
  transition: opacity .3s ease;
}
.aly-starter:hover .aly-starter-glyph, .aly-starter:focus-visible .aly-starter-glyph {
  opacity: 1;
}
.aly-composer .dock-composer-actions {
  position: relative;
  background: var(--aly-glass); border-color: var(--hair-2);
  -webkit-backdrop-filter: var(--aly-glass-blur); backdrop-filter: var(--aly-glass-blur);
}
#aly-composer .dock-composer-actions {
  min-height: 52px; gap: 6px; padding: 6px 7px; border-radius: 26px;
  box-shadow: 0 10px 30px -22px rgb(10 14 30 / .35);
  transition: box-shadow .3s ease, border-color .3s ease;
}
#aly-composer .dock-composer-actions:focus-within {
  border-color: var(--aly-accent-line);
  box-shadow: 0 0 0 4px var(--aly-accent-soft), 0 14px 36px -22px rgb(10 14 30 / .4);
}
#aly-composer .dock-composer-actions .dock-input,
#aly-composer .dock-composer-actions .dock-input:focus { background: transparent; font-size: 15px; padding-left: 4px; }
#aly-composer .dock-input::placeholder { color: var(--muted); opacity: 1; }
#aly-composer .dock-send {
  flex: none; width: 38px; height: 38px; min-width: 38px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; -webkit-appearance: none; appearance: none;
  background: var(--aly-accent); color: #04222f; box-shadow: 0 6px 18px -6px var(--aly-glow); opacity: 1;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease, transform .18s ease;
}
#aly-composer .dock-send svg { display: block; width: 18px; height: 18px; flex: none; margin-left: -1px; }
#aly-composer:has(.dock-input:placeholder-shown) .dock-send:not([data-voice-send="send"]),
#aly-composer .dock-send.is-idle {
  background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair-2); opacity: .6;
}
#aly-composer .dock-send:active { transform: scale(.94); }
#aly-composer .dock-send:focus-visible { outline: 2px solid var(--aly-accent-line); outline-offset: 2px; opacity: 1; }
@media (max-width: 640px) {
  #aly-composer .dock-composer-actions .dock-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #aly-composer .dock-composer-actions, #aly-composer .dock-send { transition: none; }
}
html[data-alyssiun-atmosphere] .aos-lambda-shell {
  --aos-lambda-accent: var(--aly-accent);
  --aos-lambda-edge: var(--aly-accent-line);
  --aos-lambda-ink: var(--aly-accent-ink);
}
html[data-alyssiun-atmosphere="neo"] .aos-lambda-shell { --aos-lambda-glass: var(--aly-glass); }
body.aly-dialog-open .aos-lambda-shell,
body.aly-settings-open .aos-lambda-shell { visibility: hidden; }
@media (max-width: 640px), (max-height: 480px) {
  html.aly-overlay-open #alyssiun-os-launcher-host { display: none !important; }
  html.aly-overlay-open .aos-lambda-shell { visibility: hidden !important; }
}
.aly-topbar { z-index: 3; }
.aly-sphere-compact.has-sphere {
  --orb-size: 72px;
  position: absolute; left: 50%; top: 100%; z-index: 1; transform: none;
  width: var(--orb-size); height: var(--orb-size);
  margin: calc(var(--orb-size) / -2) 0 0 calc(var(--orb-size) / -2);
  pointer-events: none;
}
.aly-sphere-compact.has-sphere::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; pointer-events: auto;
}
.aly-sphere-compact.has-sphere > * { pointer-events: none; }
@media (min-width: 901px) {
  .aly-sphere-compact.has-sphere { --orb-size: 96px; }
}
.aly-topbar:has(.aly-sphere-compact.has-sphere) .aly-title { flex: 0 1 auto; max-width: calc(50% - 36px - 10px - 56px); }
.aly-topbar:has(.aly-sphere-compact.has-sphere) .aly-status { margin-left: auto; max-width: calc(50% - 36px - 10px); }
@media (min-width: 901px) {
  .aly-topbar:has(.aly-sphere-compact.has-sphere) .aly-title,
  .aly-topbar:has(.aly-sphere-compact.has-sphere) .aly-status { max-width: calc(50% - 48px - 10px); }
}
.aly-in-panel .aly-topbar:has(.aly-sphere-compact.has-sphere) .aly-status { max-width: calc(50% - 48px - 10px - 28px); }
.aly-main:has(.aly-sphere-compact.has-sphere) .aly-transcript {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 48px);
}
.aly-main:has(.aly-sphere-compact.has-sphere) .aly-messages { padding-top: 52px; }
@media (min-width: 901px) {
  .aly-main:has(.aly-sphere-compact.has-sphere) .aly-messages { padding-top: 64px; }
}
.aly-sphere-mount[role="button"] { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; border-radius: 50%; }
.aly-sphere-mount[role="button"]:focus-visible { outline: 2px solid var(--aly-accent-line); outline-offset: -2px; border-radius: 50%; }
.aly-composer .dock-composer-actions .dock-input { overflow-y: hidden; scrollbar-width: none; }
.aly-composer .dock-composer-actions .dock-input::-webkit-scrollbar { width: 0; height: 0; }
.aly-composer .dock-composer-actions .dock-input.is-overflowing {
  overflow-y: auto; scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--aly-accent) 32%, transparent) rgb(0 0 0 / 0.18);
}
.aly-composer .dock-composer-actions .dock-input.is-overflowing::-webkit-scrollbar { width: 6px; }
.aly-composer .dock-composer-actions .dock-input.is-overflowing::-webkit-scrollbar-track { background: rgb(0 0 0 / 0.18); border-radius: 999px; }
.aly-composer .dock-composer-actions .dock-input.is-overflowing::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--aly-accent) 32%, transparent); border-radius: 999px;
}
.aly-transcript:focus-visible { outline: none; box-shadow: inset 2px 0 0 var(--aly-accent-line); border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
  .aly-orb-status-dot, .aly-orb-status-dot::after, .aly-starter:hover::after, .aly-starter:focus-visible::after { animation: none; }
  .aly-starter, .aly-starter-glyph,
  .aly-composer .dock-composer-actions::after, .aly-composer .dock-send.is-active { transition: none; }
}
@media (min-width: 761px) and (max-height: 740px) {
  .aly-identity { min-height: 0; padding-top: clamp(8px, calc(16.7vh - 83px), 40px); }
  .aly-identity-mark { width: clamp(88px, calc(59vh - 245px), 192px); height: clamp(88px, calc(59vh - 245px), 192px); }
  .aly-identity-title { font-size: clamp(28px, calc(11.1vh - 28px), 54px); margin-top: 12px; }
}

/* /assets/aly-composer-extras.css */
:is(#aly-composer, .dock-composer) .dock-mic {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: color .2s ease, background .2s ease;
}
:is(#aly-composer, .dock-composer) .dock-mic[hidden] { display: none; }
:is(#aly-composer, .dock-composer) .dock-mic svg { display: block; width: 16px; height: 16px; flex: none; }
:is(#aly-composer, .dock-composer) .dock-mic:focus-visible { outline: 2px solid var(--aly-accent-line); outline-offset: 1px; }
:is(#aly-composer, .dock-composer) .dock-mic.is-listening { color: var(--aly-accent-ink, var(--aly-accent)); background: var(--aly-accent-soft); }
:is(#aly-composer, .dock-composer) .dock-mic.is-listening::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--aly-accent-line);
  animation: aly-mic-pulse 1.4s ease-out infinite; pointer-events: none;
}
@keyframes aly-mic-pulse { 0% { transform: scale(.86); opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
.dock-send[data-voice-send] { position: relative; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.dock-send .dock-vs {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  transition: opacity .18s ease, transform .26s cubic-bezier(.2, .8, .2, 1);
}
.dock-send .dock-vs svg { display: block; flex: none; }
:is(#aly-composer, .dock-composer) .dock-send .dock-vs-voice svg { width: 18px; height: 18px; margin: 0; }
.dock-send[data-voice-send="voice"] .dock-vs-send { opacity: 0; transform: scale(.4) rotate(-45deg); }
.dock-send:not([data-voice-send="voice"]) .dock-vs-voice { opacity: 0; transform: scale(.4) rotate(45deg); }
form#aly-composer .dock-composer-tools .dock-send[data-voice-send="voice"]:not(:disabled) { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-2); opacity: 1; }
form.dock-composer:not(#aly-composer) .dock-send[data-voice-send="voice"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--surface-line); }
form.dock-composer:not(#aly-composer) .dock-send[data-voice-send="send"] { background: var(--text); color: var(--surface); box-shadow: none; }
.aly-composer-callout {
  display: flex; align-items: center; gap: 10px; box-sizing: border-box;
  width: fit-content; max-width: min(760px, 100%); margin: 0 auto 10px; padding: 6px 6px 6px 14px;
  border: 1px solid var(--hair-2); border-radius: 12px; background: var(--aly-glass); color: var(--text);
  -webkit-backdrop-filter: var(--aly-glass-blur); backdrop-filter: var(--aly-glass-blur);
  font-size: 13px; line-height: 1.3; animation: aly-callout-in .2s ease both;
}
.aly-composer-callout-text { min-width: 0; }
.aly-composer-callout-action {
  flex: none; min-height: 32px; padding: 0 12px; border: 1px solid var(--aly-accent-line); border-radius: 9px;
  background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.aly-composer-callout-action:hover { background: var(--aly-accent-soft); }
.aly-composer-callout-close {
  flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent;
  color: var(--muted); font: inherit; font-size: 17px; line-height: 1; cursor: pointer;
}
.aly-composer-callout-close:hover { color: var(--text); background: var(--glass-2); }
.aly-composer-callout-action:focus-visible, .aly-composer-callout-close:focus-visible { outline: 2px solid var(--aly-accent-line); outline-offset: 1px; }
@keyframes aly-callout-in { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 640px), (max-height: 480px) { .aly-composer-callout { animation-delay: .3s; } }
@media (max-width: 420px) {
  #aly-composer .dock-composer-actions { gap: 4px; }
  #aly-composer .dock-composer-tools { gap: 2px; }
  #aly-composer .dock-settings .dock-model-mode { display: none; }
  #aly-composer .dock-settings .dock-model-toggle { padding: 0 8px; }
  #aly-composer .dock-composer-actions .dock-input { flex-basis: 96px; min-width: 96px; }
}
@media (pointer: coarse) {
  :is(#aly-composer, .dock-composer) .dock-mic, #aly-composer #aly-attach { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; }
  #aly-composer .dock-settings .dock-model-toggle { height: 36px; min-width: 36px; justify-content: center; }
  form.dock-composer:not(#aly-composer) .dock-mic { width: 40px; height: 40px; min-width: 40px; }
  .aly-composer-callout-action, .aly-composer-callout-close { min-height: 40px; }
  .aly-composer-callout-close { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#aly-composer, .dock-composer) .dock-mic.is-listening::after, .aly-composer-callout { animation: none; }
  :is(#aly-composer, .dock-composer) .dock-mic, .dock-send .dock-vs { transition: none; }
}

/* /assets/aly-image-result.css */
.aly-image-result {
  margin: 10px 0 4px;
  max-width: 520px;
}
.aly-image-frame {
  position: relative;
  border: 1px solid var(--hair-2);
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  cursor: pointer;
  background: var(--glass-1, transparent);
}
.aly-image-full {
  display: block;
  width: 100%;
  height: auto;
}
.aly-image-result.is-pending .aly-image-frame { aspect-ratio: 1 / 1; cursor: default; }
.aly-image-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    var(--glass-1, transparent) 20%, var(--glass-2) 40%, var(--glass-1, transparent) 60%);
  background-size: 250% 100%;
  animation: aly-image-sheen 1.5s linear infinite;
}
@keyframes aly-image-sheen {
  from { background-position: 150% 0; }
  to { background-position: -50% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aly-image-shimmer { animation: none; background-position: 0 0; }
}
.aly-image-result.is-gone .aly-image-frame {
  aspect-ratio: auto;
  padding: 18px;
  cursor: default;
  line-height: 1.4;
}
.aly-image-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px 0;
}
.aly-image-note {
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aly-image-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.aly-image-download,
.aly-image-open {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  background: var(--glass-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  text-decoration: none;
  padding: 5px 11px;
  cursor: pointer;
}
.aly-image-download:hover,
.aly-image-open:hover { background: var(--glass-3, var(--glass-2)); }
@media (max-width: 520px) {
  .aly-image-result { max-width: 100%; }
  .aly-image-bar { flex-wrap: wrap; gap: 6px; }
}

/* /assets/aly-chat-content.css */
:root {
  --aly-code-bg: #16161c;
  --aly-code-ink: #e9e8ef;
  --aly-code-line: rgba(255, 255, 255, 0.10);
  --aly-code-muted: rgba(233, 232, 239, 0.58);
  --aly-tok-com: #7b8794;
  --aly-tok-str: #9ad39a;
  --aly-tok-num: #e0b083;
  --aly-tok-kw: #8fbcf5;
  --aly-tok-fn: #d6b6f0;
  --aly-tok-tag: #8fbcf5;
  --aly-tok-attr: #e3c88a;
  --aly-tok-var: #f1948a;
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-link {
  color: var(--aly-accent-ink);
  text-decoration: underline;
  text-decoration-color: var(--aly-accent-line);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-link:hover { text-decoration-color: currentColor; }
.aly-link-arrow {
  font-size: 0.78em; margin-left: 2px; opacity: 0.72;
  vertical-align: 0.08em; display: inline-block;
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-link-chip {
  display: flex; align-items: center; gap: 10px;
  max-width: 100%; min-width: 0; margin: 0 0 6px;
  padding: 9px 12px;
  border: 1px solid var(--hair-2); border-radius: var(--radius);
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-link-chip:hover {
  background: var(--surface); border-color: var(--aly-accent-line); text-decoration: none;
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-link-chip:active { transform: scale(0.985); background: var(--surface-2); }
:is(.aly-message-body, .workspace-chat-history-content) .aly-link-chip .aly-link-arrow { margin-left: auto; flex: 0 0 auto; opacity: 0.6; }
.aly-link-fav {
  position: relative; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 6px;
  display: inline-block; overflow: hidden;
}
.aly-link-fav:empty { display: none; }
.aly-link-fav-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 6px; object-fit: contain; background: transparent;
}
.aly-link-lines { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.aly-link-title {
  font-size: 14px; line-height: 1.35; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aly-link-host {
  font-size: 11.5px; line-height: 1.3; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
:is(.aly-message-body, .workspace-chat-history-content) ul.aly-chip-list,
:is(.aly-message-body, .workspace-chat-history-content) ol.aly-chip-list {
  list-style: none; padding-left: 0; margin: 0 0 12px;
}
:is(.aly-message-body, .workspace-chat-history-content) li.aly-link-item {
  list-style: none; margin-bottom: 0;
}
:is(.aly-message-body, .workspace-chat-history-content) li.aly-link-item::marker { content: none; }
:is(.aly-message-body, .workspace-chat-history-content) .aly-chip-list > li:last-child .aly-link-chip {
  margin-bottom: 0;
}
@media (prefers-reduced-motion: reduce) {
  :is(.aly-message-body, .workspace-chat-history-content) .aly-link-chip { transition: none; }
  :is(.aly-message-body, .workspace-chat-history-content) .aly-link-chip:active { transform: none; }
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-code {
  --aly-code-tools-top: 8px;
  margin: 0 0 14px; min-width: 0;
  border: 1px solid var(--aly-code-line); border-radius: var(--radius);
  background: var(--aly-code-bg);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
}
.aly-code-tools {
  position: sticky; top: var(--aly-code-tools-top); z-index: 2;
  height: 0; display: flex; justify-content: flex-end;
  pointer-events: none;
}
.aly-code-copy {
  pointer-events: auto;
  position: relative; margin: 8px 8px 0 0; flex: 0 0 auto;
  width: 30px; height: 30px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--aly-code-line); border-radius: 50%;
  background: rgba(255, 255, 255, 0.06); color: var(--aly-code-muted);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
  opacity: 0.8;
  transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease;
}
.aly-code:hover .aly-code-copy, .aly-code-copy:focus-visible { opacity: 1; }
@media (hover: none) { .aly-code-copy { opacity: 1; color: var(--aly-code-ink); } }
.aly-code-copy:hover { background: rgba(255, 255, 255, 0.12); color: var(--aly-code-ink); }
.aly-code-copy-icon::before { content: "⧉"; font-size: 14px; }
.aly-code-copy-word {
  position: absolute; right: calc(100% + 6px); top: 50%;
  transform: translateY(-50%);
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--aly-code-line);
  background: rgba(255, 255, 255, 0.06); color: var(--aly-tok-str);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  font-size: 11px; line-height: 1; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transition: opacity 140ms ease;
}
.is-copied .aly-code-copy-icon::before { content: "✓"; }
.is-copied .aly-code-copy-word { opacity: 1; visibility: visible; }
.is-copied .aly-code-copy {
  opacity: 1;
  color: var(--aly-tok-str); border-color: var(--aly-tok-str);
  animation: aly-code-pulse 620ms ease-out;
}
.is-copy-failed .aly-code-copy-icon::before { content: "!"; }
.is-copy-failed .aly-code-copy { opacity: 1; color: var(--danger); border-color: var(--danger); }
@keyframes aly-code-pulse {
  from { box-shadow: 0 0 0 0 rgba(154, 211, 154, 0.45); }
  to { box-shadow: 0 0 0 12px rgba(154, 211, 154, 0); }
}
@media (prefers-reduced-motion: reduce) { .is-copied .aly-code-copy { animation: none; } }
:is(.aly-message-body, .workspace-chat-history-content) .aly-code-pre {
  margin: 0; padding: 13px 14px 15px;
  border: 0; border-radius: calc(var(--radius) - 1px);
  background: transparent; color: var(--aly-code-ink);
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: pre; overflow-wrap: normal; word-break: normal;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  font-size: 13px; line-height: 1.65;
}
:is(.aly-message-body, .workspace-chat-history-content) .aly-code-pre code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: inherit; background: none; padding: 0; color: inherit;
}
.aly-code .tok-com { color: var(--aly-tok-com); font-style: italic; }
.aly-code .tok-str { color: var(--aly-tok-str); }
.aly-code .tok-num { color: var(--aly-tok-num); }
.aly-code .tok-kw { color: var(--aly-tok-kw); }
.aly-code .tok-fn { color: var(--aly-tok-fn); }
.aly-code .tok-tag { color: var(--aly-tok-tag); }
.aly-code .tok-attr { color: var(--aly-tok-attr); }
.aly-code .tok-var { color: var(--aly-tok-var); }
.aly-main:has(.aly-sphere-compact.has-sphere) .aly-transcript .aly-message-body .aly-code {
  --aly-code-tools-top: 52px;
}
@media (max-width: 520px) {
  .aly-code-copy { margin: 6px 6px 0 0; }
  :is(.aly-message-body, .workspace-chat-history-content) .aly-code-pre { font-size: 12.5px; padding: 11px 12px 13px; }
}
.aly-basic-model-line {
  margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted);
  overflow-wrap: anywhere;
}

/* /assets/aly-invite.css */
.aly-topbar-gap { flex: 1 1 auto; min-width: 0; }
.aly-invite {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 0 12px;
  border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text); font: inherit; font-size: 13px; line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.aly-invite:hover { background: var(--surface); border-color: var(--btn-hover-border, var(--hair-2)); }
.aly-invite:active { transform: scale(0.97); }
.aly-invite-icon {
  width: 16px; height: 16px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.aly-invite-label { white-space: nowrap; }
@media (max-width: 360px) {
  .aly-invite { padding: 0 10px; min-width: 38px; justify-content: center; }
  .aly-invite-label { display: none; }
}
.aly-toast {
  position: fixed; left: 50%; z-index: 90;
  bottom: calc(86px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  transform: translate(-50%, 12px);
  margin: 0; padding: 9px 16px;
  border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--surface); color: var(--text);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow, 0 20px 50px -30px rgba(0, 0, 0, 0.6));
  font-size: 13px; line-height: 1.3; max-width: min(88vw, 420px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.aly-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .aly-invite, .aly-toast { transition: none; }
  .aly-invite:active { transform: none; }
  .aly-toast { transform: translate(-50%, 0); }
}

/* /assets/aly-ai-controls.css */
.aly-settings { position: relative; flex: none; }
.aly-settings-toggle[aria-expanded="true"],
.aly-settings-toggle.is-active { color: var(--text); background: var(--glass-2); }
.aly-settings-panel {
  position: absolute; z-index: 32; bottom: calc(100% + 8px); left: 0;
  min-width: 208px; padding: 12px; display: grid; gap: 10px;
  border: 1px solid var(--surface-line); border-radius: 12px;
  background: var(--surface); color: var(--text);
  box-shadow: var(--card-shadow);
}
.aly-settings-panel[hidden] { display: none; }
.aly-settings-modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.aly-settings-modal[hidden] { display: none; }
.aly-settings-modal > .aly-settings-panel {
  position: static; inset: auto; z-index: auto; margin: 0;
  width: min(440px, calc(100vw - 32px)); min-width: 0;
  max-height: clamp(320px, calc(100vh - 48px), 560px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 18px;
  border: 1px solid var(--hair-2); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}
.aly-settings-modal > .aly-settings-panel:focus-visible { outline: none; }
.aly-settings-title { margin: 0; color: var(--text); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.aly-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aly-ai-controls { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.aly-ai-controls[hidden] { display: none; }
.aly-ai-section { display: flex; flex-direction: column; gap: 8px; }
.aly-ai-section + .aly-ai-section { padding-top: 12px; border-top: 1px solid var(--surface-line); }
.aly-ai-section-title {
  margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text);
}
.aly-ai-section-note { margin: -2px 0 2px; font-size: 11px; color: var(--muted); }
.aly-ai-control-wrap {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px;
}
.aly-ai-control-wrap > span.aly-ai-control-hint {
  grid-column: 1 / -1; margin-top: -4px; font-size: 10.5px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--muted); white-space: normal;
}
.aly-ai-control-wrap > span {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); white-space: normal;
}
.aly-ai-control {
  appearance: none;
  border: 1px solid var(--surface-line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  border-radius: 7px;
  padding: 6px 9px;
  max-width: 132px;
  cursor: pointer;
}
.aly-ai-control:hover { border-color: var(--text); }
.aly-ai-control:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.aly-ai-control:disabled { cursor: wait; opacity: .65; }
.aly-ai-defaults-btn {
  flex: none;
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--surface-line); border-radius: 7px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.aly-ai-defaults-btn:hover { border-color: var(--text); color: var(--text); }
.aly-ai-defaults-btn:disabled { cursor: wait; opacity: .65; }
@media (max-width: 620px) {
  .aly-settings-panel { min-width: 0; width: min(260px, calc(100vw - 32px)); }
}

/* /assets/aly-sidebar.css */
.aly-sidebar {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--hair);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 18px 16px calc(14px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  gap: 14px;
}
.aly-sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.aly-brand { display: inline-flex; align-items: center; min-width: 0; }
.aly-brand:hover { text-decoration: none; }
.aly-wordmark { width: 150px; height: auto; display: block; }
:root[data-alyssiun-atmosphere="neo"] .aly-wordmark,
:root[data-atmosphere="void"] .aly-wordmark {
  content: url("https://assets.lozanocorp.com/alyssiun/png/alyssiun-name-ffffff.png");
}
.aly-nav-svg {
  width: 18px; height: 18px; flex: none; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.aly-rail-toggle {
  flex: none; display: none; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--aly-nav-line); border-radius: 10px;
  background: var(--aly-nav-bg); color: var(--aly-nav-muted); cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.aly-rail-toggle:hover, .aly-rail-toggle:focus-visible {
  color: var(--aly-nav-text); background: var(--aly-nav-bg-hover); border-color: var(--aly-nav-line-strong);
}
.aly-rail-toggle-chevron { transition: transform .26s ease; transform-origin: 14.5px 12px; }
.aly-shell.is-menu-collapsed .aly-rail-toggle-chevron { transform: scaleX(-1); }
@media (min-width: 901px) { .aly-rail-toggle { display: inline-grid; } }
.aly-space-switcher { display: flex; }
.aly-space-button {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; min-height: 46px; cursor: pointer; text-align: left;
  border: 1px solid var(--surface-line); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit;
}
.aly-space-button:hover, .aly-space-button:focus-visible { border-color: var(--text); }
.aly-space-button-guest { text-decoration: none; }
.aly-space-button-guest .aly-space-role { color: var(--text); }
.aly-space-avatar {
  flex: none; width: 28px; height: 28px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--surface-line);
  font-size: 12px; font-weight: 700;
}
.aly-space-text { flex: 1; min-width: 0; display: grid; }
.aly-space-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aly-space-role { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aly-space-caret { flex: none; color: var(--muted); font-size: 13px; }
.aly-sidebar-nav { display: grid; gap: 6px; flex: none; }
.aly-nav-item, .aly-about-link {
  position: relative; width: 100%; min-height: 42px; margin: 0;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 0 12px; border: 1px solid var(--aly-nav-line); border-radius: 10px;
  background: var(--aly-nav-bg); color: var(--aly-nav-text);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; cursor: pointer; appearance: none; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.aly-nav-item:hover, .aly-nav-item:focus-visible,
.aly-about-link:hover, .aly-about-link:focus-visible {
  background: var(--aly-nav-bg-hover); border-color: var(--aly-nav-line-strong); text-decoration: none;
}
.aly-nav-item:focus-visible, .aly-about-link:focus-visible { outline: 2px solid var(--aly-nav-accent); outline-offset: 2px; }
.aly-nav-item.is-active, .aly-about-link.is-active {
  background: var(--aly-nav-active-bg); border-color: var(--aly-nav-accent);
}
.aly-nav-item.is-active .aly-nav-svg, .aly-about-link.is-active .aly-nav-svg { color: var(--aly-nav-accent); }
.aly-nav-text, .aly-about-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.aly-rail-only { display: none; }
.aly-sidebar-nav .aly-projects-link { justify-content: flex-start; margin-top: 0; }
.aly-recents {
  flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px;
  margin-right: -16px;
}
.aly-recents-label { margin: 4px 0 0; flex: none; }
.aly-conversation-list {
  list-style: none; margin: 0; padding: 0 10px 8px 0;
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  scrollbar-width: thin; scrollbar-color: var(--aly-nav-line-strong) transparent; scrollbar-gutter: stable;
  display: flex; flex-direction: column; gap: 1px;
  border-top: 1px solid transparent; transition: border-color .16s ease;
}
.aly-conversation-list.is-scrolled { border-top-color: var(--aly-nav-line); }
.aly-conversation-list::-webkit-scrollbar { width: 6px; }
.aly-conversation-list::-webkit-scrollbar-thumb { background: var(--aly-nav-line-strong); border-radius: 3px; }
.aly-recents-empty { font-size: 13px; margin: 4px 0 0; }
.aly-recents-group { margin: 10px 0 2px; padding: 0 10px; }
.aly-recents-group:first-child { margin-top: 2px; }
.aly-recents-group-title {
  margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--aly-nav-muted);
}
.aly-conversation-row { position: relative; display: flex; align-items: center; border-radius: 8px; }
.aly-conversation-row > a {
  flex: 1; min-width: 0; display: block; padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--aly-nav-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aly-conversation-row:hover { background: var(--aly-nav-bg); }
.aly-conversation-row > a:hover { color: var(--aly-nav-text); text-decoration: none; }
.aly-conversation-row.is-active { background: var(--aly-nav-active-bg); }
.aly-conversation-row.is-active > a { color: var(--aly-nav-text); font-weight: 600; }
.aly-conversation-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aly-conversation-author {
  display: block; font-size: 11px; color: var(--aly-nav-muted); margin-top: 1px; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aly-conversation-menu-trigger {
  flex: none; border: none; background: none; cursor: pointer; color: var(--aly-nav-muted);
  font: inherit; line-height: 1; padding: 0 8px; border-radius: 6px; min-width: 32px; min-height: 32px;
}
.aly-conversation-menu-trigger:hover,
.aly-conversation-menu-trigger:focus-visible,
.aly-conversation-menu-trigger[aria-expanded="true"] { color: var(--aly-nav-text); background: var(--aly-nav-bg-hover); }
@media (hover: none) { .aly-conversation-menu-trigger { min-width: 42px; min-height: 42px; } }
.aly-conversation-menu {
  position: absolute; z-index: 40; top: calc(100% - 4px); right: 4px;
  min-width: 148px; padding: 5px; display: grid; gap: 2px;
  border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
}
.aly-conversation-menu-item {
  border: none; background: none; cursor: pointer; font: inherit; font-size: 13px;
  text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); min-height: 36px;
}
.aly-conversation-menu-item:hover, .aly-conversation-menu-item:focus-visible { background: var(--glass-2); }
.aly-conversation-menu-item.is-danger { color: var(--danger); }
.aly-sidebar-foot { flex: none; border-top: 1px solid var(--aly-nav-line); padding-top: 12px; display: grid; gap: 6px; }
.aly-account { display: grid; gap: 6px; }
.aly-about-link { font-size: 11px; letter-spacing: .14em; }
.aly-about-icon { display: inline-flex; color: var(--aly-nav-accent); }
.aly-rail-tip {
  position: fixed; z-index: 200; pointer-events: none;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--aly-nav-tip-bg); color: var(--aly-nav-tip-text);
  font-size: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.aly-rail-tip[hidden] { display: none; }
@media (max-width: 900px) {
  .aly-sidebar { background: var(--void); }
  .aly-space-switcher, .aly-sidebar-foot {
    max-height: 360px; overflow: hidden;
    transition: max-height .26s ease, opacity .16s ease, margin .26s ease, padding .26s ease, border-width .26s ease;
  }
  .aly-sidebar.has-scrolled-recents .aly-space-switcher,
  .aly-sidebar.has-scrolled-recents .aly-sidebar-foot {
    max-height: 0; opacity: 0; padding-block: 0; border-width: 0; pointer-events: none;
  }
  .aly-sidebar.has-scrolled-recents .aly-space-switcher { margin-block: -4px; }
  .aly-sidebar.has-scrolled-recents .aly-sidebar-foot { margin-block: -14px; }
  .aly-nav-item, .aly-about-link { min-height: 44px; }
  @media (prefers-reduced-motion: reduce) { .aly-space-switcher, .aly-sidebar-foot { transition: none; } }
}
@media (min-width: 901px) {
  .aly-shell.is-menu-ready { transition: grid-template-columns .26s ease; }
  @media (prefers-reduced-motion: reduce) { .aly-shell.is-menu-ready { transition: none; } }
  .aly-shell.is-menu-collapsed:not(.is-project-focus) { grid-template-columns: 76px minmax(0, 1fr); }
  .aly-shell.is-menu-collapsed .aly-sidebar { padding-left: 16px; padding-right: 16px; }
  .aly-shell.is-menu-collapsed .aly-nav-text,
  .aly-shell.is-menu-collapsed .aly-space-text,
  .aly-shell.is-menu-collapsed .aly-space-caret,
  .aly-shell.is-menu-collapsed .aly-about-text,
  .aly-shell.is-menu-collapsed .aly-recents { display: none; }
  .aly-shell.is-menu-collapsed .aly-rail-only { display: flex; }
  .aly-shell.is-menu-collapsed .aly-sidebar-head { flex-direction: column; gap: 12px; }
  .aly-shell.is-menu-collapsed .aly-wordmark {
    width: 26px; height: 26px;
    content: url("https://assets.lozanocorp.com/alyssiun/png/alyssiun-icon-000000.png");
  }
  :root[data-alyssiun-atmosphere="neo"] .aly-shell.is-menu-collapsed .aly-wordmark,
  :root[data-atmosphere="void"] .aly-shell.is-menu-collapsed .aly-wordmark {
    content: url("https://assets.lozanocorp.com/alyssiun/png/alyssiun-icon-ffffff.png");
  }
  .aly-shell.is-menu-collapsed .aly-space-button { justify-content: center; padding: 0; min-height: 44px; }
  .aly-shell.is-menu-collapsed .aly-nav-item,
  .aly-shell.is-menu-collapsed .aly-about-link,
  .aly-shell.is-menu-collapsed .aly-rail-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .aly-shell.is-menu-collapsed .aly-sidebar-nav,
  .aly-shell.is-menu-collapsed .aly-account { justify-items: center; }
  .aly-shell.is-menu-collapsed .aly-sidebar-nav { gap: 8px; }
  .aly-shell.is-menu-collapsed .aly-sidebar-foot { justify-items: center; margin-top: auto; }
  .aly-shell.is-menu-collapsed .aly-nav-item.is-active::before,
  .aly-shell.is-menu-collapsed .aly-about-link.is-active::before {
    content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--aly-nav-accent);
  }
}

/* /assets/aly-projects.css */
.aly-projects {
  min-width: 0; min-height: 0; height: 100%; align-self: stretch;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  padding: 0 clamp(14px, 4vw, 28px) 40px;
}
.aly-projects[hidden] { display: none; }
.projects-head { width: min(860px, 100%); margin: 0 auto; padding: 34px 0 18px; }
.projects-head-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.projects-head h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 200; }
.projects-head p { margin: 6px 0 0; font-size: 15px; }
.projects-new { margin-left: auto; white-space: nowrap; }
@media (max-width: 520px) {
  .projects-new { margin-left: 0; width: 100%; }
}
.projects-empty-state { width: min(720px, 100%); margin: 0 auto; padding: 30px 0 8px; text-align: center; }
.projects-empty-state h2 { margin: 0 0 10px; font-size: clamp(20px, 3.6vw, 28px); font-weight: 250; }
.projects-empty-state p { margin: 0 auto 22px; max-width: 52ch; font-size: 15px; }
.projects-start { min-width: 220px; justify-content: center; }
@media (max-width: 520px) {
  .projects-start { width: 100%; }
}
.projects-grid {
  width: min(1600px, 96%); margin: 0 auto; padding: 0; list-style: none;
  display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
}
.project-card, .project-open, .project-body, .project-goal { min-width: 0; overflow-wrap: anywhere; }
.project-card { position: relative; border: 1px solid var(--hair); background: var(--glass); border-radius: var(--radius); }
.project-card:hover { background: var(--glass-2); }
.project-open { display: block; }
.project-open:hover { text-decoration: none; }
.project-body { padding: 14px 18px 18px; }
.project-body h2 {
  margin: 0 0 8px; font-size: 18px; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.project-goal { margin: 0; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.project-meta { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.project-state { border: 1px solid var(--hair-2); border-radius: 5px; padding: 3px 7px; font-size: 10px; }
.project-state.is-failed { color: var(--danger); border-color: var(--danger); }
.project-state.is-building { color: var(--jade); border-color: var(--jade); }
.project-kind { border: 1px solid var(--hair-2); border-radius: 5px; padding: 3px 7px; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.project-kind.is-3d { border-color: var(--text); }
.project-when { text-transform: none; letter-spacing: 0; margin-left: auto; }
.project-actions {
  display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap;
}
.project-action { font-size: 12px; padding: 6px 10px; min-height: 34px; }
.project-action.is-danger { color: var(--danger); }
.project-menu-trigger {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; min-width: 30px; min-height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
  color: var(--text); cursor: pointer; font: inherit; font-size: 18px; line-height: 1;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.project-menu-trigger:hover {
  background: var(--surface); border-color: color-mix(in srgb, var(--text) 30%, transparent);
  transform: scale(1.06);
}
.project-menu-trigger:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px;
}
.project-menu-trigger[aria-expanded="true"] {
  background: var(--surface); border-color: var(--text);
}
.project-menu {
  position: absolute; z-index: 30; top: 46px; right: 10px; min-width: 156px;
  padding: 5px; display: grid; gap: 2px; border: 1px solid var(--surface-line);
  border-radius: 10px; background: var(--surface); box-shadow: var(--card-shadow);
}
.project-menu-item {
  min-height: 36px; border: 0; border-radius: 6px; padding: 8px 10px; background: none;
  color: var(--text); cursor: pointer; font: inherit; font-size: 13px; text-align: left;
}
.project-menu-item:hover, .project-menu-item:focus-visible { background: var(--glass-2); }
.project-menu-item.is-danger { color: var(--danger); }
.dock-menu { position: fixed; top: auto; right: auto; }
.project-infra-back { margin-left: auto; }
.project-infra-move { white-space: nowrap; }
@media (max-width: 640px) {
  .project-infra-back { margin-left: 0; }
}
.project-infra-card { width: min(860px, 100%); margin: 0 auto; }
.project-settings-ai { width: min(860px, 100%); margin: 0 auto 12px; }
.project-settings-ai .workspace-ai-usage { margin: 0; padding-top: 0; border-top: 0; }
.project-settings-details { width: min(860px, 100%); margin: 0 auto 12px; }
.project-settings-details .workspace-setting-label { margin-left: 0; margin-right: 0; }
.project-settings-details .workspace-setting-input { width: 100%; margin: 0; }
.project-settings-details .workspace-setting-counter { margin-right: 0; }
.project-settings-details .workspace-settings-footer {
  margin-top: 14px; padding: 12px 0 0; background: none;
  border-top: 1px solid var(--aly-line, rgba(128, 128, 128, 0.22));
}
.project-settings-details .workspace-settings-save { width: auto; min-width: 140px; padding: 0 18px; }
.workspace-panel-tab-link { color: var(--muted); }
.workspace-panel-tab-link:hover, .workspace-panel-tab-link:focus-visible { color: var(--text); }
.build-offer {
  margin: 10px 0 4px; padding: 16px 18px; border: 1px solid var(--hair-2);
  border-radius: var(--radius); background: var(--input-2); box-shadow: var(--card-shadow);
}
.build-offer-question { margin: 0 0 6px; font-size: 15px; }
.build-offer-note { margin: 0 0 14px; font-size: 13px; }
.build-offer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.projects-empty { width: min(860px, 100%); margin: 0 auto; padding: 40px 0; text-align: center; }
.aly-projects-link { width: 100%; justify-content: center; margin-top: -6px; }

/* /assets/aly-projects-2.css */
.infra-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--aly-line, rgba(128, 128, 128, 0.22));
  margin-bottom: 18px;
}
.infra-stat { display: flex; flex-direction: column; gap: 2px; }
.infra-stat strong { font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.infra-stat span { font-size: 0.82rem; opacity: 0.7; }
.infra-stat-attention strong { color: var(--aly-warn, #c2410c); }
.infra-cards { display: flex; flex-direction: column; gap: 12px; }
.infra-card {
  border: 1px solid var(--aly-line, rgba(128, 128, 128, 0.22));
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.infra-card.is-attention { border-left: 3px solid var(--aly-warn, #c2410c); }
.infra-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.infra-card-name {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.infra-card-name:hover { text-decoration: underline; }
.infra-pill {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--aly-line, rgba(128, 128, 128, 0.22));
  opacity: 0.8;
}
.infra-pill.is-live { border-color: currentColor; opacity: 1; }
.infra-address { font-size: 0.82rem; opacity: 0.75; word-break: break-all; }
.infra-attention {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--aly-warn, #c2410c);
}
.infra-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.82rem;
  opacity: 0.75;
}
.infra-files { font-size: 0.82rem; margin-top: 10px; }
.infra-files summary { cursor: pointer; opacity: 0.65; }
.infra-file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.infra-file-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  border-bottom: 1px solid var(--hair, rgba(20, 20, 26, 0.08));
}
.infra-file-list li:last-child { border-bottom: 0; }
.infra-file-list li.is-folder .infra-file-path { opacity: 0.7; font-weight: 600; }
.infra-file-path { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.infra-file-size { opacity: 0.55; white-space: nowrap; }
.infra-dev { font-size: 0.82rem; margin-top: 10px; }
.infra-dev summary { cursor: pointer; opacity: 0.65; }
.infra-dev .infra-facts { margin-top: 8px; }
.infra-dep-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.infra-dep-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0;
  border-bottom: 1px solid var(--hair, rgba(20, 20, 26, 0.08));
}
.infra-dep-list li:last-child { border-bottom: 0; }
.infra-advanced { font-size: 0.82rem; }
.infra-advanced summary { cursor: pointer; opacity: 0.65; }
.infra-advanced-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  margin: 8px 0 0;
}
.infra-advanced-list dt { opacity: 0.65; }
.infra-advanced-list dd { margin: 0; }
.infra-section { margin-top: 26px; }
.infra-section h2 { font-size: 1rem; margin: 0 0 6px; }
.infra-usage { list-style: none; margin: 8px 0 0; padding: 0; }
.infra-usage li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--aly-line, rgba(128, 128, 128, 0.14));
  font-size: 0.86rem;
}
.infra-usage-value { opacity: 0.7; white-space: nowrap; }
@media (max-width: 520px) {
  .infra-summary { gap: 10px 20px; }
  .infra-advanced-list { grid-template-columns: 1fr; gap: 0 0; }
  .infra-advanced-list dd { margin-bottom: 6px; }
}
.infra-connections { font-size: 0.82rem; margin-top: 10px; }
.infra-connections summary { cursor: pointer; opacity: 0.65; }
.infra-connections .infra-facts { margin-top: 8px; }
.infra-connections .infra-facts .is-attention { color: var(--warn, #b4531a); font-weight: 600; }
.infra-connections p.muted { margin: 6px 0; }
.infra-connections .btn { margin-top: 10px; }
.infra-subhead {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 16px 0 0;
  opacity: 0.75;
}
.infra-connections .infra-dep-list li { align-items: baseline; }
.infra-connections .infra-dep-list li .muted { flex: 1; text-align: right; }
.btn-quiet {
  background: none;
  border: 0;
  padding: 0 2px;
  font: inherit;
  opacity: 0.55;
  cursor: pointer;
  text-decoration: underline;
}
.btn-quiet:hover { opacity: 1; }

/* /assets/aly-workspace.css */
/* /assets/aly-workspace-layout.css */
.aly-shell.is-project-focus .aly-topbar { display: none; }
.aly-shell.is-project-focus .aly-main { grid-template-rows: minmax(0, 1fr); }
.workspace-stage {
  position: relative;
  height: 100%;
  min-width: 0; min-height: 0;
  overflow: hidden;
  background: var(--void-2);
}
.aly-shell.is-project-focus .aly-projects {
  width: 100%; max-width: 100%; overflow: hidden; padding: 0;
  scrollbar-gutter: auto;
}
.workspace-stage {
  --builder-panel-width: clamp(320px, 26vw, 380px);
  --workspace-panel-width: min(var(--builder-panel-width), 100%);
  --workspace-edge-width: 44px;
  --workspace-rail-width: 48px;
}
.workspace-canvas { position: absolute; inset: 0 0 0 var(--workspace-panel-width); min-width: 0; display: flex; transition: left .18s ease; }
.workspace-stage.is-3d .workspace-canvas { transition: none; }
.workspace-stage.is-engine-panel .workspace-canvas { left: var(--workspace-rail-width); z-index: 4; }
.workspace-stage.is-engine-panel .workspace-dock-column { visibility: hidden; }
.workspace-stage.is-builder-panel-hidden .workspace-canvas,
.workspace-stage.is-builder-panel-hidden.is-engine-panel .workspace-canvas { left: 0; }
.workspace-panel-resize {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: calc(var(--workspace-panel-width) - 3px); width: 6px;
  cursor: col-resize; touch-action: none;
}
@media (pointer: coarse) {
  .workspace-panel-resize { left: calc(var(--workspace-panel-width) - 22px); width: 44px; }
  .workspace-panel-resize::before { left: 21px; }
  .workspace-panel-resize:hover::before, .workspace-panel-resize.is-resizing::before { left: 20px; }
  .workspace-panel-resize-grip { width: 22px; height: 48px; }
}
.workspace-panel-resize::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 2px; width: 1px;
  background: var(--surface-line); transition: background .14s ease, width .14s ease, left .14s ease;
}
.workspace-panel-resize:hover::before, .workspace-panel-resize.is-resizing::before {
  left: 1px; width: 3px; background: var(--text);
}
.workspace-panel-resize-grip {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 42px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border: 1px solid var(--surface-line); border-radius: 999px;
  background: var(--surface); color: var(--muted); box-shadow: var(--card-shadow); transition: color .14s ease, background .14s ease, border-color .14s ease, transform .14s ease;
}
.workspace-panel-resize-grip::before {
  content: ''; width: 4px; height: 16px; background-image: radial-gradient(circle, currentColor 1.2px, transparent 1.6px); background-size: 4px 6px;
}
.workspace-panel-resize:hover .workspace-panel-resize-grip, .workspace-panel-resize.is-resizing .workspace-panel-resize-grip {
  border-color: var(--text); background: var(--surface-2); color: var(--text);
}
.workspace-panel-resize.is-resizing .workspace-panel-resize-grip { transform: translate(-50%, -50%) scale(1.08); }
.workspace-panel-resize:focus-visible .workspace-panel-resize-grip { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .workspace-panel-resize::after {
    content: attr(data-tooltip); position: absolute; top: calc(50% + 32px); left: 50%; width: max-content; max-width: 180px;
    transform: translate(-50%, -4px); padding: 5px 7px; border: 1px solid var(--surface-line); border-radius: 6px;
    background: var(--surface); color: var(--text); box-shadow: var(--card-shadow); font-size: 10px; line-height: 1.25;
    opacity: 0; pointer-events: none; transition: opacity .14s ease, transform .14s ease;
  }
  .workspace-panel-resize:hover::after, .workspace-panel-resize:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
}
.workspace-stage.is-builder-panel-hidden .workspace-panel-resize { display: none; }
.aly-build-lock {
  display: flex; align-items: center; justify-content: center; padding: 18px;
  background: color-mix(in srgb, var(--void-2) 72%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.aly-build-lock[hidden] { display: none; }
.workspace-canvas-build-lock {
  position: absolute; inset: 0; z-index: 3;
  background: color-mix(in srgb, var(--void-2) 38%, transparent);
  -webkit-backdrop-filter: blur(5px) brightness(.72) saturate(.82);
  backdrop-filter: blur(5px) brightness(.72) saturate(.82);
  pointer-events: auto;
}
.workspace-canvas-build-lock .aly-build-lock-card {
  width: min(390px, calc(100% - 40px)); gap: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.aly-build-lock-card {
  width: min(360px, calc(100% - 24px)); display: grid; justify-items: center; gap: 10px;
  padding: 20px; text-align: center; border: 1px solid var(--surface-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); box-shadow: var(--card-shadow);
}
.aly-build-lock-title { font-size: 14px; line-height: 1.35; }
.aly-build-lock-step { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.aly-build-lock-reason { margin: 0; color: var(--text); font-size: 12px; line-height: 1.45; }
.aly-build-lock-cancel {
  min-height: 36px; padding: 0 16px; border: 1px solid var(--hair-2); border-radius: var(--radius);
  background: var(--glass-2); color: var(--text); font: inherit; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.aly-build-lock-cancel:hover { border-color: var(--text); background: var(--surface-2); }
.aly-build-lock-cancel:focus-visible {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent);
}
.aly-build-lock-cancel:active { transform: translateY(1px); }
.aly-build-lock-cancel:disabled { color: var(--muted); border-color: var(--surface-line); background: var(--surface-2); cursor: default; transform: none; }
.aly-build-lock-confirm {
  display: grid; gap: 8px; width: 100%; padding: 13px 14px; text-align: left;
  border: 1px solid var(--hair-2); border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.aly-build-lock-confirm[hidden] { display: none; }
.aly-build-lock-confirm-heading { font-size: 12.5px; line-height: 1.35; }
.aly-build-lock-confirm-body { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.aly-build-lock-confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.aly-build-lock-confirm-actions button {
  min-height: 32px; padding: 0 12px; border: 1px solid var(--surface-line); border-radius: 9px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer;
}
.aly-build-lock-confirm-actions button:hover,
.aly-build-lock-confirm-actions button:focus-visible { border-color: var(--text); }
.aly-build-lock-confirm-actions button:disabled { color: var(--muted); cursor: default; }
.aly-build-lock-confirm-stop { border-color: color-mix(in srgb, var(--text) 45%, var(--surface-line)); }
.aly-build-this-modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.aly-build-this-modal[hidden] { display: none; }
.aly-build-this-dialog {
  display: grid; gap: 14px; width: min(420px, 100%); max-height: calc(100vh - 40px);
  overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px; text-align: left;
  border: 1px solid var(--hair-2); border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--card-shadow);
}
.aly-build-this-confirm-heading { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.aly-build-this-confirm-list { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; display: grid; gap: 3px; }
.aly-build-this-confirm-check { display: block; font-size: 11px; line-height: 1.45; color: var(--muted); }
.aly-build-this-confirm-meta { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.aly-build-this-confirm-actions { display: flex; gap: 10px; margin-top: 4px; }
.aly-build-this-confirm-actions button {
  flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--hair-2); border-radius: var(--radius);
  background: var(--glass-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.aly-build-this-confirm-actions button:hover { border-color: var(--text); background: var(--surface-2); }
.aly-build-this-confirm-actions button:focus-visible {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent);
}
.aly-build-this-confirm-actions button:active { transform: translateY(1px); }
.aly-build-this-confirm-go {
  border-color: color-mix(in srgb, var(--jade) 45%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 16%, var(--glass));
}
.aly-build-this-confirm-go:hover {
  border-color: color-mix(in srgb, var(--jade) 65%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 24%, var(--glass-2));
}
.aly-build-this-confirm-go:focus-visible {
  border-color: color-mix(in srgb, var(--jade) 70%, var(--hair-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 30%, transparent);
}
.aly-build-this-confirm-go:active { background: color-mix(in srgb, var(--jade) 30%, var(--glass-2)); }
.workspace-canvas-build-failure {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 8px;
  padding: 24px; text-align: center; background: color-mix(in srgb, var(--void-2) 72%, transparent);
  color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.workspace-canvas-build-failure[hidden] { display: none; }
.workspace-canvas-build-failure-title { font-size: 15px; }
.workspace-canvas-build-failure-message { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.5; }
.workspace-canvas-build-paused {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 8px;
  padding: 24px; text-align: center; background: color-mix(in srgb, var(--void-2) 72%, transparent);
  color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.workspace-canvas-build-paused[hidden] { display: none; }
.workspace-canvas-build-paused-title {
  font-size: 15px; max-width: 440px; margin: 0 auto; line-height: 1.5; font-weight: 600;
}
.workspace-canvas-build-paused-status {
  max-width: 420px; margin: 0; color: var(--muted); line-height: 1.5; min-height: 1.5em;
}
.workspace-canvas-build-paused-actions { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.workspace-canvas-build-paused-continue,
.workspace-canvas-build-paused-upgrade {
  border: 1px solid var(--hair-2); border-radius: 10px; padding: 8px 16px;
  font: inherit; font-size: 13px; cursor: pointer; background: var(--glass); color: var(--text);
}
.workspace-canvas-build-paused-continue {
  border-color: color-mix(in srgb, var(--jade) 45%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 16%, var(--glass));
}
.workspace-canvas-build-paused-continue:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--jade) 65%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 24%, var(--glass-2));
}
.workspace-canvas-build-paused-continue:disabled { opacity: 0.5; cursor: not-allowed; }
.workspace-canvas-build-paused-upgrade:hover { background: var(--glass-2); }
.workspace-canvas-build-paused-cancel {
  border: 0; border-radius: 10px; padding: 8px 12px; background: none;
  font: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
}
.workspace-canvas-build-paused-cancel:hover:not(:disabled) { color: var(--text); background: var(--glass); }
.workspace-canvas-build-paused-cancel:disabled { opacity: 0.5; cursor: not-allowed; }
.workspace-canvas-build-limit {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center;
  padding: 24px; background: color-mix(in srgb, var(--void-2) 72%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.workspace-canvas-build-limit[hidden] { display: none; }
.workspace-canvas-build-limit .aly-limit { width: min(420px, calc(100% - 32px)); margin: 0; }
.preview-frame-wrap {
  flex: 1; min-width: 0; background: var(--void-2);
  display: flex; justify-content: center; position: relative;
}
.preview-frame { width: 100%; border: 0; flex: 1 1 auto; background: #fff; }
.preview-empty {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center;
  background-color: var(--void-2);
  background-image: radial-gradient(circle, var(--surface-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.preview-empty[hidden] { display: none; }
.preview-empty-icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--surface-line); border-radius: 14px;
  background: var(--surface); color: var(--muted);
}
.preview-empty-text { margin: 0; max-width: 32ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.preview-frame-wrap.is-mobile .preview-frame {
  flex: 0 0 auto; width: 390px; max-width: 100%;
  border-left: 1px solid var(--surface-line); border-right: 1px solid var(--surface-line);
}

/* /assets/aly-preview-states.css */
.preview-loading {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: var(--void-2);
  opacity: 1; transition: opacity .28s ease;
}
.preview-loading.is-done { opacity: 0; pointer-events: none; }
.preview-loading[hidden] { display: none; }
.preview-skeleton {
  width: min(720px, 100%);
  display: grid; gap: 14px;
}
.preview-skeleton-bar,
.preview-skeleton-block,
.preview-skeleton-line,
.preview-skeleton-card {
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-line) 50%, var(--surface) 100%);
  background-size: 220% 100%;
  animation: preview-skeleton-sheen 1.8s ease-in-out infinite;
}
.preview-skeleton-bar { height: 36px; }
.preview-skeleton-block { height: clamp(120px, 24vh, 200px); margin-top: 6px; }
.preview-skeleton-line { height: 12px; width: 82%; }
.preview-skeleton-line.is-short { width: 54%; }
.preview-skeleton-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.preview-skeleton-card { height: clamp(72px, 14vh, 120px); }
@keyframes preview-skeleton-sheen { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) {
  .preview-skeleton-bar, .preview-skeleton-block, .preview-skeleton-line, .preview-skeleton-card { animation: none; }
  .preview-loading { transition: none; }
}
.preview-fallback { z-index: 2; }
.preview-fallback-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.preview-fallback .preview-empty-text { margin-top: -6px; }
.preview-fallback-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.preview-fallback-actions .btn { min-height: 40px; padding-inline: 16px; }

/* /assets/aly-build-lock-mark.css */
.aly-build-mark {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--text);
  opacity: 1;
  --mark-cycle-duration: 2.6s;
}
.aly-build-mark.is-queued { opacity: .5; --mark-cycle-duration: 4.2s; }
.aly-build-mark.is-running { opacity: 1; --mark-cycle-duration: 2.6s; }
.aly-build-mark[hidden] { display: none; }
.aly-build-mark-svg { width: 100%; height: 100%; overflow: visible; }
.aly-build-mark-fill {
  fill: currentColor;
  opacity: 0;
  animation: aly-mark-fill-cycle var(--mark-cycle-duration) ease infinite;
}
.aly-build-mark-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  animation: aly-mark-stroke-cycle var(--mark-cycle-duration) ease infinite;
}
@keyframes aly-mark-stroke-cycle {
  0%   { stroke-dashoffset: var(--mark-length); opacity: 1; animation-timing-function: cubic-bezier(.22, .61, .36, 1); }
  46%  { stroke-dashoffset: 0; opacity: 1; animation-timing-function: linear; }
  79%  { stroke-dashoffset: 0; opacity: 1; }
  98%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: var(--mark-length); opacity: 0; }
}
@keyframes aly-mark-fill-cycle {
  0%, 44% { opacity: 0; }
  48%     { opacity: 1; }
  79%     { opacity: 1; }
  98%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .aly-build-mark-fill { animation: none; opacity: 1; }
  .aly-build-mark-stroke { animation: none; opacity: 0; }
}

/* /assets/aly-workspace-dock.css */
.workspace-dock {
  position: absolute; z-index: 3; left: 0; top: 0; width: var(--workspace-panel-width); height: 100%; display: flex;
  flex-direction: row; min-width: 0; box-sizing: border-box; border-right: 1px solid var(--surface-line); background: var(--surface); color: var(--text);
  transition: transform .18s ease;
}
.workspace-dock-column { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
.workspace-panel-rail:empty { display: none; }
.workspace-dock.is-hidden { transform: translateX(-100%); }
.workspace-panel-toggle {
  position: absolute; z-index: 5; top: 156px;
  left: var(--workspace-panel-width);
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0;
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--surface-line); border-left: 0; border-radius: 0 10px 10px 0;
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: left .18s ease, background .12s ease, color .12s ease;
}
.workspace-panel-toggle:hover, .workspace-panel-toggle:focus-visible { background: var(--surface-2); color: var(--text); }
.workspace-stage.is-builder-panel-hidden .workspace-panel-toggle { left: 0; }
.workspace-panel-rail {
  position: absolute; z-index: 3; top: 208px; left: var(--workspace-panel-width); width: auto;
  display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--surface-line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--surface);
}
.workspace-stage.is-builder-panel-hidden .workspace-panel-rail { left: 0; }
.dock-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--surface-line);
  background: var(--surface-2);
}
.dock-head-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.dock-exit {
  flex: none; min-height: 34px; padding: 0 11px; border: 1px solid var(--text); border-radius: 9px;
  color: var(--text); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
}
.dock-exit:hover, .dock-exit:focus-visible { color: var(--danger); border-color: var(--danger); }
.dock-open-app-tooltip { display: inline-flex; }
.dock-open-app {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 8px; border: 1px solid var(--text); border-radius: 6px;
  background: var(--text); color: var(--surface); font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.dock-open-app:hover, .dock-open-app:focus-visible { opacity: .82; }
.dock-open-app.is-publishing { opacity: .6; pointer-events: none; }
.dock-open-app svg { flex: none; }
.dock-home {
  flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0;
  background: transparent; cursor: pointer;
}
.dock-home img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dock-home:hover { opacity: .72; }
.dock-home:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.dock-head .project-state { flex: none; min-height: 28px; margin-left: 0; padding: 3px 6px; border-radius: 6px; background: transparent; cursor: pointer; font: inherit; font-size: 10px; white-space: nowrap; }
.dock-head button.project-state:hover, .dock-head button.project-state:focus-visible { background: var(--surface); }
.dock-usage { flex: none; min-height: 28px; padding: 3px 7px; border: 1px solid var(--surface-line); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 10px; font-weight: 650; letter-spacing: .04em; cursor: pointer; }
.dock-usage:hover, .dock-usage:focus-visible { border-color: var(--text); background: var(--surface-2); }
.dock-icon {
  flex: none; min-width: 32px; min-height: 32px; padding: 0 8px; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
}
.dock-head .project-state[hidden] { display: none; }
.dock-body { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.dock-controls-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dock-controls-row.is-rail { flex-direction: column; flex-wrap: nowrap; gap: 14px; }
.dock-control { font-size: 11px; padding: 5px 11px; min-height: 30px; }
.dock-viewport-toggle {
  min-width: 84px; min-height: 32px; padding: 5px 11px; border-radius: 8px;
  border: 1px solid var(--surface-line); background: var(--surface-2); color: var(--text); font-size: 11px;
}
.dock-viewport-toggle::after { content: ' ↔'; color: var(--muted); }
.dock-controls-row.is-rail .dock-viewport-toggle,
.dock-rail-control {
  width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.dock-controls-row.is-rail .dock-viewport-toggle::after { content: none; }
.dock-controls-row.is-rail .dock-viewport-toggle:hover, .dock-controls-row.is-rail .dock-viewport-toggle:focus-visible,
.dock-rail-control:hover, .dock-rail-control:focus-visible { background: var(--surface-2); color: var(--text); }
.dock-body[hidden] { display: none; }
.workspace-panel-toggle-hint {
  position: absolute; z-index: 6; top: 156px;
  left: calc(var(--workspace-panel-width) + 52px);
  height: 44px; display: inline-flex; align-items: center; gap: 6px;
  padding: 0 11px; border-radius: 8px;
  background: var(--text); color: var(--surface);
  font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer;
  box-shadow: var(--card-shadow);
  animation: panel-toggle-hint-in .2s ease both,
             panel-toggle-hint-bob 1.1s ease-in-out .35s 4;
}
.workspace-panel-toggle-hint.is-leaving { animation: panel-toggle-hint-out .18s ease both; }
.workspace-panel-toggle-hint-arrow { font-size: 13px; line-height: 1; }
@keyframes panel-toggle-hint-in  { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes panel-toggle-hint-out { to { opacity: 0; transform: translateX(8px); } }
@keyframes panel-toggle-hint-bob { 50% { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .workspace-panel-toggle-hint { animation: panel-toggle-hint-in .2s ease both; }
}
@media (max-width: 639.98px) {
  .workspace-stage { --workspace-panel-width: 100%; }
  .dock-viewport-toggle,
  .dock-controls-row.is-rail .dock-viewport-toggle { display: none; }
  .workspace-canvas { inset: 0; }
  .workspace-panel-resize { display: none; }
  .workspace-panel-toggle {
    left: auto; right: 0;
    border-radius: 10px 0 0 10px; border-left: 1px solid var(--surface-line); border-right: 0;
  }
  .workspace-stage.is-builder-panel-hidden .workspace-panel-toggle {
    left: 0; right: auto;
    border-radius: 0 10px 10px 0; border-left: 0; border-right: 1px solid var(--surface-line);
  }
  .workspace-stage.is-engine-panel:not(.is-builder-panel-hidden) .workspace-panel-toggle { top: 6px; }
  .workspace-stage:not(.is-builder-panel-hidden):not(.is-engine-panel) .workspace-panel-toggle { top: 13px; }
  .workspace-stage:not(.is-builder-panel-hidden):not(.is-engine-panel) .dock-head { padding-right: 58px; }
  .workspace-panel-toggle-hint { left: auto; right: 52px; }
  .workspace-panel-toggle-hint .workspace-panel-toggle-hint-arrow { transform: scaleX(-1); }
}
.workspace-panel-toggle-hint.is-row {
  position: static; flex: none; align-self: flex-end; flex-direction: row-reverse;
  height: 32px; margin: 6px 6px 0 0;
  animation: panel-toggle-hint-in .2s ease both;
}
.workspace-panel-toggle-hint.is-row.is-leaving { animation: panel-toggle-hint-out .18s ease both; }
.workspace-panel-toggle-hint.is-row .workspace-panel-toggle-hint-arrow {
  transform: rotate(90deg); animation: panel-toggle-hint-up 1.1s ease-in-out .35s 4;
}
@keyframes panel-toggle-hint-up { 50% { transform: rotate(90deg) translateX(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .workspace-panel-toggle-hint.is-row .workspace-panel-toggle-hint-arrow { animation: none; }
}

/* /assets/aly-workspace-chat.css */
.dock-log {
  flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; touch-action: pan-y;
  display: flex; flex-direction: column; gap: 10px;
  padding: 0 14px 12px; margin: 0;
}
.dock-log::before { content: ''; flex: 1 0 0; order: 1; }
.dock-log > .workspace-chat-history-head { flex: 0 0 auto; order: 0; }
.dock-log > .workspace-entry, .dock-log > .workspace-chat-history { flex: 0 0 auto; order: 2; }
.dock-log:empty { display: none; }
.workspace-entry { padding-left: 0; }
.workspace-chat-live-turn { display: grid; gap: 6px; border-left: 0; padding-left: 0; }
.workspace-chat-live-turn[hidden] { display: none; }
.workspace-you { margin: 0 0 3px; font-size: 13px; line-height: 1.45; }
.workspace-status { margin: 0; font-size: 12px; line-height: 1.45; }
.workspace-status-row { display: flex; align-items: flex-start; gap: 6px; }
.workspace-status-row .workspace-status { flex: 1; }
.workspace-chat-history-message.is-platform-fault {
  width: calc(100% - 12px); justify-self: start; border-color: var(--surface-line);
  background: var(--surface); color: var(--text);
}
.workspace-platform-fault-card { display: grid; gap: 7px; }
.workspace-platform-fault-title { font-size: 12px; }
.workspace-platform-fault-copy, .workspace-platform-fault-reassurance { margin: 0; font-size: 12px; line-height: 1.45; }
.workspace-platform-fault-reassurance { color: var(--muted); }
.workspace-platform-fault-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.workspace-platform-fault-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 11px; font-weight: 650; text-decoration: none; cursor: pointer;
}
.workspace-platform-fault-action:hover, .workspace-platform-fault-action:focus-visible { border-color: var(--text); background: var(--surface); }
.workspace-platform-fault-action:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.workspace-platform-fault-action.is-primary { border-color: var(--jade); background: var(--jade); color: var(--surface); }
.workspace-platform-fault-action.is-primary:hover, .workspace-platform-fault-action.is-primary:focus-visible { border-color: var(--jade); background: color-mix(in srgb, var(--jade) 86%, var(--text)); }
.workspace-build-progress { display: grid; gap: 3px; list-style: none; margin: 7px 0 0; padding: 0; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.workspace-build-progress li::before { content: '·'; display: inline-block; width: 14px; color: var(--muted); }
.workspace-build-progress li.is-working::before { content: '◌'; color: var(--jade); }
.workspace-build-progress li.is-done::before { content: '✓'; color: var(--jade); }
.workspace-build-progress li.is-attention::before { content: '!'; color: var(--danger); }
.workspace-build-progress li.is-failed { color: var(--danger); }
.aly-wall { display: grid; gap: 6px; }
.aly-chat-mode-banner { margin: 10px 0; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface); font-size: 13px; }
.aly-wall-line { margin: 0; }
.aly-wall-clock { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.aly-wall-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.aly-wall-btn { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: inherit; cursor: pointer; text-decoration: none; line-height: 1.3; }
.aly-wall-btn:hover { border-color: var(--text); }
.aly-wall-btn.is-primary { border-color: var(--jade); background: var(--jade); color: var(--surface); }
.aly-wall-btn.is-primary:hover { background: color-mix(in srgb, var(--jade) 88%, var(--text)); }
.aly-wall-btn[disabled] { opacity: .5; cursor: default; }
.workspace-wall .workspace-chat-history-content { font-size: 13px; }
.workspace-build-run { margin: 8px 0 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2, var(--surface)); }
.workspace-build-run[data-state="stopped"] { border-color: var(--danger); }
.workspace-build-run[data-state="completed"] { border-color: var(--jade); }
.workspace-build-run-step { margin: 0; font-size: 12px; font-weight: 600; }
.workspace-build-run-progress { margin: 3px 0 0; font-size: 11px; }
.workspace-build-run-spend { margin: 2px 0 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.workspace-build-run-controls { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 7px; }
.workspace-build-run-mode { flex: 1 1 100%; display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.workspace-build-run-mode[hidden] { display: none; }
.workspace-build-run-mode-legend { padding: 0 0 1px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.workspace-build-run-choice { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; text-transform: none; }
.workspace-build-run-choice:hover { border-color: var(--muted); }
.workspace-build-run-choice.is-selected { border-color: var(--jade); background: color-mix(in srgb, var(--jade) 9%, var(--surface)); }
.workspace-build-run-choice input { width: 14px; height: 14px; margin: 1px 0 0; accent-color: var(--jade); cursor: pointer; }
.workspace-build-run-choice-text { display: grid; gap: 2px; min-width: 0; }
.workspace-build-run-choice-title { font-size: 12px; font-weight: 600; line-height: 1.3; }
.workspace-build-run-choice-desc { font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.workspace-build-run-continue { font-size: 11px; padding: 3px 9px; border: 1px solid var(--jade); border-radius: 6px; background: var(--surface); color: var(--jade); cursor: pointer; }
.workspace-build-run-continue:hover { border-color: var(--text); }
.workspace-build-run-finish { font-size: 11px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); cursor: pointer; }
.workspace-build-run-finish:hover { border-color: var(--text); color: var(--text); }
.workspace-build-run-continue[disabled], .workspace-build-run-finish[disabled] { opacity: .5; cursor: default; }
.workspace-build-run-continue[hidden], .workspace-build-run-finish[hidden] { display: none; }
.workspace-build-progress li.is-failed::before { content: '×'; color: var(--danger); }
.workspace-build-progress li.is-total { margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--surface-line); color: var(--text); font-weight: 650; }
.workspace-build-progress li.is-total::before { content: ''; width: 14px; }
.platform-fault { margin: 0; font-size: 12px; line-height: 1.5; }
.platform-fault-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.workspace-actions {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.6;
}
.workspace-actions li::before { content: "· "; }
.workspace-actions li.is-failed { opacity: 0.75; text-decoration: line-through; }
.workspace-answer { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.workspace-answer.is-failed { color: var(--danger, #c1473d); }
.workspace-mode-switch {
  justify-self: start; min-height: 30px; padding: 0 10px; border: 1px solid var(--surface-line);
  border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 11.5px; cursor: pointer;
}
.workspace-mode-switch:hover, .workspace-mode-switch:focus-visible { border-color: var(--text); background: var(--surface); }
.workspace-build-this { display: flex; justify-content: center; margin-top: 14px; }
.workspace-build-this-btn {
  min-height: 40px; padding: 0 22px; border: 1px solid color-mix(in srgb, var(--jade) 45%, var(--hair-2));
  border-radius: var(--radius); background: color-mix(in srgb, var(--jade) 16%, var(--glass));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 650; letter-spacing: .01em;
  cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.workspace-build-this-btn:hover {
  border-color: color-mix(in srgb, var(--jade) 65%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 24%, var(--glass-2));
}
.workspace-build-this-btn:focus-visible {
  outline: none; border-color: color-mix(in srgb, var(--jade) 70%, var(--hair-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 30%, transparent);
}
.workspace-build-this-btn:active { transform: translateY(1px); background: color-mix(in srgb, var(--jade) 30%, var(--glass-2)); }
.workspace-build-this-btn:disabled {
  color: var(--muted); border-color: var(--surface-line); background: var(--surface-2);
  cursor: default; font-weight: 500; transform: none;
}
.workspace-plan-status { margin: 14px 0 0; text-align: center; font-size: 12px; }

/* /assets/aly-workspace-chat-2.css */
.workspace-chat-history { min-width: 0; margin: 0; padding-top: 0; }
.workspace-chat-history-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; min-width: 0; justify-content: space-between; align-items: center; gap: 7px;
  margin: 0 -14px 7px; padding: 8px 14px 7px;
  border-bottom: 1px solid var(--surface-line); background: var(--surface);
  transform: translateY(0); transition: transform 180ms ease;
  will-change: transform;
}
.workspace-chat-history-head.is-scroll-hidden { transform: translateY(-100%); }
.workspace-chat-history-search { position: relative; flex: 1; min-width: 0; }
.workspace-chat-history-search-input { box-sizing: border-box; width: 100%; min-height: 29px; padding: 5px 28px 5px 9px; border: 1px solid var(--surface-line); border-radius: 7px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 11px; }
.workspace-chat-history-search-input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.workspace-chat-history-search-clear { position: absolute; top: 50%; right: 3px; width: 23px; height: 23px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.workspace-chat-history-search-clear:hover, .workspace-chat-history-search-clear:focus-visible { background: var(--surface); color: var(--text); }
.workspace-chat-history-menu { flex: 0 1 auto; max-width: 50%; min-height: 29px; padding: 0 9px; display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--surface-line); border-radius: 7px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; cursor: pointer; text-transform: none; letter-spacing: 0; }
.workspace-chat-history-menu::after { content: '▾'; flex: 0 0 auto; color: var(--muted); }
.workspace-chat-history-menu.has-filters { border-color: var(--jade); color: var(--text); }
.workspace-chat-history-menu.has-filters::after { color: var(--jade); }
.workspace-chat-history-menu:hover, .workspace-chat-history-menu:focus-visible { border-color: var(--text); background: var(--surface); }
.workspace-chat-history-date { box-sizing: border-box; min-height: 26px; width: calc(50% - 4px); margin: 0 2px 8px 0; padding: 3px 5px; border: 1px solid var(--surface-line); border-radius: 6px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 10px; }
.workspace-chat-history-list { display: grid; min-width: 0; gap: 12px; }
.workspace-chat-history-message { box-sizing: border-box; min-width: 0; padding: 9px 10px; border: 1px solid var(--surface-line); font-size: 12px; line-height: 1.45; }
.workspace-chat-history-meta > .aly-elapsed { flex: none; font-size: 9.5px; font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--muted); opacity: .8; white-space: nowrap; }
.workspace-chat-history-message.is-failed .workspace-chat-history-meta > .aly-elapsed,
.workspace-chat-history-message.is-platform-fault .workspace-chat-history-meta > .aly-elapsed { color: var(--danger); opacity: .9; }
.workspace-chat-history-message.is-assistant {
  width: calc(100% - 12px); justify-self: start; border-radius: 11px 11px 11px 4px;
  background: var(--surface-2);
}
.workspace-chat-history-message.is-user {
  width: fit-content; max-width: 75%; justify-self: end; border-radius: 11px 11px 4px 11px;
  background: color-mix(in srgb, var(--jade) 20%, var(--surface-2)); border-color: color-mix(in srgb, var(--jade) 48%, var(--surface-line)); color: var(--text);
}
.workspace-chat-history-message.is-following-same-sender { margin-top: -6px; }
.workspace-chat-history-meta { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 7px; color: var(--muted); font-size: 10px; }
.workspace-chat-history-meta strong { color: var(--text); }
.workspace-chat-history-mode { margin-left: auto; text-transform: uppercase; letter-spacing: .06em; }
.workspace-chat-avatar { width: 18px; height: 18px; flex: none; box-sizing: border-box; padding: 3px; object-fit: contain; border-radius: 50%; background: var(--text); }
.workspace-chat-history-message.is-user .workspace-chat-history-meta,
.workspace-chat-history-message.is-user .workspace-chat-history-meta strong { color: var(--muted); }
.workspace-chat-history-message.is-user .workspace-chat-history-content { color: var(--text); }
.workspace-chat-history-content { min-width: 0; margin-top: 5px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.workspace-chat-history-content > :first-child { margin-top: 0; }
.workspace-chat-history-content > :last-child { margin-bottom: 0; }
.workspace-chat-history-content pre { max-width: 100%; overflow-x: auto; }
.workspace-chat-history-empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.workspace-chat-history-empty p { margin: 0; }
.workspace-chat-history-empty-clear { margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.workspace-chat-history mark { padding: 0 1px; border-radius: 2px; background: color-mix(in srgb, var(--jade) 30%, transparent); color: inherit; }
.workspace-build-result {
  display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; width: calc(100% - 12px); justify-self: start;
  padding: 9px 10px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.workspace-build-result:hover { background: var(--surface-2); }
.workspace-build-result:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.workspace-build-result-outcome { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.workspace-build-result time { color: var(--muted); font-size: 10px; }
.workspace-build-result-summary { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.workspace-build-result.is-success { border-color: var(--jade); }
.workspace-build-result.is-success .workspace-build-result-outcome { color: var(--jade); }
.workspace-build-result.is-warning { border-color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-build-result.is-warning .workspace-build-result-outcome { color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-build-result.is-failed { border-color: var(--danger); }
.workspace-build-result.is-failed .workspace-build-result-outcome { color: var(--danger); }
.build-activity { padding: 0 14px; margin: 10px 0 0; }
.build-activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.build-step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.4; }
.build-step.muted { color: var(--muted); }
.build-step-mark { width: 1.1em; text-align: center; font-size: 11px; }
.build-step.is-done .build-step-mark { color: var(--success, var(--jade)); }
.build-step.is-failed .build-step-mark { color: var(--danger, #c1473d); }
.build-step.is-failed .build-step-name { color: var(--danger, #c1473d); }
.build-step.is-waiting { color: var(--muted); }
.build-step.is-waiting .build-step-mark { color: var(--muted); }
.build-activity-contact-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.build-activity-contact-team {
  display: inline-flex; align-items: center; text-decoration: none;
  font-size: 11.5px; padding: 6px 10px; min-height: 30px;
  border: 1px solid var(--surface-line); border-radius: 8px;
}
.build-activity-contact-team:hover, .build-activity-contact-team:focus-visible { color: var(--text); border-color: var(--text); }
.build-activity-details-toggle {
  margin-top: 6px; background: none; border: none; padding: 0;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  cursor: pointer;
}
.build-activity-details-toggle:hover, .build-activity-details-toggle:focus-visible { color: var(--text); }
.build-activity-details {
  margin-top: 6px; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 8px;
  background: var(--surface-2); font-size: 11.5px; line-height: 1.5;
}
.build-activity-raw { border-top: 1px solid var(--surface-line); padding-top: 6px; }
.build-activity-raw-line { margin: 0 0 3px; color: var(--muted); word-break: break-word; white-space: pre-wrap; }
.build-activity-toggle { display: inline-flex; gap: 2px; margin-bottom: 8px; border: 1px solid var(--surface-line); border-radius: 8px; padding: 2px; }
.build-activity-toggle-option {
  background: none; border: none; cursor: pointer; border-radius: 6px;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; min-height: 26px; color: var(--muted);
}
.build-activity-toggle-option.is-active { background: var(--surface-2); color: var(--text); }
.build-activity-progress { margin: 0 0 8px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.build-activity-prompts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.build-activity-prompt { font-size: 12.5px; line-height: 1.45; padding-left: 4px; border-left: 2px solid var(--surface-line); }
.build-activity-prompt.is-succeeded { border-left-color: var(--success, var(--jade)); }
.build-activity-prompt.is-failed { border-left-color: var(--danger, #c1473d); }
.build-activity-prompt.is-running { border-left-color: var(--text); }
.build-activity-prompt-head { display: flex; align-items: baseline; gap: 7px; }
.build-activity-prompt-mark { width: 1em; text-align: center; }
.build-activity-prompt-n { font-weight: 600; }
.build-activity-prompt-cost { margin-left: auto; font-size: 11.5px; }
.build-activity-prompt-decision { margin: 3px 0 0; }
.build-activity-prompt-files { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.build-activity-prompt-files li { font-size: 11.5px; color: var(--muted); }
.build-activity-prompt-files li::before { content: "↳ "; }
.build-activity-prompt-verified { margin: 3px 0 0; font-size: 11.5px; }
.build-activity-detail-heading { margin: 12px 0 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.build-activity-instruction {
  margin: 0; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 8px;
  background: var(--surface-2); font-size: 11px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.build-activity-instruction.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; overflow: hidden; }
.build-activity-platform-fault {
  margin-top: 8px; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 8px;
  font-size: 12px; line-height: 1.5;
}
.build-activity-platform-actions { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.build-activity-queue-notice {
  margin-top: 8px; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 8px;
  background: var(--surface-2); color: var(--muted);
  font-size: 12px; line-height: 1.5;
  display: flex; align-items: center; gap: 8px;
}
.build-activity-queue-notice p { margin: 0; }
.build-activity-queue-spinner {
  width: 12px; height: 12px; flex: none; border-radius: 50%;
  border: 2px solid var(--surface-line); border-top-color: var(--muted);
  animation: build-activity-queue-spin 0.9s linear infinite;
}
@keyframes build-activity-queue-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .build-activity-queue-spinner { animation: none; } }
.aly-build-failure { display: grid; gap: 10px; }
.aly-build-failure-message { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text); }
.aly-build-failure-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.aly-build-failure-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 11px; font-weight: 650; cursor: pointer;
}
.aly-build-failure-action:hover, .aly-build-failure-action:focus-visible { border-color: var(--text); background: var(--surface); }
.aly-build-failure-action:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.aly-build-failure-action.is-primary { border-color: var(--jade); background: var(--jade); color: var(--surface); }
.aly-build-failure-action.is-primary:hover, .aly-build-failure-action.is-primary:focus-visible {
  border-color: var(--jade); background: color-mix(in srgb, var(--jade) 86%, var(--text));
}
.aly-build-failure-action[disabled] { opacity: .55; cursor: default; }
.aly-build-failure-canvas { max-width: 420px; justify-items: center; text-align: center; }
.aly-build-failure-canvas .aly-build-failure-message { font-size: 13px; }
.aly-build-failure-canvas .aly-build-failure-actions { justify-content: center; }
.aly-ai-offer {
  display: grid; gap: 8px; justify-items: start; margin-top: 8px; padding: 10px 12px;
  border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface-2);
}
.aly-ai-offer-message { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text); }
.aly-ai-offer-ask, .aly-ai-offer-error { margin: 0; font-size: 11px; line-height: 1.45; }
.aly-ai-offer-error { color: var(--danger); }
.aly-ai-offer-action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--jade); border-radius: 8px; background: var(--jade); color: var(--surface);
  font: inherit; font-size: 11px; font-weight: 650; cursor: pointer;
}
.aly-ai-offer-action:hover, .aly-ai-offer-action:focus-visible { background: color-mix(in srgb, var(--jade) 86%, var(--text)); }
.aly-ai-offer-action:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.aly-ai-offer-action[disabled] { opacity: .55; cursor: default; }
.aly-ai-offer.is-on { border-color: var(--jade); }

/* /assets/aly-workspace-composer.css */
.dock-composer {
  display: grid; gap: 7px; margin-top: auto;
  padding: 10px 12px calc(10px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  position: sticky; bottom: 0;
  border-top: 1px solid var(--hair); background: var(--surface);
}
@media (max-width: 639.98px) {
  :root:not([data-aly-framed]) .dock-composer {
    padding-bottom: calc(66px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  }
}
.dock-composer-body { position: relative; display: grid; gap: 7px; min-height: 0; }
.dock-build-lock { position: absolute; inset: 0; z-index: 4; margin: -2px; border-radius: 10px; }
.dock-build-lock .aly-build-lock-card { width: 100%; padding: 14px 10px; box-shadow: none; }
.dock-build-lock .aly-build-mark { width: 44px; height: 44px; }
.dock-build-lock .aly-build-lock-reason { max-width: 330px; }
.dock-composer.is-build-locked .dock-composer-actions {
  background: var(--surface); border-style: dashed; border-color: var(--surface-line);
  cursor: not-allowed;
}
.dock-composer.is-build-locked .dock-input {
  color: var(--muted); -webkit-text-fill-color: var(--muted); cursor: not-allowed;
}
.dock-composer.is-build-locked .dock-input::placeholder { color: var(--muted); opacity: 1; }
.dock-composer.is-build-locked .dock-send,
.dock-composer.is-build-locked .dock-icon,
.dock-composer.is-build-locked .dock-model-toggle {
  opacity: .4; cursor: not-allowed;
}
.dock-attachments:empty { display: none; }
.dock-composer-actions .dock-input {
  flex: 1 1 160px; min-width: 120px; min-height: 72px; max-height: calc(6 * 1.5em + 16px); padding: 8px 4px; resize: none; border: 0; outline: 0;
  background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 1.5;
}
.dock-credit-pause {
  border: 1px solid var(--surface-line); border-radius: 10px;
  background: var(--surface-2); padding: 8px 11px;
  font-size: 12px; color: var(--muted); line-height: 1.45;
}
.dock-credit-pause[hidden] { display: none; }
.workspace-chat-build-paused {
  margin: 0 0 8px; border: 1px solid var(--surface-line); border-radius: 10px;
  background: var(--surface-2); padding: 9px 12px; display: grid; gap: 6px;
}
.workspace-chat-build-paused[hidden] { display: none; }
.workspace-chat-build-paused-title { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.workspace-chat-build-paused-status { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; min-height: 1.4em; }
.workspace-chat-build-paused-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace-chat-build-paused-continue,
.workspace-chat-build-paused-upgrade {
  border: 1px solid var(--hair-2); border-radius: 8px; padding: 5px 12px;
  font: inherit; font-size: 12px; cursor: pointer; background: var(--glass); color: var(--text);
}
.workspace-chat-build-paused-continue {
  border-color: color-mix(in srgb, var(--jade) 45%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 16%, var(--glass));
}
.workspace-chat-build-paused-continue:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--jade) 65%, var(--hair-2));
  background: color-mix(in srgb, var(--jade) 24%, var(--glass-2));
}
.workspace-chat-build-paused-continue:disabled { opacity: 0.5; cursor: not-allowed; }
.workspace-chat-build-paused-upgrade:hover { background: var(--glass-2); }
.workspace-chat-build-paused-cancel {
  border: 0; border-radius: 8px; padding: 5px 8px; background: none;
  font: inherit; font-size: 11.5px; color: var(--muted); cursor: pointer;
}
.workspace-chat-build-paused-cancel:hover:not(:disabled) { color: var(--text); background: var(--glass); }
.workspace-chat-build-paused-cancel:disabled { opacity: 0.5; cursor: not-allowed; }
.dock-composer-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-height: 40px; padding: 3px 5px;
  border: 1px solid var(--surface-line); border-radius: 14px; background: var(--surface-2);
}
.dock-composer-tools { flex: none; display: flex; align-items: center; gap: 5px; margin-left: auto; }
.dock-composer-actions .dock-icon { flex: none; min-width: 32px; min-height: 32px; padding: 0; border-radius: 9px; }
.dock-composer-actions .dock-settings { display: flex; align-items: center; }
.dock-model-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 9px;
  border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 11px; font-weight: 650; line-height: 1; white-space: nowrap; cursor: pointer;
}
.dock-model-icon { display: inline-flex; color: var(--muted); }
.dock-model-mode { letter-spacing: .02em; }
.dock-model-toggle:hover, .dock-model-toggle:focus-visible { border-color: var(--text); background: var(--surface-2); }
.dock-model-toggle:hover .dock-model-icon, .dock-model-toggle:focus-visible .dock-model-icon { color: var(--text); }
.dock-send {
  flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: var(--text); color: var(--surface); cursor: pointer;
  transition: background .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}
.dock-send:hover, .dock-send:focus-visible { opacity: .82; }
.dock-send.is-idle { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--surface-line); }
.dock-send.is-active { background: var(--text); color: var(--surface); }
.dock-send.is-sending { background: var(--danger); color: var(--surface); }
.aly-limit {
  display: grid; gap: 6px; margin-top: 8px; padding: 12px 14px;
  border: 1px solid var(--surface-line); border-left: 3px solid var(--jade);
  border-radius: 10px; background: var(--surface-2);
}
.aly-limit-headline { margin: 0; font-size: 13px; font-weight: 600; }
.aly-limit-body { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.aly-limit-clock {
  margin: 2px 0 0; font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.aly-limit-detail { margin: 0; font-size: 11.5px; color: var(--muted); }
.aly-limit-allowance { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: var(--surface); }
.aly-limit-allowance-label { color: var(--muted); font-size: 12px; }
.aly-limit-allowance-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.aly-limit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.aly-limit-actions .aly-icon-btn, .aly-limit-upgrade { font-size: 12px; padding: 7px 12px; min-height: 34px; }
.aly-messages .aly-limit { width: min(760px, 100%); margin: 10px auto; }
.project-state.is-limited { color: var(--jade); border-color: var(--jade); }

/* /assets/aly-message-attachments.css */
.aly-msg-attachments {
  display: flex; flex-wrap: wrap; gap: 8px; list-style: none;
  margin: 0 0 8px; padding: 0;
}
.aly-msg-attachment-image {
  display: block; width: fit-content; max-width: 220px; line-height: 0;
  border: 1px solid var(--hair-2); border-radius: 10px; overflow: hidden;
  cursor: pointer;
}
.aly-msg-attachment-image img {
  display: block; width: 100%; max-width: 220px; max-height: 220px;
  object-fit: cover; cursor: pointer;
}
.aly-msg-attachment-file {
  display: inline-flex; align-items: center; max-width: 260px;
  border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass-2);
  padding: 5px 10px; font-size: 12.5px; color: var(--muted);
}
.aly-msg-attachment-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* /assets/aly-lightbox.css */
.aly-lightbox {
  --aly-lightbox-pull: 1;
  --aly-lightbox-top: calc(12px + max(env(safe-area-inset-top, 0px), var(--alyssiun-safe-top, 0px)));
  --aly-lightbox-bottom: calc(14px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  position: fixed; inset: 0;
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; color: #f4f3ef;
  overflow: hidden;
  opacity: var(--aly-lightbox-pull);
}
.aly-lightbox::backdrop {
  background: rgb(0 0 0 / 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.05);
  backdrop-filter: blur(22px) saturate(1.05);
}
.aly-lightbox-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  touch-action: none; -webkit-user-select: none; user-select: none;
  cursor: zoom-in;
}
.aly-lightbox-stage[data-zoomed="1"] { cursor: grab; }
.aly-lightbox-image {
  display: block; max-width: 100vw; max-height: 100dvh;
  width: auto; height: auto; object-fit: contain;
  transform-origin: 50% 50%; will-change: transform;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
.aly-lightbox { transition: opacity 180ms ease; }
.aly-lightbox:not(.is-open) .aly-lightbox-image { transform: scale(0.96); opacity: 0; }
.aly-lightbox .aly-lightbox-image { transition: opacity 200ms ease; }
.aly-lightbox:not(.is-open) .aly-lightbox-controls,
.aly-lightbox:not(.is-open) .aly-lightbox-caption { opacity: 0; }
.aly-lightbox-controls {
  position: absolute; top: var(--aly-lightbox-top); right: 12px; z-index: 3;
  display: flex; align-items: flex-start; gap: 8px;
  transition: opacity 200ms ease;
}
.aly-lightbox-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: 0 0 auto;
  border: 1px solid rgb(255 255 255 / 0.22); border-radius: 999px;
  background: rgb(18 18 23 / 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / 0.8);
  color: #f4f3ef; font: inherit; font-size: 15px; line-height: 1; cursor: pointer;
}
.aly-lightbox-btn:hover { background: rgb(18 18 23 / 0.82); }
.aly-lightbox-btn:active { transform: scale(0.94); }
.aly-lightbox-menu {
  position: absolute; top: 48px; right: 0; z-index: 4;
  display: flex; flex-direction: column; min-width: 184px;
  padding: 5px; border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius);
  background: rgb(22 22 28 / 0.82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.9);
}
.aly-lightbox-menu[hidden] { display: none; }
.aly-lightbox-menu-item {
  display: block; width: 100%; text-align: left;
  min-height: 40px; padding: 0 11px;
  border: 0; border-radius: 8px; background: none;
  color: #f4f3ef; font: inherit; font-size: 14px; cursor: pointer;
}
.aly-lightbox-menu-item:hover { background: rgb(255 255 255 / 0.12); }
.aly-lightbox-menu-item:active { background: rgb(255 255 255 / 0.18); }
.aly-lightbox-caption {
  position: absolute; left: 50%; bottom: var(--aly-lightbox-bottom); z-index: 2;
  transform: translateX(-50%);
  margin: 0; padding: 6px 14px; max-width: min(84vw, 560px);
  border-radius: 999px; background: rgb(0 0 0 / 0.42);
  font-size: 12.5px; color: rgb(244 243 239 / 0.82);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  pointer-events: none; transition: opacity 200ms ease;
}
.aly-lightbox-caption[hidden] { display: none; }
.aly-lightbox-note {
  position: absolute; left: 50%; top: calc(var(--aly-lightbox-top) + 52px); z-index: 4;
  transform: translate(-50%, -6px);
  margin: 0; padding: 8px 15px; max-width: 84vw;
  border: 1px solid rgb(255 255 255 / 0.16); border-radius: 999px;
  background: rgb(22 22 28 / 0.86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13px; color: #f4f3ef;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.aly-lightbox-note.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  .aly-lightbox,
  .aly-lightbox .aly-lightbox-image,
  .aly-lightbox-controls,
  .aly-lightbox-caption,
  .aly-lightbox-note { transition: none; }
  .aly-lightbox:not(.is-open) .aly-lightbox-image { transform: none; opacity: 1; }
  .aly-lightbox-btn:active { transform: none; }
}

/* /assets/aly-mode-toggle.css */
.dock-mode-wrap {
  display: grid; gap: 5px;
  --mode-warn: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade)));
}
.dock-mode-control {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px;
  border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface-2);
}
.dock-mode-option {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 30px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dock-mode-option svg { flex: none; opacity: .7; transition: opacity .15s ease; }
.dock-mode-option:hover, .dock-mode-option:focus-visible { color: var(--text); }
.dock-mode-option:hover svg, .dock-mode-option:focus-visible svg { opacity: 1; }
.dock-mode-option.is-chat.is-active {
  background: var(--surface); color: var(--text); border-color: var(--surface-line);
}
.dock-mode-option.is-chat.is-active svg { opacity: 1; }
.dock-mode-option.is-build.is-active {
  background: color-mix(in srgb, var(--mode-warn) 16%, var(--surface));
  color: var(--mode-warn);
  border-color: color-mix(in srgb, var(--mode-warn) 45%, transparent);
  font-weight: 700;
}
.dock-mode-option.is-build.is-active svg { opacity: 1; }
.dock-mode-hint { margin: 0; padding: 0 2px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.dock-mode-hint.is-build { color: var(--mode-warn); font-weight: 600; }

/* /assets/aly-workspace-tabs.css */
.dock-body { overflow: hidden; }
.project-menu.workspace-history-menu {
  position: fixed;
  min-width: 216px;
  max-width: min(280px, calc(100vw - 16px));
  max-height: min(62vh, 460px);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.workspace-history-menu .project-menu-item {
  min-height: 33px; padding: 7px 26px 7px 10px; font-size: 12px;
}
.workspace-history-menu .project-menu-item.is-selected {
  position: relative; background: var(--surface-2); color: var(--text); font-weight: 650;
}
.workspace-history-menu .project-menu-item.is-selected::after {
  content: '✓'; position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  color: var(--jade); font-weight: 750;
}
.workspace-history-menu .project-menu-item.is-reset { color: var(--muted); font-weight: 650; }
.workspace-history-menu .project-menu-item.is-reset:hover,
.workspace-history-menu .project-menu-item.is-reset:focus-visible { color: var(--text); }
.workspace-history-menu .project-menu-divider.has-label {
  padding: 8px 10px 3px; font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.workspace-history-menu .project-menu-divider.has-label:first-child { padding-top: 2px; }
.workspace-history-menu .project-menu-divider:not(.has-label) {
  height: 1px; margin: 5px 6px; background: var(--surface-line);
}
.workspace-panel-views { flex: 1; min-height: 0; overflow: hidden; }
.workspace-panel-view {
  height: 100%; min-width: 0; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}
.workspace-panel-view[hidden] { display: none; }
.workspace-panel-chat { display: flex; flex-direction: column; }
.workspace-panel-server { padding-bottom: 20px; }
.workspace-panel-section-head { padding: 16px 14px 10px; }
.workspace-panel-section-head h2 { margin: 0 0 4px; font-size: 15px; }
.workspace-panel-section-head p { margin: 0; font-size: 12px; line-height: 1.45; }
.workspace-panel-loading, .workspace-panel-error { margin: 16px 14px; font-size: 13px; }
.workspace-panel-error { color: var(--danger); }
.workspace-infrastructure-section, .workspace-infrastructure-files { margin: 0 14px 16px; }
.workspace-infrastructure-section > h3, .workspace-infrastructure-files h3 { margin: 0 0 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.workspace-infrastructure-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.workspace-infrastructure-card { padding: 9px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface-2); }
.workspace-infrastructure-card h3 { margin: 0 0 5px; font-size: 11px; font-weight: 500; color: var(--muted); }
.workspace-infrastructure-card strong { display: block; font-size: 13px; }
.workspace-infrastructure-card p { margin: 5px 0 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.workspace-infrastructure-files { border-top: 1px solid var(--hair); padding-top: 12px; font-size: 12.5px; }
.workspace-infrastructure-files > p { margin: 0; font-size: 12px; line-height: 1.45; }
.workspace-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; word-break: break-word; }
.workspace-setting-label { display: block; margin: 10px 14px 5px; font-size: 12px; color: var(--muted); }
.workspace-setting-input { box-sizing: border-box; width: calc(100% - 28px); margin: 0 14px; padding: 9px 10px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; }
.workspace-setting-description { resize: vertical; }
.workspace-setting-counter { margin: 3px 14px 0; text-align: right; font-size: 11px; }
.workspace-setting-counter.is-over { color: var(--danger); }
.workspace-setting-button { margin: 8px 14px 4px; min-height: 32px; padding: 0 10px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.workspace-panel-settings { display: flex; flex-direction: column; overflow: hidden; }
.workspace-settings-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; touch-action: pan-y;
  padding-bottom: 24px;
}
.workspace-settings-section { padding: 22px 14px 4px; }
.workspace-settings-section + .workspace-settings-section { border-top: 1px solid var(--hair); }
.workspace-settings-section-title { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--text); }
.workspace-settings-section-note { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.workspace-settings-section-body { display: block; }
.workspace-settings-section.is-separated { margin-top: 16px; border-top-width: 4px; }
.workspace-settings-section-body .workspace-ai-usage { margin: 0; padding-top: 0; border-top: 0; }
.workspace-settings-section-body > .btn { margin: 12px 0 0; }
.workspace-settings-section-body > p { margin: 0 0 6px; font-size: 12px; line-height: 1.5; }
.workspace-settings-section-body .infra-facts { margin: 0; }
.workspace-settings-section-body .infra-advanced-list,
.workspace-settings-section-body .infra-dep-list,
.workspace-settings-section-body .infra-attention { margin: 12px 0 0; }
.workspace-settings-section-body .infra-pill { margin: 0; }
.workspace-settings-section-body .infra-address { display: block; margin: 0; word-break: break-all; }
.workspace-settings-section-body .infra-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}
.workspace-settings-section-body .infra-address-row .infra-address { flex: 1 1 auto; min-width: 0; }
.workspace-settings-section-body .infra-card { margin: 0; padding: 0; border: 0; background: none; }
.workspace-settings-section-body .infra-connections { margin: 0; }
.workspace-settings-section-body .infra-connections .infra-facts,
.workspace-settings-section-body .infra-connections .infra-dep-list,
.workspace-settings-section-body .infra-connections .infra-attention,
.workspace-settings-section-body .infra-connections p.muted { margin-left: 0; margin-right: 0; }
.workspace-settings-activity { margin-top: 18px; }
.workspace-settings-activity .workspace-settings-subhead { margin: 0 0 8px; }
.workspace-settings-activity-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.workspace-settings-activity-item { display: grid; gap: 2px; }
.workspace-settings-activity-what { font-size: 12.5px; font-weight: 600; color: var(--text); }
.workspace-settings-activity-when { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.workspace-settings-activity-detail { margin: 2px 0 0; font-size: 11.5px; line-height: 1.45; }
.workspace-ai-cap-suffix { flex: none; font-size: 13px; color: var(--muted); }
.workspace-ai-statement { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text); }
.workspace-ai-warn { margin: 6px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--danger, #c0392b); }
.workspace-settings-footer { flex: none; padding: 10px 14px 0; }
.workspace-settings-save { width: 100%; min-height: 38px; border: 1px solid var(--text); border-radius: 9px; background: var(--text); color: var(--surface); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.workspace-settings-save:disabled { opacity: .6; cursor: wait; }
.workspace-panel-console { display: flex; flex-direction: column; overflow: hidden; }
.workspace-console-scroll {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; touch-action: pan-y;
}
.workspace-console-controls { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 14px 8px; }
.workspace-console-control {
  min-height: 32px; padding: 0 10px; border: 1px solid var(--surface-line); border-radius: 8px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}
.workspace-console-control:hover, .workspace-console-control:focus-visible { border-color: var(--text); background: var(--surface); }
.workspace-console-control[aria-pressed="true"] { border-color: var(--text); font-weight: 700; }
.workspace-console-control[disabled] { opacity: .55; cursor: default; }
.workspace-console-retry { min-height: 32px; padding: 0 10px; border: 1px solid var(--text); border-radius: 8px; background: var(--text); color: var(--surface); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.workspace-console-retry:hover, .workspace-console-retry:focus-visible { opacity: .82; }
.workspace-console-scope { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; padding: 3px 4px 3px 8px; border: 1px solid var(--surface-line); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 10px; font-weight: 650; }
.workspace-console-scope-clear { min-height: 22px; padding: 0 6px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.workspace-console-scope-clear:hover, .workspace-console-scope-clear:focus-visible { background: var(--surface); color: var(--text); }
.workspace-console-copy-all, .workspace-console-event-copy { transition: color .18s ease, transform .18s ease; }
.workspace-console-copy-all.is-copied, .workspace-console-event-copy.is-copied { color: var(--jade); animation: workspace-copy-confirm .32s ease both; }
@keyframes workspace-copy-confirm { 50% { transform: scale(1.06); } }
.workspace-console-search { box-sizing: border-box; width: calc(100% - 28px); min-height: 34px; margin: 0 14px 8px; padding: 7px 10px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; }
.workspace-console-filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 14px 10px; }
.workspace-console-filter { min-height: 27px; padding: 0 8px; border: 1px solid var(--surface-line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.workspace-console-filter[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--text); font-weight: 650; }
.workspace-console-filter.is-success[aria-pressed="true"] { border-color: var(--jade); color: var(--jade); }
.workspace-console-filter.is-warning[aria-pressed="true"] { border-color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-console-filter.is-error[aria-pressed="true"] { border-color: var(--danger); color: var(--danger); }
.workspace-console-summary, .workspace-console-summary-right { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.workspace-console-summary { margin: 0 14px 8px; color: var(--muted); font-size: 11px; }
.workspace-console-count { white-space: nowrap; }
.workspace-console-feed { display: grid; gap: 6px; list-style: none; margin: 0 14px 16px; padding: 0; }
.workspace-console-event, .workspace-console-empty { padding: 9px 10px; border: 1px solid var(--surface-line); border-left-width: 3px; border-radius: 8px; background: var(--surface-2); }
.workspace-console-event.is-info { border-left-color: var(--muted); }
.workspace-console-event.is-success { border-left-color: var(--jade); }
.workspace-console-event.is-warning { border-left-color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-console-event.is-error { border-left-color: var(--danger); }
.workspace-console-event-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.workspace-console-time { font-variant-numeric: tabular-nums; }
.workspace-console-repeat {
  padding: 1px 6px; border-radius: 999px; background: var(--surface); color: var(--text);
  font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.workspace-console-event-copy { margin: -4px -4px 0 auto; }
.workspace-console-line { margin: 4px 0 0; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.workspace-console-event-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.workspace-console-event-actions:empty { display: none; }
.workspace-console-event-expand, .workspace-console-event-fix {
  min-height: 30px; padding: 0 9px; border: 1px solid var(--surface-line); border-radius: 7px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 10.5px; font-weight: 650; cursor: pointer;
}
.workspace-console-event-fix { border-color: var(--jade); color: var(--jade); }
.workspace-console-event-fix[disabled] { opacity: .55; cursor: default; }
.workspace-console-event-expand:focus-visible, .workspace-console-event-fix:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.workspace-console-stack {
  margin: 7px 0 0; padding: 8px 9px; max-height: 220px; overflow: auto;
  border: 1px solid var(--surface-line); border-radius: 7px; background: var(--surface);
  color: var(--muted); font: 10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre; scrollbar-gutter: stable;
}
.workspace-console-stack[hidden] { display: none; }
.workspace-console-summary-left { display: flex; align-items: center; gap: 6px; }
.workspace-console-scope-label { font-weight: 650; color: var(--text); }
.workspace-console-event.is-build { border-left-color: var(--muted); }
.workspace-console-event.is-build.is-warning { border-left-color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-console-event.is-build.is-error { border-left-color: var(--danger); }
.workspace-console-event.is-log { border-left-color: var(--muted); }
.workspace-console-event.is-action { border-left-color: var(--jade); }
.workspace-console-event.is-network { border-left-color: color-mix(in srgb, var(--jade) 45%, var(--muted)); }
.workspace-console-filter.is-log[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.workspace-console-filter.is-action[aria-pressed="true"] { border-color: var(--jade); color: var(--jade); }
.workspace-console-filter.is-network[aria-pressed="true"] { border-color: var(--jade); color: var(--jade); }
.workspace-console-filter.is-build[aria-pressed="true"] { border-color: var(--text); color: var(--text); }
.workspace-console-level { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.workspace-console-event.is-success .workspace-console-level { color: var(--jade); }
.workspace-console-event.is-warning .workspace-console-level { color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-console-event.is-error .workspace-console-level { color: var(--danger); }
.workspace-console-kind { display: block; margin-top: 4px; font-size: 12px; text-transform: capitalize; }
.workspace-console-detail { margin: 4px 0 0; color: var(--muted); font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.workspace-console-empty { border-left-color: var(--muted); color: var(--muted); font-size: 12px; }
.workspace-console-feedback {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 14px; border-top: 1px solid var(--hair); background: var(--surface); text-align: center;
}
.workspace-console-feedback-action { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 16px; border: 1px solid var(--text); border-radius: 8px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 650; text-decoration: none; }
.workspace-console-feedback-action:hover, .workspace-console-feedback-action:focus-visible { opacity: .82; }
.workspace-console-feedback-hint { margin: 0; max-width: 320px; font-size: 11px; line-height: 1.45; color: var(--muted); }

/* /assets/aly-workspace-tabs-2.css */
.workspace-project-type { display: flex; flex-direction: column; gap: 6px; }
.workspace-project-type-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.workspace-project-type-head h3 { margin: 0; }
.workspace-project-type-badge {
  border: 1px solid var(--aly-border, currentColor);
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 0.78rem;
  line-height: 1.5;
  opacity: 0.75;
  white-space: nowrap;
}
.workspace-project-type-badge.is-live { opacity: 1; font-weight: 600; }
.workspace-project-type-message {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--aly-border, currentColor);
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.workspace-files-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 14px 10px; }
.workspace-files-keep-original { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--muted); font-size: 12px; cursor: pointer; }
.workspace-files-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.workspace-files-btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.workspace-files-btn:hover, .workspace-files-btn:focus-visible { border-color: var(--text); background: var(--surface); }
.workspace-files-btn:disabled { opacity: .6; cursor: default; }
.workspace-files-backup-heading > p { margin: 0; font-size: 11px; }
.workspace-files-backup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 14px 12px; }
.workspace-files-backup-hint { color: var(--muted); font-size: 11px; flex: 1 1 200px; }
.workspace-files-uploads { display: grid; gap: 6px; margin: 0 14px 10px; }
.workspace-files-uploads[hidden] { display: none; }
.workspace-files-upload { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); font-size: 12px; }
.workspace-files-upload.is-error { border-color: var(--danger); }
.workspace-files-upload-name { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-files-upload-bar { flex: 1 1 90px; height: 6px; border: 0; border-radius: 999px; background: var(--void-2); -webkit-appearance: none; appearance: none; }
.workspace-files-upload-bar::-webkit-progress-bar { background: var(--void-2); border-radius: 999px; }
.workspace-files-upload-bar::-webkit-progress-value { background: var(--text); border-radius: 999px; }
.workspace-files-upload-bar::-moz-progress-bar { background: var(--text); border-radius: 999px; }
.workspace-files-upload-error { flex: 1 1 100%; color: var(--danger); font-size: 11px; }
.workspace-files-upload-dismiss { min-height: 22px; min-width: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.workspace-files-upload-dismiss:hover, .workspace-files-upload-dismiss:focus-visible { color: var(--text); }
.workspace-files-browser { margin: 0 14px 16px; border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface-2); }
.workspace-files-browser.is-dragover { border-style: dashed; border-color: var(--text); background: var(--surface); }
.workspace-files-list { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; }
.workspace-files-empty { padding: 20px 12px; color: var(--muted); font-size: 12px; text-align: center; }
.workspace-files-row { display: flex; align-items: flex-start; gap: 6px; padding: 7px 8px 7px calc(8px + var(--depth, 0) * 12px); border-radius: 7px; }
.workspace-files-row:hover { background: var(--surface); }
.workspace-files-row-main { flex: 1 1 auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; min-width: 0; }
.workspace-files-icon { flex: none; color: var(--muted); font-size: 10px; }
.workspace-files-row.is-asset .workspace-files-icon { color: var(--jade); }
.workspace-files-row.is-folder .workspace-files-name { font-weight: 650; }
.workspace-files-name { min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; }
.workspace-files-size { margin-left: auto; flex: none; color: var(--muted); font-size: 11px; white-space: nowrap; }
.workspace-files-tag { flex: none; padding: 1px 5px; border: 1px solid var(--surface-line); border-radius: 5px; color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.workspace-files-menu-trigger { flex: none; min-width: 26px; min-height: 26px; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.workspace-files-menu-trigger:hover, .workspace-files-menu-trigger:focus-visible,
.workspace-files-menu-trigger[aria-expanded="true"] { background: var(--glass-2); color: var(--text); }
.workspace-files-menu.project-menu { min-width: 172px; max-width: calc(100vw - 16px); }
.workspace-storage-line { margin: 0 0 6px; font-size: 12px; color: var(--text); }
.workspace-storage-track { height: 6px; border-radius: 999px; background: var(--void-2); overflow: hidden; }
.workspace-storage-fill { height: 100%; min-width: 2px; background: var(--jade); border-radius: 999px; transition: width .3s ease; }
.workspace-storage-fill.is-high { background: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-storage-fill.is-full { background: var(--danger); }
.workspace-capacity + .workspace-capacity { margin-top: 12px; }
.workspace-storage-sub { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.workspace-storage-warning { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.workspace-storage-warning.is-full { color: var(--danger); }
.workspace-storage-large { margin-top: 10px; }
.aly-storage-projection-row { margin: 0; font-size: 13px; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aly-storage-projection-row.is-over { color: var(--danger); font-weight: 600; }
.aly-storage-projection-warning { margin: 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.workspace-setup { display: flex; flex-direction: column; gap: 8px; }
.workspace-setup-line { margin: 0; font-size: 13px; }
.workspace-setup-why, .workspace-setup-clean { margin: 0; font-size: 12px; }
.workspace-setup-issue-head { margin: 8px 0 2px; font-size: 12px; font-weight: 700; }
.workspace-setup-issue-list { margin: 0; padding-left: 18px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.workspace-setup-step-list { margin: 0; padding: 0; list-style: none; font-size: 12px; display: flex; flex-direction: column; gap: 6px; }
.workspace-setup-step.is-ok strong { color: var(--jade); }
.workspace-setup-step.is-failed strong { color: var(--danger, #c1473d); }
.workspace-setup-step.is-skipped strong { color: var(--muted, #6c6c77); }
.workspace-setup-ok { margin: 0; font-weight: 700; color: var(--jade); }
.workspace-setup-bad { margin: 0; font-weight: 700; color: var(--danger, #c1473d); }
.workspace-setup-output { white-space: pre-wrap; overflow: auto; max-height: 160px; font-size: 11px; margin: 4px 0 0; padding: 6px 8px; background: var(--surface-2, rgba(0,0,0,.05)); border-radius: 6px; }
.workspace-chat-media { border-top: 1px dashed var(--surface-line); padding-top: 14px; opacity: .92; position: relative; }
.workspace-chat-media-head { display: flex; align-items: center; gap: 6px; }
.workspace-chat-media-icon { color: var(--muted, #6c6c77); font-size: 13px; }
.workspace-chat-media-head h3 { color: var(--muted, #6c6c77) !important; }
.workspace-chat-media-note { margin: 2px 0 10px; font-size: 12px; }
.workspace-chat-media-empty { font-size: 12px; color: var(--muted, #6c6c77); }
.workspace-files-btn.is-danger { color: var(--danger, #c1473d); border-color: var(--danger, #c1473d); }
.workspace-chat-media-toolbar { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.workspace-chat-media-field { display: flex; flex-direction: column; gap: 2px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6c6c77); }
.workspace-chat-media-select {
  min-height: 28px; padding: 0 6px; border: 1px solid var(--surface-line); border-radius: 6px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px;
}
.workspace-chat-media-toolbar-spacer { flex: 1 1 auto; }
.workspace-chat-media-link {
  border: none; background: none; color: var(--muted, #6c6c77); font: inherit; font-size: 12px;
  text-decoration: underline; cursor: pointer; padding: 0 0 2px;
}
.workspace-chat-media-link:hover, .workspace-chat-media-link:focus-visible { color: var(--text); }
.workspace-chat-media-list { display: grid; gap: 14px; }
.workspace-chat-media-conversation { border: 1px solid var(--surface-line); border-radius: 8px; padding: 10px; background: var(--surface-2, rgba(0,0,0,.03)); }
.workspace-chat-media-conversation-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.workspace-chat-media-conversation-title { flex: 1 1 auto; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chat-media-conversation-meta { font-size: 11px; color: var(--muted, #6c6c77); flex: none; }
.workspace-chat-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.workspace-chat-media-tile { position: relative; }
.workspace-chat-media-thumb {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--surface-line); background: var(--surface-2);
}
.workspace-chat-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.workspace-chat-media-tile.is-selected .workspace-chat-media-thumb {
  border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--text);
}
.workspace-chat-media-pin-badge { position: absolute; top: 4px; right: 4px; font-size: 11px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.workspace-chat-media-checkbox {
  position: absolute; top: 5px; left: 5px; width: 16px; height: 16px; margin: 0;
  opacity: 0; transition: opacity .12s ease;
}
.workspace-chat-media-thumb:hover .workspace-chat-media-checkbox,
.workspace-chat-media-tile.is-selected .workspace-chat-media-checkbox { opacity: 1; }
.workspace-chat-media-tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 4px; font-size: 10px; color: var(--muted, #6c6c77); }
.workspace-chat-media-tile-date { flex: none; }
.workspace-chat-media-menu-trigger {
  flex: none; border: none; background: none; color: var(--muted, #6c6c77); cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0 2px;
}
.workspace-chat-media-menu-trigger:hover, .workspace-chat-media-menu-trigger:focus-visible { color: var(--text); }
.workspace-chat-media-action-bar {
  position: sticky; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 8px 12px; border: 1px solid var(--surface-line); border-radius: 10px;
  background: var(--surface); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.workspace-chat-media-action-bar[hidden] { display: none; }
.workspace-chat-media-action-count { font-size: 12px; font-weight: 650; color: var(--text); margin-right: auto; }
.aly-chat-lightbox-body { display: grid; gap: 10px; width: min(80vw, 900px); }
.aly-chat-lightbox-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40vh; }
.aly-chat-lightbox-image { max-width: 100%; max-height: 70vh; border-radius: 8px; object-fit: contain; }
.aly-chat-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--surface-line); background: var(--surface); color: var(--text); font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.aly-chat-lightbox-nav.prev { left: -8px; }
.aly-chat-lightbox-nav.next { right: -8px; }
.aly-chat-lightbox-nav[hidden] { display: none; }
.aly-chat-lightbox-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; }
.aly-chat-lightbox-name { font-weight: 650; color: var(--text); }
.aly-chat-lightbox-meta { color: var(--muted, #6c6c77); }
.workspace-ai-usage { margin: 18px 14px 4px; padding-top: 14px; border-top: 1px solid var(--hair); }
.workspace-ai-usage > h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.workspace-ai-switch { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 18px;
  text-transform: none; letter-spacing: normal; font-size: 13px; color: var(--text); }
.workspace-ai-toggle {
  flex: none; position: relative; width: 46px; height: 28px; margin-top: 2px; padding: 0;
  border: 1px solid var(--surface-line); border-radius: 999px; background: var(--surface-2);
  cursor: pointer; transition: background .16s ease, border-color .16s ease;
}
.workspace-ai-toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--muted); transition: transform .16s ease, background .16s ease;
}
.workspace-ai-toggle[aria-checked="true"] { background: var(--jade); border-color: var(--jade); }
.workspace-ai-toggle[aria-checked="true"] .workspace-ai-toggle-knob { transform: translateX(18px); background: var(--surface); }
.workspace-ai-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.workspace-ai-toggle[disabled] { opacity: .6; cursor: wait; }
.workspace-ai-switch-text { display: grid; gap: 2px; }
.workspace-ai-switch-text strong { font-size: 13px; font-weight: 600; }
.workspace-ai-switch-text span { font-size: 11px; font-weight: 400; line-height: 1.4; text-transform: none; letter-spacing: normal; color: var(--muted); }
.workspace-ai-field-label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 600;
  text-transform: none; letter-spacing: normal; color: var(--text); }
.workspace-ai-cap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.workspace-ai-cap-input { flex: none; width: 128px; max-width: 100%; min-height: 40px; margin: 0; font-variant-numeric: tabular-nums; }
.workspace-ai-cap-input[disabled] { opacity: .6; cursor: wait; }
.workspace-ai-cap-unit { flex: none; font-size: 12px; color: var(--muted); }
.workspace-ai-saved { flex: none; font-size: 11px; font-weight: 600; color: var(--jade); }
.workspace-ai-saved[hidden] { display: none; }
.workspace-ai-hint { margin: 5px 0 0; font-size: 11px; line-height: 1.45; }
.workspace-ai-figures { margin-top: 14px; }
.workspace-ai-used { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.workspace-ai-bar { height: 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--surface-line); overflow: hidden; }
.workspace-ai-bar-fill { height: 100%; min-width: 0; background: var(--text); transition: width .2s ease; }
.workspace-ai-bar-fill.is-high { background: var(--danger, #c0392b); }
.workspace-ai-note { margin: 14px 0 0; padding: 9px 10px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.workspace-settings-section-body .workspace-settings-footer { padding: 12px 0 0; }
.infra-connections-summary { margin: 0 0 10px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* /assets/aly-project-server.css */
.aly-server { display: grid; gap: 10px; font-size: 13px; color: var(--text); }
.workspace-panel-server > .aly-server-host { margin: 0 14px 16px; }
.aly-server-host > h3 { margin: 0 0 7px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.aly-server-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aly-server-pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--surface-line); background: var(--aly-glass, var(--surface-2));
  -webkit-backdrop-filter: blur(var(--aly-glass-blur, 12px)); backdrop-filter: blur(var(--aly-glass-blur, 12px));
  font-size: 12px; font-weight: 500;
}
.aly-server-pill.is-live { border-color: var(--aly-accent-line); background: var(--aly-accent-soft); color: var(--aly-accent-ink, var(--text)); }
.aly-server-pill.is-busy { border-color: var(--aly-accent-line); }
.aly-server-pill.is-error, .aly-server-message.is-error { color: var(--danger); }
.aly-server-message, .aly-server-note { margin: 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.aly-server-note { color: var(--muted); }
.aly-server-review { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aly-server-review-note { color: var(--text); }
.aly-server-review-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aly-server-review-actions .btn { min-height: 44px; min-width: 44px; }
.aly-server-static { font-size: 13px; color: var(--text); }
.aly-server-slow { padding: 10px; border: 1px solid var(--aly-accent-line); border-radius: 10px; background: var(--aly-accent-soft); }
.aly-server-slow-title { font-weight: 600; }
.aly-server-review-actions .aly-server-support { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.aly-server-review-actions .aly-server-support:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.aly-server-support { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; }
.aly-server-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px;
  border: 1px solid var(--aly-accent-line); border-radius: 10px; background: var(--aly-accent-soft);
}
.aly-server-banner > .aly-server-message { flex: 1 1 220px; }
.aly-server-banner .btn { min-height: 44px; min-width: 44px; }
.aly-server-actions, .aly-server-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aly-server-actions .btn, .aly-server-row .btn, .aly-server-env .btn { min-height: 44px; min-width: 44px; }
.aly-server-block { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface-2); }
.aly-server-heading { margin: 0; font-size: 12px; font-weight: 600; flex: 1 1 auto; }
.aly-server-label { font-size: 12px; color: var(--muted); }
.aly-server-bar { height: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--surface-line); overflow: hidden; }
.aly-server-bar > span { display: block; height: 100%; background: var(--aly-accent); }
.aly-server .workspace-setting-input { width: auto; margin: 0; min-height: 44px; flex: 1 1 140px; min-width: 0; }
.aly-server .aly-server-cap { flex: 0 1 140px; }
.aly-server-logs {
  margin: 0; max-height: 280px; overflow: auto; padding: 10px; border-radius: 8px;
  border: 1px solid var(--surface-line); background: var(--surface); color: var(--text);
  font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere;
}
.aly-server-env { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aly-server-env li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aly-server-env code { font-size: 12px; overflow-wrap: anywhere; }
.aly-server-env li .btn { margin-left: auto; }
.aly-server-disk-size { flex: 0 1 120px; }
.aly-server-snapshots li > span:first-child { font-variant-numeric: tabular-nums; }
.aly-server-fix { border-color: var(--aly-accent-line); }
.aly-domain-name { font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.aly-domain-records { display: grid; gap: 8px; }
.aly-domain-record {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 10px;
  border: 1px solid var(--surface-line); border-radius: 10px; background: var(--aly-glass, var(--surface-2));
  -webkit-backdrop-filter: blur(var(--aly-glass-blur, 12px)); backdrop-filter: blur(var(--aly-glass-blur, 12px));
}
.aly-domain-record > .aly-server-note { grid-column: 1; }
.aly-domain-record > .btn { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; min-width: 44px; }
.aly-domain-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0; }
.aly-domain-fields dt { color: var(--muted); font-size: 12px; }
.aly-domain-fields dd { margin: 0; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; min-width: 0; }
.aly-domain-form .workspace-setting-input { flex: 1 1 200px; }
@media (max-width: 640px) {
  .aly-domain-form .workspace-setting-input, .aly-domain-form .btn { flex-basis: 100%; }
  .aly-domain-record { grid-template-columns: minmax(0, 1fr); }
  .aly-domain-record > .btn { grid-column: 1; grid-row: auto; }
  .aly-server-env-form .workspace-setting-input { flex-basis: 100%; }
  .aly-server-env-form .btn { flex: 1 1 100%; }
}
.aly-server-sizing { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 2px; }
.aly-server-subhead { margin: 6px 0 0; font-size: 13px; font-weight: 650; color: var(--text); }
.aly-server-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aly-server-size {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 72px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--surface-line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.aly-server-size:hover:not(:disabled), .aly-server-size:focus-visible { border-color: var(--text); }
.aly-server-size.is-selected { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); background: var(--surface-2); }
.aly-server-size:disabled { cursor: default; opacity: .6; }
.aly-server-size.is-selected:disabled { opacity: 1; }
.aly-server-size.is-locked { color: var(--muted); }
.aly-server-size-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; }
.aly-server-size-memory { font-size: 12.5px; color: var(--muted); }
.aly-server-size-price { font-size: 12px; color: var(--text); overflow-wrap: anywhere; }
.aly-server-size.is-locked .aly-server-size-price { color: var(--muted); }
.aly-server-always { display: flex; align-items: flex-start; gap: 12px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--surface-line); }
.aly-server-always-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aly-server-always-text strong { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; }
.aly-server-always-text .aly-server-note { margin: 0; }
.aly-server-switch {
  flex: none; position: relative; width: 46px; height: 28px; padding: 0; border-radius: 999px; border: 1px solid var(--surface-line);
  background: var(--surface-2); cursor: pointer;
}
.aly-server-switch-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .18s ease; }
.aly-server-switch.is-on { border-color: var(--text); background: var(--text); }
.aly-server-switch.is-on .aly-server-switch-knob { transform: translateX(18px); background: var(--surface); }
.aly-server-switch:disabled { cursor: default; opacity: .55; }
.aly-server-switch:focus-visible { outline: 2px solid var(--aly-accent, var(--text)); outline-offset: 2px; }
@media (max-width: 640px), (pointer: coarse) {
  .aly-server-sizes { grid-template-columns: 1fr; }
  .aly-server-size { min-height: 56px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .aly-server-size-price { margin-left: auto; }
  .aly-server-switch { width: 52px; height: 32px; margin: 6px 0; }
  .aly-server-switch::before { content: ""; position: absolute; inset: -8px; }
  .aly-server-switch-knob { width: 24px; height: 24px; }
  .aly-server-switch.is-on .aly-server-switch-knob { transform: translateX(20px); }
}
@media (prefers-reduced-motion: reduce) { .aly-server-switch-knob { transition: none; } }
.aly-server-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 12px; }
.aly-server-facts > dt { color: var(--muted); }
.aly-server-facts > dd { margin: 0; font-family: var(--font-mono, ui-monospace, monospace); overflow-wrap: anywhere; user-select: all; }
.aly-server-hosting > .btn { justify-self: start; min-height: 44px; }

/* /assets/aly-workspace-rail.css */
.workspace-rail {
  flex: none; width: var(--workspace-rail-width); min-width: var(--workspace-rail-width);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 0; box-sizing: border-box;
  border-right: 1px solid var(--surface-line); background: var(--surface-2); color: var(--muted);
}
.workspace-rail .dock-home { margin: 0 0 2px; }
.workspace-rail-items { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.workspace-rail-nav { display: block; }
.workspace-rail-list { display: grid; gap: 4px; justify-items: center; }
.workspace-rail-item {
  position: relative; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.workspace-rail-item svg { display: block; }
.workspace-rail-item[hidden] { display: none; }
.workspace-rail-item:hover, .workspace-rail-item:focus-visible { background: var(--surface); color: var(--text); }
.workspace-rail-item:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.workspace-rail-item[aria-selected="true"] {
  background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--text);
}
.workspace-rail-item-label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (hover: hover) and (pointer: fine) {
  .workspace-rail-item::after {
    content: attr(data-tooltip); position: absolute; top: 50%; left: calc(100% + 10px); width: max-content;
    transform: translate(-4px, -50%); padding: 5px 7px; border: 1px solid var(--surface-line); border-radius: 6px;
    background: var(--surface); color: var(--text); box-shadow: var(--card-shadow); font-size: 11px; line-height: 1.25;
    opacity: 0; pointer-events: none; z-index: 6; transition: opacity .14s ease, transform .14s ease;
  }
  .workspace-rail-item:hover::after, .workspace-rail-item:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-rail-item, .workspace-rail-item::after { transition: none; }
}
@media (max-height: 520px), (pointer: coarse) and (max-height: 620px) {
  .workspace-rail { min-height: 0; max-height: 100%; }
  .workspace-rail-items {
    flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .workspace-rail-items::-webkit-scrollbar { display: none; }
  .workspace-rail-item:focus-visible { outline-offset: -2px; }
  .workspace-rail-item::after { display: none; }
}

/* /assets/aly-workspace-sheet.css */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.workspace-sheet {
  width: min(520px, 100%); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .40);
  overflow: hidden;
}
.sheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--surface-line);
}
.sheet-title { margin: 2px 0 0; font-size: 19px; font-weight: 300; }
.sheet-close { flex: none; min-height: 34px; min-width: 34px; }
.sheet-body {
  flex: 1; min-height: 0;
  padding: 6px 22px 18px; overflow-y: auto; display: grid; gap: 4px;
}
.sheet-section { padding: 14px 0; border-bottom: 1px solid var(--hair); }
.sheet-section:last-child { border-bottom: none; }
.sheet-heading {
  margin: 0 0 10px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.sheet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.sheet-list li { color: var(--muted); word-break: break-all; }
.sheet-detail-divider { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair); }
.sheet-description-label { display: block; margin-bottom: 7px; font-size: 13px; }
.sheet-name-input { width: 100%; }
.sheet-description-input { width: 100%; resize: vertical; }
.sheet-description-note, .sheet-description-status { margin: 7px 0 0; font-size: 12px; }
.sheet-description-save { margin-top: 10px; }
.sheet-foot { padding: 14px 22px 18px; border-top: 1px solid var(--surface-line); }
.sheet-exit { width: 100%; justify-content: center; }
.workspace-publish { margin: 0; }
.publish-panel h3 {
  margin: 0 0 10px; font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.publish-live { display: grid; gap: 8px; margin-bottom: 12px; }
.publish-label { margin: 0; font-size: 12px; color: var(--muted); }
.publish-url { font-size: 14px; word-break: break-all; }
.publish-visibility, .publish-store-space {
  width: 100%; padding: 9px 11px; border: 1px solid var(--surface-line); border-radius: 8px;
  background: var(--surface-2); color: var(--text); font: inherit; min-height: 0;
}
.publish-store-destination { display: grid; gap: 6px; margin-bottom: 12px; }
.publish-store-note { margin: 0; }
.publish-button { width: 100%; }
.publish-button:disabled { opacity: .5; cursor: not-allowed; }
.publish-history { margin-top: 16px; }
.publish-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.publish-versions li {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 7px 9px; border: 1px solid var(--hair); border-radius: 6px; flex-wrap: wrap;
}
.publish-versions li.is-active { background: var(--surface-2); border-color: var(--surface-line); }
.publish-version { font-weight: 600; }
.publish-notes { flex: 1 1 100%; font-size: 12px; }
.publish-versions button { margin-left: auto; }
@media (max-width: 760px) {
  .sheet-backdrop { align-items: flex-end; padding: 0; }
  .workspace-sheet {
    width: 100%; max-height: 88dvh;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
    padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  }
}

/* /assets/aly-workspace-touch.css */
@media (pointer: coarse) {
  .workspace-rail-item { width: 44px; height: 44px; }
  .workspace-rail .dock-home { width: 40px; height: 40px; }
  .workspace-rail .dock-home img { width: 28px; height: 28px; margin: 6px; }
  .workspace-dock .dock-open-app,
  .workspace-dock .dock-usage,
  .workspace-dock .workspace-chat-history-menu,
  .workspace-dock .dock-mode-option,
  .workspace-dock .dock-model-toggle { min-height: 40px; }
  .workspace-dock .aly-icon-btn { min-width: 40px; min-height: 40px; }
  .workspace-dock .dock-send { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
}

/* /assets/aly-usage.css */
.aly-usage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aly-usage-plan { margin: 2px 0 0; font-size: 20px; font-weight: 300; letter-spacing: .08em; color: var(--text); }
.aly-usage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.aly-usage-row { display: grid; gap: 6px; }
.aly-usage-manage-storage {
  justify-self: start; padding: 4px 0; border: none; background: none;
  font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline;
  cursor: pointer;
}
.aly-usage-manage-storage:hover, .aly-usage-manage-storage:focus-visible { color: var(--text); }
.aly-usage-more-storage { justify-self: start; }
.aly-usage-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.aly-usage-label { color: var(--text); font-weight: 500; }
.aly-usage-value { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.aly-usage-reset { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.aly-usage-row.is-unavailable .aly-usage-row-head { flex-wrap: wrap; }
.aly-usage-row.is-unavailable .aly-usage-value { color: var(--muted); font-size: 12px; }
.aly-usage-meter.is-unavailable { opacity: .45; }
.aly-usage-frozen { margin: 0; color: var(--danger); font-size: 12px; font-weight: 500; }
.aly-usage-capacity-warning { margin: 0; font-size: 12px; font-weight: 500; color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.aly-usage-capacity-warning.is-full { color: var(--danger); }
.aly-usage-meter { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.aly-usage-meter > span {
  display: block; height: 100%; border-radius: 4px; background: var(--aly-usage-meter-color, var(--jade));
  transform-origin: left center; animation: aly-usage-meter-enter .65s ease-out both;
  transition: width .45s ease, background-color .25s ease;
}
.aly-usage-meter.is-good { --aly-usage-meter-color: var(--jade); background: color-mix(in srgb, var(--jade) 18%, var(--surface-2)); }
.aly-usage-meter.is-caution { --aly-usage-meter-color: var(--aly-warn, color-mix(in srgb, var(--danger) 55%, var(--jade))); }
.aly-usage-meter.is-high { --aly-usage-meter-color: var(--danger); }
.aly-usage-foot { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
@keyframes aly-usage-meter-enter {
  from { transform: scaleX(0); opacity: .55; }
  to { transform: scaleX(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .aly-usage-meter > span { animation: none; transition: none; }
}
.aly-usage-actions { display: grid; gap: 8px; border-top: 1px solid var(--surface-line); padding-top: 14px; }
.aly-usage-actions .btn { width: 100%; justify-content: center; }
.aly-usage-state { margin: 0; font-size: 13px; line-height: 1.5; }
.aly-usage-cta { letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.aly-usage-cap { display: grid; gap: 4px; }
.aly-usage-cap-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aly-usage-cap-input {
  box-sizing: border-box; width: 7.5em; min-height: 36px; padding: 6px 8px;
  border: 1px solid var(--surface-line); border-radius: 4px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px;
}
.aly-gift-reason { margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.aly-gift-waiting { margin: 0; color: var(--jade); font-size: 12px; font-weight: 500; }
.aly-gift-see-all { min-height: 32px; }
.aly-gift-history { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--surface-line); }
.aly-gift-history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aly-gift-history-item {
  display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 4px;
  background: var(--surface-2);
}
.aly-gift-history-item.is-finished { opacity: .7; }
.aly-gift-history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.aly-gift-history-amount { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.aly-gift-history-status { color: var(--muted); font-size: 12px; }
.aly-gift-history-item.is-current .aly-gift-history-status { color: var(--jade); font-weight: 500; }
.aly-gift-history-reason { margin: 0; color: var(--text); font-size: 12px; overflow-wrap: anywhere; }
.aly-gift-history-total { margin: 0; color: var(--muted); font-size: 12px; }

/* /assets/aly-settings-modal.css */
.aly-settings-dialog-backdrop {
  position: fixed; inset: 0; z-index: 60; background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.aly-settings-dialog-backdrop[hidden] { display: none; }
.aly-settings-dialog {
  position: fixed; z-index: 61; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 32px)); max-height: min(84vh, 760px);
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 22px;
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
  font-size: 13px;
}
.aly-settings-dialog[hidden] { display: none; }
.aly-settings-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aly-settings-dialog-title {
  margin: 2px 0 0; font-size: 20px; font-weight: 300; letter-spacing: .08em; color: var(--text);
}
.aly-settings-dialog-close { flex: none; min-height: 34px; min-width: 34px; }
.aly-settings-dialog-body {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 22px;
  min-height: 0;
}
.aly-settings-dialog-nav {
  display: grid; align-content: start; gap: 4px;
  border-right: 1px solid var(--surface-line); padding-right: 16px;
}
.aly-settings-dialog-tab {
  appearance: none; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 12px; min-height: 38px;
  border: 1px solid transparent; border-radius: 6px; background: none;
  font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.aly-settings-dialog-tab:hover, .aly-settings-dialog-tab:focus-visible {
  color: var(--text); background: var(--glass-2); border-color: var(--hair-2);
}
.aly-settings-dialog-tab.is-active {
  color: var(--text); background: var(--glass); border-color: var(--hair-2);
}
.aly-settings-dialog-content { min-width: 0; min-height: 0; overflow-y: auto; }
.aly-settings-dialog-tabpanel { display: grid; gap: 16px; align-content: start; }
.aly-settings-dialog-tabpanel[hidden], .aly-settings-dialog-tab[hidden] { display: none; }
.aly-settings-dialog-section-head { display: grid; gap: 2px; }
.aly-settings-dialog-section-title {
  margin: 0; font-size: 16px; font-weight: 400; letter-spacing: .04em; color: var(--text);
}
.aly-settings-dialog-identity {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass);
}
.aly-settings-dialog-avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass-2); color: var(--text);
  font-size: 16px; font-weight: 600; line-height: 1;
}
.aly-settings-dialog-identity-text { min-width: 0; display: grid; gap: 2px; }
.aly-settings-dialog-identity-name {
  margin: 0; font-size: 14px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aly-settings-dialog-identity-sub { margin: 0; font-size: 12px; color: var(--muted); }
.aly-settings-dialog-fields { display: grid; gap: 14px; }
.aly-settings-dialog-field { display: grid; gap: 3px; }
.aly-settings-dialog-field-label {
  margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.aly-settings-dialog-field-value { margin: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.aly-settings-dialog-field-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.aly-settings-dialog-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid var(--surface-line); padding-top: 14px;
}
.aly-settings-dialog-actions .btn { letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.aly-settings-dialog-foot { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.aly-settings-dialog-delete { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--danger); }
@media (max-width: 640px) {
  .aly-settings-dialog-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .aly-settings-dialog-nav {
    grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px;
    border-right: none; border-bottom: 1px solid var(--surface-line);
    padding-right: 0; padding-bottom: 12px;
  }
  .aly-settings-dialog-tab { text-align: center; padding: 10px 8px; letter-spacing: .1em; }
}
@media (max-width: 560px) {
  .aly-settings-dialog {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100%; max-height: 88vh;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
    padding-bottom: calc(22px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  }
}
@media (max-width: 640px) {
  .aly-settings-dialog-nav:has(#aly-settings-tab-assistants:not([hidden])) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; }
}
.aly-assistants-list .btn { min-height: 44px; min-width: 44px; }

/* /assets/aly-settings-keys.css */
.aly-keys-docs { font-size: 12px; color: var(--text); text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.aly-keys-empty { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass); }
.aly-keys-empty-title { margin: 0; font-size: 14px; color: var(--text); }
.aly-keys-error { margin: 0; font-size: 12px; color: var(--text); padding: 10px 12px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass-2); }
.aly-keys-reveal { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass); }
.aly-keys-reveal-title { margin: 0; font-size: 13px; color: var(--text); }
.aly-keys-reveal-row { display: flex; gap: 8px; }
.aly-keys-reveal-key {
  flex: 1 1 auto; min-width: 0; padding: 9px 10px; font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); background: var(--glass-2); border: 1px solid var(--hair-2); border-radius: 6px;
}
.aly-keys-reveal-warn { margin: 0; font-size: 12px; color: var(--text); font-weight: 600; }
.aly-keys-reveal .btn { justify-self: start; letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.aly-keys-reveal-row .btn { flex: none; }
.aly-keys-form { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.aly-keys-form-label { display: grid; gap: 4px; flex: 1 1 200px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.aly-keys-form-input { padding: 9px 10px; font: inherit; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text); background: var(--glass-2); border: 1px solid var(--hair-2); border-radius: 6px; }
.aly-keys-form .btn { letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.aly-keys-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aly-keys-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass); }
.aly-keys-item.is-revoked { opacity: .55; }
.aly-keys-info { min-width: 0; display: grid; gap: 2px; }
.aly-keys-name { margin: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.aly-keys-prefix { margin: 0; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.aly-keys-meta { margin: 0; font-size: 12px; color: var(--muted); }
.aly-keys-item .btn { flex: none; letter-spacing: .06em; font-size: 12px; font-weight: 600; }
@media (max-width: 560px) { .aly-keys-item { align-items: flex-start; flex-direction: column; } .aly-keys-reveal-row { flex-direction: column; } }

/* /assets/aly-dialog.css */
.aly-dialog-backdrop {
  position: fixed; inset: 0; z-index: 2147483400;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
body.aly-dialog-open { overflow: hidden; }
.aly-dialog {
  width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto;
  display: grid; gap: 16px; padding: 24px;
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .40);
}
.aly-dialog-title {
  margin: 0; font-size: 19px; font-weight: 300; line-height: 1.3; color: var(--text);
}
.aly-dialog-body { display: grid; gap: 16px; }
.aly-dialog-field { display: grid; gap: 6px; }
.aly-dialog-field[hidden] { display: none; }
.aly-dialog-hint { margin: 0; font-size: 12px; line-height: 1.45; }
.aly-dialog-error { margin: 0; font-size: 13px; line-height: 1.45; color: var(--danger); }
.aly-dialog-error[hidden] { display: none; }
.aly-dialog-message { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.aly-dialog-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.aly-dialog-note { margin: 0; font-size: 12.5px; line-height: 1.5; }
.aly-dialog input, .aly-dialog textarea, .aly-dialog select {
  width: 100%; padding: 11px 13px; min-height: 0;
  border: 1px solid var(--surface-line); border-radius: 8px;
  background: var(--surface-2); color: var(--text); font: inherit;
}
.aly-dialog textarea { resize: vertical; line-height: 1.5; }
.aly-dialog select { cursor: pointer; min-height: 44px; }
.aly-dialog select option { background: var(--surface); color: var(--text); }
.aly-dialog input:focus, .aly-dialog textarea:focus, .aly-dialog select:focus {
  outline: none; border-color: var(--text); background: var(--surface-2);
}
.aly-dialog-copy {
  justify-self: start; border: 1px solid var(--surface-line); border-radius: 6px;
  background: none; color: var(--muted); font: inherit; font-size: 12px;
  padding: 6px 10px; min-height: 32px; cursor: pointer;
}
.aly-dialog-copy:hover, .aly-dialog-copy:focus-visible { color: var(--text); border-color: var(--text); }
.aly-dialog-actions {
  display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}
.aly-dialog-actions .btn {
  min-height: 44px; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.aly-dialog-actions .btn-primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.aly-dialog-actions .btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.aly-dialog-actions .btn:hover { transform: none; }
.aly-dialog-actions .btn:active { transform: scale(.97); filter: brightness(.88); transition: none; }
.aly-dialog-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent);
}
.aly-dialog-icon.is-danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.aly-dialog-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aly-dialog-icon + .aly-dialog-title { margin-top: -6px; font-weight: 500; }
.aly-dialog-backdrop { animation: aly-dialog-fade .14s ease; }
.aly-dialog { animation: aly-dialog-pop .14s ease; }
.aly-dialog-backdrop.is-closing { animation: none; opacity: 0; transition: opacity .14s ease; }
.aly-dialog-backdrop.is-closing .aly-dialog { animation: none; transform: scale(.97); transition: transform .14s ease; }
@keyframes aly-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes aly-dialog-pop { from { transform: scale(.97); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .aly-dialog-backdrop, .aly-dialog { animation: none; }
  .aly-dialog-backdrop.is-closing, .aly-dialog-backdrop.is-closing .aly-dialog { transition: none; }
}
.aly-dialog-danger {
  color: var(--danger); border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, transparent);
}
.aly-dialog-danger:hover, .aly-dialog-danger:focus-visible {
  background: var(--danger); border-color: var(--danger); color: var(--void);
}
@media (max-width: 560px) {
  .aly-dialog-backdrop { align-items: flex-end; padding: 0; }
  .aly-dialog {
    width: 100%; max-height: 88dvh;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
    padding: 22px 18px calc(22px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  }
  .aly-dialog-actions { flex-direction: column-reverse; }
  .aly-dialog-actions .btn { width: 100%; justify-content: center; }
  .aly-dialog-actions.is-pair { flex-direction: row; flex-wrap: nowrap; }
  .aly-dialog-actions.is-pair .btn { flex: 1 1 0; width: auto; min-width: 0; padding-left: 10px; padding-right: 10px; white-space: normal; }
}

/* /assets/aly-upgrade-window.css */
.aly-dialog.aly-upgrade-window {
  width: min(420px, 100%);
  border-color: var(--aly-accent-line, var(--surface-line));
  background: var(--aly-glass, var(--surface));
  -webkit-backdrop-filter: var(--aly-glass-blur, blur(18px)); backdrop-filter: var(--aly-glass-blur, blur(18px));
  text-align: center;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .aly-dialog.aly-upgrade-window { background: var(--surface); }
}
.aly-upgrade-window .aly-dialog-title { font-size: 20px; }
.aly-upgrade-body { justify-items: center; gap: 12px; }
.aly-upgrade-badge {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--aly-accent-line, var(--surface-line)); background: var(--aly-accent-soft, var(--surface-2));
  color: var(--aly-accent-ink, var(--text));
}
.aly-upgrade-badge svg { width: 22px; height: 22px; }
.aly-upgrade-text { color: var(--text); }
.aly-upgrade-plans {
  margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.aly-upgrade-window .aly-dialog-actions { justify-content: center; }
.aly-upgrade-window .aly-dialog-actions .btn { min-height: 44px; min-width: 120px; }
@media (max-width: 480px) {
  .aly-upgrade-window .aly-dialog-actions { flex-direction: column-reverse; align-items: stretch; }
  .aly-upgrade-window .aly-dialog-actions .btn { width: 100%; }
}
.aly-lock-mark {
  display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px; border-radius: 999px;
  border: 1px solid var(--surface-line); background: var(--surface-2); color: var(--muted);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
}
.aly-lock-mark svg { flex: 0 0 auto; }
.aly-locked {
  position: relative; display: grid; gap: 8px; width: 100%; padding: 12px; min-height: 44px;
  border: 1px dashed var(--surface-line); border-radius: 10px; background: var(--surface-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.aly-locked:hover, .aly-locked:focus-visible { border-color: var(--aly-accent-line, var(--surface-line)); }
.aly-locked-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; }
.aly-locked-field {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; flex: 1 1 160px; min-width: 0;
  border: 1px solid var(--surface-line); background: var(--surface); color: var(--muted); overflow-wrap: anywhere;
}
.aly-locked-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.aly-domain-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text); }
.aly-domain-status { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.aly-domain-status.is-live { color: var(--aly-accent-ink, var(--text)); }
.aly-domain-status.is-busy { color: var(--muted); }
.aly-domain-status.is-error { color: var(--danger); }
.aly-address { display: grid; gap: 10px; }
.aly-address-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.aly-address-status .btn, .aly-address-field .btn { min-height: 44px; min-width: 44px; }
.aly-address-form { display: grid; gap: 6px; }
.aly-address-field { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aly-address-field .workspace-setting-input { flex: 1 1 140px; min-width: 0; min-height: 44px; margin: 0; }
.aly-address-suffix { color: var(--muted); font-size: 13px; }
.aly-address-found { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; color: var(--text); }
.aly-address-found[hidden] { display: none; }
.aly-address-found[data-state="free"]::before { content: "✓ "; }
.aly-address-found[data-state="taken"] { color: var(--danger); }
.aly-address-plan { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; margin: 0; }
.aly-address-plan dt { font-size: 12px; font-weight: 650; color: var(--muted); white-space: nowrap; }
.aly-address-plan dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.aly-address-plan-next { font-weight: 650; }
.aly-address-redirects { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .aly-address-field .btn { flex: 1 1 100%; }
}
.aly-address .infra-address-row .aly-icon-btn { min-width: 44px; min-height: 44px; }
.aly-address .infra-address-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.aly-address .infra-address { overflow-wrap: anywhere; min-width: 0; }

/* /assets/aly-advanced.css */
.workspace-panel-view.workspace-panel-advanced {
  display: flex; flex-direction: column; overflow: hidden; scrollbar-gutter: auto; touch-action: auto;
}
.workspace-panel-view.workspace-panel-advanced[hidden] { display: none; }
.aly-advanced-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; min-width: 0; }
.aly-advanced-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aly-advanced-end { margin-left: auto; flex: none; min-height: 36px; }
.aly-advanced-help { margin: 0; padding: 0 14px 10px; font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.aly-advanced-body { flex: 1 1 auto; min-height: 0; display: flex; padding: 0 10px 10px; }
.aly-terminal {
  position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--surface-line); border-radius: 12px; background: var(--surface); overflow: hidden;
}
.aly-terminal-screen { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 8px 4px 4px 10px; }
.aly-terminal-screen .xterm { height: 100%; }
.aly-terminal-screen .xterm-viewport { background-color: transparent !important; scrollbar-width: thin; }
.aly-terminal-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 18px; text-align: center; background: var(--aly-glass, var(--surface-2));
  -webkit-backdrop-filter: blur(var(--aly-glass-blur, 12px)); backdrop-filter: blur(var(--aly-glass-blur, 12px));
}
.aly-terminal-veil[hidden] { display: none; }
.aly-terminal-veil-text { margin: 0; max-width: 34ch; font-size: 13px; line-height: 1.45; color: var(--text); }
.aly-terminal-again { min-height: 44px; }
.aly-terminal-again[hidden] { display: none; }
.aly-terminal-keys { display: none; flex: none; gap: 6px; padding: 6px; overflow-x: auto; border-top: 1px solid var(--surface-line); background: var(--surface-2); scrollbar-width: none; }
.aly-terminal-keys::-webkit-scrollbar { display: none; }
.aly-terminal-key {
  flex: none; min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--surface-line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.aly-terminal-key:active { background: var(--aly-accent-soft, var(--surface-2)); }
@media (pointer: coarse), (max-width: 760px) {
  .aly-terminal-keys { display: flex; }
}
@media (max-width: 640px) {
  .aly-advanced-head { padding: 10px 10px 4px; }
  .aly-advanced-help { padding: 0 10px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .aly-advanced-help:focus, .aly-advanced-help:active { display: block; }
  .aly-advanced-body { padding: 0 6px 6px; }
  .aly-advanced-end { min-height: 44px; }
  .aly-terminal-screen { padding: 6px 2px 2px 6px; }
  .aly-terminal-key { min-height: 44px; }
}
@media (max-height: 460px) {
  .aly-advanced-help { display: none; }
  .aly-advanced-head { padding: 6px 10px 4px; }
}
.aly-tools-gate {
  flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px 18px; text-align: center; overflow-y: auto;
  border: 1px solid var(--surface-line); border-radius: 12px; background: var(--surface);
}
.aly-tools-gate[hidden] { display: none; }
.workspace-panel-advanced.is-gated .aly-terminal { display: none; }
.workspace-panel-advanced[data-gate="soon"] .aly-advanced-help, .workspace-panel-advanced[data-gate="soon"] .aly-advanced-end,
.workspace-panel-advanced[data-gate="locked"] .aly-advanced-help, .workspace-panel-advanced[data-gate="locked"] .aly-advanced-end { display: none; }
.workspace-panel-advanced[data-gate="soon"] .aly-advanced-head, .workspace-panel-advanced[data-gate="locked"] .aly-advanced-head { padding-bottom: 10px; min-height: 36px; }
.aly-tools-gate-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
.aly-tools-gate-text { margin: 0; max-width: 42ch; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.aly-tools-gate-notice { color: var(--text); }
.aly-tools-gate-time { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.aly-tools-gate-locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.aly-tools-gate-action { min-height: 44px; }
.aly-tools-gate-bar {
  position: relative; width: min(280px, 80%); height: 6px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--surface-line); background: var(--surface-2);
}
.aly-tools-gate-bar-fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%; border-radius: 999px; background: var(--aly-accent, var(--text));
  animation: aly-tools-gate-slide 1.6s ease-in-out infinite;
}
@keyframes aly-tools-gate-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(265%); }
}
@media (prefers-reduced-motion: reduce) {
  .aly-tools-gate-bar-fill { animation: none; width: 100%; opacity: .5; }
}
@media (max-width: 640px) {
  .aly-tools-gate { padding: 18px 12px; }
}
@media (min-width: 640px) {
  .workspace-stage.is-advanced-panel { --workspace-panel-width: min(max(var(--builder-panel-width), 720px), 62vw); }
}
.aly-advanced-head, .aly-advanced-help { flex: none; }
@media (max-width: 639.98px) {
  .aly-advanced-head, .aly-advanced-help { padding-right: 52px; }
}
@media (max-width: 640px) {
  .aly-advanced-help { padding-bottom: 0; margin-bottom: 8px; }
}
.aly-advanced-help { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
@media (max-width: 640px) { .aly-advanced-help, .aly-advanced-help:focus, .aly-advanced-help:active { display: block; -webkit-line-clamp: unset; } }
@media (max-height: 460px) { .aly-advanced-help { display: none; } }
.aly-advanced-body { position: relative; }
.workspace-panel-advanced.is-gated[data-gate="starting"] .aly-terminal { display: flex; visibility: hidden; }
.workspace-panel-advanced[data-gate="starting"] .aly-tools-gate { position: absolute; inset: 0 10px 10px; z-index: 2; }
@media (max-width: 640px) { .workspace-panel-advanced[data-gate="starting"] .aly-tools-gate { inset: 0 6px 6px; } }
.aly-tools-wait {
  width: min(380px, 100%); box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding: 22px 20px 18px; text-align: left; border: 1px solid var(--surface-line); border-radius: 16px;
  background: var(--aly-glass, var(--surface-2)); box-shadow: 0 14px 40px rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(var(--aly-glass-blur, 12px)); backdrop-filter: blur(var(--aly-glass-blur, 12px));
}
.aly-tools-wait .aly-tools-gate-title { font-size: 17px; letter-spacing: -.01em; }
.workspace-panel-advanced.is-gated[data-gate="failed"] .aly-terminal { display: flex; visibility: hidden; }
.workspace-panel-advanced[data-gate="failed"] .aly-tools-gate { position: absolute; inset: 0 10px 10px; z-index: 2; }
@media (max-width: 640px) { .workspace-panel-advanced[data-gate="failed"] .aly-tools-gate { inset: 0 6px 6px; } }
.aly-tools-failed .aly-tools-failed-reason { color: var(--text); font-size: 13px; overflow-wrap: anywhere; max-height: 9.5em; overflow-y: auto; }
.aly-tools-failed .aly-tools-gate-action { align-self: flex-start; }
.aly-tools-wait-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aly-tools-wait-step { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); }
.aly-tools-wait-step[hidden] { display: none; }
.aly-tools-wait-mark {
  flex: none; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--surface-line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; line-height: 1;
}
.aly-tools-wait-step[data-state="active"] { color: var(--text); font-weight: 600; }
.aly-tools-wait-step[data-state="active"] .aly-tools-wait-mark {
  border-color: var(--aly-accent, var(--text)); border-top-color: transparent; animation: aly-tools-wait-spin .9s linear infinite;
}
.aly-tools-wait-step[data-state="done"] { color: var(--text); }
.aly-tools-wait-step[data-state="done"] .aly-tools-wait-mark { border-color: var(--text); background: var(--text); color: var(--surface); }
.aly-tools-wait-step[data-state="done"] .aly-tools-wait-mark::before { content: "✓"; }
@keyframes aly-tools-wait-spin { to { transform: rotate(360deg); } }
.aly-tools-wait .aly-tools-gate-bar { width: 100%; height: 8px; }
.aly-tools-wait .aly-tools-gate-bar-fill { animation: none; transform: none; width: 0; transition: width .8s ease; }
.aly-tools-wait .aly-tools-gate-time { font-size: 12.5px; color: var(--text); }
.aly-tools-wait .aly-tools-gate-text { max-width: none; font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .aly-tools-wait-step[data-state="active"] .aly-tools-wait-mark { animation: none; border-top-color: var(--aly-accent, var(--text)); }
  .aly-tools-wait .aly-tools-gate-bar-fill { transition: none; opacity: 1; }
}
.aly-signin {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--surface-line); background: var(--surface-2); color: var(--text);
}
.aly-signin[hidden], .aly-signin-code[hidden], .aly-signin-device[hidden] { display: none; }
.aly-signin-title { margin: 0; font-size: 14px; font-weight: 650; }
.aly-signin-go { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; font-size: 16px; font-weight: 650; text-decoration: none; box-sizing: border-box; }
.aly-signin-hint, .aly-signin-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.aly-signin-code { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.aly-signin-label { font-size: 12.5px; font-weight: 650; color: var(--text); }
.aly-signin-row { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.aly-signin-input { flex: 1 1 180px; min-width: 0; min-height: 44px; margin: 0; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.aly-signin-paste, .aly-signin-send, .aly-signin-copy { min-height: 44px; }
.aly-signin-device { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.aly-signin-device-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 20px; letter-spacing: .08em; }
@media (max-width: 640px) {
  .aly-signin { padding: 10px; }
  .aly-signin-go { width: 100%; }
}
.aly-terminal-ask {
  position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); box-sizing: border-box;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--surface-line); border-radius: 14px;
  background: var(--aly-glass, var(--surface-2)); color: var(--text); box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(var(--aly-glass-blur, 12px)); backdrop-filter: blur(var(--aly-glass-blur, 12px));
}
.aly-terminal-ask[hidden] { display: none; }
.aly-terminal-ask-title { margin: 0; font-size: 15px; font-weight: 650; }
.aly-terminal-ask-text { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.aly-terminal-ask-keep { min-height: 44px; }
.workspace-rail-item[data-mark] { position: relative; }
.workspace-rail-item[data-mark]::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--aly-accent, var(--text)); box-shadow: 0 0 0 2px var(--surface);
}
.workspace-rail-item[data-mark="asking"]::after { background: var(--danger); }
.project-session-mark {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--text);
  background: var(--text); color: var(--surface); font-size: 11px; font-weight: 650; white-space: nowrap;
}
.project-session-mark.is-asking { border-color: var(--danger); background: var(--danger); color: var(--surface); }
.workspace-panel-advanced.is-gated[data-gate="review"] .aly-terminal { display: flex; visibility: hidden; }
.workspace-panel-advanced[data-gate="review"] .aly-tools-gate { position: absolute; inset: 0 10px 10px; z-index: 2; }
@media (max-width: 640px) { .workspace-panel-advanced[data-gate="review"] .aly-tools-gate { inset: 0 6px 6px; } }
.aly-tools-review .aly-server-message { font-size: 13px; line-height: 1.5; }

/* /assets/aly-save-publish.css */
.dock-head-actions { flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
.savebar { order: -1; flex: 1 0 100%; display: flex; align-items: stretch; justify-content: space-between; gap: 6px; }
.savebar-save {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 10px; border: 1px solid var(--surface-line); border-radius: 9px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 650; letter-spacing: .02em; cursor: pointer;
}
.savebar-save:hover, .savebar-save:focus-visible { border-color: var(--text); background: var(--surface-2); }
.savebar-save.has-changes { border-color: var(--aly-accent-line, var(--text)); }
.savebar-dot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--aly-accent-ink, var(--text)); box-shadow: 0 0 0 2px var(--aly-accent-soft, transparent); }
.savebar-dot[hidden] { display: none; }
.savebar-publish { flex: none; display: inline-flex; align-items: stretch; border-radius: 9px; overflow: hidden; border: 1px solid var(--text); }
.savebar-publish-main, .savebar-publish-more {
  border: 0; background: var(--text); color: var(--surface); font: inherit; cursor: pointer;
}
.savebar-publish-main {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  min-height: 36px; padding: 3px 8px 3px 10px; text-align: left;
}
.savebar-publish-title { font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.savebar-publish-sub { font-size: 9.5px; font-weight: 500; opacity: .72; line-height: 1.1; white-space: nowrap; }
.savebar-publish-more {
  display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 0 6px;
  border-left: 1px solid color-mix(in srgb, var(--surface) 30%, transparent);
}
.savebar-publish-main:hover, .savebar-publish-more:hover,
.savebar-publish-main:focus-visible, .savebar-publish-more:focus-visible { opacity: .86; }
.savebar-publish-main.is-working { opacity: .6; }
.savebar-save:disabled, .savebar-publish-main:disabled, .savebar-publish-more:disabled { cursor: progress; opacity: .6; }
.savebar { flex-wrap: wrap; min-width: 0; max-width: 100%; }
.savebar-status {
  flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden; display: flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 6px 10px; border: 1px solid var(--surface-line); border-radius: 9px;
  background: var(--surface-2); color: var(--text); font-size: 12px; line-height: 1.35;
}
.savebar-status[hidden] { display: none; }
.savebar-status-label { flex: none; font-weight: 650; }
.savebar-status[data-note] { flex-wrap: wrap; }
.savebar-status-note { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.savebar-status-track { flex: 1 1 auto; min-width: 40px; height: 4px; border-radius: 2px; overflow: hidden; background: var(--surface-line); }
.savebar-status-fill {
  display: block; height: 100%; border-radius: 2px; background: var(--text); transition: width .35s ease;
  animation: savebar-status-pulse 1.2s ease-in-out infinite;
}
@keyframes savebar-status-pulse { 50% { opacity: .45; } }
.savebar-status-badge {
  flex: none; padding: 2px 8px; border-radius: 999px; background: var(--text); color: var(--surface);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.savebar-status-link { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; text-underline-offset: 2px; }
.savebar-status-copy, .savebar-status-close {
  flex: none; border: 1px solid var(--surface-line); border-radius: 7px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.savebar-status-copy { padding: 3px 9px; }
.savebar-status-action { font-weight: 650; min-height: 32px; padding: 3px 14px; }
.savebar-status-close { width: 26px; height: 26px; padding: 0; font-size: 15px; line-height: 1; }
.savebar-status-copy:hover, .savebar-status-close:hover,
.savebar-status-copy:focus-visible, .savebar-status-close:focus-visible { border-color: var(--text); }
.savebar-status[data-state="failed"] { border-color: var(--danger); }
.savebar-status-error { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
@media (prefers-reduced-motion: reduce) { .savebar-status-fill { animation: none; transition: none; } }
.savebar-recovery {
  position: absolute; z-index: 40; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(360px, calc(100% - 32px)); box-sizing: border-box; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 12px 14px; border: 1px solid var(--surface-line); border-radius: 12px;
  background: var(--aly-glass, var(--surface)); color: var(--text);
  -webkit-backdrop-filter: var(--aly-glass-blur, blur(18px)); backdrop-filter: var(--aly-glass-blur, blur(18px));
}
.savebar-recovery-title { margin: 0 0 4px; font-size: 13px; font-weight: 650; }
.savebar-recovery-note { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.savebar-recovery-actions { display: flex; gap: 8px; }
@media (max-width: 640px), (pointer: coarse) {
  .savebar { gap: 5px; }
  .savebar-save, .savebar-publish-main { min-height: 44px; }
  .savebar-save { padding: 0 9px; }
  .savebar-publish-more { min-width: 44px; }
  .savebar-status { min-height: 44px; }
  .savebar-status-copy { min-height: 36px; padding: 0 12px; }
  .savebar-status-copy.savebar-status-action { min-height: 44px; padding: 0 16px; }
  .savebar-status-close { width: 36px; height: 36px; }
  .savebar-recovery-actions .btn { min-height: 44px; flex: 1; }
}
.history-row .engine-history-head { flex-wrap: wrap; gap: 6px; }
.history-live-badge { border-color: var(--text); background: var(--text); color: var(--surface); font-weight: 700; letter-spacing: .06em; }
.history-pinned-badge { border-style: dashed; }
.history-message { margin: 4px 0 2px; font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.history-pin.is-pinned { border-color: var(--text); }
.history-pin.is-locked { color: var(--muted); }
@media (max-width: 640px), (pointer: coarse) {
  .history-row .engine-history-action { min-height: 44px; }
}
.savebar-status { flex: 1 1 240px; width: auto; }
.savebar-store-chip {
  flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; padding: 0 10px;
  border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface); color: var(--text);
  font: inherit; font-size: 11.5px; line-height: 1.2; cursor: pointer; white-space: nowrap;
}
.savebar-store-chip[hidden] { display: none; }
.savebar-store-chip:hover, .savebar-store-chip:focus-visible { border-color: var(--text); background: var(--surface-2); }
.savebar-store-name { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.savebar-store-state { font-weight: 650; }
.savebar-store-chip[data-state="listed"] { border-color: var(--text); }
.savebar-store-chip[data-state="listed"] .savebar-store-state::before,
.savebar-store-chip[data-state="review"] .savebar-store-state::before,
.savebar-store-chip[data-state="fixes"] .savebar-store-state::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: middle; background: var(--text);
}
.savebar-store-chip[data-state="review"] .savebar-store-state::before { background: none; box-shadow: inset 0 0 0 1.5px var(--text); }
.savebar-store-chip[data-state="fixes"] .savebar-store-state::before { background: var(--danger); }
.savebar-suggest {
  flex: 1 1 100%; min-width: 0; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--text); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 12px; line-height: 1.4;
}
.savebar-suggest-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.savebar-suggest-go {
  flex: none; min-height: 30px; padding: 0 14px; border: 1px solid var(--text); border-radius: 7px; background: var(--text); color: var(--surface);
  font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.savebar-suggest-go:hover, .savebar-suggest-go:focus-visible { opacity: .86; }
.project-menu-item.has-sub { display: grid; gap: 2px; border-top: 1px solid var(--surface-line); border-radius: 0 0 6px 6px; padding-top: 10px; }
.project-menu-item-title { font-weight: 650; }
.project-menu-item-sub { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.savebar-menu { max-width: calc(100vw - 16px); }
@media (max-width: 640px), (pointer: coarse) {
  .savebar-store-chip { min-height: 44px; padding: 0 12px; }
  .savebar-suggest { padding: 6px 8px 6px 12px; }
  .savebar-suggest-go { min-height: 40px; }
  .project-menu-item.has-sub { min-height: 52px; }
}

/* /assets/aly-test.css */
.savebar-test { margin-right: auto; }
.savebar-test[hidden] { display: none; }
.aly-dialog.aly-test-dialog { width: min(680px, 100%); gap: 14px; }
.test-panel { display: grid; gap: 14px; min-width: 0; }
.test-intro, .test-empty, .test-report-line, .test-store-line { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.test-intro[hidden], .test-actions[hidden] { display: none; }
.test-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.test-actions .btn { min-height: 44px; }
.test-full { gap: 10px; }
.test-full:disabled { opacity: .7; cursor: default; transform: none; }
.test-full .aly-lock-mark { font-size: 11px; }
.test-soon { font-size: 10px; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--surface-line); border-radius: 5px; padding: 2px 6px; }
.test-run:disabled { opacity: .6; cursor: progress; }
.test-progress { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface-2); font-size: 12.5px; }
.test-progress[hidden] { display: none; }
.test-progress-label { flex: none; max-width: 70%; }
.test-progress-track { flex: 1 1 auto; min-width: 40px; height: 3px; overflow: hidden; background: var(--surface-line); }
.test-progress-fill { display: block; width: 40%; height: 100%; background: var(--text); animation: test-progress-slide 1.4s ease-in-out infinite; }
@keyframes test-progress-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .test-progress-fill { animation: none; width: 100%; opacity: .5; } }
.test-view { display: grid; gap: 18px; min-width: 0; }
.test-report, .test-history, .test-store, .test-form { display: grid; gap: 12px; min-width: 0; }
.test-report-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.test-verdict { font-size: 24px; font-weight: 200; letter-spacing: .01em; line-height: 1.1; color: var(--text); }
.test-verdict.is-fail { border-bottom: 1px solid var(--danger); }
.test-report-meta { font-size: 12px; color: var(--muted); }
.test-report-line.is-problem { color: var(--text); }
.test-areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.test-area { display: grid; gap: 4px; align-content: start; padding: 10px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface-2); min-width: 0; }
.test-area-name { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.test-area-score { font-size: 28px; font-weight: 200; line-height: 1; color: var(--text); }
.test-area-bar { display: block; height: 2px; background: var(--surface-line); }
.test-area-fill { display: block; height: 100%; background: var(--text); }
.test-area[data-ok="false"] .test-area-fill { background: var(--danger); }
.test-area-note { font-size: 11px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.test-area[data-state="needs_full_test"] .test-area-score { color: var(--muted); }
.test-heading { margin: 0; font-size: 15px; font-weight: 300; color: var(--text); }
.test-issues-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.test-issues, .test-history-list, .test-store-missing { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.test-issue { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface-2); }
.test-issue[data-level="blocker"] { border-left: 2px solid var(--danger); }
.test-issue-body { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.test-issue-text { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.test-issue-where { margin: 0; font-size: 11.5px; color: var(--muted); overflow-wrap: anywhere; }
.test-fix, .test-fix-all { flex: none; }
.test-history-row { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--surface-line); border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.test-history-row:hover, .test-history-row:focus-visible, .test-history-row.is-current { border-color: var(--text); }
.test-history-verdict { font-weight: 600; }
.test-history-scores { color: var(--muted); }
.test-store, .test-ratings, .test-form { padding: 14px; border: 1px solid var(--surface-line); border-radius: 12px; background: var(--aly-glass, var(--surface-2)); -webkit-backdrop-filter: var(--aly-glass-blur, blur(18px)); backdrop-filter: var(--aly-glass-blur, blur(18px)); }
.test-store .eyebrow, .test-ratings .eyebrow, .test-form .eyebrow { margin: 0; }
.test-store-title { margin: 0; font-size: 20px; font-weight: 200; line-height: 1.2; color: var(--text); }
.test-store-missing li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.45; color: var(--text); }
.test-store-missing li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--text); }
.test-store-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.test-store-actions .btn { min-height: 40px; }
.test-store-actions .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.test-form.is-busy { opacity: .6; pointer-events: none; }
.test-form-back { justify-self: start; }
.test-field { display: grid; gap: 6px; min-width: 0; }
.test-field-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.test-field-hint { font-size: 11.5px; color: var(--muted); }
.aly-dialog .test-input { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.test-type-note[hidden] { display: none; }
.test-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.test-type { min-height: 40px; padding: 6px 8px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.test-type.is-on { border-color: var(--text); font-weight: 650; }
.test-type:disabled { cursor: default; opacity: .7; }
.test-art { display: grid; gap: 8px; justify-items: start; }
.test-art-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.test-icon { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--surface-line); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.test-icon img { width: 100%; height: 100%; object-fit: cover; }
.test-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.test-shots:empty { display: none; }
.test-shot { margin: 0; display: grid; gap: 4px; width: 132px; }
.test-shot img { width: 132px; height: 84px; object-fit: cover; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); }
.test-shot-remove { border: 0; background: none; color: var(--muted); font: inherit; font-size: 11.5px; text-decoration: underline; cursor: pointer; padding: 4px 0; text-align: left; }
.test-shot-remove:hover { color: var(--text); }
@media (max-width: 640px), (pointer: coarse) {
  .test-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .test-area[data-state="needs_full_test"] { grid-column: span 3; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
  .test-area[data-state="needs_full_test"] .test-area-score { display: none; }
  .test-issue { flex-wrap: wrap; }
  .test-fix, .test-fix-all, .test-store-actions .btn, .test-type, .test-history-row, .test-form-back { min-height: 44px; }
  .test-fix { flex: 1 1 100%; }
  .test-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-shot-remove { min-height: 36px; }
}
.test-store-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.test-store-stat { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); }
.test-store-stat strong { font-size: 22px; font-weight: 300; line-height: 1.1; color: var(--text); }
.test-store-stat span { font-size: 12px; color: var(--muted); }
.test-store-ai { padding: 9px 10px; border: 1px solid var(--surface-line); border-radius: 8px; color: var(--text); }
.test-store.is-focus { border-color: var(--text); }
.test-store-fix { order: -1; }
.test-update { display: grid; gap: 10px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--surface-line); }
.test-update-strong { color: var(--text); }
.test-update-busy { color: var(--text); }
.test-update-form { display: grid; gap: 8px; min-width: 0; }
.test-update-label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.test-update-note { width: 100%; min-height: 84px; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 16px; line-height: 1.45; text-transform: none; letter-spacing: 0; resize: vertical; }
.test-update-note:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.test-ratings { display: grid; gap: 10px; min-width: 0; }
.test-rating-bars { display: grid; gap: 4px; max-width: 360px; }
.test-rating-bar { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.test-rating-bar span:last-child { text-align: right; }
.test-rating-track { height: 4px; border-radius: 2px; background: var(--surface-line); overflow: hidden; }
.test-rating-fill { display: block; height: 100%; background: var(--text); }
.test-rating-count { margin: 4px 0 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.test-rating-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--surface-line); }
.test-rating-comment { display: grid; gap: 6px; justify-items: start; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--surface-line); }
.test-rating-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.test-rating-head strong { color: var(--text); font-weight: 600; }
.test-rating-stars { color: var(--text); letter-spacing: .08em; }
.test-rating-new { padding: 1px 6px; border: 1px solid var(--text); border-radius: 4px; color: var(--text); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.test-rating-text, .test-rating-reply p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; }
.test-rating-reply { display: grid; gap: 4px; justify-self: stretch; padding: 8px 10px; border-left: 1px solid var(--text); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.test-rating-reply span { font-size: 11.5px; color: var(--muted); }
.test-rating-form { display: grid; gap: 8px; justify-self: stretch; min-width: 0; }
.test-rating-form .test-field-hint { margin: 0; }
@media (max-width: 640px), (pointer: coarse) { .test-rating-reply-open, .test-rating-form .btn, .test-ratings > .btn { min-height: 44px; } }
.test-full-host { display: grid; gap: 12px; min-width: 0; }
.test-full-host[hidden] { display: none; }
.test-full-card, .test-full-safety { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--surface-line); border-radius: 12px; background: var(--surface-2); }
.test-full-safety { border-left: 2px solid var(--danger); }
.test-full-report { padding-bottom: 14px; border-bottom: 1px solid var(--surface-line); }
.test-full-summary { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.test-areas.test-full-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.test-full-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.test-full-shot { margin: 0; display: grid; gap: 4px; min-width: 0; }
.test-full-shot a { display: block; }
.test-full-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); }
.test-full-shot figcaption { font-size: 11.5px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.test-full-progress .test-progress-label { max-width: 75%; }
@media (max-width: 640px), (pointer: coarse) {
  .test-full-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-full-go, .test-full-cancel { min-height: 44px; flex: 1 1 100%; }
}
.test-team-notes { display: grid; gap: 8px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--surface-line); }
.test-team-notes .test-issue[data-note="removed"] { border-left: 2px solid var(--danger); }

/* /assets/aly-storage-page.css */
.aly-dialog.aly-storage-dialog {
  width: min(640px, 100%);
  max-height: min(calc(100dvh - 40px), 820px);
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}
.aly-storage-dialog .aly-dialog-title { flex: none; }
.aly-storage-dialog .aly-dialog-actions {
  flex: none; padding-top: 12px; border-top: 1px solid var(--surface-line);
}
.aly-storage-body {
  flex: 1 1 auto; min-height: 0; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}
.aly-storage-total { flex: none; display: grid; gap: 8px; }
.aly-storage-total-value {
  margin: 0; color: var(--text); font-size: 22px; font-weight: 300; line-height: 1.2;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.aly-storage-meter { position: relative; height: 8px; border-radius: 4px; background: var(--hair); overflow: hidden; }
.aly-storage-meter span { position: absolute; inset: 0 auto 0 0; display: block; height: 100%; background: var(--accent, var(--text)); border-radius: inherit; }
.aly-storage-meter.is-caution span { background: var(--warning, #d9a441); }
.aly-storage-meter.is-high span { background: var(--danger, #d95c4a); }
.aly-storage-retention { flex: none; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.aly-storage-projects {
  flex: 1 1 auto; min-height: 0;
  display: grid; align-content: start;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  border-top: 1px solid var(--surface-line);
}
.aly-storage-expand-toggle {
  flex: none; width: 32px; height: 32px; border: none; border-radius: 6px; background: none; color: var(--muted);
  font-size: 12px; cursor: pointer; padding: 0;
}
.aly-storage-expand-toggle:hover, .aly-storage-expand-toggle:focus-visible { color: var(--text); background: var(--surface-2); }
.aly-storage-project { border-bottom: 1px solid var(--surface-line); padding: 10px 0; min-width: 0; }
.aly-storage-project-head {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 4px;
  align-items: center; min-width: 0;
}
.aly-storage-project-name {
  grid-column: 2; min-width: 0; color: var(--text); font-size: 14px; line-height: 1.35;
  overflow-wrap: anywhere;
}
.aly-storage-project-total {
  grid-column: 3; color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.aly-storage-project-meter {
  grid-column: 2 / 4; position: relative; height: 4px; border-radius: 2px; background: var(--hair); overflow: hidden;
}
.aly-storage-project-meter span {
  position: absolute; inset: 0 auto 0 0; display: block; height: 100%;
  background: var(--muted); border-radius: inherit;
}
.aly-storage-project-breakdown {
  grid-column: 2 / 4; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.aly-storage-project-body, .aly-storage-conversation-body {
  padding-left: 40px; display: grid; gap: 6px; margin-top: 8px; min-width: 0;
}
.aly-storage-conversation { padding: 4px 0; min-width: 0; }
.aly-storage-conversation-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0;
}
.aly-storage-conversation-title { flex: 1 1 140px; min-width: 0; color: var(--text); overflow-wrap: anywhere; }
.aly-storage-conversation-counts, .aly-storage-conversation-date {
  color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums;
}
.aly-storage-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.aly-storage-attachment-info { flex: 1 1 160px; display: flex; gap: 8px; min-width: 0; }
.aly-storage-attachment-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.aly-storage-attachment-size { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; }
.aly-storage-row-actions { display: flex; gap: 6px; flex: none; }
.aly-storage-delete-btn, .aly-storage-pin-btn {
  min-height: 32px; border: 1px solid var(--surface-line); border-radius: 6px; background: none; color: var(--muted);
  font: inherit; font-size: 12px; padding: 4px 10px; cursor: pointer;
}
.aly-storage-delete-btn:hover, .aly-storage-pin-btn:hover { color: var(--text); border-color: var(--text); }
.aly-storage-pin-btn.is-pinned { color: var(--text); border-color: var(--text); }
.aly-storage-delete-btn:disabled, .aly-storage-pin-btn:disabled { opacity: .5; cursor: default; }
.aly-storage-empty, .aly-storage-loading { margin: 0; padding: 10px 0; color: var(--muted); font-size: 12px; }
@media (max-width: 560px) {
  .aly-dialog.aly-storage-dialog { max-height: 88dvh; }
  .aly-storage-total-value { font-size: 19px; }
  .aly-storage-project-body, .aly-storage-conversation-body { padding-left: 12px; }
}

/* /assets/aly-space-modal.css */
.space-backdrop {
  position: fixed; inset: 0; z-index: 75;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.space-modal {
  width: min(420px, 100%); max-height: min(78dvh, 680px);
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .40);
}
.space-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.space-title { margin: 2px 0 0; font-size: 20px; font-weight: 300; }
.space-close { flex: none; min-height: 34px; min-width: 34px; }
.space-search {
  width: 100%; padding: 10px 12px; min-height: 0;
  border: 1px solid var(--surface-line); border-radius: 9px;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px;
}
.space-search:focus { outline: none; border-color: var(--text); background: var(--surface-2); }
.space-count { margin: 0; }
.space-list {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.space-empty { margin: 8px 0; font-size: 13px; }
.space-row {
  display: flex; align-items: center; width: 100%;
  min-height: 54px; overflow: hidden;
  border: 1px solid var(--surface-line); border-radius: 10px;
  background: var(--surface-2); color: var(--text);
}
.space-row:hover, .space-row:focus-within { border-color: var(--text); }
.space-row.is-active { border-color: var(--text); background: var(--surface); }
.space-row-main {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 4px 9px 11px; cursor: pointer; text-align: left;
  border: none; background: none; color: inherit; font: inherit;
}
.space-row-main:focus-visible { outline: none; }
.space-row-usage {
  flex: none; margin-right: 6px; color: var(--muted); font-size: 11px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.space-row-settings {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-right: 7px; padding: 0; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--muted);
}
.space-row-settings svg { width: 17px; height: 17px; }
.space-row:hover .space-row-settings { color: var(--text); }
.space-row-settings:hover, .space-row-settings:focus-visible {
  color: var(--text); border-color: var(--surface-line); background: var(--surface);
}
.space-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--surface-line);
  font-size: 13px; font-weight: 700;
}
.space-row-text { flex: 1; min-width: 0; display: grid; }
.space-row-name {
  font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.space-row-role { font-size: 11px; color: var(--muted); }
.space-row-server { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.space-row-server::before { content: ''; width: 6px; height: 6px; border-radius: 999px; border: 1px solid currentColor; }
.space-row-server.is-running { color: var(--text); }
.space-row-server.is-running::before { background: var(--aly-accent); border-color: var(--aly-accent); }
.space-include-server { text-transform: none; letter-spacing: normal; font-weight: 400; display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; min-height: 44px; cursor: pointer; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass); }
.space-include-server input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--text); }
.space-include-server span { display: grid; gap: 3px; min-width: 0; }
.space-include-server strong { font-size: 13px; font-weight: 600; color: var(--text); }
.space-include-server small { font-size: 12px; line-height: 1.45; color: var(--muted); }
.space-settings-facts {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px;
  margin: 4px 0 0; font-size: 12.5px;
}
.space-settings-facts dt { color: var(--muted); }
.space-settings-facts dd { margin: 0; color: var(--text); }
.space-settings-danger {
  display: grid; gap: 7px; justify-items: start;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--surface-line);
}
.space-settings-danger .btn[disabled] { opacity: .5; cursor: not-allowed; }
.space-settings-danger .aly-dialog-hint { margin: 0; font-size: 12px; }
.space-new {
  width: 100%; padding: 11px; min-height: 46px; cursor: pointer;
  border: 1px dashed var(--surface-line); border-radius: 10px;
  background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
}
.space-new:hover, .space-new:focus-visible { border-style: solid; border-color: var(--text); }
@media (max-width: 560px) {
  .space-backdrop { align-items: flex-end; padding: 0; }
  .space-modal {
    width: 100%; max-height: 88dvh;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
    padding-bottom: calc(20px + max(env(safe-area-inset-bottom, 0px), var(--alyssiun-safe-bottom, 0px)));
  }
}
.space-inbox { display: grid; gap: 8px; margin-bottom: 4px; }
.space-inbox[hidden] { display: none; }
.space-inbox-head { margin: 0; }
.space-inbox-card {
  display: grid; gap: 6px;
  padding: 12px 13px; border: 1px solid var(--hair-2); border-radius: 10px; background: var(--glass);
}
.space-inbox-title { margin: 0; font-size: 13px; color: var(--text); }
.space-inbox-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); }
.space-inbox-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.space-inbox-actions .btn { font-size: 11px; padding: 6px 12px; min-height: 32px; }

/* /assets/aly-space-settings.css */
.space-settings-input {
  width: 100%; padding: 9px 11px; min-height: 38px;
  border: 1px solid var(--hair-2); border-radius: 6px;
  background: var(--glass); color: var(--text);
  font: inherit; font-size: 13px;
}
.space-settings-input:focus-visible { outline: none; border-color: var(--text); }
.space-settings-input:disabled, .space-settings-input[readonly] { opacity: .75; cursor: default; }
.space-settings-about { min-height: 150px; resize: vertical; line-height: 1.5; }
.space-settings-counter { margin: 0; font-size: 11px; text-align: right; }
.aly-settings-dialog-field .space-settings-save { justify-self: start; margin-top: 8px; }
.space-settings-save { letter-spacing: .06em; font-size: 12px; font-weight: 600; }
.space-settings-soon {
  margin: 0; padding: 18px; text-align: center;
  border: 1px dashed var(--surface-line); border-radius: 6px;
  color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.space-memory-toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 13px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass);
  font-size: 13px; color: var(--text);
}
.space-memory-toggle input { accent-color: var(--text); width: 16px; height: 16px; }
.space-memory-toggle:has(input:disabled) { cursor: default; opacity: .75; }
.space-memory-warning {
  margin: 0; padding: 10px 12px; font-size: 12px; line-height: 1.45;
  border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass-2); color: var(--text);
}
.space-memory-controls { display: flex; gap: 8px; align-items: center; }
.space-memory-search { flex: 1 1 auto; min-width: 0; }
.space-memory-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.space-memory-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass);
}
.space-memory-text { min-width: 0; display: grid; gap: 3px; }
.space-memory-key {
  margin: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.space-memory-value { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.space-memory-source { font-size: 11px; color: var(--muted); }
.space-memory-actions { flex: none; display: flex; gap: 6px; }
.space-memory-actions .btn { font-size: 11px; padding: 5px 9px; min-height: 30px; }
@media (max-width: 560px) {
  .space-memory-item { flex-direction: column; align-items: stretch; }
  .space-memory-actions { justify-content: flex-end; }
  .space-memory-controls { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .aly-space-settings-dialog .aly-settings-dialog-nav {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 6px;
  }
  .aly-space-settings-dialog .aly-settings-dialog-tab {
    padding: 9px 4px; min-height: 36px; font-size: 10px; letter-spacing: .08em;
  }
}
.space-team-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.space-team-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass);
}
.space-team-row.is-pending { background: none; border-style: dashed; }
.space-team-text { min-width: 0; display: grid; gap: 3px; }
.space-team-name { margin: 0; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.space-team-meta { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.space-team-actions { flex: none; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.space-team-actions .btn { font-size: 11px; padding: 5px 9px; min-height: 30px; }
@media (max-width: 560px) {
  .space-team-row { flex-direction: column; align-items: stretch; }
  .space-team-actions { justify-content: flex-start; }
}
.space-transfer-warning {
  margin: 0; padding: 12px 14px; font-size: 13px; line-height: 1.5;
  border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass-2); color: var(--text);
}
.space-transfer-pending {
  display: grid; gap: 8px; justify-items: start;
  padding: 12px 14px; border: 1px dashed var(--surface-line); border-radius: 6px;
}
.space-transfer-pending .space-team-meta { max-width: 46ch; }

/* /assets/aly-space-dashboard.css */
.aly-dash-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--scrim); }
.aly-dash {
  position: fixed; z-index: 71; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1120px, calc(100vw - 32px)); height: min(92vh, 900px);
  display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; padding: 22px;
  border: 1px solid var(--surface-line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 13px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}
.aly-dash[hidden], .aly-dash-backdrop[hidden] { display: none; }
.aly-dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aly-dash-title { margin: 2px 0 0; font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.aly-dash-close { min-width: 44px; min-height: 44px; flex: 0 0 auto; }
.aly-dash-body { overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 14px; align-content: start; padding: 0 2px 72px 0; }
.aly-dash-card {
  display: grid; gap: 10px; align-content: start; min-width: 0; padding: 14px;
  border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface-2);
}
.aly-dash-card-title { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.aly-dash-note, .aly-dash-empty { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.aly-dash-note.is-error { color: var(--danger); }
.aly-dash-empty { padding: 6px 0; }
.aly-dash-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.aly-dash-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.aly-dash-status-size { font-size: 15px; font-weight: 600; }
.aly-dash-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 12px; }
.aly-dash-facts > dt { color: var(--muted); }
.aly-dash-facts > dd { margin: 0; overflow-wrap: anywhere; }
.aly-dash-figure { margin: 0; font-size: 13px; color: var(--muted); }
.aly-dash-figure > strong { font-size: 26px; font-weight: 600; color: var(--text); }
.aly-dash-bar { height: 8px; }
.aly-dash-tips { display: grid; gap: 8px; }
.aly-dash-tip-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px;
  border: 1px solid var(--aly-accent-line); border-radius: 10px; background: var(--aly-accent-soft);
}
.aly-dash-tip-card.is-serious { border-color: var(--danger); }
.aly-dash-tip-mark {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid currentColor; font-size: 12px; font-weight: 700; line-height: 1;
}
.aly-dash-tip-card.is-serious .aly-dash-tip-mark { color: var(--danger); }
.aly-dash-tip-text { flex: 1 1 240px; margin: 0; font-size: 13px; line-height: 1.45; }
.aly-dash-tip-action { min-height: 44px; text-decoration: none; display: inline-flex; align-items: center; }
.aly-dash-ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.aly-dash-range {
  min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--surface-line); background: var(--surface-2); color: var(--muted); font: inherit; font-size: 12px;
}
.aly-dash-range.is-on { border-color: var(--text); color: var(--text); }
.aly-dash-range:focus-visible, .aly-dash-plot:focus-visible { outline: 2px solid var(--aly-accent); outline-offset: 2px; }
.aly-dash-graphs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aly-dash-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aly-dash-chart-now { margin: 0; font-size: 12px; color: var(--muted); }
.aly-dash-chart-now > strong { font-size: 22px; font-weight: 600; color: var(--text); }
.aly-dash-frame { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; }
.aly-dash-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--muted); text-align: right; line-height: 1; }
.aly-dash-plot { position: relative; height: 132px; touch-action: pan-y; cursor: crosshair; border-radius: 4px; }
.aly-dash-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.aly-dash-grid { stroke: var(--surface-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.aly-dash-line { fill: none; stroke: var(--aly-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.aly-dash-dot { stroke: var(--aly-accent); stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.aly-dash-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); pointer-events: none; }
.aly-dash-marker {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px; pointer-events: none;
  background: var(--aly-accent); border: 2px solid var(--surface-2); box-sizing: border-box;
}
.aly-dash-tip {
  position: absolute; top: 0; transform: translate(8px, 0); z-index: 1; pointer-events: none; white-space: nowrap;
  display: grid; gap: 1px; padding: 6px 8px; border-radius: 6px; font-size: 11px;
  border: 1px solid var(--surface-line); background: var(--surface); color: var(--muted);
}
.aly-dash-tip.is-left { transform: translate(calc(-100% - 8px), 0); }
.aly-dash-tip > strong { font-size: 13px; color: var(--text); }
.aly-dash-tip[hidden], .aly-dash-cross[hidden], .aly-dash-marker[hidden] { display: none; }
.aly-dash-times { display: flex; justify-content: space-between; padding-left: 34px; font-size: 10px; color: var(--muted); }
.aly-dash-table { font-size: 12px; color: var(--muted); }
.aly-dash-table > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.aly-dash-table table { width: 100%; border-collapse: collapse; color: var(--text); }
.aly-dash-table th, .aly-dash-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--surface-line); font-weight: 400; font-variant-numeric: tabular-nums; }
.aly-dash-table th { color: var(--muted); }
.aly-dash-lower { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.aly-dash-project-list, .aly-dash-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aly-dash-project { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface); min-width: 0; }
.aly-dash-project-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.aly-dash-project-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.aly-dash-project-meta { margin: 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.aly-dash-link { color: var(--text); font-size: 13px; overflow-wrap: anywhere; min-height: 28px; display: inline-flex; align-items: center; justify-self: start; }
.aly-dash-log-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--surface-line); }
.aly-dash-log-row:last-child { border-bottom: 0; }
.aly-dash-log-what { margin: 0; font-size: 12px; line-height: 1.45; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.aly-dash-log-what > strong { color: var(--text); font-weight: 600; }
.aly-dash-log-row.is-alert .aly-dash-log-what > strong { color: var(--danger); }
.aly-dash-log-when { flex: 0 0 auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.aly-server-limit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aly-server-limit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2); }
.aly-server-limit-text { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.aly-server-limit-text > strong { overflow-wrap: anywhere; }
.aly-server-limit-text > span { font-size: 12px; }
.aly-server-limit-stop { flex: 0 0 auto; min-height: 44px; min-width: 72px; }
.aly-server-limit-count { margin: 0; font-size: 12px; }
.project-server-mark {
  display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--aly-accent-line); background: var(--aly-accent-soft); color: var(--aly-accent-ink, var(--text)); font-size: 11px; font-weight: 600;
}
.space-server { display: grid; gap: 12px; }
.space-server-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.space-server-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.space-server-actions .btn, .space-server .btn { min-height: 44px; }
.space-server > .btn, .space-server-block > .btn { justify-self: start; }
.space-server-block { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--hair-2); border-radius: 6px; background: var(--glass); }
.space-server-heading { margin: 0; font-size: 12px; font-weight: 600; }
.space-server-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.space-server-size {
  display: grid; gap: 2px; padding: 10px; min-height: 64px; text-align: left; cursor: pointer; font: inherit; color: var(--text);
  border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2);
}
.space-server-size.is-on { border-color: var(--text); }
.space-server-size:disabled { opacity: .6; cursor: default; }
.space-server-size > span { font-size: 11px; color: var(--muted); }
@media (max-width: 900px) {
  .aly-dash-graphs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aly-dash-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .aly-dash {
    inset: 0; top: 0; left: 0; transform: none; width: 100vw; height: 100dvh; max-height: none;
    border: 0; border-radius: 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }
  .aly-dash-title { font-size: 17px; }
  .aly-dash-top, .aly-dash-graphs { grid-template-columns: minmax(0, 1fr); }
  .aly-dash-plot { height: 120px; }
  .aly-dash-tip-action { flex: 1 1 100%; justify-content: center; }
  .aly-dash-range { flex: 1 1 0; }
  .space-server-sizes { grid-template-columns: minmax(0, 1fr); }
  .space-server-actions .btn { flex: 1 1 auto; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .aly-dash { top: 0; left: 0; transform: none; width: 100vw; height: 100dvh; border-radius: 0; border: 0; padding: 10px 14px; gap: 8px; }
  .aly-dash-graphs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aly-dash-plot { height: 96px; }
}
@media (prefers-reduced-motion: no-preference) { .aly-dash-bar > span { transition: width .3s ease; } }

/* /assets/aly-prompt-library-modal.css */
.prompt-modal { width: min(520px, 100%); gap: 16px; }
.prompt-modal .space-search {
  padding: 11px 14px; border-radius: 12px; font-size: 13.5px;
  transition: border-color .15s ease, background-color .15s ease;
}
.prompt-scratch {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; padding: 13px 14px; cursor: pointer; text-align: left;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--surface-2); color: inherit; font: inherit;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.prompt-scratch:hover { border-color: var(--surface-line); transform: translateY(-1px); }
.prompt-scratch:hover, .prompt-scratch:focus-visible { border-color: var(--text); }
.prompt-scratch:focus-visible {
  outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}
.prompt-scratch-title { font-size: 13.5px; font-weight: 700; }
.prompt-scratch-desc { font-size: 12px; color: var(--muted); }
.prompt-divider {
  margin: 2px 0 -2px; padding-top: 12px;
  border-top: 1px solid var(--surface-line);
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted);
}
.prompt-list { gap: 10px; padding-right: 2px; }
.prompt-list { scrollbar-width: thin; scrollbar-color: var(--surface-line) transparent; }
.prompt-list::-webkit-scrollbar { width: 8px; }
.prompt-list::-webkit-scrollbar-thumb { background: var(--surface-line); border-radius: 8px; }
.prompt-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  width: 100%; padding: 13px 14px; cursor: pointer; text-align: left;
  border: 1px solid var(--surface-line); border-radius: 12px;
  background: var(--surface-2); color: inherit; font: inherit;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.prompt-row:hover {
  border-color: var(--text); transform: translateY(-1px);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .35);
}
.prompt-row:focus-visible {
  outline: none; border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}
.prompt-row.is-expanded {
  cursor: default; background: var(--surface); border-color: var(--text);
  transform: none; box-shadow: none;
}
.prompt-row-title { font-size: 13.5px; font-weight: 600; }
.prompt-row-text {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prompt-row-text.is-full {
  -webkit-line-clamp: unset; display: block; overflow: visible; color: var(--text);
}
.prompt-use {
  margin-top: 10px; align-self: flex-start; padding: 7px 16px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  letter-spacing: normal; text-transform: none;
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
}
.prompt-use:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.prompt-highlight {
  background: color-mix(in srgb, var(--jade) 35%, transparent);
  color: var(--text); font-weight: 700; border-radius: 3px; padding: 0 2px;
}
.prompt-empty { margin: 8px 0; font-size: 13px; line-height: 1.5; }

/* /assets/aly-project-kind.css */
.aly-kind-dialog { max-width: 560px; }
.aly-kind-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.aly-kind-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-height: 168px;
  padding: 20px 18px;
  text-align: left;
  border: 1px solid var(--hair-2);
  border-radius: var(--radius, 12px);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.aly-kind-option:hover:not(:disabled),
.aly-kind-option:focus-visible:not(:disabled) { border-color: var(--text); }
.aly-kind-option:disabled { opacity: .5; cursor: not-allowed; }
.aly-kind-glyph { font-size: 26px; line-height: 1; color: var(--muted); }
.aly-kind-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.aly-kind-blurb {
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--muted);
  white-space: normal;
}
.aly-kind-move { grid-column: 1 / -1; min-height: 0; }
.aly-kind-options.is-starting-points .aly-kind-option { min-height: 132px; }
@media (max-width: 560px) {
  .aly-kind-options { grid-template-columns: 1fr; }
  .aly-kind-options.is-starting-points { grid-template-columns: 1fr 1fr; gap: 10px; }
  .aly-kind-option { min-height: 0; }
  .aly-kind-options.is-starting-points .aly-kind-option { padding: 14px 12px; }
}

/* /assets/aly-move-to-aly.css */
.aly-move-dialog { width: min(560px, 100%); }
.aly-move-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aly-move-close { text-decoration: none; min-width: 44px; min-height: 44px; margin: -10px -10px -10px 0; color: var(--muted); cursor: pointer; }
.aly-move-close:hover, .aly-move-close:focus-visible { color: var(--text); }
.aly-move-close[hidden] { display: none; }
.aly-move-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px;
  border: 1px solid var(--surface-line); border-radius: var(--radius, 12px); background: var(--surface-2);
}
.aly-move-tabs[hidden] { display: none; }
.aly-move-tab {
  min-height: 44px; padding: 8px 6px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.aly-move-tab:hover, .aly-move-tab:focus-visible { color: var(--text); }
.aly-move-tab.is-on { background: var(--surface); border-color: var(--surface-line); color: var(--text); }
.aly-move-body, .aly-move-panel, .aly-move-form, .aly-move-browser { display: grid; gap: 14px; min-width: 0; }
.aly-move-body[hidden], .aly-move-form[hidden], .aly-move-browser[hidden] { display: none; }
.aly-move-dialog .aly-dialog-field[hidden], .aly-move-check[hidden] { display: none; }
.aly-move-was { padding-top: 12px; border-top: 1px solid var(--surface-line); }
.aly-move-dialog input, .aly-move-dialog select, .aly-move-dialog textarea { min-height: 44px; font-size: 16px; }
.aly-move-dialog textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.aly-move-dialog .aly-dialog-hint { display: block; }
.aly-move-dialog .aly-dialog-hint[hidden] { display: none; }
.aly-move-row { display: flex; gap: 10px; align-items: flex-end; min-width: 0; }
.aly-move-row > select, .aly-move-row > .aly-dialog-field { flex: 1 1 0; min-width: 0; }
.aly-move-host > .aly-dialog-field:last-child { flex: 0 0 96px; }
.aly-move-inline { min-height: 44px; flex: 0 0 auto; white-space: nowrap; }
.aly-move-inline.is-busy, .aly-move-dialog .btn.is-busy { opacity: .6; cursor: progress; }
.aly-move-check {
  display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer;
  font-size: 13.5px; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--text);
}
.aly-move-dialog .aly-move-check input { width: 20px; height: 20px; min-height: 0; padding: 0; flex: 0 0 auto; }
.aly-move-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.aly-move-pick { min-height: 104px; }
.aly-move-path {
  margin: 0; padding: 10px 12px; border: 1px solid var(--surface-line); border-radius: 8px; background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere;
}
.aly-move-folders {
  list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; max-height: min(260px, 36dvh); overflow-y: auto;
  border: 1px solid var(--surface-line); border-radius: 8px;
}
.aly-move-folder {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.aly-move-folder, .aly-move-folder.btn {
  display: flex; align-items: center; justify-content: flex-start;
  text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 14px;
}
.aly-move-folder::before { content: '▸'; margin-right: 10px; color: var(--muted); }
.aly-move-folder:hover, .aly-move-folder:focus-visible { background: var(--surface-2); }
.aly-move-empty { padding: 10px; font-size: 13px; }
.aly-move-progress { display: grid; gap: 10px; padding: 6px 0 2px; }
.aly-move-progress[hidden] { display: none; }
.aly-move-progress-text { margin: 0; font-size: 15px; color: var(--text); }
.aly-move-progress-name { margin: 0; font-size: 12px; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aly-move-bar { height: 4px; border-radius: 2px; background: var(--surface-line); overflow: hidden; }
.aly-move-bar-fill { display: block; height: 100%; width: 0; background: var(--text); transition: width .25s ease; }
.aly-move-bar.is-busy .aly-move-bar-fill { width: 35%; animation: aly-move-busy 1.2s ease-in-out infinite alternate; }
@keyframes aly-move-busy { from { transform: translateX(-20%); } to { transform: translateX(210%); } }
@media (prefers-reduced-motion: reduce) { .aly-move-bar.is-busy .aly-move-bar-fill { animation: none; width: 100%; opacity: .5; } }
@media (max-width: 560px) {
  .aly-move-dialog { padding: 18px 16px; }
  .aly-move-row:not(.aly-move-host) { flex-wrap: wrap; }
  .aly-move-row:not(.aly-move-host) > .aly-move-inline { flex: 1 1 auto; }
  .aly-move-dialog .aly-dialog-actions .btn { flex: 1 1 auto; }
}

/* /assets/aly-import-report.css */
.aly-dialog.aly-import-dialog { width: min(680px, 100%); gap: 14px; }
.import-panel, .import-view, .import-report { display: grid; gap: 18px; min-width: 0; }
.import-section { display: grid; gap: 10px; min-width: 0; }
.import-heading { margin: 0; display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.import-count { font-size: 11px; letter-spacing: 0; color: var(--text); border: 1px solid var(--surface-line); border-radius: 999px; padding: 1px 7px; }
.import-lead { margin: 0; font-size: 18px; font-weight: 200; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.import-line, .import-note, .import-item-detail, .import-status { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.import-note { font-size: 12px; }
.import-status { padding: 10px 12px; border: 1px solid var(--surface-line); border-radius: 9px; background: var(--surface-2); color: var(--text); }
.import-status[hidden] { display: none; }
.import-groups, .import-items, .import-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; min-width: 0; }
.import-group { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.import-group::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 1px; background: var(--text); }
.import-item { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--surface-line); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.import-item[data-kind="security"] { border-left: 2px solid var(--danger); }
.import-item[data-kind="optional"], .import-item[data-kind="info"] { background: transparent; }
.import-item-body { display: grid; gap: 6px; min-width: 0; }
.import-item-title { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.import-item-state { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.import-item-actions, .import-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.import-pick { padding-top: 4px; }
.import-pick .import-item-detail { flex: 1 1 100%; }
.import-action { min-height: 44px; -webkit-user-select: none; user-select: none; }
.import-action.is-busy, .import-action:disabled { opacity: .6; cursor: progress; transform: none; }
.aly-dialog .import-input { flex: 1 1 200px; min-width: 0; min-height: 44px; font-size: 16px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.import-details { min-width: 0; }
.import-summary { min-height: 32px; display: inline-flex; align-items: center; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.import-summary:hover, .import-summary:focus-visible { color: var(--text); }
.import-list { max-height: min(240px, 34dvh); overflow-y: auto; padding: 8px 10px; border: 1px solid var(--surface-line); border-radius: 8px; }
.import-change { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; min-width: 0; }
.import-file { color: var(--muted); }
.import-from { color: var(--muted); text-decoration: line-through; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-to { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-arrow { color: var(--muted); }
.outside-sources { display: grid; gap: 10px; min-width: 0; }
.outside-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.outside-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 4px 4px 4px 12px; border: 1px solid var(--surface-line); border-radius: 9px; min-width: 0; }
.outside-host { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; min-width: 0; }
.outside-add { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.outside-add input { flex: 1 1 200px; min-width: 0; min-height: 44px; font-size: 16px; }
.outside-add .btn, .outside-row .btn, .outside-row .btn-quiet, .outside-sources > .btn { min-height: 44px; }
.outside-row .btn-quiet { min-width: 64px; padding: 0 10px; cursor: pointer; }
.outside-sources > .btn { justify-self: start; }
@media (max-width: 640px) {
  .import-item-actions .btn, .import-pick .btn { flex: 1 1 100%; justify-content: center; }
  .import-lead { font-size: 16px; }
}

/* /assets/aly-engine.css */
.engine-canvas { position: absolute; inset: 0; display: flex; }
.engine-canvas-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--void);
}
.engine-canvas-status,
.engine-canvas-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--void);
  z-index: 1;
}
.engine-canvas-status[hidden] { display: none; }
.engine-panel { display: grid; gap: 18px; padding: 4px 0 20px; }
.engine-panel-section { display: grid; gap: 8px; }
.engine-panel-section h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.engine-panel-empty { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.engine-panel-note { margin: 4px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.engine-history-row {
  border: 1px solid var(--hair);
  border-radius: 4px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}
.engine-history-row.is-live { border-color: var(--hair-2); }
.engine-history-head { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.engine-history-label { color: var(--text); font-size: 13px; }
.engine-history-badge {
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  text-transform: uppercase;
}
.engine-history-meta { color: var(--muted); font-size: 11.5px; margin: 0; }
.engine-history-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.engine-history-link { color: var(--muted); font-size: 11.5px; justify-self: start; padding: 4px 0; }
.engine-history-link:hover { color: var(--text); }
.engine-history-action { font-size: 11.5px; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--hair); background: var(--surface); color: var(--text); cursor: pointer; min-height: 30px; }
.engine-history-action:hover:not(:disabled) { border-color: var(--text); }
.engine-history-action:disabled { color: var(--muted); cursor: default; }
.engine-history-share { display: grid; gap: 6px; margin-top: 6px; }
.engine-history-url { color: var(--text); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.engine-history-copy { justify-self: start; font-size: 11.5px; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--hair); background: var(--surface); color: var(--text); cursor: pointer; }
.engine-history-copy:hover { border-color: var(--text); }
.engine-history-publish {
  background: transparent;
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  margin: 10px 0 8px;
}
.engine-history-publish:disabled { color: var(--muted); cursor: default; }
.workspace-settings-section-body .engine-history-row { margin: 0 0 8px; }
.engine-canvas-problem[hidden] {
  display: none;
}
.engine-canvas-problem {
  align-content: center;
  display: grid;
  gap: 10px;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: absolute;
  text-align: center;
}
.engine-canvas-problem-title { color: var(--text); font-size: 15px; margin: 0; }
.engine-canvas-problem-detail {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}
.engine-canvas-problem-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.engine-canvas-problem-action,
.engine-canvas-problem-reload {
  background: transparent;
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
}
.engine-canvas-problem-reload { border-color: var(--hair); color: var(--muted); }
.engine-play {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  background: #000;
}
.engine-play-frame { flex: 1; width: 100%; border: 0; display: block; background: #000; }
.engine-play-bar {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  border-radius: 999px; border: 1px solid var(--surface-line);
  background: var(--aly-glass); color: var(--text);
  -webkit-backdrop-filter: var(--aly-glass-blur, blur(18px)); backdrop-filter: var(--aly-glass-blur, blur(18px));
  font-size: 13px; font-weight: 500;
}
.engine-play-stop {
  min-height: 36px; min-width: 64px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--surface-line);
  background: var(--surface-2); color: inherit; font: inherit;
}
@media (max-width: 640px) { .engine-play-label { display: none; } .engine-play-stop { min-height: 44px; } }

/* /assets/aly-run-checklist.css */
.run-checklist { margin: 7px 0 0; display: grid; gap: 6px; }
.run-checklist[hidden] { display: none; }
.run-checklist-head {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.run-checklist-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.run-checklist-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 8px;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: var(--surface);
}
.run-checklist-step.is-current { border-color: var(--jade); background: color-mix(in srgb, var(--jade) 8%, var(--surface)); }
.run-checklist-step[data-status="failed"] { border-color: var(--danger); }
.run-checklist-step[data-status="pending"] { opacity: .72; }
.run-checklist-mark { font-size: 12px; line-height: 1.5; }
.run-checklist-step-body { display: grid; gap: 2px; min-width: 0; }
.run-checklist-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text); }
.run-checklist-done-when { font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.run-checklist-facts { font-size: 10.5px; line-height: 1.4; color: var(--muted); font-variant-numeric: tabular-nums; }
.run-checklist-note { font-size: 10.5px; line-height: 1.4; color: var(--danger); }
.run-checklist-spend { margin: 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.run-checklist-spend[hidden] { display: none; }
.run-checklist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.run-checklist-actions[hidden] { display: none; }
.run-checklist-btn {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.run-checklist-btn:hover { border-color: var(--text); color: var(--text); }
.run-checklist-btn[hidden] { display: none; }
.run-checklist-btn[disabled] { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  .run-checklist-step { padding: 6px 7px; gap: 6px; }
  .run-checklist-title { font-size: 11.5px; }
  .run-checklist-actions { flex-direction: column; align-items: stretch; }
  .run-checklist-btn { width: 100%; padding: 6px 9px; }
}
