:root {
  color-scheme: dark;
  --bg: #080c16;
  --surface: rgba(18, 25, 42, .82);
  --surface-solid: #111829;
  --surface-soft: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #f4f7ff;
  --soft: #c4ccdc;
  --muted: #8390a8;
  --dim: #59657c;
  --accent: #8ce5d6;
  --accent-2: #b8a1ff;
  --warm: #ffb77e;
  --danger: #ff858f;
  --shadow: 0 26px 75px rgba(0, 0, 0, .3);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; color: var(--text); background: radial-gradient(circle at 0 0, rgba(91, 82, 160, .2), transparent 34%), radial-gradient(circle at 100% 10%, rgba(44, 138, 139, .12), transparent 30%), var(--bg); letter-spacing: .01em; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: wait; opacity: .52; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

.ambient { position: fixed; width: 420px; height: 420px; pointer-events: none; filter: blur(100px); opacity: .12; border-radius: 50%; }
.ambient-a { top: 18%; left: -180px; background: var(--accent-2); }
.ambient-b { right: -220px; bottom: 4%; background: var(--accent); }
.eyebrow, .section-index, .kicker, .sidebar-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.kicker { color: var(--accent); margin-bottom: 16px; }
.section-index { color: var(--accent-2); margin-bottom: 7px; }

.auth-screen { min-height: 100vh; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 22px; position: relative; display: flex; flex-direction: column; }
.auth-brand, .brand-lockup { display: flex; align-items: center; gap: 13px; }
.auth-brand { margin-bottom: 40px; }
.logo-mark { width: 42px; height: 42px; padding: 8px 9px; display: flex; align-items: end; gap: 4px; border: 1px solid var(--line-strong); border-radius: 13px; background: linear-gradient(145deg, rgba(184, 161, 255, .3), rgba(140, 229, 214, .05)); box-shadow: 0 10px 35px rgba(0, 0, 0, .2); }
.logo-mark.small { width: 32px; height: 32px; padding: 6px 7px; border-radius: 10px; }
.logo-mark span { display: block; width: 5px; border-radius: 4px; background: linear-gradient(to top, var(--accent-2), var(--accent)); }
.logo-mark span:nth-child(1) { height: 10px; opacity: .66; }.logo-mark span:nth-child(2) { height: 18px; }.logo-mark span:nth-child(3) { height: 25px; opacity: .82; }
.logo-mark.small span { width: 4px; }.logo-mark.small span:nth-child(1) { height: 7px; }.logo-mark.small span:nth-child(2) { height: 13px; }.logo-mark.small span:nth-child(3) { height: 19px; }
.auth-brand h1 { margin-top: 4px; font-size: 20px; letter-spacing: -.04em; }
.auth-layout { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: center; gap: clamp(50px, 9vw, 150px); padding: 10px 5vw 60px; }
.auth-pitch { max-width: 650px; }
.auth-pitch h2 { font-size: clamp(44px, 6.5vw, 82px); line-height: 1.04; letter-spacing: -.08em; font-weight: 600; }
.auth-pitch h2 em { color: var(--accent); font-style: normal; }
.auth-pitch > p:not(.kicker) { max-width: 500px; color: var(--muted); font-size: 15px; line-height: 1.8; margin-top: 25px; }
.feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.feature-row span { color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255, 255, 255, .025); font-size: 11px; }
.auth-card { border: 1px solid var(--line); border-radius: 22px; padding: 25px; background: linear-gradient(145deg, rgba(28, 36, 59, .88), rgba(13, 18, 31, .9)); box-shadow: var(--shadow); }
.auth-card-top, .panel-heading, .content-heading, .workspace-toolbar, .form-actions, .model-row, .app-topbar, .sidebar-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.auth-card h3 { font-size: 23px; letter-spacing: -.04em; }
.secure-label { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .15em; padding-top: 4px; }
.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 25px 0 20px; }
.auth-tab { border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; padding: 0 0 11px; font-size: 12px; }
.auth-tab.active { border-color: var(--accent); color: var(--text); }
.auth-form { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field span, .field-label { color: var(--muted); font-size: 11px; }
.field small { color: var(--dim); font-size: 10px; }
.field input, .field textarea, .field select, .workspace-toolbar select, .model-value select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 8, 16, .54); color: var(--soft); padding: 11px 12px; outline: none; font-size: 12px; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.65; }
.field input, .field select { min-height: 41px; }
.field input:focus, .field textarea:focus, .field select:focus, .workspace-toolbar select:focus, .model-value select:focus { border-color: rgba(140, 229, 214, .62); box-shadow: 0 0 0 3px rgba(140, 229, 214, .08); }
.button { border: 0; border-radius: 11px; padding: 12px 16px; color: var(--text); font-size: 12px; font-weight: 750; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: #0d1b1e; background: linear-gradient(125deg, var(--accent), #b4efd8); box-shadow: 0 10px 25px rgba(140, 229, 214, .14); }
.button-primary span { margin-left: 6px; font-size: 16px; vertical-align: -1px; }
.button-secondary { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); }
.form-message, .inline-message { border: 1px solid rgba(255, 133, 143, .32); border-radius: 10px; background: rgba(255, 133, 143, .08); color: #ffc2c7; padding: 10px 12px; font-size: 11px; line-height: 1.55; }
.inline-message.info { border-color: rgba(140, 229, 214, .3); background: rgba(140, 229, 214, .08); color: var(--accent); }
.auth-footnote { color: var(--dim); font-size: 10px; margin-top: 19px; line-height: 1.5; }
.landing-foot, .app-footer { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.app-view { min-height: 100vh; }
.app-topbar { align-items: center; height: 72px; padding: 0 clamp(20px, 4vw, 60px); border-bottom: 1px solid var(--line); background: rgba(7, 11, 20, .74); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand-lockup strong { font-size: 15px; letter-spacing: -.03em; }.brand-lockup .eyebrow { margin-bottom: 3px; font-size: 8px; }.topbar-actions, .user-menu, .workspace-status { display: flex; align-items: center; gap: 11px; }.workspace-status { color: var(--accent); font-size: 10px; }.workspace-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(140, 229, 214, .1); }.user-menu { color: var(--soft); font-size: 12px; padding-left: 18px; border-left: 1px solid var(--line); }.avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #201827; background: linear-gradient(135deg, var(--warm), var(--accent-2)); font-size: 11px; font-weight: 800; }.icon-button { border: 0; color: var(--muted); background: transparent; transform: rotate(90deg); font-size: 17px; }.icon-button:hover { color: var(--text); }
.app-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.sidebar { display: flex; flex-direction: column; padding: 29px 18px 20px; border-right: 1px solid var(--line); background: rgba(10, 15, 27, .42); }.sidebar-label { padding: 0 11px 14px; font-size: 9px; }.sidebar-action, .project-item { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; padding: 10px 11px; text-align: left; font-size: 12px; }.sidebar-action.active, .sidebar-action:hover, .project-item.active, .project-item:hover { border-color: rgba(140, 229, 214, .15); color: var(--soft); background: rgba(140, 229, 214, .07); }.nav-icon { width: 17px; color: var(--accent); text-align: center; font-size: 15px; }.sidebar-section-head { align-items: center; color: var(--muted); font-size: 10px; margin: 31px 11px 10px; text-transform: uppercase; letter-spacing: .12em; }.sidebar-section-head button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); background: transparent; }.project-list { display: grid; gap: 5px; }.project-item { min-width: 0; }.project-symbol { width: 22px; height: 22px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: var(--accent-2); background: rgba(184, 161, 255, .1); font-size: 10px; }.project-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.project-count { margin-left: auto; color: var(--dim); font-size: 10px; }.sidebar-empty { color: var(--dim); padding: 12px; font-size: 11px; }.sidebar-bottom { margin-top: auto; }.sidebar-tip { display: flex; gap: 9px; border-top: 1px solid var(--line); padding: 17px 9px 0; color: var(--muted); }.sidebar-tip > span { color: var(--warm); }.sidebar-tip strong, .sidebar-tip small { display: block; }.sidebar-tip strong { color: var(--soft); font-size: 10px; }.sidebar-tip small { color: var(--dim); font-size: 9px; line-height: 1.5; margin-top: 4px; }
.main-content { width: min(1240px, 100%); padding: 44px clamp(22px, 5vw, 70px) 30px; }.content-heading { align-items: end; margin-bottom: 29px; }.content-heading h2 { font-size: clamp(29px, 4vw, 45px); letter-spacing: -.065em; line-height: 1.1; }.content-heading h2 span { color: var(--accent); }.content-heading p:not(.kicker) { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 10px; }.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }.stat-card { min-height: 120px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; padding: 17px 19px; background: var(--surface); }.stat-card.stat-accent { border-color: rgba(184, 161, 255, .25); background: linear-gradient(145deg, rgba(48, 43, 82, .55), rgba(18, 25, 42, .8)); }.stat-label { color: var(--muted); font-size: 11px; }.stat-card strong { display: block; margin: 8px 0 4px; color: var(--text); font-size: 30px; letter-spacing: -.06em; }.stat-card small { color: var(--dim); font-size: 10px; }
.workspace-toolbar { align-items: center; margin-bottom: 18px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }.workspace-toolbar > div { display: flex; align-items: center; gap: 12px; }.toolbar-label { color: var(--muted); font-size: 11px; }.workspace-toolbar select { min-width: 220px; padding: 8px 10px; }.text-button { border: 0; color: var(--muted); background: transparent; padding: 4px 0; font-size: 11px; }.text-button:hover { color: var(--accent); }.text-button.danger:hover { color: var(--danger); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 16px; align-items: stretch; }.panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: 0 18px 48px rgba(0, 0, 0, .16); backdrop-filter: blur(14px); overflow: hidden; }.panel-heading { align-items: flex-start; padding: 20px 21px 15px; }.panel h3 { font-size: 17px; letter-spacing: -.035em; }.panel-badge { border: 1px solid rgba(140, 229, 214, .22); border-radius: 999px; color: var(--accent); padding: 5px 7px; font-size: 8px; letter-spacing: .12em; }.panel-muted { color: var(--dim); font-size: 10px; padding-top: 4px; }.output-actions { display: flex; gap: 14px; }.script-form { display: grid; gap: 13px; padding: 0 21px 21px; }.field-full textarea { min-height: 125px; }.field-grid { display: grid; gap: 10px; }.field-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }.field-grid.two { grid-template-columns: 1fr 1fr; }.short-area { min-height: 78px !important; }.model-row { align-items: center; padding: 12px 0 1px; border-top: 1px solid var(--line); }.model-value { display: flex; align-items: center; gap: 7px; margin-top: 7px; }.model-value select { min-width: 220px; padding: 8px 9px; }.model-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(184, 161, 255, .1); }.form-actions { align-items: center; padding-top: 3px; }.form-note { color: var(--muted); font-size: 10px; line-height: 1.5; }.spinner { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border: 2px solid rgba(13, 27, 30, .35); border-top-color: #0d1b1e; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }@keyframes spin { to { transform: rotate(360deg); } }
.output-panel { display: flex; min-height: 660px; flex-direction: column; }.output-state { flex: 1; display: flex; min-height: 510px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; margin: 0 21px 21px; border: 1px dashed var(--line-strong); border-radius: 13px; color: var(--muted); text-align: center; padding: 20px; }.output-state strong { color: var(--soft); font-size: 13px; }.output-state span { max-width: 230px; color: var(--dim); font-size: 10px; line-height: 1.6; }.output-orbit { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 7px; border: 1px solid rgba(184, 161, 255, .48); border-radius: 50%; color: var(--accent-2); font-size: 24px; box-shadow: 0 0 34px rgba(184, 161, 255, .14), inset 0 0 20px rgba(184, 161, 255, .06); }.output-orbit.running, .output-orbit.pending { border-color: rgba(140, 229, 214, .5); color: var(--accent); animation: pulse 1.8s ease-in-out infinite; }.output-orbit.failed { border-color: rgba(255, 133, 143, .55); color: var(--danger); }@keyframes pulse { 50% { transform: scale(1.07); box-shadow: 0 0 45px rgba(140, 229, 214, .2); } }
.output-text { width: calc(100% - 42px); flex: 1; min-height: 580px; margin: 0 21px 12px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; color: var(--soft); background: rgba(4, 8, 16, .58); padding: 14px; outline: none; line-height: 1.72; font-size: 12px; font-family: inherit; }.output-meta { color: var(--dim); padding: 0 21px 19px; font-size: 10px; }.history-panel { margin-top: 17px; }.history-list { display: grid; gap: 7px; padding: 0 21px 20px; }.empty-history { border: 1px dashed var(--line); border-radius: 11px; color: var(--dim); padding: 25px; text-align: center; font-size: 11px; }.history-item { display: grid; grid-template-columns: 78px minmax(0, 1fr) 150px 95px; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 10px; color: var(--soft); background: rgba(255, 255, 255, .025); padding: 11px 12px; text-align: left; }.history-item:hover, .history-item.selected { border-color: rgba(140, 229, 214, .2); background: rgba(140, 229, 214, .05); }.history-status { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.history-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }.history-status.succeeded i { background: var(--accent); }.history-status.running i, .history-status.pending i { background: var(--warm); }.history-status.failed i { background: var(--danger); }.history-title { overflow: hidden; color: var(--soft); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.history-model, .history-item time { overflow: hidden; color: var(--dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.history-item time { text-align: right; }.app-footer { padding: 24px 1px 0; }
.admin-main { width: min(1420px, 100%); }
.settings-main { width: min(1160px, 100%); }
.admin-nav { margin-top: 6px; }
.admin-stats-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.status-word { font-size: 21px !important; letter-spacing: -.04em !important; }
.status-word.ready { color: var(--accent); }.status-word.warning { color: var(--warm); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .8fr); gap: 16px; align-items: start; }
.admin-panel { min-width: 0; }
.admin-toolbar { display: flex; gap: 8px; align-items: center; padding: 0 21px 15px; }
.admin-toolbar input, .admin-toolbar select, .compact-select { min-height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--soft); background: rgba(4, 8, 16, .54); padding: 7px 9px; outline: none; font-size: 11px; }
.admin-toolbar input { min-width: 180px; flex: 1; }.admin-toolbar input:focus, .admin-toolbar select:focus, .compact-select:focus { border-color: rgba(140, 229, 214, .62); }
.compact-select { margin: 0 21px 0 auto; padding: 7px 9px; }
.table-wrap { overflow-x: auto; padding: 0 21px 20px; }.admin-table { width: 100%; border-collapse: collapse; min-width: 650px; }.admin-table th { color: var(--dim); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; padding: 0 10px 9px; white-space: nowrap; }.admin-table td { border-top: 1px solid rgba(255, 255, 255, .06); color: var(--soft); font-size: 11px; padding: 11px 10px; vertical-align: middle; }.admin-table th:first-child, .admin-table td:first-child { padding-left: 0; }.admin-table th:last-child, .admin-table td:last-child { padding-right: 0; }.admin-user { display: flex; align-items: center; gap: 8px; min-width: 170px; }.admin-avatar { width: 26px; height: 26px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #201827; background: linear-gradient(135deg, var(--warm), var(--accent-2)); font-size: 10px; font-weight: 800; }.admin-user strong, .admin-user small { display: block; overflow: hidden; max-width: 155px; text-overflow: ellipsis; white-space: nowrap; }.admin-user strong { color: var(--soft); font-size: 11px; }.admin-user small { color: var(--dim); font-size: 9px; margin-top: 3px; }.admin-role-select { border: 0; color: var(--muted); background: transparent; font-size: 10px; outline: none; }.admin-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }.admin-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }.admin-status.active i { background: var(--accent); }.admin-status.disabled i { background: var(--danger); }.admin-counts, .admin-time { color: var(--dim) !important; white-space: nowrap; }.table-empty { color: var(--dim); padding: 25px 12px; text-align: center; font-size: 11px; }.admin-job-list { display: grid; gap: 8px; padding: 0 21px 20px; max-height: 535px; overflow-y: auto; }.admin-job-row { border: 1px solid rgba(255, 255, 255, .07); border-radius: 11px; padding: 12px; background: rgba(255, 255, 255, .025); }.admin-job-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.admin-job-top time { color: var(--dim); font-size: 9px; }.admin-job-row > strong { display: block; overflow: hidden; margin-top: 10px; color: var(--soft); font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }.admin-job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; color: var(--dim); font-size: 9px; }.admin-job-meta span + span::before { content: '·'; margin-right: 8px; color: var(--line-strong); }.admin-job-error { margin: 9px 0 0; border-left: 2px solid var(--danger); color: #ffc2c7; padding-left: 8px; font-size: 10px; line-height: 1.5; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .72fr); gap: 16px; align-items: start; }.settings-panel, .settings-help { min-width: 0; }.settings-form { display: grid; gap: 16px; padding: 0 21px 22px; }.settings-form .field small { color: var(--dim); line-height: 1.55; }.check-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.check-row input { accent-color: var(--accent); }.settings-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; border-top: 1px solid var(--line); }.settings-help { min-height: 100%; }.small-orbit { width: 32px; height: 32px; margin: 0; font-size: 13px; }.help-content { display: grid; gap: 19px; padding: 0 21px 24px; }.help-content strong { color: var(--accent); font-size: 10px; letter-spacing: .08em; }.help-content p { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 5px; }.help-note { border-top: 1px solid var(--line); color: var(--dim); font-size: 10px; line-height: 1.6; padding-top: 15px; }
.settings-heading-actions { display: flex; align-items: center; gap: 12px; }.provider-list { display: grid; gap: 7px; padding: 0 21px 15px; }.provider-item { display: flex; align-items: center; gap: 9px; width: 100%; border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: rgba(255, 255, 255, .025); padding: 9px 10px; text-align: left; }.provider-item:hover, .provider-item.active { border-color: rgba(140, 229, 214, .28); background: rgba(140, 229, 214, .07); }.provider-symbol { width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: var(--accent); background: rgba(140, 229, 214, .1); font-size: 10px; }.provider-item-copy { min-width: 0; flex: 1; }.provider-item-copy strong, .provider-item-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.provider-item-copy strong { color: var(--soft); font-size: 11px; }.provider-item-copy small { color: var(--dim); font-size: 9px; margin-top: 3px; }.provider-item-status { color: var(--accent); font-size: 9px; white-space: nowrap; }.provider-empty { border: 1px dashed var(--line); border-radius: 10px; color: var(--dim); padding: 12px; text-align: center; font-size: 10px; }.danger-button { color: var(--danger); }.model-controls { display: flex; gap: 14px; min-width: 0; }.model-controls > label { min-width: 0; }.model-controls > label:first-child { width: 190px; }.model-controls > label:last-child { width: 230px; }.model-controls .field-label { display: block; }.model-controls .model-value { margin-top: 7px; }
.model-catalog { border: 1px solid rgba(140, 229, 214, .16); border-radius: 11px; padding: 11px; background: rgba(140, 229, 214, .035); }.model-catalog-head { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }.model-catalog-head strong { color: var(--accent); font-size: 10px; }.model-chip-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }.model-chip { max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: rgba(4, 8, 16, .45); padding: 6px 8px; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }.model-chip:hover, .model-chip.active { border-color: rgba(140, 229, 214, .5); color: var(--accent); background: rgba(140, 229, 214, .1); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 30; max-width: 360px; border: 1px solid var(--line-strong); border-radius: 11px; padding: 12px 15px; color: var(--soft); background: #171e31; box-shadow: var(--shadow); font-size: 11px; }.toast.success { border-color: rgba(140, 229, 214, .35); color: var(--accent); }.toast.error { border-color: rgba(255, 133, 143, .35); color: #ffc2c7; }

@media (max-width: 980px) { .auth-layout { grid-template-columns: 1fr 380px; gap: 38px; padding-left: 0; padding-right: 0; }.studio-grid { grid-template-columns: 1fr; }.output-panel { min-height: 480px; }.output-state { min-height: 330px; }.output-text { min-height: 480px; }.app-layout { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 760px) { .auth-screen { width: min(100% - 30px, 560px); }.auth-layout { grid-template-columns: 1fr; padding-top: 10px; }.auth-pitch { padding: 20px 0 4px; }.auth-pitch h2 { font-size: 53px; }.auth-card { margin-top: 16px; }.landing-foot { margin-top: 30px; flex-wrap: wrap; }.app-topbar { padding: 0 18px; }.workspace-status { display: none; }.app-layout { display: block; }.sidebar { display: none; }.main-content { padding: 31px 18px 25px; }.content-heading { align-items: flex-start; }.stats-grid { gap: 8px; }.stat-card { min-height: 105px; padding: 13px; }.stat-card strong { font-size: 25px; }.stat-card small { line-height: 1.4; }.field-grid.four { grid-template-columns: 1fr 1fr; }.model-value select { min-width: 0; }.history-item { grid-template-columns: 78px minmax(0, 1fr) 80px; }.history-model { display: none; } }
@media (max-width: 500px) { .auth-screen { width: calc(100% - 22px); padding-top: 20px; }.auth-brand { margin-bottom: 20px; }.auth-pitch h2 { font-size: 43px; }.auth-pitch > p:not(.kicker) { font-size: 13px; }.feature-row { margin-top: 19px; }.auth-card { padding: 19px; }.user-menu { padding-left: 0; border-left: 0; }.user-menu > span:not(.avatar) { display: none; }.content-heading { flex-direction: column; gap: 17px; }.content-heading .button { width: 100%; }.stats-grid { grid-template-columns: 1fr 1fr; }.stat-card:last-child { grid-column: 1 / -1; }.workspace-toolbar { align-items: stretch; flex-direction: column; }.workspace-toolbar > div { align-items: flex-start; flex-direction: column; gap: 7px; }.workspace-toolbar select { width: 100%; }.field-grid.four, .field-grid.two { grid-template-columns: 1fr; }.form-actions { align-items: stretch; flex-direction: column; }.form-actions .button { width: 100%; }.model-row { align-items: stretch; flex-direction: column; }.model-value input { width: 100%; }.history-item { grid-template-columns: 1fr 1fr; }.history-status { grid-column: 1; }.history-item time { grid-column: 2; }.history-title { grid-column: 1 / -1; grid-row: 2; }.app-footer { flex-wrap: wrap; line-height: 1.5; }.app-footer span:nth-child(2) { width: 100%; } }
@media (max-width: 1100px) { .admin-stats-grid { grid-template-columns: repeat(3, 1fr); }.admin-grid, .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .admin-stats-grid { grid-template-columns: 1fr 1fr; }.admin-toolbar { flex-wrap: wrap; }.admin-toolbar input { min-width: 100%; }.admin-toolbar select { flex: 1; }.compact-select { margin-right: 18px; } }
@media (max-width: 500px) { .model-controls { width: 100%; flex-direction: column; gap: 10px; }.model-controls > label:first-child, .model-controls > label:last-child { width: 100%; }.settings-heading-actions { gap: 7px; }.settings-actions { flex-wrap: wrap; }.settings-actions .button { flex: 1; } }

/* Provider settings: compact list-first management view. */
.provider-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 21px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.provider-list-toolbar > div { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.provider-list-toolbar strong { color: var(--soft); font-size: 11px; }
.provider-list-toolbar span { color: var(--dim); font-size: 9px; }
.provider-list-hint { white-space: nowrap; }
.provider-list { max-height: 390px; overflow-y: auto; display: grid; gap: 8px; padding: 14px 21px 18px; }
.provider-item { align-items: center; gap: 13px; border-color: rgba(255, 255, 255, .08); border-radius: 13px; background: rgba(255, 255, 255, .025); padding: 13px 14px; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.provider-item:hover { transform: translateY(-1px); border-color: rgba(140, 229, 214, .3); background: rgba(140, 229, 214, .055); }
.provider-item.active { border-color: rgba(140, 229, 214, .58); background: linear-gradient(105deg, rgba(140, 229, 214, .11), rgba(184, 161, 255, .07)); box-shadow: inset 3px 0 0 var(--accent); }
.provider-symbol { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.provider-item-main { display: grid; min-width: 0; flex: 1; gap: 5px; }
.provider-item-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.provider-item-title strong { overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.provider-default-badge { border: 1px solid rgba(140, 229, 214, .25); border-radius: 999px; color: var(--accent); padding: 3px 6px; font-size: 8px; font-style: normal; white-space: nowrap; }
.provider-item-url { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.provider-item-meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--dim); font-size: 9px; }
.provider-item-meta span + span::before { content: '·'; margin-right: 9px; color: var(--line-strong); }
.provider-item-side { display: flex; align-items: flex-end; flex: 0 0 auto; flex-direction: column; gap: 7px; }
.provider-status { border-radius: 999px; padding: 4px 7px; font-size: 8px; font-style: normal; white-space: nowrap; }
.provider-status.configured { border: 1px solid rgba(140, 229, 214, .2); color: var(--accent); background: rgba(140, 229, 214, .07); }
.provider-status.pending { border: 1px solid rgba(255, 183, 126, .24); color: var(--warm); background: rgba(255, 183, 126, .07); }
.provider-chevron { color: var(--dim); font-size: 9px; white-space: nowrap; }
.provider-item:hover .provider-chevron, .provider-item.active .provider-chevron { color: var(--accent); }
.provider-editor { border-top: 1px solid var(--line); padding: 20px 21px 22px; background: rgba(4, 8, 16, .16); }
.provider-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.provider-editor-heading h4 { color: var(--text); font-size: 16px; letter-spacing: -.03em; }
.provider-editor .settings-form { padding: 0; }

@media (max-width: 500px) {
  .provider-list-toolbar { align-items: flex-start; flex-direction: column; gap: 5px; }
  .provider-list-hint { display: none; }
  .provider-list { max-height: none; padding-right: 18px; padding-left: 18px; }
  .provider-item { align-items: flex-start; padding: 12px; }
  .provider-symbol { margin-top: 1px; }
  .provider-item-side { align-items: flex-end; }
  .provider-item-meta { display: block; line-height: 1.7; }
  .provider-item-meta span { display: block; }
  .provider-item-meta span + span::before { display: none; }
  .provider-editor { padding-right: 18px; padding-left: 18px; }
}

/* Workspace is a project dashboard; creation tools live in projectView. */
.workspace-home-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); gap: 16px; align-items: stretch; }
.workspace-home-panel { min-height: 320px; }
.workspace-project-list { display: grid; gap: 8px; padding: 0 21px 21px; }
.workspace-project-card { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; color: var(--soft); background: rgba(255, 255, 255, .025); padding: 13px; text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.workspace-project-card:hover { transform: translateY(-1px); border-color: rgba(140, 229, 214, .34); background: rgba(140, 229, 214, .06); }
.workspace-project-symbol { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 10px; color: var(--accent-2); background: rgba(184, 161, 255, .12); font-size: 12px; }
.workspace-project-copy { display: grid; min-width: 0; flex: 1; gap: 5px; }
.workspace-project-copy strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.workspace-project-copy small { color: var(--dim); font-size: 9px; }
.workspace-project-arrow { color: var(--accent); font-size: 9px; white-space: nowrap; }
.workspace-guide { display: grid; gap: 20px; padding: 0 21px 24px; }
.workspace-guide strong { color: var(--accent); font-size: 10px; letter-spacing: .08em; }
.workspace-guide p { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 5px; }

@media (max-width: 980px) {
  .workspace-home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .workspace-project-card { align-items: flex-start; }
  .workspace-project-arrow { margin-left: auto; }
}
