:root {
  color-scheme: light;
  --canvas: #f5f6f1;
  --paper: #fff;
  --ink: #17221c;
  --muted: #58655d;
  --border: #dce2d9;
  --accent: #c9ee87;
  --accent-dark: #304c24;
  --forest: #20382b;
  --sidebar: #18231d;
  --danger: #943b36;
  --radius: 17px;
  font: 15px/1.55 "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .59; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible, .chat-messages:focus-visible { outline: 3px solid #83aa52; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 3.5vw, 44px); line-height: 1.16; letter-spacing: -.045em; font-weight: 690; }
h2 { font-size: 21px; line-height: 1.35; letter-spacing: -.025em; font-weight: 670; }
h3 { font-size: 16px; line-height: 1.35; font-weight: 680; }
[hidden] { display: none !important; }
.svg-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; background: var(--sidebar); color: #d9e4dc; display: flex; flex-direction: column; padding: 24px 16px 15px; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: #f8fff8; font-size: 20px; font-weight: 690; letter-spacing: -.045em; text-decoration: none; margin: 1px 0 39px 8px; white-space: nowrap; }
.brand img { display: block; }
.nav-group { display: grid; gap: 5px; margin: 0 0 24px; }
.nav-label { margin: 0 9px 6px; color: #bacbbe; font-size: 13px; font-weight: 540; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: #dde8df; font-weight: 510; white-space: nowrap; }
.nav-link:hover { background: #26382d; color: #fff; }
.nav-link.active { background: #33493a; color: #e2ffc8; }
.nav-link.active .svg-icon { color: var(--accent); }
.sidebar-footer { margin-top: auto; padding: 10px 0 0; border-top: 1px solid #344237; }
.side-engine { display: flex; align-items: center; gap: 10px; color: #d0ddd2; font-size: 14px; min-height: 39px; padding: 0 12px 3px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: #8e9a92; flex: 0 0 auto; }
.led.ok { background: #b8e582; }
.led.warn { background: #e2b572; }
.led.error { background: #ee9c90; }
.main-layout { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; border-bottom: 1px solid var(--border); padding: 0 clamp(20px, 4vw, 56px); background: #fbfcf8; }
.breadcrumbs, .profile { display: flex; align-items: center; gap: 12px; }
.breadcrumb-root { color: var(--muted); }
.breadcrumb-divider { color: #89968c; }
.profile { text-decoration: none; color: var(--muted); font-size: 14px; }
.profile span:first-child { display: grid; place-items: center; background: #e5ebe1; color: #30483a; width: 32px; height: 32px; border-radius: 50%; font-weight: 650; }
.menu-toggle, .sidebar-close { display: none !important; }
#main { padding: 33px clamp(20px, 4vw, 56px) 56px; max-width: 1520px; margin: 0 auto; outline: none; }
.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 0 0 24px; }
.page-heading p, .section-heading p { margin-top: 7px; color: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 14px; }
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.subtitle { color: var(--muted); font-size: 14px; }
.button, .icon-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; color: var(--ink); border: 1px solid var(--border); background: var(--paper); text-decoration: none; font-weight: 620; border-radius: 9px; min-height: 39px; padding: 7px 13px; text-align: center; }
.button:hover, .icon-button:hover { background: #edf1e9; }
.button.primary { color: #1e321b; background: var(--accent); border-color: var(--accent); }
.button.primary:hover { background: #b7e477; border-color: #b7e477; }
.button.dark { background: #274333; border-color: #274333; color: #fff; }
.button.dark:hover { background: #385941; }
.button.danger { color: var(--danger); }
.button.subtle { background: none; }
.button.small { min-height: 34px; padding: 5px 10px; font-size: 14px; }
.button .svg-icon, .icon-button .svg-icon { width: 17px; height: 17px; }
.icon-button { width: 38px; min-height: 38px; padding: 0; flex: 0 0 auto; }
.text-link { display: inline-flex; gap: 6px; align-items: center; padding: 0; background: none; border: 0; color: #33523b; font-weight: 635; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions.end { justify-content: flex-end; }
.card { padding: 21px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.dashboard-top { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(283px, 1fr); gap: 16px; }
.hero { position: relative; isolation: isolate; min-height: 272px; padding: clamp(23px, 4vw, 36px); border-radius: var(--radius); background: #22392c; color: #f5fff1; overflow: hidden; }
.hero-content { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; color: #dbe9d3; font-size: 14px; font-weight: 560; margin-bottom: 23px; }
.hero .svg-icon { width: 15px; height: 15px; }
.hero h2 { font-size: clamp(27px, 3.1vw, 41px); letter-spacing: -.048em; font-weight: 690; line-height: 1.13; max-width: 440px; }
.hero p { color: #e2eee0; max-width: 369px; margin: 10px 0 22px; font-size: 15px; }
.hero a.subtle { color: #f4fcf1; border-color: #688573; }
.hero a.subtle:hover { background: #355340; }
.hero-art, .login-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --orbit-width: 365px; --orbit-height: 128px; --orbit-x: 83%; --orbit-y: 64%; }
.hero-art { background: radial-gradient(ellipse at 87% 70%, #547747 0, #35523c88 25%, transparent 66%); }
.orbit { position: absolute; width: var(--orbit-width); height: var(--orbit-height); top: var(--orbit-y); left: var(--orbit-x); border: 1px solid #c4e59c72; border-radius: 50%; }
.orbit::after { content: ""; position: absolute; width: 8px; height: 8px; top: 14%; left: 17%; background: #d3f5a4; border-radius: 50%; box-shadow: 0 0 16px #dbffafaa; }
.orbit-one { transform: translate(-50%, -50%) rotate(32deg); }
.orbit-two { transform: translate(-50%, -50%) rotate(-33deg); }
.orbit-three { transform: translate(-50%, -50%) rotate(89deg); }
.orbit-core { position: absolute; width: 45px; height: 45px; background: #d3f5a4; top: var(--orbit-y); left: var(--orbit-x); transform: translate(-50%, -50%); clip-path: polygon(50% 0, 59% 40%, 100% 50%, 59% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.resource-card { min-height: 272px; }
.resource-card .section-heading { margin-bottom: 14px; }
.resource-header { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; }
.resource-header h3 { overflow-wrap: anywhere; }
.resource-icon, .shortcut-icon { width: 36px; height: 36px; border-radius: 10px; background: #e9f0e3; color: #33503a; display: grid; place-items: center; flex: 0 0 auto; }
.resource-rows { display: grid; gap: 12px; }
.meter-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; }
.meter-title span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { display: block; width: 100%; height: 7px; margin-top: 5px; appearance: none; border: none; border-radius: 99px; color: #79a15e; background: #e8ede5; overflow: hidden; }
.progress::-webkit-progress-bar { background: #e8ede5; }
.progress::-webkit-progress-value { border-radius: 99px; background: #79a15e; }
.progress::-moz-progress-bar { border-radius: 99px; background: #79a15e; }
.progress:indeterminate::-webkit-progress-value { background: #d4dfce; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.shortcut { text-decoration: none; display: grid; gap: 10px; min-height: 133px; padding: 16px; }
.shortcut p { color: var(--muted); font-size: 14px; }
.shortcut:hover { border-color: #8cac7e; background: #fcfefb; }
.shortcut:nth-child(2) .shortcut-icon { color: #465f2e; background: #eaf2d9; }
.shortcut:nth-child(3) .shortcut-icon { color: #495976; background: #ecf0f6; }
.shortcut:nth-child(4) .shortcut-icon { color: #715338; background: #f3ece0; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.model-card { display: flex; flex-direction: column; gap: 9px; }
.model-card h3, .model-card .subtitle { overflow-wrap: anywhere; }
.model-card .actions { margin-top: auto; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 615; padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: #eef0eb; color: #4d5c52; }
.badge.ok { background: #e9f4df; color: #3b5b30; }
.badge.warn { background: #fff2d9; color: #755228; }
.badge.error { background: #fae9e6; color: #863a37; }
.tabs { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid var(--border); overflow: auto; margin-bottom: 20px; }
.tab { border: 1px solid transparent; background: transparent; color: var(--muted); min-height: 39px; border-radius: 9px; padding: 6px 12px; font-weight: 620; white-space: nowrap; }
.tab:hover { background: #e9eee5; }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: #e3ebdf; color: #253d2c; border-color: #d7e4d2; }
.table-wrap { overflow-x: auto; padding: 0; }
.model-cell-label { display: none; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: var(--muted); background: #f9faf6; font-weight: 600; font-size: 14px; white-space: nowrap; }
td, th { border-bottom: 1px solid var(--border); padding: 12px 16px; }
td { vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td:first-child { overflow-wrap: anywhere; min-width: 168px; }
td .actions { flex-wrap: nowrap; }
.split { display: grid; grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 14px; }
.grid-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
label { display: grid; gap: 6px; color: #3c4a40; font-weight: 605; font-size: 14px; min-width: 0; }
label.check { display: flex; align-items: center; gap: 9px; }
input:not([type="checkbox"]):not([type="range"]), select, textarea { background: #fff; color: var(--ink); border: 1px solid #d1dbd0; border-radius: 8px; min-height: 42px; padding: 8px 10px; width: 100%; min-width: 0; }
input[type="checkbox"], input[type="range"] { accent-color: #447049; }
input[type="file"] { font-size: 14px; }
input[type="file"]::file-selector-button { border: none; border-radius: 5px; padding: 5px 8px; background: #e9f0e3; color: #344f3b; font: inherit; cursor: pointer; }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356655a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position: right 10px center; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 97px; }
.inline-form { display: flex; align-items: flex-end; gap: 8px; }
.inline-form label { flex: 1; }
.field-error, .notice { border: 1px solid #ecd5d1; color: #773733; background: #fff2ef; padding: 10px 12px; border-radius: 8px; }
.notice.info { border-color: #d8e3d3; color: #435844; background: #f0f5ed; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 146px; gap: 6px; padding: 20px; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 16px; }
.empty .svg-icon { width: 27px; height: 27px; color: #57745b; margin-bottom: 4px; }
.empty p { max-width: 29rem; }
.initial-loading { color: var(--muted); padding: 3rem 0; text-align: center; }
.item-list { display: grid; gap: 9px; }
.item { border: 1px solid var(--border); border-radius: 11px; padding: 12px; display: grid; gap: 7px; overflow-wrap: anywhere; }
.item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.item-head > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.item-head .actions { flex: 0 0 auto; }
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 30; pointer-events: none; max-width: min(380px, calc(100% - 40px)); }
.toast { background: #233b2d; color: #f7fff5; border-radius: 10px; padding: 11px 15px; border: 1px solid #3e5947; box-shadow: 0 6px 22px #17221c22; }
.toast.error { background: #743c37; border-color: #936059; }
.dialog { border: 1px solid var(--border); background: #fff; color: var(--ink); border-radius: var(--radius); width: min(650px, calc(100% - 24px)); max-height: min(85dvh, 780px); overflow: auto; padding: 22px; }
.dialog::backdrop { background: #17221c66; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.dialog form > .actions { margin-top: 4px; }
.dialog h2 { overflow-wrap: anywhere; }
.chat-layout { display: grid; grid-template-columns: minmax(166px, 215px) minmax(0, 1fr); gap: 15px; align-items: stretch; }
.chat-sidebar { padding: 12px; display: grid; gap: 10px; align-content: start; }
.chat-sidebar > .button { width: 100%; }
.conversations { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 4px; min-width: 0; max-height: min(52dvh, 480px); overflow: auto; }
.conversation { border: 0; background: transparent; border-radius: 8px; color: #495b4f; text-align: left; padding: 8px 10px; min-height: 37px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation:hover, .conversation[aria-current="true"] { background: #e9f0e6; color: #283f2d; }
.chat-room { padding: 0; min-height: clamp(510px, 68dvh, 760px); display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.chat-header { padding: 12px 15px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 11px; justify-content: space-between; }
.chat-header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-messages { flex: 1; min-height: 165px; max-height: 56dvh; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-messages:focus-visible { outline-offset: -3px; }
.chat-messages > .empty { flex: 1; }
.message { max-width: min(100%, 55rem); align-self: flex-start; display: grid; gap: 7px; background: #f6f7f4; border-radius: 11px; padding: 10px 12px; overflow-wrap: anywhere; min-width: 0; }
.message.user { align-self: flex-end; background: #e9f3e3; }
.message-body { min-width: 0; }
.message-text { white-space: pre-wrap; }
.message details { color: var(--muted); border-left: 2px solid #9cae96; padding: 0 0 0 8px; }
.message summary { cursor: pointer; }
.message details p { white-space: pre-wrap; margin-top: 4px; }
.code { display: grid; overflow: hidden; background: #213329; color: #ebf5ec; border-radius: 8px; margin: 7px 0; }
.code-head { padding: 6px 8px; display: flex; justify-content: space-between; align-items: center; background: #30463a; gap: 8px; font-size: 13px; }
.code .button { color: #eaf5e9; background: #384c3e; border-color: #617362; }
.code pre { padding: 11px; margin: 0; overflow: auto; overscroll-behavior-inline: contain; }
.chat-compose { padding: 13px 15px; border-top: 1px solid var(--border); }
.chat-compose textarea { min-height: 72px; }
.chat-compose-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.chat-thinking { display: flex; align-items: center; gap: 6px; }
.chat-thinking select { width: auto; min-height: 34px; padding: 5px 28px 5px 8px; }
.chat-state { margin-top: 5px; }
.attachment-row { display: flex; flex-wrap: wrap; gap: 5px; }
.sulphur-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(185px, 100%), 1fr)); gap: 9px; list-style: none; padding: 0; margin: 0; }
.sulphur-images li { display: grid; gap: 6px; min-width: 0; padding: 9px; border: 1px solid var(--border); border-radius: 9px; }
.sulphur-images img { width: 100%; height: 120px; object-fit: contain; background: #e9eee6; border-radius: 6px; }
.sulphur-filename { overflow-wrap: anywhere; }
.model-file-list { margin: 7px 0 0; overflow-wrap: anywhere; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 9px; }
.asset { border-radius: 9px; overflow: hidden; display: grid; background: #e9eee6; }
.asset img, .asset video { max-width: 100%; width: 100%; object-fit: contain; max-height: 280px; display: block; }
.asset video { aspect-ratio: auto 16 / 9; background: #151e19; }
.asset > a { padding: 7px 9px; font-weight: 620; font-size: 14px; }
.run-layout { align-items: stretch; }
.run-status { align-content: start; }
.run-status .section-heading { margin: 0; }
.run-runtime { padding: 12px; border-radius: 9px; background: #edf3e9; overflow-wrap: anywhere; }
.run-runtime .subtitle { margin-top: 4px; }
.run-model-path { overflow-wrap: anywhere; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; align-items: start; }
.work-preview { display: grid; gap: 8px; padding: 12px; overflow-wrap: anywhere; }
.work-preview h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.details { border-top: 1px solid var(--border); padding-top: 10px; }
.details > summary { cursor: pointer; color: #47614d; font-weight: 630; }
.details .grid-fields { margin-top: 12px; }
.settings-card { max-width: 590px; }
.settings-card h2 { margin-bottom: 15px; }
.settings-card .button { justify-self: start; }
.log { padding: 10px; background: #f4f6f1; color: #36483a; border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; font: 13px/1.55 ui-monospace, monospace; margin: 0; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: stretch; }
.login-art { position: relative; z-index: 0; inset: auto; background: radial-gradient(ellipse at center, #527849, #22392c 66%); --orbit-width: min(70vw, 480px); --orbit-height: 175px; --orbit-x: 50%; --orbit-y: 50%; }
.login-art .orbit-core { width: 65px; height: 65px; }
.login-main { align-self: center; justify-self: center; width: min(370px, 100% - 42px); padding: 25px 0; }
.login-main h1 { margin: 14px 0 25px; font-size: clamp(27px, 4vw, 38px); }
.login-main .button { margin-top: 3px; }
@media (max-width: 1140px) {
  .layout { grid-template-columns: 198px minmax(0, 1fr); }
  .dashboard-top { grid-template-columns: minmax(0, 1.2fr) minmax(255px, 1fr); }
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 915px) {
  .dashboard-top, .split { grid-template-columns: 1fr; }
  .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-card { min-height: auto; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .mobile-menu-open { overflow: hidden; }
  .mobile-menu-open .layout::before { content: ""; position: fixed; inset: 0; z-index: 9; background: #14221960; }
  .sidebar { display: none; position: fixed; top: 0; left: 0; width: min(270px, calc(100% - 34px)); padding: max(16px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior-y: contain; }
  .sidebar.open { display: flex; }
  .sidebar > * { flex-shrink: 0; }
  .sidebar .brand { margin: 0 50px 24px 4px; font-size: 18px; }
  .sidebar .brand img { width: 34px; height: 34px; }
  .sidebar-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; color: #eef5ee; background: #26382d; border-color: #45584a; }
  .sidebar-close:hover { background: #33493a; }
  .menu-toggle, .sidebar-close { display: inline-flex !important; }
  .topbar { position: sticky; top: 0; z-index: 8; gap: 8px; min-height: 59px; padding-top: env(safe-area-inset-top); }
  .breadcrumbs { min-width: 0; gap: 9px; }
  #crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .profile { min-height: 44px; min-width: 44px; justify-content: center; }
  .topbar, #main { padding-left: 15px; padding-right: 15px; }
  #main { padding-top: 22px; padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .icon-button { width: 44px; }
  .button, .button.small, .icon-button, .tab, .conversation, .asset > a { min-height: 44px; }
  input:not([type="checkbox"]):not([type="range"]), select, textarea { font-size: 16px; min-height: 44px; }
  .chat-layout { grid-template-columns: minmax(0, 1fr); }
  .chat-sidebar { display: flex; align-items: center; }
  .chat-sidebar > .button { width: auto; flex: 0 0 auto; }
  .conversations { display: flex; flex: 1; max-height: none; overflow: auto; }
  .conversation { flex: 0 0 auto; max-width: min(165px, 60vw); }
  .chat-room { min-height: 0; }
  .chat-header { flex-wrap: wrap; }
  .chat-header strong { flex: 1 1 9ch; }
  .chat-messages { max-height: clamp(180px, 42dvh, 480px); }
  .chat-thinking select { min-height: 44px; }
  .asset img, .asset video { max-height: min(55dvh, 350px); }
}
@media (max-width: 470px) {
  .breadcrumb-root, .breadcrumb-divider, .profile span:last-child { display: none; }
  .topbar, #main { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  #main { padding-top: 17px; }
  .hero-art { --orbit-x: 99%; opacity: .6; }
  .hero { min-height: 245px; }
  .page-heading { align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 17px; }
  .page-heading > div:first-child, .section-heading > div:first-child { overflow-wrap: anywhere; min-width: 0; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; gap: 7px 10px; }
  .model-grid { grid-template-columns: 1fr; }
  .card { padding: 15px; }
  .card.chat-room, .card.table-wrap { padding: 0; }
  .card.chat-sidebar { padding: 8px; }
  .model-table { background: transparent; border: 0; overflow: visible; }
  .model-table table, .model-table tbody { display: grid; gap: 10px; }
  .model-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .model-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
  .model-table td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .model-table td:first-child, .model-table td:last-child { grid-column: 1 / -1; }
  .model-table td .actions { flex-wrap: wrap; }
  .model-cell-label { display: block; color: var(--muted); font-size: 12px; }
  .inline-form { flex-wrap: wrap; }
  .inline-form label { flex: 1 1 200px; }
  .chat-header, .chat-compose, .chat-messages { padding: 10px; }
  .chat-compose.stack { gap: 9px; }
  .chat-compose textarea { min-height: 58px; }
  .chat-compose-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .chat-compose-row > .actions:first-child { justify-content: space-between; gap: 6px; }
  .chat-compose-row > .actions:last-child { justify-content: flex-end; }
  .toasts { bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; max-width: calc(100% - 24px); }
  .login { grid-template-columns: 1fr; grid-template-rows: 28vh 1fr; align-content: start; }
  .login-art { --orbit-width: 290px; --orbit-height: 100px; }
  .login-main { align-self: start; }
}
@media (max-width: 350px) {
  .grid-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.asset { margin: 0; }
.asset > a, .output-files a { display: flex; align-items: center; gap: 6px; }
.asset > a .svg-icon, .output-files a .svg-icon { width: 16px; height: 16px; }
.output-files { display: grid; gap: 6px; padding: 0; margin: 6px 0 0; list-style: none; }
.output-files li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.details > label { margin-top: 11px; }
hr.details { width: 100%; border-width: 1px 0 0; padding: 0; margin: 2px 0; }
