:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #0a0c10;
  --panel-2: #11151b;
  --panel-3: #171c24;
  --line: rgba(153, 174, 198, .16);
  --line-strong: rgba(84, 224, 237, .4);
  --text: #f0f5fa;
  --muted: #9eabb9;
  --muted-2: #788695;
  --cyan: #38d5e7;
  --cyan-2: #14aebf;
  --yellow: #ffbf34;
  --orange: #ff9f44;
  --sidebar: 17.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
}

.agent-directory-layout { display: grid; grid-template-columns: 16.1702rem minmax(0, 1fr); min-height: 31.773rem; overflow: hidden; border: 1px solid rgba(153, 174, 198, .16); border-radius: 0.5674rem; background: #10151d; }
.agent-directory-sidebar { min-width: 0; padding: 0.7376rem; border-right: 1px solid var(--line); background: #11161e; }
.agent-category-tabs { display: flex; gap: 0.2837rem; overflow-x: auto; padding-bottom: 0.5674rem; }
.agent-category-tabs button { flex: 0 0 auto; padding: 0.3972rem 0.5106rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: transparent; color: var(--muted); font-size: 0.5674rem; }
.agent-category-tabs button.active { border-color: rgba(56, 213, 231, .6); background: rgba(20, 174, 191, .18); color: var(--cyan); }
.agent-search { display: flex; align-items: center; gap: 0.2837rem; height: 1.9858rem; margin-bottom: 0.4539rem; padding: 0 0.5106rem; border: 1px solid var(--line); border-radius: 0.3972rem; color: var(--muted-2); }
.agent-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 0.6241rem; }
.agent-list { display: grid; gap: 0.2837rem; max-height: 26.383rem; overflow: auto; padding-right: 0.1702rem; }
.agent-card { display: grid; grid-template-columns: 2.0426rem minmax(0, 1fr); gap: 0.5106rem; align-items: center; padding: 0.5106rem; border: 1px solid transparent; border-radius: 0.4539rem; background: transparent; text-align: left; }
.agent-card:hover, .agent-card.active { border-color: rgba(56, 213, 231, .35); background: rgba(24, 132, 148, .16); }
.agent-card-icon { width: 2.0426rem; height: 2.0426rem; display: grid; place-items: center; border: 1px solid rgba(56, 213, 231, .5); border-radius: 0.5674rem; color: var(--cyan); font-size: 1.0213rem; text-shadow: 0 0 0.5674rem currentColor; }
.agent-card-copy { min-width: 0; }
.agent-card-copy strong, .agent-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-card-copy strong { font-size: 0.6241rem; }
.agent-card-copy small { margin-top: 0.227rem; color: var(--muted); font-size: 0.5106rem; }
.agent-detail { min-width: 0; padding: 1.9291rem; background: radial-gradient(circle at 70% 10%, rgba(32, 137, 166, .12), transparent 36%), #0e131a; }
.agent-detail-empty { display: grid; place-items: center; min-height: 22.1277rem; text-align: center; color: var(--muted); }
.agent-detail-empty h2 { margin: 0.6809rem 0 0.3972rem; color: var(--text); font-size: 1.2482rem; }
.agent-detail-empty p { max-width: 26.6667rem; margin: 0; font-size: 0.6809rem; line-height: 1.7; }
.agent-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.1348rem; }
.agent-detail-head h2 { margin: 0.227rem 0 0.4539rem; font-size: 1.305rem; }
.agent-detail-head p { max-width: 35.1773rem; margin: 0; color: var(--muted); font-size: 0.6809rem; line-height: 1.7; }
.agent-status { padding: 0.2837rem 0.4539rem; border: 1px solid rgba(255, 191, 52, .4); border-radius: 0.3404rem; color: var(--yellow); font-size: 0.5674rem; white-space: nowrap; }
.agent-capabilities { display: flex; flex-wrap: wrap; gap: 0.3972rem; margin: 1.0213rem 0; }
.agent-capabilities span { padding: 0.2837rem 0.4539rem; border: 1px solid rgba(56, 213, 231, .3); border-radius: 0.2837rem; color: #a6dce3; font-size: 0.5674rem; }
.agent-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7376rem; margin-top: 1.2482rem; }
.agent-form label { display: grid; gap: 0.3404rem; color: #b9c6d4; font-size: 0.5674rem; }
.agent-form label:last-child { grid-column: 1 / -1; }
.agent-form input, .agent-form textarea, .agent-form select { min-height: 2.0426rem; padding: 0.4539rem 0.5674rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #161d27; color: var(--text); font-size: 0.6241rem; }
.agent-form textarea { min-height: 4.6525rem; resize: vertical; }
.agent-form-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.agent-form-field legend { margin-bottom: 0.3404rem; color: #b9c6d4; font-size: 0.5674rem; }
.agent-check-grid { display: flex; flex-wrap: wrap; gap: 0.3404rem; }
.agent-check { display: inline-flex !important; grid-template-columns: none !important; align-items: center; gap: 0.2837rem !important; margin: 0 !important; padding: 0.3404rem 0.4539rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #161d27; color: #b9c6d4; font-size: 0.5674rem !important; }
.agent-check input { width: 0.7376rem; min-height: 0.7376rem; margin: 0; padding: 0; accent-color: var(--cyan); }
.agent-check:has(input:checked) { border-color: rgba(56, 213, 231, .65); background: rgba(20, 174, 191, .15); color: #e8fbff; }
.agent-detail-actions { display: flex; gap: 0.5106rem; margin-top: 1.0213rem; }
.agent-runtime-note { margin-top: 1.0213rem; padding: 0.5674rem 0.6809rem; border: 1px solid rgba(255, 191, 52, .25); border-radius: 0.3972rem; background: rgba(255, 191, 52, .06); color: #c7b889; font-size: 0.5674rem; line-height: 1.6; }
.inspiration-filter { min-width: 0; }
.inspiration-filter input { margin-bottom: 0.4539rem; }
.tag-cloud button.active { border-color: rgba(56, 213, 231, .55); background: rgba(20, 174, 191, .15); color: var(--cyan); }
.inspiration-card { cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.inspiration-card:hover { transform: translateY(-0.1702rem); border-color: rgba(56, 213, 231, .45); box-shadow: 0 0.7943rem 1.7021rem rgba(0, 0, 0, .25); }
.inspiration-card .art { background: var(--inspiration-gradient, linear-gradient(145deg, #375e79, #91566e 48%, #e1b274)); }
.inspiration-card .inspiration-meta { display: flex; justify-content: space-between; gap: 0.3404rem; margin-top: 0.3972rem; color: var(--muted); font-size: 0.5106rem; }
@media (max-width: 840px) {
  .agent-directory-layout { grid-template-columns: 1fr; }
  .agent-directory-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-list { max-height: 14.7518rem; }
  .agent-detail { padding: 1.1348rem; }
  .agent-form { grid-template-columns: 1fr; }
  .agent-form label:last-child { grid-column: auto; }
}
.model-list { position: relative; }
.model-glass-layer { position: absolute; z-index: 0; left: 0; pointer-events: none; border: 1px solid rgba(66, 223, 237, .08); border-radius: 0.7376rem; background: rgba(66, 223, 237, .035); opacity: 0; transform: translate3d(0, 0, 0); will-change: transform, opacity, width, height; transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s cubic-bezier(.22, 1, .36, 1), height .28s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; }
.model-glass-layer::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 18% 50%, rgba(72, 227, 240, .26), transparent 33%), linear-gradient(90deg, rgba(76, 228, 240, .12), transparent 72%); opacity: .7; }
.model-glass-layer-active { border-color: rgba(66, 223, 237, .19); background: rgba(66, 223, 237, .065); }
.model-glass-layer-hover { z-index: 1; border-color: rgba(255, 191, 52, .38); background: rgba(255, 191, 52, .045); }
.model-glass-layer.is-visible { opacity: 1; }
.model-card { z-index: 2; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 0.1135rem solid var(--cyan); outline-offset: 0.1135rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid rgba(155, 184, 208, .11); background: linear-gradient(180deg, #0c0f14 0%, #050608 100%); transition: transform .22s ease, width .22s ease; }
.brand-row { height: 5.7305rem; padding: 1.0213rem 0.8511rem 0.9078rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(155, 184, 208, .1); }
.brand { display: flex; align-items: center; gap: 0.6241rem; min-width: 0; color: var(--text); text-decoration: none; }
.brand-mark { width: 2.4965rem; height: 2.4965rem; flex: 0 0 2.4965rem; border: 1px solid #4be3ee; border-radius: 50%; display: grid; place-items: center; color: #79f0f5; font-size: 1.1915rem; font-weight: 800; box-shadow: 0 0 1.0213rem rgba(41, 216, 232, .27); }
.brand-mark span { font-size: 0.5674rem; color: var(--yellow); transform: translate(0.1135rem, -0.5674rem); }
.brand-copy { min-width: 0; display: grid; gap: 0.1702rem; }
.brand-copy strong { max-width: 9.3617rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9078rem; letter-spacing: .02em; }
.brand-copy small { color: var(--muted-2); font-size: 0.5674rem; }
.icon-button { width: 2.156rem; height: 2.156rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #252c37; color: #b8c5d3; font-size: 1.2482rem; }
.mobile-sidebar-mask { display: none; }
.sidebar-toggle { position: fixed; top: 1.4184rem; left: calc(var(--sidebar) - 2.9504rem); z-index: 50; font-size: 1.5319rem; line-height: 1; transition: left .22s ease, top .22s ease; }
.primary-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4999rem; min-height: 5.507rem; padding: 0.7501rem; border-bottom: 1px solid rgba(255, 255, 255, .06); background: rgba(0, 0, 0, .2); }
.primary-item { --nav-accent: #00cae0; --nav-glow: rgba(0, 202, 224, .5); --nav-active-start: rgba(0, 202, 224, .15); --nav-active-end: rgba(0, 168, 204, .1); position: relative; min-width: 0; height: 3.9506rem; padding: 0.6252rem 0.2502rem; display: grid; place-items: center; align-content: center; gap: 0.375rem; border-radius: 0.7501rem; background: transparent; color: rgba(255, 255, 255, .5); font-family: Arial, sans-serif; transition: color .3s cubic-bezier(.4,0,.2,1), background .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1); }
.primary-item > span:not(.nav-glyph) { font-size: 0.6875rem; line-height: 0.825rem; font-weight: 500; letter-spacing: 0; white-space: nowrap; }
.primary-item:hover:not(.active) { color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .05); }
.primary-item.active { color: var(--nav-accent); background: linear-gradient(135deg, var(--nav-active-start), var(--nav-active-end)); }
.primary-item.active > span:not(.nav-glyph) { font-weight: 600; }
.primary-item.active::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 2rem; height: 0.1135rem; background: linear-gradient(90deg, transparent, var(--nav-accent), transparent); transform: translateX(-50%); }
.primary-item[data-view="agents"] { --nav-accent: #a855f7; --nav-glow: rgba(168, 85, 247, .5); --nav-active-start: rgba(168, 85, 247, .15); --nav-active-end: rgba(139, 92, 246, .1); }
.primary-item[data-view="inspiration"] { --nav-accent: #f472b6; --nav-glow: rgba(236, 72, 153, .5); --nav-active-start: rgba(236, 72, 153, .15); --nav-active-end: rgba(219, 39, 119, .1); }
.primary-item[data-view="api"] { --nav-accent: #fbbf24; --nav-glow: rgba(251, 191, 36, .5); --nav-active-start: rgba(251, 191, 36, .15); --nav-active-end: rgba(245, 158, 11, .1); color: var(--nav-accent); }
.primary-item[data-view="api"] > span:not(.nav-glyph) { font-weight: 600; }
.primary-item[data-view="api"]:hover:not(.active) { color: var(--nav-accent); background: rgba(251, 191, 36, .06); }
.nav-glyph { position: relative; width: 1.5001rem; height: 1.5001rem; display: grid; place-items: center; color: currentColor; line-height: 1; overflow: visible; }
.nav-icon { width: 1.5001rem; height: 1.5001rem; display: block; overflow: visible; transition: filter .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1); }
.primary-item.active .nav-icon { filter: drop-shadow(0 0 0.4999rem var(--nav-glow)); }
.nav-api-flame { position: absolute; top: -0.4999rem; right: -0.5623rem; width: 0.9373rem; height: 0.9373rem; filter: drop-shadow(0 0 0.2003rem rgba(251, 146, 60, .85)) drop-shadow(0 0 0.4499rem rgba(249, 115, 22, .4)); transform-origin: 50% 100%; animation: nav-api-flame-sway 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes nav-api-flame-sway {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  25% { transform: scale(1.12, 1.06) rotate(2.5deg); }
  50% { transform: scale(.96, 1.1) rotate(-2deg); }
  75% { transform: scale(1.08, 1.02) rotate(3deg); }
}
.category-tabs { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 2.0766rem; align-items: start; gap: 1px; height: 3.6227rem; padding: 0.7489rem 0.7489rem 0; border-bottom: 1px solid rgba(155, 184, 208, .09); background: rgba(0, 0, 0, .16); }
.category-slider { position: absolute; z-index: 0; top: 0.7262rem; left: 0.7489rem; width: calc((100% - 1.4979rem - 0.2837rem) / 6); height: 2.0993rem; border-radius: 0.3745rem; background: linear-gradient(135deg, #10b6c8, #078fa5); box-shadow: 0 0.227rem 0.7376rem rgba(17, 198, 215, .2); transform: translateX(0); transition: transform .32s cubic-bezier(.22,1,.36,1), width .2s ease; pointer-events: none; }
.category-tab { position: relative; z-index: 1; min-width: 0; height: 2.0766rem; padding: 0.4993rem 0; border-radius: 0.3745rem; background: transparent; color: rgba(255, 255, 255, .5); font-size: 0.7501rem; font-weight: 600; white-space: nowrap; transition: color .3s cubic-bezier(.4,0,.2,1); }
.category-tab.active { color: #fff; background: transparent; box-shadow: none; }
.model-filter { display: grid; grid-template-columns: 5.2766rem 1fr; gap: 0.4993rem; height: 3.3662rem; padding: 0.6252rem 0.7501rem 0.7501rem; }
.vendor-select, .search-box { min-width: 0; height: 1.9909rem; border: 1px solid rgba(177, 198, 218, .22); border-radius: 0.3745rem; background: #171b23; color: #cad1db; font-size: 0.6241rem; }
.vendor-select { text-align: left; padding: 0 0.4539rem; white-space: nowrap; }
.vendor-select span { color: var(--muted); float: right; }
.search-box { display: flex; align-items: center; gap: 0.2837rem; padding: 0 0.5106rem; color: var(--muted-2); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 0.6241rem; }
.vendor-menu { position: fixed; z-index: 120; left: 0.7376rem; top: 17.8723rem; width: 9.9858rem; max-height: 16.5106rem; overflow: auto; padding: 0.3404rem; border: 1px solid rgba(121, 203, 222, .28); border-radius: 0.5106rem; background: #171c25; box-shadow: 0 0.8511rem 1.9858rem #000b; }
.vendor-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.4539rem; padding: 0.4539rem 0.5106rem; border-radius: 0.2837rem; background: transparent; color: #bac6d6; text-align: left; font-size: 0.6241rem; }
.vendor-menu button:hover, .vendor-menu button.active { background: rgba(48, 194, 211, .13); color: #fff; }
.vendor-menu .vendor-count { color: #74899d; font-size: 0.5674rem; }
.model-list { flex: 1; min-height: 0; overflow: auto; padding: 0 0.4539rem 0.3404rem 0.7501rem; scrollbar-width: thin; scrollbar-color: #334252 transparent; }
.model-list::-webkit-scrollbar { width: 0.2837rem; }
.model-list::-webkit-scrollbar-thumb { background: #334252; border-radius: 0.5674rem; }
.model-card { position: relative; display: grid; grid-template-columns: 2.4965rem minmax(0, 1fr); gap: 0.7501rem; height: 4.9759rem; min-height: 4.9759rem; max-height: 4.9759rem; margin: 0.2496rem 0; padding: 0.7501rem 1.0003rem; border: 0; border-radius: 0.7501rem; box-shadow: inset 0 -1px rgba(155, 184, 208, .09); transition: background .3s cubic-bezier(.4,0,.2,1), border-color .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1); }
.model-card:hover, .model-card.selected { border-color: rgba(48, 213, 229, .45); background: linear-gradient(90deg, rgba(28, 123, 143, .26), rgba(15, 27, 35, .25)); }
.model-card:hover { transform: translateX(0.1135rem); }
.model-card.selected::before { content: ""; position: absolute; top: 0.7501rem; bottom: 0.7501rem; left: 0; width: 0.1702rem; border-radius: 0.1702rem; background: var(--cyan); box-shadow: 0 0 0.7376rem var(--cyan); }
.model-icon-wrapper { position: relative; align-self: center; width: 2.4999rem; height: 2.4999rem; display: grid; place-items: center; border: 1px solid rgba(66, 223, 237, .55); border-radius: 0.6252rem; color: var(--cyan); background: #101b24; }
.model-icon { width: 2rem; height: 2rem; display: grid; place-items: center; color: var(--cyan); font-size: 1.3617rem; line-height: 1; }
.model-icon img { width: 2rem; height: 2rem; object-fit: contain; }
.model-info { min-width: 0; }
.model-card h3 { overflow: hidden; margin: 0; font-size: 0.8125rem; line-height: 1.2187rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.model-card p { display: -webkit-box; overflow: hidden; margin: 0.2894rem 0 0; color: #8d9aaa; font-size: 0.6877rem; line-height: 0.9623rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.model-name-row { display: flex; min-width: 0; align-items: center; gap: 0.4539rem; }
.model-name-row h3 { min-width: 0; flex: 1; }
.model-card .model-status { display: contents; }
.model-card .model-rate, .model-card .model-tag { flex: 0 0 auto; padding: 0.1248rem 0.3745rem; border: 1px solid rgba(64, 221, 168, .35); border-radius: 0.2496rem; background: rgba(35, 184, 130, .12); color: #39d9a0; font-size: 0.6241rem; line-height: 0.9373rem; white-space: nowrap; }
.model-card .model-rate.rate-mid { border-color: rgba(255, 198, 61, .48); background: rgba(214, 153, 24, .14); color: #ffd45a; }
.model-card .model-rate.rate-low { border-color: rgba(255, 102, 112, .48); background: rgba(204, 54, 67, .15); color: #ff818b; }
.model-card .model-rate.model-rate-planned { border-color: rgba(87, 190, 211, .34); background: rgba(35, 123, 143, .12); color: #86d9e4; }
.model-card .model-tag-image { border-color: rgba(80, 186, 255, .42); background: rgba(28, 126, 193, .14); color: #66d6ff; }
.model-card .model-tag-video { border-color: rgba(255, 165, 61, .45); background: rgba(187, 113, 22, .14); color: #ffc363; }
.model-card .model-tag-audio { border-color: rgba(218, 129, 255, .46); background: rgba(137, 64, 185, .14); color: #de9aff; }
.model-card .model-tag-chat { border-color: rgba(64, 221, 168, .35); background: rgba(35, 184, 130, .12); color: #39d9a0; }
.model-card .model-new { flex: 0 0 auto; padding: 0.1135rem 0.2837rem; border-radius: 0.227rem; background: #ff655c; color: white; font-size: 0.5106rem; line-height: 0.9362rem; }
.model-indicator { position: absolute; z-index: 1; top: -0.1135rem; right: -0.1135rem; width: 0.4539rem; height: 0.4539rem; border: 1px solid #101820; border-radius: 50%; background: #fff; box-shadow: 0 0 0.4539rem rgba(255, 255, 255, .9); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s; }
.model-card.selected .model-indicator { opacity: 1; transform: scale(1); }
.model-card.selected .model-icon-wrapper { background: rgba(22, 145, 164, .18); box-shadow: 0 0 0.7943rem rgba(31, 211, 226, .22); }
.model-card .pin-button { position: absolute; z-index: 3; top: -1px; left: -1px; width: 1.2482rem; height: 1.2482rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: #111827; color: #9aaabc; opacity: .85; transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .15s; }
.model-card .pin-glyph { display: grid; place-items: center; width: 0.7943rem; height: 0.7943rem; }
.model-card .pin-glyph svg { width: 0.7376rem; height: 0.7376rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-card .pin-button:hover, .model-card .pin-button:focus-visible { color: var(--yellow); border-color: rgba(255, 191, 52, .72); background: rgba(255, 191, 52, .16); box-shadow: 0 0 0.6809rem rgba(255, 191, 52, .3); opacity: 1; }
.model-card .pin-button:active { transform: scale(.97); }
.model-card .pin-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.model-hover-card { position: fixed; z-index: 120; width: min(19.8582rem, calc(100vw - 1.3617rem)); padding: 0.7376rem 0.7943rem; border: 1px solid rgba(91, 164, 196, .35); border-radius: 0.5106rem; background: rgba(18, 27, 37, .98); box-shadow: 0 1.0213rem 2.4965rem rgba(0, 0, 0, .45); pointer-events: none; }
.model-hover-card strong { display: block; color: #f1f7fb; font-size: 0.7376rem; }
.model-hover-card p { margin: 0.3972rem 0 0; color: #aab9c7; font-size: 0.6241rem; line-height: 1.55; }
.empty-models { padding: 2.2695rem 0.5674rem; color: var(--muted); text-align: center; font-size: 0.6809rem; }
.my-model-toolbar { position: sticky; top: 0; z-index: 5; padding: 0.5106rem 0 0.227rem; background: linear-gradient(#11141b 80%, transparent); }
.add-model-button { width: 100%; margin: 0; padding: 0.5674rem; border: 1px dashed rgba(66, 223, 237, .5); border-radius: 0.4539rem; background: rgba(22, 182, 201, .08); color: var(--cyan); }
.account-strip { display: grid; grid-template-columns: minmax(0, 1fr) 4.0851rem; gap: 0.3972rem; align-items: center; padding: 0.5674rem 0.6809rem 0.9078rem; border-top: 1px solid rgba(155, 184, 208, .11); }
.user-chip { display: grid; grid-template-columns: 1.9858rem minmax(0, 1fr) 0.7943rem; align-items: center; gap: 0.3972rem; min-width: 0; padding: 0.4539rem 0.2837rem; border: 1px solid rgba(155, 184, 208, .15); border-radius: 0.6241rem; background: #171c24; text-align: left; }
.avatar { display: grid; place-items: center; width: 1.8156rem; height: 1.8156rem; border-radius: 50%; background: linear-gradient(145deg, #dfb18b, #7c493b); color: #fff3e7; font-weight: 700; }
.user-chip strong, .user-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: 0.6241rem; }
.user-chip small { margin-top: 0.1702rem; color: var(--yellow); font-size: 0.5674rem; }
.chevron { color: #78899b; font-size: 0.9645rem; }
.recharge-button { height: 1.9858rem; border: 1px solid rgba(255, 190, 55, .62); border-radius: 0.4539rem; background: rgba(255, 190, 55, .14); color: var(--yellow); font-size: 0.5674rem; }

.workspace { grid-column: 2; position: relative; min-width: 0; min-height: 100vh; padding: 0 1.4752rem 1.305rem; }
.workspace-topbar { height: 4.6525rem; display: flex; align-items: center; gap: 0.5674rem; }
.mobile-menu { display: none; }
.new-chat { height: 2.156rem; padding: 0 1.0213rem; border-radius: 1.1348rem; background: var(--yellow); color: #1d1a12; box-shadow: 0 0.4539rem 1.1348rem rgba(255, 190, 52, .2); font-weight: 700; font-size: 0.7376rem; }
.new-chat span { margin-right: 0.2837rem; font-size: 1.1348rem; vertical-align: -1px; }
.guide-button { width: 2.156rem; height: 2.156rem; border: 1px solid rgba(255, 189, 54, .48); border-radius: 50%; background: rgba(255, 189, 54, .11); color: var(--yellow); font-size: 1.1348rem; }
.current-model { position: absolute; top: 1.305rem; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.3404rem; padding: 0.5106rem 0.9645rem; border: 1px solid rgba(129, 151, 174, .2); border-radius: 1.1348rem; background: #161b24; color: #c7d1dd; font-size: 0.6241rem; }
.current-model-icon { display: inline-grid; min-width: 0.7943rem; min-height: 0.7943rem; place-items: center; color: var(--cyan); }
.current-model-icon img { width: 0.9078rem; height: 0.9078rem; object-fit: contain; }
.current-model:first-letter { color: var(--cyan); }
.top-actions { display: flex; gap: 0.6241rem; margin-left: auto; }
.round-action { position: relative; width: 2.7801rem; height: 2.7801rem; border: 1px solid rgba(52, 212, 225, .3); border-radius: 50%; background: #172129; color: var(--cyan); font-size: 1.078rem; box-shadow: inset 0 0 0.7943rem rgba(49, 194, 209, .12); }
.video-action { color: #fd719b; border-color: rgba(251, 111, 152, .4); }
.round-action i { position: absolute; top: -0.2837rem; right: -0.1702rem; padding: 0.1135rem 0.227rem; border-radius: 0.3404rem; background: #ff704f; color: white; font-size: 0.3972rem; font-style: normal; }
.app-action { color: #d7bcff; }
.history-tab { position: absolute; z-index: 8; top: 17.0213rem; left: 0; width: 2.5532rem; height: 6.1277rem; display: grid; place-items: center; border: 1px solid rgba(156, 178, 201, .2); border-left: 0; border-radius: 0 0.6809rem 0.6809rem 0; background: #171d27; color: #b9c4d1; writing-mode: vertical-rl; font-size: 0.6241rem; }
.history-tab span { margin-bottom: 0.2837rem; color: var(--yellow); font-size: 1.1348rem; }
.hero { position: relative; min-height: 23.5461rem; display: grid; place-items: center; padding: 5.3901rem 9% 3.4043rem; }
.sparkles { position: absolute; top: 1.7021rem; left: 50%; transform: translateX(-50%); display: flex; color: #36bfff; filter: drop-shadow(0 0 0.7943rem #168dff); font-size: 3.1773rem; letter-spacing: -1.1348rem; }
.sparkles span:last-child { transform: translate(0.6809rem, 0.7943rem) scale(.55); }
.model-hero-icon { position: absolute; top: 1.7021rem; left: 50%; display: grid; width: 5.2199rem; height: 5.2199rem; place-items: center; transform: translateX(-50%); border: 0.1135rem solid rgba(34, 215, 230, .72); border-radius: 1.5887rem; background: radial-gradient(circle at 45% 35%, rgba(42, 230, 221, .32), rgba(16, 33, 47, .92) 66%); color: #5feef2; font-size: 1.9858rem; font-weight: 700; box-shadow: 0 0 1.5887rem rgba(28, 206, 227, .4), inset 0 0 1.0213rem rgba(45, 219, 230, .2); }
.model-hero-icon img { width: 4.0851rem; height: 4.0851rem; object-fit: contain; }
.hero-notice, .model-guide { max-width: 33.1915rem; padding: 0.8511rem 1.0213rem; border: 1px solid rgba(54, 212, 228, .38); border-radius: 0.5106rem; background: rgba(26, 39, 51, .67); color: #e2e9ef; font-size: 0.6809rem; line-height: 1.7; box-shadow: 0 0.6809rem 1.7021rem rgba(0, 0, 0, .15); transform: translateY(-0.8511rem); }
.model-guide { margin: 0 auto 1.1348rem; max-width: 33.1915rem; }
.chat-workspace { position: relative; width: calc(100% - 5.1064rem); max-width: none; margin: 0 auto; padding-bottom: 0.3404rem; }
.api-model-link { display: block; margin: 0 auto 0.6809rem; background: transparent; color: #8795a8; font-size: 0.6241rem; }
.api-model-link span { color: #bdc7d4; }
.composer { position: relative; min-height: 9.9858rem; padding: 1.0213rem 0.7376rem 0.6809rem; border: 1px solid rgba(135, 159, 186, .2); border-radius: 0.7943rem; background: #171a22; box-shadow: 0 0.5674rem 1.9858rem rgba(0, 0, 0, .14); }
.billing-label { position: absolute; z-index: 2; top: -0.6241rem; right: 0.8511rem; display: inline-flex; align-items: center; gap: 0.227rem; min-height: 1.1348rem; padding: 0.1135rem 0.5106rem; border: 1px solid rgba(133, 151, 174, .18); border-radius: 0.3972rem; background: #171a22; color: #a6b6c8; font-size: 0.5674rem; line-height: 1.3; white-space: nowrap; }
.billing-label span { color: #48c8d8; font-size: 0.6809rem; }
.billing-label:hover, .billing-label:focus-visible, .billing-label[aria-expanded="true"] { border-color: rgba(73, 207, 225, .55); color: #e7f6fb; outline: none; box-shadow: 0 0 0.6241rem rgba(34, 197, 219, .12); }
.billing-popover { position: absolute; z-index: 45; right: 0; bottom: calc(100% + 0.8511rem); width: min(18.6099rem, calc(100vw - 1.9291rem)); padding: 0.8511rem; border: 1px solid rgba(70, 190, 214, .42); border-radius: 0.4539rem; background: #141b24; color: #dce7ef; box-shadow: 0 0.7943rem 1.9858rem rgba(0, 0, 0, .5), 0 0 0.8511rem rgba(22, 179, 209, .1); font-size: 0.6809rem; }
.billing-popover[hidden] { display: none; }
.billing-popover-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.6809rem; min-width: 0; }
.billing-popover-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7376rem; }
.billing-popover-heading span { flex: 0 0 auto; padding: 0.1135rem 0.3404rem; border: 1px solid rgba(239, 171, 78, .4); border-radius: 0.227rem; color: #f8c678; font-size: 0.5674rem; }
.billing-popover-heading span.is-configured { border-color: rgba(60, 197, 220, .4); color: #66d8e8; }
.billing-popover-unit { margin: 0.5674rem 0 0.4539rem; color: #71ddea; font-weight: 600; }
.billing-popover-rows { display: grid; gap: 0.3404rem; }
.billing-row { display: flex; justify-content: space-between; gap: 0.5674rem; padding: 0.3972rem 0.5106rem; border: 1px solid rgba(116, 153, 176, .16); border-radius: 0.2837rem; background: #1b2530; }
.billing-row span { color: #a9bac9; }
.billing-row strong { color: #e9f9fc; font-weight: 600; white-space: nowrap; }
.billing-empty { padding: 0.4539rem 0; color: #b6c2ce; }
.billing-popover p { margin: 0.6241rem 0 0; color: #aab9c7; line-height: 1.55; }
.composer-main { display: flex; min-height: 5.5603rem; gap: 0.7376rem; }
.attachment { width: 3.234rem; height: 4.0851rem; flex: 0 0 3.234rem; border: 1px dashed rgba(140, 158, 179, .32); border-radius: 0.3404rem; background: rgba(31, 36, 47, .75); color: #8c9aaa; font-size: 1.4184rem; }
.attachment small { display: block; margin-top: 0.3404rem; font-size: 0.5106rem; line-height: 1.35; }
.composer :is(textarea,.refmedia-rich-input) { flex: 1; min-width: 0; min-height: 5.3901rem; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 0.6809rem; line-height: 1.5; }
.composer :is(textarea,.refmedia-rich-input)::placeholder { color: #7b8898; }
.asset-text { align-self: start; width: 1.4184rem; height: 1.4184rem; border-radius: 0.3972rem; background: #232a33; color: #9aa7b8; }
.attachment-preview { display: flex; flex: 0 1 14.7518rem; align-content: flex-start; flex-wrap: wrap; gap: 0.3404rem; max-height: 4.766rem; overflow-y: auto; }
.attachment-chip { display: grid; grid-template-columns: 1.2482rem minmax(0, 1fr) 1.1348rem; gap: 0.2837rem; align-items: center; min-width: 7.4894rem; max-width: 12.4823rem; padding: 0.3404rem 0.3972rem; border: 1px solid rgba(56, 213, 231, .28); border-radius: 0.3972rem; background: rgba(20, 50, 59, .48); color: #d9edf2; font-size: 0.5106rem; }
.attachment-chip-icon { display: grid; width: 1.1348rem; height: 1.1348rem; place-items: center; border-radius: 0.2837rem; background: rgba(56, 213, 231, .14); color: var(--cyan); font-size: 0.6241rem; }
.attachment-chip-copy { min-width: 0; }
.attachment-chip-copy strong, .attachment-chip-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip-copy small { margin-top: 0.1135rem; color: #8ea5b0; font-size: 0.4539rem; }
.attachment-chip-remove { width: 1.0213rem; height: 1.0213rem; border-radius: 50%; background: transparent; color: #95a8b8; font-size: 0.7943rem; line-height: 1; }
.attachment-chip-remove:hover { color: #ff9d9d; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5674rem; }
.composer-tools { display: flex; flex-wrap: wrap; gap: 0.4539rem; }
.tool-chip { height: 1.7589rem; padding: 0 0.6241rem; border: 1px solid rgba(124, 117, 204, .48); border-radius: 0.3404rem; background: #202430; color: #bdb7f0; font-size: 0.5674rem; }
.tool-chip.active { color: #e7d8ff; border-color: #6f62b6; }
.tool-chip.best { color: #dbbeff; }
.send-button { width: 1.7589rem; height: 1.7589rem; border-radius: 50%; background: #1ac7d7; color: #092229; font-size: 1.1915rem; font-weight: 700; }
.composer-rail { position: absolute; top: 1.8723rem; right: -2.2695rem; display: grid; gap: 0.4539rem; }
.composer-rail button { width: 1.7021rem; height: 1.7021rem; border: 1px solid rgba(127, 150, 174, .2); border-radius: 50%; background: #171d25; color: #9caab8; font-size: 0.7943rem; }
.composer-rail button:last-child { color: var(--cyan); }
.quick-actions { position: absolute; right: 1.9291rem; bottom: 1.7021rem; display: flex; justify-content: flex-end; gap: 1.2482rem; max-width: 51.0638rem; margin: 0; }
.quick-actions button { background: transparent; color: #8291a4; font-size: 0.5674rem; }
.quick-actions button:hover { color: var(--cyan); }

.agent-view, .inspiration-view, .api-view { max-width: 1080px; margin: 1.1348rem auto 4.539rem; }
.content-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.1348rem; margin: 1.4184rem 0; }
.eyebrow { color: var(--cyan); font-size: 0.5674rem; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
.content-heading h1 { margin: 0.3404rem 0 0; font-size: 1.5319rem; }
.primary-cta, .outline-cta { min-height: 2.0426rem; padding: 0 0.7943rem; border-radius: 0.4539rem; font-size: 0.6241rem; }
.primary-cta { background: var(--yellow); color: #1d1a12; font-weight: 700; }
.outline-cta { border: 1px solid var(--line-strong); background: transparent; color: var(--cyan); }
.agent-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0.9078rem; }
.agent-projects, .engine-card { min-height: 13.9007rem; padding: 1.0213rem; border: 1px solid var(--line); border-radius: 0.5674rem; background: #12171f; }
.project-card { padding: 0.7376rem; border: 1px solid rgba(255, 191, 52, .24); border-radius: 0.4539rem; background: #171d24; }
.project-card strong, .project-card small { display: block; }.project-card small { margin: 0.3404rem 0 0.7943rem; color: var(--muted); font-size: 0.5674rem; }.project-card button { margin-right: 0.4539rem; padding: 0.2837rem 0.5106rem; border: 1px solid var(--line); border-radius: 0.2837rem; background: transparent; color: var(--muted); font-size: 0.5674rem; }
.project-empty { padding: 2.5532rem 0.5674rem; color: var(--muted); text-align: center; font-size: 0.6809rem; }
.engine-card h2 { margin: 0.6809rem 0; font-size: 1.3617rem; }.engine-card p { color: var(--muted); font-size: 0.6809rem; line-height: 1.7; }.engine-card .primary-cta { margin-left: 0.4539rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6809rem; margin-top: 0.7943rem; }.feature-grid article { display: grid; gap: 0.4539rem; padding: 0.8511rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #12171f; }.feature-grid span { color: var(--muted); font-size: 0.6241rem; }
.segmented { display: flex; gap: 0.227rem; padding: 0.227rem; border: 1px solid var(--line); border-radius: 0.5106rem; background: #151a22; }.segmented button { padding: 0.4539rem 0.5674rem; border-radius: 0.3404rem; background: transparent; color: var(--muted); font-size: 0.5674rem; }.segmented button.active { background: #263644; color: #fff; }
.inspiration-layout { display: grid; grid-template-columns: 11.9149rem 1fr; gap: 1.0213rem; }.inspiration-filter { padding: 0.8511rem; border: 1px solid var(--line); border-radius: 0.5106rem; background: #12171f; }.inspiration-filter label { display: block; margin-bottom: 0.5106rem; color: #dce6ef; font-size: 0.6809rem; }.inspiration-filter input, .api-doc-grid aside input { width: 100%; height: 1.8156rem; padding: 0 0.5106rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #191f28; color: var(--text); font-size: 0.5674rem; }.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.3404rem; margin: 0.7943rem 0; }.tag-cloud button { padding: 0.2837rem 0.3972rem; border: 1px solid var(--line); border-radius: 0.2837rem; background: #171c25; color: var(--muted); font-size: 0.5106rem; }.inspiration-filter .primary-cta { width: 100%; }.masonry { columns: 3 9.078rem; column-gap: 0.6809rem; }.inspiration-card { break-inside: avoid; margin-bottom: 0.6809rem; padding: 0.6809rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #151a22; }.inspiration-card .art { height: 6.5248rem; border-radius: 0.3404rem; background: linear-gradient(145deg, #375e79, #91566e 48%, #e1b274); }.inspiration-card:nth-child(2n) .art { background: linear-gradient(145deg, #5d3f77, #2d8c93); }.inspiration-card b, .inspiration-card span { display: block; margin-top: 0.4539rem; }.inspiration-card span { color: var(--muted); font-size: 0.5674rem; }
.api-doc-shell { min-height: 38.5816rem; padding: 1.2482rem 0; }.api-doc-head { display: flex; justify-content: space-between; align-items: end; }.api-doc-head h1 { margin: 0.3972rem 0 1.1348rem; }.api-doc-grid { display: grid; grid-template-columns: 14.4681rem 1fr; min-height: 33.4752rem; border: 1px solid var(--line); border-radius: 0.5674rem; overflow: hidden; background: #10141b; }.api-doc-grid aside { padding: 0.8511rem; border-right: 1px solid var(--line); }.api-pills { display: flex; flex-wrap: wrap; gap: 0.3404rem; margin: 0.8511rem 0 1.4184rem; }.api-pills button { padding: 0.3404rem 0.4539rem; border: 1px solid var(--line); border-radius: 0.9078rem; background: transparent; color: var(--muted); font-size: 0.5106rem; }.api-pills .active { border-color: var(--cyan); color: var(--cyan); }.api-models { display: grid; gap: 0.4539rem; color: var(--muted); font-size: 0.5674rem; }.api-models button { padding: 0.5674rem; border-radius: 0.3404rem; background: #171d25; color: #d3dde6; text-align: left; font-size: 0.5674rem; }.api-doc-grid article { padding: 1.4752rem 1.7021rem; overflow: auto; }.breadcrumbs { margin-bottom: 1.3617rem; color: var(--muted); font-size: 0.5674rem; }.api-doc-grid h2 { font-size: 1.5887rem; }.copy-button { margin-left: 0.6809rem; padding: 0.3972rem 0.5674rem; border: 1px solid var(--line-strong); border-radius: 0.3404rem; background: transparent; color: var(--cyan); font-size: 0.5674rem; }.api-callout { margin: 1.0213rem 0 1.5887rem; padding: 0.8511rem; border: 1px solid rgba(53, 214, 228, .3); border-radius: 0.4539rem; color: #d2e5ec; font-size: 0.6809rem; line-height: 1.6; }.api-doc-grid h3 { margin: 1.2482rem 0 0.5674rem; font-size: 0.7943rem; }.endpoint, .api-doc-grid pre { padding: 0.7376rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171d25; color: #a9eaf0; font-size: 0.6241rem; overflow: auto; }.endpoint b { margin-right: 0.6809rem; color: var(--yellow); }

.drawer-backdrop, .modal-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(0.1135rem); }.history-drawer { position: fixed; z-index: 45; inset: 0 auto 0 var(--sidebar); width: 17.0213rem; padding: 1.1915rem; border-right: 1px solid var(--line); background: #11161e; box-shadow: 0.8511rem 0 1.9858rem #0007; }.drawer-head, .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8511rem; }.drawer-head h2, .modal h2 { margin: 0; font-size: 1.0213rem; }.close-button { width: 1.7021rem; height: 1.7021rem; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.305rem; }.drawer-new { width: 100%; margin: 1.2482rem 0 0.6241rem; }.drawer-search { width: 100%; height: 1.9858rem; padding: 0 0.6241rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171d25; color: var(--text); font-size: 0.6241rem; }.empty-state { display: grid; place-items: center; min-height: 15.8865rem; color: var(--muted); font-size: 0.6809rem; }.modal { position: fixed; z-index: 50; top: 50%; left: 50%; width: min(22.1277rem, calc(100vw - 1.7021rem)); max-height: calc(100vh - 1.9858rem); overflow: auto; transform: translate(-50%, -50%); padding: 1.4184rem; border: 1px solid rgba(120, 179, 204, .28); border-radius: 0.7376rem; background: #141a22; box-shadow: 0 1.4184rem 5.1064rem rgba(0, 0, 0, .55); }.modal > .close-button { position: absolute; top: 0.7376rem; right: 0.7376rem; }.modal p { color: var(--muted); font-size: 0.6809rem; line-height: 1.7; }.modal label { display: grid; gap: 0.3972rem; margin: 0.7943rem 0; color: #bac7d5; font-size: 0.6241rem; }.modal input { height: 2.0993rem; padding: 0 0.5674rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #1b222d; color: var(--text); }.modal > .primary-cta { width: 100%; margin-top: 0.4539rem; }.modal small { display: block; margin-top: 0.4539rem; color: var(--orange); }.modal.wide { width: min(40.8511rem, calc(100vw - 1.7021rem)); }.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.9858rem; margin-top: 1.4184rem; }.settings-grid h3 { margin: 0 0 0.6241rem; font-size: 0.7376rem; }.switch-row, .stepper-row { min-height: 2.2695rem; display: flex !important; grid-template-columns: 1fr auto !important; align-items: center; justify-content: space-between; margin: 0 !important; border-bottom: 1px solid var(--line); }.switch-row input { display: none; }.switch-row span { position: relative; width: 1.9291rem; height: 1.078rem; border-radius: 1.1348rem; background: #28323e; }.switch-row span::after { content: ""; position: absolute; top: 0.1702rem; left: 0.1702rem; width: 0.7376rem; height: 0.7376rem; border-radius: 50%; background: #7b8998; transition: transform .15s; }.switch-row input:checked + span { background: var(--cyan-2); }.switch-row input:checked + span::after { transform: translateX(0.8511rem); background: #fff; }.stepper-row button { width: 1.305rem; height: 1.305rem; border-radius: 0.2837rem; background: #242d39; color: var(--cyan); }.stepper-row b { min-width: 2.4965rem; text-align: center; font-size: 0.6241rem; }.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3972rem; margin-bottom: 1.1348rem; }.option-grid button { padding: 0.5674rem 0.2837rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #1b222c; color: var(--muted); font-size: 0.5674rem; }.skills-strip { margin: 1.1348rem 0 0.6809rem; padding: 0.6241rem; border: 1px solid rgba(56, 213, 231, .23); border-radius: 0.3972rem; color: #a3cbd3; font-size: 0.6241rem; }.skill-tabs { margin: 0.7376rem 0; }.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5674rem; }.skill-grid article { display: grid; gap: 0.4539rem; padding: 0.7376rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #181e27; }.skill-grid span { color: var(--muted); font-size: 0.5674rem; line-height: 1.5; }.skill-grid button { justify-self: start; padding: 0.2837rem 0.3972rem; border: 1px solid var(--line-strong); border-radius: 0.2837rem; background: transparent; color: var(--cyan); font-size: 0.5106rem; }.model-picker #available-models { display: grid; gap: 0.4539rem; margin-top: 0.7943rem; }.available-model { display: grid; grid-template-columns: 1fr auto; gap: 0.4539rem; align-items: center; padding: 0.5674rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171e27; }.available-model small { display: block; margin-top: 0.227rem; color: var(--muted); font-size: 0.5106rem; }.available-model button { padding: 0.3404rem 0.5106rem; border-radius: 0.2837rem; background: var(--cyan); color: #07191d; font-size: 0.5674rem; }.more-panel { position: fixed; z-index: 42; top: 3.9716rem; right: 1.1348rem; width: min(22.695rem, calc(100vw - 1.7021rem)); max-height: calc(100vh - 5.1064rem); overflow: auto; padding: 1.1348rem; border: 1px solid var(--line); border-radius: 0.6241rem; background: #141a22; box-shadow: 0 1.4184rem 3.9716rem #0008; }.more-panel h3 { margin: 1.0213rem 0 0.4539rem; color: var(--muted); font-size: 0.5674rem; letter-spacing: .08em; }.more-panel > button { display: block; width: 100%; padding: 0.5674rem 0.227rem; border-bottom: 1px solid var(--line); background: transparent; color: #d2dde8; text-align: left; font-size: 0.6241rem; }.more-panel em { float: right; padding: 1px 0.2837rem; border-radius: 0.4539rem; background: #ef6f70; color: white; font-size: 0.5106rem; font-style: normal; }
.history-list { display: grid; gap: 0.3972rem; margin-top: 0.6809rem; max-height: calc(100vh - 10.4965rem); overflow-y: auto; }
.history-item { display: grid; gap: 0.2837rem; padding: 0.6241rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #171e27; color: var(--text); text-align: left; }
.history-item.current { border-color: var(--cyan); background: rgba(22, 190, 213, .1); }
.history-item strong { font-size: 0.6241rem; }
.history-item small { color: var(--muted); font-size: 0.5106rem; }
.chat-messages { display: grid; gap: 0.5674rem; width: min(43.1206rem, 92%); margin: 0 auto 0.8511rem; max-height: 38vh; overflow-y: auto; }
.chat-message { max-width: 80%; padding: 0.5674rem 0.7376rem; border: 1px solid var(--line); border-radius: 0.5674rem; color: #dfeaf3; font-size: 0.6809rem; line-height: 1.6; white-space: pre-wrap; }
.chat-message.user { justify-self: end; border-color: rgba(34, 211, 238, .35); background: rgba(11, 63, 73, .45); }
.chat-message.system { justify-self: start; color: var(--muted); background: #151b24; }

/* Match the reference workbench: collapse the rail to one pixel and keep a
   fixed expand control visible at the upper-left edge. */
body.sidebar-collapsed .sidebar { width: 1px; transform: none; overflow: visible; }
body.sidebar-collapsed .sidebar > :not(.brand-row) { visibility: hidden; pointer-events: none; }
body.sidebar-collapsed .brand-row { width: 1px; height: 5.7305rem; padding: 0; overflow: visible; border-bottom-color: transparent; }
body.sidebar-collapsed .brand-row .brand { visibility: hidden; pointer-events: none; }
body.sidebar-collapsed .sidebar-toggle { position: fixed; z-index: 180; top: 1.7021rem; left: 0.8511rem; transform: none; visibility: visible; pointer-events: auto; }
.app-shell.sidebar-collapsed { grid-template-columns: 1px minmax(0, 1fr); }
.app-shell.sidebar-collapsed .workspace { grid-column: 2; }
.app-shell.sidebar-collapsed .history-tab { left: 0.7943rem; }
body.mine-mode .chat-workspace { position: absolute; left: 3.9716rem; bottom: 1.1348rem; width: 39.1489rem; margin: 0; }
[hidden] { display: none !important; }

/* Media workspaces follow the reference site's task-first composition. */
.task-list-button { border: 0; background: var(--yellow); color: #1d1a12; box-shadow: 0 0.4539rem 1.1348rem rgba(255, 190, 52, .2); }
.media-result-panel { width: min(52.1986rem, calc(100% - 5.1064rem)); margin: 0.5674rem auto 0.9078rem; padding: 0.8511rem 0.9645rem; border: 1px solid rgba(91, 164, 196, .22); border-radius: 0.6241rem; background: rgba(18, 27, 37, .86); }
.media-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.9078rem; margin-bottom: 0.6809rem; }
.media-result-heading h2 { margin: 0.2837rem 0 0; font-size: 0.9078rem; }
.media-result-status { padding: 0.2837rem 0.5106rem; border: 1px solid rgba(255, 190, 52, .35); border-radius: 999px; color: var(--yellow); font-size: 0.5674rem; }
.media-result-card { display: grid; grid-template-columns: 6.5816rem minmax(0, 1fr) auto; gap: 0.7943rem; align-items: center; min-height: 5.9007rem; padding: 0.6241rem; border: 1px solid rgba(125, 155, 183, .18); border-radius: 0.4539rem; background: #11161e; }
.media-result-card.has-task { border-color: rgba(56, 213, 231, .36); }
.media-result-preview { display: grid; min-height: 4.539rem; place-items: center; border-radius: 0.3404rem; background: radial-gradient(circle at 25% 20%, rgba(39, 162, 228, .75), transparent 36%), linear-gradient(145deg, #192e43, #24233e 48%, #172126); color: #73ecf2; font-size: 1.5887rem; box-shadow: inset 0 0 1.7021rem rgba(0, 0, 0, .24); }
.media-result-copy { min-width: 0; }
.media-result-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.7376rem; }
.media-result-copy p { margin: 0.3972rem 0 0; color: var(--muted); font-size: 0.6241rem; line-height: 1.55; }
.media-result-actions { display: flex; align-items: center; gap: 0.3404rem; }
.media-result-actions button { padding: 0.3972rem 0.5106rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #1c232d; color: #bdcad6; font-size: 0.5674rem; }
.media-result-actions button:hover { border-color: var(--cyan); color: var(--cyan); }
.media-result-actions button:last-child { color: #ff9e9e; }
.media-hero-model { display: grid; justify-items: center; gap: 1.0213rem; width: min(33.4752rem, 100%); margin: 0.3404rem auto 0; text-align: center; }
.media-hero-icon { display: grid; width: 5.4468rem; height: 5.4468rem; place-items: center; border-radius: 1.2482rem; background: radial-gradient(circle at 45% 35%, #ffbf3e, #f43f5e 58%, #7139bd); color: #fff; font-size: 1.8723rem; font-weight: 800; box-shadow: 0 0 1.9291rem rgba(245, 96, 116, .3); }
.media-hero-copy { width: min(33.4752rem, 100%); padding: 0.9645rem 1.1348rem; border: 1px solid rgba(56, 213, 231, .42); border-radius: 0.4539rem; background: rgba(27, 32, 41, .86); }
.media-hero-copy h2 { margin: 0 0 0.4539rem; font-size: 0.8511rem; }
.media-hero-copy p { margin: 0; color: #e1e8ef; font-size: 0.6809rem; line-height: 1.55; }
.media-composer-options { display: grid; gap: 0.5674rem; margin: 0 -1px 0.4539rem; padding-top: 0.4539rem; border-top: 1px solid rgba(132, 157, 182, .11); }
.media-reference-slots { display: flex; flex-wrap: wrap; gap: 0.4539rem; }
.reference-slot-wrap { position: relative; flex: 0 0 auto; width: 3.9716rem; height: 4.6525rem; }
.reference-slot { display: grid; width: 3.9716rem; height: 3.0638rem; place-items: center; gap: 0.1135rem; padding: 0.227rem; border: 1px dashed rgba(144, 169, 192, .35); border-radius: 0.3972rem; background: rgba(28, 36, 48, .7); color: #8493a5; text-align: center; }
.reference-slot-mark { display: grid; min-width: 1.305rem; min-height: 1.1348rem; place-items: center; color: var(--cyan); font-size: 0.6241rem; line-height: 1; }
.reference-slot-floating-preview { position: absolute; z-index: 2; top: 0.227rem; left: 0; display: block; width: 3.9716rem; height: 4.4255rem; overflow: hidden; border: 0.1135rem solid rgba(87, 218, 235, .65); border-radius: 0.3404rem; background: #121b25; box-shadow: 0 0.5106rem 1.0213rem #0009, 0 0 0.7943rem rgba(25, 192, 213, .2); transform: rotate(-8deg); cursor: pointer; transition: transform .25s ease; }
.reference-slot-wrap:nth-child(even) .reference-slot-floating-preview { transform: rotate(7deg); }
.reference-slot-wrap:hover .reference-slot-floating-preview { transform: rotate(0); }
.reference-slot-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.reference-slot-copy { display: grid; min-width: 0; max-width: 100%; gap: 1px; }
.reference-slot-name, .reference-slot-file { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.5106rem; }
.reference-slot-file { color: #a8b7c5; font-size: 0.4539rem; }
.reference-slot:hover, .reference-slot.filled { border-color: rgba(56, 213, 231, .7); background: rgba(25, 112, 128, .2); color: #e9fbff; }
.reference-slot.upload-error { border-color: rgba(255, 104, 116, .7); color: #ff9aa3; }
.reference-slot-clear { position: absolute; z-index: 3; top: 0; right: 0; display: grid; width: 0.9078rem; height: 0.9078rem; place-items: center; padding: 0; border: 1px solid rgba(164, 182, 201, .38); border-radius: 50%; background: #151c25; color: #c9d3dd; font-size: 0.6809rem; line-height: 1; }
.reference-slot-clear:hover { border-color: #ff7d86; color: #ff9aa3; }
.media-control-row, .media-extra-actions { display: flex; flex-wrap: wrap; gap: 0.3972rem; }
.media-control-shell { position: relative; display: inline-flex; }
.media-control, .media-extra-action { min-height: 1.6454rem; padding: 0.2837rem 0.5674rem; border: 1px solid rgba(128, 150, 177, .23); border-radius: 0.3404rem; background: #1b202a; color: #9caabd; font-size: 0.5674rem; }
.media-control:hover, .media-control.active, .media-extra-action:hover, .media-extra-action.active { border-color: rgba(56, 213, 231, .68); background: rgba(25, 139, 153, .16); color: #dffcff; }
.media-selector-popup { position: absolute; z-index: 160; left: 0; bottom: calc(100% + 0.4539rem); display: grid; width: min(17.0213rem, calc(100vw - 1.8156rem)); max-height: min(68vh, 29.5035rem); overflow: auto; gap: 0.4539rem; padding: 0.5674rem; border: 1px solid rgba(56, 213, 231, .36); border-radius: 0.5106rem; background: rgba(18, 25, 35, .98); box-shadow: 0 1.0213rem 2.383rem rgba(0, 0, 0, .48), 0 0 1.3617rem rgba(21, 191, 210, .12); }
.media-control-shell.align-right .media-selector-popup { right: 0; left: auto; }
.media-selector-popup.is-portaled { position: fixed; right: auto; bottom: auto; }
.composer-island { position: relative; transform-origin: center bottom; transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .28s, visibility .35s; }
.composer-island.is-collapsed { transform: scale(.08); opacity: 0; visibility: hidden; pointer-events: none; }
.composer-expand { position: absolute; z-index: 15; bottom: 0.227rem; left: 50%; display: grid; width: 2.7234rem; height: 2.7234rem; place-items: center; border: 1px solid #1e1f25; border-radius: 50%; background: rgba(27, 28, 33, .95); color: #14b8ce; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%) scale(.2); transition: transform .35s cubic-bezier(.34, 1.3, .64, 1), opacity .25s, visibility .35s; }
.composer-expand.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) scale(1); }
.composer-expand:hover { box-shadow: 0 0 1.1348rem rgba(0, 200, 220, .18); }
.composer-expand svg { width: 1.1348rem; height: 1.1348rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.work-history { position: absolute; z-index: 3; inset: 4.6525rem 0 0; overflow: auto; overscroll-behavior: contain; padding: 1.1348rem 1.4752rem var(--island-clearance, 15.8865rem); }
.work-history .chat-messages { max-height: none; overflow: visible; }
body.media-mode .work-history .media-result-panel { width: min(1234px, calc(100% - 9.078rem)); margin: 0 auto 0.6809rem; }
body.landing-mode .work-history { display: none; }
@media (max-width: 840px) { .work-history { inset-block-start: 3.8582rem; padding: 1.1348rem 0.4539rem var(--island-clearance, 16.6809rem); } body.media-mode .work-history .media-result-panel { width: 100%; margin-inline: 0; } }
.media-selector-title { color: #eefcff; font-size: 0.6809rem; line-height: 1.4; }
.media-selector-description { max-height: 7.3759rem; overflow: auto; margin: 0; color: #93a6b8; font-size: 0.5674rem; line-height: 1.5; }
.media-selector-options { display: grid; gap: 0.1702rem; }
.media-selector-option { display: grid; grid-template-columns: 1.0213rem minmax(0, 1fr) 0.9078rem; align-items: center; gap: 0.3972rem; min-height: 1.7021rem; padding: 0.3404rem 0.3972rem; border-radius: 0.2837rem; background: transparent; color: #bac8d5; text-align: left; font-size: 0.5674rem; }
.media-selector-option:hover, .media-selector-option.selected { background: rgba(22, 173, 190, .18); color: #f3feff; }
.media-option-icon { color: var(--cyan); font-size: 0.7376rem; }
.media-option-check { color: var(--cyan); opacity: 0; font-size: 0.7943rem; }
.media-selector-option.selected .media-option-check { opacity: 1; }
.audio-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5674rem; margin: 0 -1px 0.4539rem; padding-top: 0.3972rem; border-top: 1px solid rgba(132, 157, 182, .11); }
.audio-field-grid label { display: grid; gap: 0.3404rem; color: #9caabd; font-size: 0.5674rem; }
.audio-field-grid textarea { min-height: 4.1986rem; resize: vertical; padding: 0.5106rem; border: 1px solid rgba(135, 159, 186, .2); border-radius: 0.3972rem; background: #11161e; color: var(--text); font-size: 0.6241rem; line-height: 1.5; }
.media-task-list { display: grid; gap: 0.4539rem; margin-top: 0.7943rem; }
.media-task-empty { display: grid; min-height: 9.078rem; place-items: center; padding: 1.1348rem; border: 1px dashed var(--line); border-radius: 0.4539rem; color: var(--muted); font-size: 0.6241rem; text-align: center; }
.media-task-row { display: grid; grid-template-columns: 1.9291rem minmax(0, 1fr) auto; gap: 0.5674rem; align-items: center; padding: 0.5674rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #171d26; }
.media-task-row-icon { display: grid; width: 1.7021rem; height: 1.7021rem; place-items: center; border: 1px solid rgba(56, 213, 231, .42); border-radius: 0.4539rem; color: var(--cyan); }
.media-task-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.6241rem; }
.media-task-row p { overflow: hidden; margin: 0.227rem 0; color: var(--muted); font-size: 0.5674rem; text-overflow: ellipsis; white-space: nowrap; }
.media-task-row small { color: var(--muted-2); font-size: 0.5106rem; }
.media-task-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3404rem; }
.media-task-row-actions button { padding: 0.3404rem 0.5106rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: transparent; color: var(--cyan); font-size: 0.5674rem; cursor: pointer; }
.media-task-row-actions button:hover { border-color: var(--cyan); background: rgba(25, 177, 193, .1); }
.task-list-modal { width: min(31.773rem, calc(100vw - 1.7021rem)); }
.task-list-tabs { display: flex; gap: 0.3404rem; margin: 1.0213rem 0 0.227rem; }
.task-list-tabs button { padding: 0.3404rem 0.5674rem; border-radius: 0.3404rem; background: #1a212b; color: var(--muted); font-size: 0.5674rem; }
.task-list-tabs button.active { background: rgba(25, 177, 193, .2); color: var(--cyan); }

body[data-media-mode="image"] .media-result-panel { min-height: 10.4965rem; }
body[data-media-mode="video"] .media-result-panel { min-height: 10.4965rem; }
body[data-media-mode="video"] .hero, body[data-media-mode="audio"] .hero { min-height: 19.0071rem; }
body[data-media-mode="video"] .hero-notice, body[data-media-mode="audio"] .hero-notice { max-width: 35.1773rem; }
body.media-mode .composer-tools { display: none; }
body[data-media-mode="audio"] .composer-main { display: none; }
body[data-media-mode="audio"] .composer { min-height: 13.9574rem; }
body[data-media-mode="audio"] .composer-footer { margin-top: 0; }
body[data-media-mode="audio"] .media-composer-options { display: grid; }
body[data-media-mode="audio"] .media-reference-slots { display: none; }

/* Match the reference media workbench: a centered 70rem tray anchored above
   the page edge, with material slots beside the prompt and controls in one
   compact footer row. Chat keeps its existing flow layout. */
@media (min-width: 841px) {
  body.media-mode .chat-workspace {
    position: absolute;
    z-index: 12;
    left: 50%;
    bottom: 1.2482rem;
    width: min(77rem, calc(100% - 9.078rem));
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
  }

  body.media-mode .api-model-link { margin: 0 auto 0.6809rem; }
  body.media-mode .media-result-panel { width: 100%; margin: 0 0 0.6809rem; }
  body.media-mode .composer {
    display: grid;
    grid-template-columns: var(--media-slot-track, 0px) minmax(0, 1fr);
    grid-template-rows: minmax(0, var(--media-input-row, 8.227rem)) 2.9504rem;
    width: 100%;
    height: calc(var(--media-input-row, 8.227rem) + 3.0071rem);
    min-height: 11.234rem;
    padding: 0;
    overflow: visible;
  }
  body.media-mode .composer-main {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    padding: 0.8511rem 0.9645rem 0.2837rem 0.8511rem;
  }
  body.media-mode .composer-main :is(textarea,.refmedia-rich-input) { min-height: 0; height: 100%; max-height: 13.1631rem; overflow-y: auto; }
  body.media-mode .media-composer-options,
  body[data-media-mode="audio"] .media-composer-options { display: contents; }
  body.media-mode .media-reference-slots {
    grid-column: 1;
    grid-row: 1;
    align-content: start;
    flex-wrap: nowrap;
    padding: 0.8511rem 0.4539rem 0.2837rem;
    overflow: visible;
  }
  body.media-mode .media-control-row {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: visible;
    padding: 0.5674rem 3.4043rem 0.5674rem 0.9645rem;
    border-top: 1px solid rgba(132, 157, 182, .11);
  }
  body.media-mode .media-extra-actions {
    position: absolute;
    left: -3.0071rem;
    bottom: 0;
    z-index: 2;
    display: grid;
    width: 2.383rem;
    gap: 0.2837rem;
    flex-wrap: nowrap;
  }
  body.media-mode .media-extra-action {
    width: 2.383rem;
    height: 1.9291rem;
    overflow: hidden;
    padding: 0.2837rem;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 0;
  }
  body.media-mode .media-extra-action::before {
    content: "▣";
    color: #a6b5c8;
    font-size: 0.9078rem;
  }
  body.media-mode .media-extra-action:nth-child(2)::before { content: "▧"; }
  body.media-mode .media-extra-action:nth-child(3)::before { content: "▦"; }
  body.media-mode .media-extra-action:hover::before { color: var(--cyan); }
  body.media-mode .media-extra-action:focus-visible {
    outline: 0.1135rem solid var(--cyan);
    outline-offset: 0.1135rem;
  }
  body.media-mode .composer-footer {
    position: absolute;
    right: 0.9078rem;
    bottom: 0.5674rem;
    z-index: 3;
  }
  body.media-mode .composer-footer .composer-tools { display: none; }
  body[data-media-mode="audio"] .audio-field-grid {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    padding: 0.8511rem 0.9645rem 0.2837rem;
    border-top: 0;
  }
  body[data-media-mode="audio"] .composer { min-height: 11.234rem; }
}

@media (max-width: 840px) {
  .media-result-panel { width: 100%; }
  .media-result-card { grid-template-columns: 4.8794rem minmax(0, 1fr); }
  .media-result-preview { min-height: 4.0851rem; }
  .media-result-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .audio-field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .media-result-panel { padding: 0.6809rem; }
  .media-result-heading h2 { font-size: 0.7943rem; }
  .media-result-card { grid-template-columns: 3.7447rem minmax(0, 1fr); gap: 0.5106rem; }
  .media-result-preview { min-height: 3.5177rem; font-size: 1.1915rem; }
  .media-result-actions button { flex: 1 1 auto; }
  .reference-slot-wrap, .reference-slot { width: 3.5177rem; }
  .reference-slot { height: 2.8369rem; }
}

/* On phones the same tray returns to document flow and allows the model's
   controls to scroll horizontally instead of shrinking or overlapping. */
@media (max-width: 840px) {
  body.media-mode .chat-workspace {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 0.3404rem;
    transform: none;
  }
  body.media-mode .media-result-panel { width: 100%; margin: 0.5674rem auto 0.6809rem; }
  body.media-mode .composer {
    display: block;
    height: auto;
    min-height: 13.617rem;
    padding: 0 0.5106rem 0.6809rem;
  }
  body.media-mode .composer-main { min-height: 6.3546rem; padding: 0.7943rem 0 0.2837rem; }
  body.media-mode .media-composer-options { display: grid; gap: 0.4539rem; margin: 0 -1px 0.3972rem; padding-top: 0.4539rem; }
  body.media-mode .media-reference-slots { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.1135rem; }
  body.media-mode .media-control-row, body.media-mode .media-extra-actions { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.1135rem; }
  body.media-mode .composer-footer { position: static; margin-top: 0.4539rem; }
  body[data-media-mode="audio"] .audio-field-grid { margin: 0 -1px 0.3972rem; padding-top: 0.4539rem; }
  body[data-media-mode="audio"] .composer { min-height: 13.617rem; }
}

@media (max-width: 840px) {
  .workspace { padding: 0 0.8511rem 1.1348rem; }.mobile-menu { display: none; }.workspace-topbar { height: 3.8582rem; }.current-model { top: 0.9645rem; }.top-actions { gap: 0.3404rem; }.round-action { width: 2.0426rem; height: 2.0426rem; font-size: 0.8511rem; }.hero { min-height: 14.7518rem; padding: 4.4255rem 2% 2.156rem; }.hero-notice { transform: none; }.history-tab { top: 11.6312rem; }.chat-workspace, body.mine-mode .chat-workspace { position: relative; left: auto; bottom: auto; width: 100%; margin: 0 auto; }.composer-rail { right: -0.1702rem; top: auto; bottom: 0.6809rem; transform: translateX(100%); }.quick-actions { position: static; justify-content: center; gap: 0.6809rem; margin-top: 0.7376rem; }.agent-layout, .inspiration-layout, .api-doc-grid { grid-template-columns: 1fr; }.inspiration-filter { order: 2; }.api-doc-grid aside { border-right: 0; border-bottom: 1px solid var(--line); }.feature-grid { grid-template-columns: repeat(2, 1fr); }.settings-grid { grid-template-columns: 1fr; gap: 1.0213rem; }.skill-grid { grid-template-columns: 1fr 1fr; }.history-drawer { left: 0; width: min(17.0213rem, 87vw); }.content-heading { align-items: start; flex-direction: column; }.segmented { overflow: auto; max-width: 100%; }.api-doc-grid article { padding: 1.1348rem; }
}
@media (max-width: 480px) {
  .brand-copy strong { max-width: 7.3759rem; }.primary-nav { grid-template-columns: repeat(4, 1fr); }.category-tabs { padding: 0.4539rem 0.3404rem 0; }.category-slider { left: 0.3404rem; top: 0.4539rem; width: calc((100% - 0.6809rem - 0.2837rem) / 6); }.category-tab { font-size: 0.5674rem; }.model-filter { grid-template-columns: 4.4255rem 1fr; padding-inline: 0.3404rem; }.model-list { padding-inline: 0.3404rem; }.model-card { grid-template-columns: 2.2695rem minmax(0, 1fr); gap: 0.5106rem; height: 4.3121rem; min-height: 4.3121rem; max-height: 4.3121rem; padding: 0.5674rem 0.5106rem; }.model-card .model-icon-wrapper { width: 2.2695rem; height: 2.2695rem; }.model-card .model-icon { width: 1.8156rem; height: 1.8156rem; }.model-card .model-icon img { width: 1.8156rem; height: 1.8156rem; }.model-card h3 { font-size: 0.7376rem; line-height: 1.0213rem; }.model-card p { font-size: 0.5674rem; line-height: 0.7943rem; }.model-card .model-rate { font-size: 0.5106rem; line-height: 0.7943rem; padding: 0.1135rem 0.227rem; }.account-strip { padding-inline: 0.3404rem; }.workspace-topbar { gap: 0.3404rem; }.new-chat { padding-inline: 0.5674rem; font-size: 0.6241rem; }.guide-button { width: 1.9291rem; height: 1.9291rem; }.current-model { max-width: 8.5106rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.5674rem; }.top-actions .round-action:nth-child(2) { display: none; }.hero-notice, .model-guide { font-size: 0.6241rem; }.composer { padding-inline: 0.5106rem; }.composer-tools { gap: 0.227rem; }.tool-chip { padding-inline: 0.3972rem; font-size: 0.5106rem; }.composer-rail { display: none; }.quick-actions { flex-wrap: wrap; }.feature-grid { grid-template-columns: 1fr; }.skill-grid { grid-template-columns: 1fr; }.api-doc-head { align-items: start; flex-direction: column; gap: 0.5674rem; }
}

/* Account center mirrors the reference site's full-page works/profile layout. */
.account-view { max-width: 1280px; margin: 0.8511rem auto 4.539rem; }
.account-page-head { display: flex; align-items: center; gap: 0.8511rem; min-height: 4.3121rem; border-bottom: 1px solid rgba(155, 184, 208, .12); }
.account-page-head h1 { margin: 0.3404rem 0 0; font-size: 1.4184rem; }
.account-back { width: 2.0426rem; height: 2.0426rem; border: 1px solid var(--line); border-radius: 0.5106rem; background: #151c25; color: #c9d6e1; font-size: 1.5319rem; line-height: 1; }
.account-page-actions { display: flex; gap: 0.4539rem; margin-left: auto; }
.account-filter { padding: 0.5106rem 0.7376rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171d26; color: #c6d0dc; font-size: 0.6241rem; }
.account-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19.4043rem; gap: 1.0213rem; align-items: start; padding-top: 1.0213rem; }
.works-panel, .profile-panel { min-width: 0; }
.account-tabs { display: flex; gap: 0.227rem; align-items: center; margin-bottom: 0.8511rem; }
.account-tabs button { padding: 0.4539rem 0.7943rem; border-radius: 0.3404rem; background: transparent; color: #8997a8; font-size: 0.6241rem; }
.account-tabs button.active { background: rgba(33, 194, 211, .16); color: var(--cyan); }
.works-notice { display: flex; align-items: center; justify-content: space-between; gap: 0.6809rem; margin-bottom: 0.9078rem; padding: 0.5674rem 0.7376rem; border: 1px solid rgba(255, 191, 52, .27); border-radius: 0.3972rem; background: rgba(255, 191, 52, .08); color: #e9d5a5; font-size: 0.5674rem; line-height: 1.5; }
.works-notice button { flex: 0 0 1.3617rem; width: 1.3617rem; height: 1.3617rem; border-radius: 50%; background: transparent; color: #beaa7a; font-size: 1.0213rem; }
.works-groups { display: grid; gap: 0.9645rem; }
.works-group { display: grid; gap: 0.5106rem; }
.works-group-heading { display: flex; align-items: center; gap: 0.5674rem; color: #dbe6ee; font-size: 0.6241rem; }
.works-group-heading span { color: var(--muted); }
.works-group-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5106rem, 1fr)); gap: 0.5674rem; }
.work-card { min-height: 8.227rem; padding: 0.5674rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #131a22; }
.work-card-preview { display: grid; min-height: 5.2199rem; place-items: center; border-radius: 0.3404rem; background: linear-gradient(145deg, #1a4e62, #30314e 48%, #6b3c58); color: #7de8ed; font-size: 1.3617rem; }
.work-card strong { display: block; overflow: hidden; margin-top: 0.4539rem; color: #e1e8ef; font-size: 0.5674rem; text-overflow: ellipsis; white-space: nowrap; }
.work-card small { display: block; margin-top: 0.227rem; color: var(--muted); font-size: 0.5106rem; }
.account-empty { display: grid; min-height: 9.6454rem; place-items: center; padding: 1.4752rem; border: 1px dashed rgba(140, 163, 185, .22); border-radius: 0.5106rem; color: var(--muted); text-align: center; font-size: 0.6241rem; line-height: 1.7; }
.account-empty small { color: var(--muted-2); }
.profile-panel { padding: 1.0213rem; border: 1px solid rgba(138, 162, 185, .2); border-radius: 0.5674rem; background: #121820; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.4539rem; }
.profile-heading h2 { margin: 0; font-size: 0.9645rem; }
.copy-id { padding: 0.3404rem 0.4539rem; border: 1px solid rgba(56, 213, 231, .25); border-radius: 0.3404rem; background: rgba(56, 213, 231, .08); color: var(--cyan); font-size: 0.5674rem; }
.profile-user { display: grid; grid-template-columns: 2.7234rem minmax(0, 1fr) auto; gap: 0.5674rem; align-items: center; margin-top: 1.0213rem; }
.profile-avatar { display: grid; width: 2.6099rem; height: 2.6099rem; place-items: center; border-radius: 50%; background: linear-gradient(145deg, #dfb18b, #7c493b); color: #fff3e7; font-size: 1.0213rem; font-weight: 700; }
.profile-name strong, .profile-name span { display: block; }.profile-name strong { font-size: 0.7376rem; }.profile-name span { width: fit-content; margin-top: 0.2837rem; padding: 0.1702rem 0.3404rem; border-radius: 0.227rem; background: rgba(255, 191, 52, .13); color: var(--yellow); font-size: 0.5106rem; }
.profile-edit { padding: 0.3404rem 0.5106rem; border: 1px solid var(--line); border-radius: 0.2837rem; background: transparent; color: #a7b4c2; font-size: 0.5674rem; }
.balance-card { display: flex; align-items: center; justify-content: space-between; margin-top: 1.0213rem; padding: 0.7376rem; border: 1px solid rgba(255, 191, 52, .2); border-radius: 0.4539rem; background: rgba(255, 191, 52, .07); color: #c8d5df; font-size: 0.6241rem; }.balance-card strong { color: var(--yellow); font-size: 0.9078rem; }
.low-balance-row { display: flex !important; align-items: flex-start; gap: 0.5106rem; margin: 0.9078rem 0 0.1135rem !important; color: #c0cbd7; }.low-balance-row input { width: 0.8511rem; height: 0.8511rem; margin: 1px 0 0; accent-color: var(--cyan); }.low-balance-row span { display: grid; gap: 0.227rem; }.low-balance-row b { font-size: 0.6241rem; }.low-balance-row small { color: var(--muted); font-size: 0.5106rem; line-height: 1.5; }
.account-collapse { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 0.7943rem; padding: 0.6809rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: #d7e0e9; text-align: left; font-size: 0.6241rem; }.account-collapse small { margin-left: auto; margin-right: 0.4539rem; color: var(--muted); }.account-management { display: flex; gap: 0.3972rem; padding: 0.5674rem 0; }.account-management button { padding: 0.3404rem 0.4539rem; border: 1px solid var(--line); border-radius: 0.2837rem; background: #19212b; color: var(--muted); font-size: 0.5106rem; }.usage-card { display: grid; grid-template-columns: 1fr auto; gap: 0.227rem 0.5674rem; margin-top: 0.5674rem; padding: 0.6241rem 0.6809rem; border: 1px solid rgba(56, 213, 231, .18); border-radius: 0.3972rem; background: #151f2a; }.usage-card span, .usage-card small { color: var(--muted); font-size: 0.5674rem; }.usage-card strong { color: var(--cyan); font-size: 0.8511rem; }.usage-card small { grid-column: 1 / -1; }.usage-card small b { color: #c7d6e0; font-weight: 500; }
.account-section-title { margin: 1.078rem 0 0.6241rem; color: #e4ebf1; font-size: 0.7376rem; }
.account-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3972rem; }.account-tools button { display: grid; gap: 0.227rem; min-height: 3.234rem; padding: 0.5106rem; border: 1px solid rgba(135, 159, 186, .17); border-radius: 0.3972rem; background: #171e27; text-align: left; }.account-tools button:hover { border-color: rgba(56, 213, 231, .55); background: rgba(32, 88, 100, .2); }.account-tools b { color: #e1e8ef; font-size: 0.5674rem; }.account-tools small { color: var(--muted); font-size: 0.5106rem; line-height: 1.35; }.account-tools button:last-child b { color: #ff9999; }
.account-modal select { width: 100%; height: 2.0993rem; padding: 0 0.5674rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #1b222d; color: var(--text); }.recharge-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3972rem; margin: 0.227rem 0 0.7376rem; }.recharge-options button { padding: 0.4539rem 0.227rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #1b222d; color: #c7d3df; font-size: 0.5674rem; }.recharge-options button:hover { border-color: var(--yellow); color: var(--yellow); }
.transaction-source-tabs, .transaction-filters { display: flex; flex-wrap: wrap; gap: 0.3404rem; margin: 0.7376rem 0; }.transaction-source-tabs button, .transaction-filters button { padding: 0.3972rem 0.5106rem; border: 1px solid var(--line); border-radius: 0.3404rem; background: #171e27; color: var(--muted); font-size: 0.5674rem; }.transaction-source-tabs button.active, .transaction-filters button.active { border-color: rgba(56, 213, 231, .6); color: var(--cyan); }.transaction-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3972rem; }.transaction-stats span { display: grid; gap: 0.227rem; padding: 0.5674rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171e27; color: var(--muted); font-size: 0.5106rem; }.transaction-stats b { color: var(--yellow); font-size: 0.7376rem; }.transaction-table { overflow: hidden; border: 1px solid var(--line); border-radius: 0.3972rem; }.transaction-head { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 0.4539rem; padding: 0.6241rem; background: #1a222d; color: #aebdcb; font-size: 0.5106rem; }.transaction-table .account-empty { border: 0; border-radius: 0; }
body.account-mode .hero, body.account-mode .chat-workspace, body.account-mode .agent-view, body.account-mode .inspiration-view, body.account-mode .api-view { display: none; }
.membership-summary { display: grid; gap: 0.3404rem; margin: 1.0213rem 0; padding: 0.7943rem; border: 1px solid rgba(56, 213, 231, .25); border-radius: 0.4539rem; background: #17232b; }.membership-summary strong { color: #eafaff; font-size: 0.7943rem; }.membership-summary span, .membership-summary small { color: var(--muted); font-size: 0.5674rem; }.transaction-row { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 0.4539rem; align-items: center; padding: 0.5674rem; border-top: 1px solid var(--line); color: #c7d2dd; font-size: 0.5106rem; }.transaction-row small { color: var(--muted); }
body.account-mode .account-view { display: block !important; }
body.account-mode .history-tab { display: none; }

@media (max-width: 840px) {
  .account-content-grid { grid-template-columns: 1fr; }.profile-panel { order: -1; }.account-page-head { align-items: flex-start; padding: 0.6809rem 0; }.account-page-actions { align-items: center; }.transaction-head { grid-template-columns: 1.3fr repeat(5, minmax(3.6879rem, 1fr)); overflow-x: auto; }
}
@media (max-width: 480px) {
  .account-view { margin-top: 0; }.account-page-head { gap: 0.5106rem; }.account-page-head h1 { font-size: 1.1348rem; }.account-filter { padding: 0.3972rem 0.4539rem; font-size: 0.5674rem; }.account-tabs { overflow-x: auto; }.account-tabs button { padding-inline: 0.6241rem; white-space: nowrap; }.profile-panel { padding: 0.7376rem; }.account-tools { gap: 0.3404rem; }.account-tools button { min-height: 3.0071rem; }.transaction-stats { grid-template-columns: 1fr 1fr; }.works-group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }.work-card { min-height: 7.0922rem; }.work-card-preview { min-height: 4.1986rem; }.works-notice { align-items: flex-start; }.works-notice span { line-height: 1.6; }
}

body.landing-mode .app-shell { display: block; }
body.landing-mode .sidebar, body.landing-mode .sidebar-toggle, body.landing-mode .workspace-topbar, body.landing-mode .history-tab, body.landing-mode .hero, body.landing-mode .agent-view, body.landing-mode .inspiration-view, body.landing-mode .api-view, body.landing-mode .account-view, body.landing-mode .chat-workspace, body.landing-mode .quick-actions { display: none !important; }
body.landing-mode .workspace { display: block; min-height: 100vh; padding: 0; }
body.landing-mode .landing-view { display: block !important; }
.landing-view { overflow: hidden; min-height: 100vh; background: #031015; color: #f5f9fb; }
.landing-topbar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 3.7447rem; display: flex; align-items: center; justify-content: space-between; gap: 1.1348rem; padding: 0 1.8156rem; }
.landing-brand { display: flex; align-items: center; gap: 0.5674rem; color: #1fcedd; text-decoration: none; font-size: 1.0213rem; white-space: nowrap; }
.landing-mark { display: grid; width: 1.7589rem; height: 1.7589rem; place-items: center; border-radius: 0.2837rem; background: #0d2830; color: #3ddbe8; font-size: 1.2482rem; font-weight: 800; box-shadow: 0 0 1.2482rem rgba(15, 198, 217, .2); }.landing-mark span { position: absolute; margin: -0.8511rem 0 0 0.9645rem; color: #ffbb3e; font-size: 0.4539rem; }
.landing-nav { display: flex; align-items: center; gap: 0.4539rem; }.landing-nav button { min-height: 1.9858rem; padding: 0 0.6809rem; border: 1px solid rgba(112, 163, 183, .19); border-radius: 0.4539rem; background: rgba(7, 20, 27, .74); color: #bbc9d0; font-size: 0.6241rem; white-space: nowrap; }.landing-nav button:hover { border-color: rgba(22, 204, 224, .65); color: #fff; }.landing-nav #landing-account { border-radius: 1.1348rem; color: #f2f7f8; }.landing-nav #landing-language { border-radius: 1.1348rem; }
.landing-hero { position: relative; min-height: 41.4184rem; height: min(45.9574rem, 100vh); display: grid; place-items: center; isolation: isolate; background-color: #021015; background-image: radial-gradient(circle at 50% 25%, rgba(11, 84, 104, .22), transparent 49%), linear-gradient(rgba(24, 73, 85, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 73, 85, .12) 1px, transparent 1px); background-size: auto, 3.6879rem 3.6879rem, 3.6879rem 3.6879rem; }
.landing-grid-lines { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(0, 222, 237, .64) 1px, transparent 0.1135rem); background-size: 9.4184rem 6.8652rem; background-position: 0.6241rem 2.383rem; opacity: .58; }
.landing-model-cloud { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }.landing-model-cloud span { position: absolute; left: var(--x); top: var(--y); max-width: 6.2411rem; color: rgba(102, 185, 199, .36); font-size: 0.6241rem; transform: rotate(var(--r)); }.landing-model-cloud span::before { content: '✦'; display: grid; width: 2.4397rem; height: 2.4397rem; margin: 0 auto 0.4539rem; place-items: center; border: 1px solid rgba(30, 181, 209, .21); border-radius: 0.7376rem; background: rgba(8, 42, 54, .6); color: #20bad1; font-size: 1.305rem; box-shadow: 0 0 1.0213rem rgba(13, 176, 202, .13); }.landing-model-cloud span:nth-child(3n)::before { content: '◉'; color: #a178e4; }.landing-model-cloud span:nth-child(4n)::before { content: '◇'; color: #ffc44e; }
.landing-hero-copy { position: relative; z-index: 1; width: min(40.8511rem, 90%); padding-top: 3.2908rem; text-align: center; }.landing-eyebrow { display: inline-block; padding: 0.3972rem 0.9078rem; border: 1px solid rgba(24, 190, 210, .19); border-radius: 1.0213rem; background: rgba(10, 40, 49, .61); color: #16d2e4; font-size: 0.5674rem; font-weight: 700; }.landing-hero-copy h1 { margin: 1.5887rem 0 0.227rem; font-size: clamp(3.1773rem, 6.4vw, 5.2199rem); line-height: 1.1; font-weight: 850; letter-spacing: 0; white-space: nowrap; }.landing-hero-copy p { max-width: 33.4752rem; margin: 0 auto 2.2695rem; color: #a8b4bd; font-size: 0.8511rem; line-height: 1.7; }
.landing-cta-row { display: flex; justify-content: center; gap: 0.6809rem; }.landing-cta-row button { height: 2.8369rem; min-width: 8.5106rem; padding: 0 1.1348rem; border-radius: 1.4752rem; font-size: 0.7376rem; font-weight: 700; }.landing-primary { background: #03c4dc; color: #fff; box-shadow: 0 0 1.4184rem rgba(4, 214, 234, .29); }.landing-secondary { border: 1px solid rgba(139, 164, 182, .22); background: rgba(25, 35, 45, .75); color: #e5edf0; }.landing-gift { display: block; max-width: 100%; margin: 1.5887rem auto 1.8156rem; padding: 0.5674rem 0.8511rem; border: 1px solid rgba(28, 205, 225, .33); border-radius: 1.1348rem; background: rgba(7, 38, 47, .72); color: #d8e8ec; font-size: 0.6241rem; }.landing-stats { display: flex; justify-content: center; gap: 3.9716rem; }.landing-stats span { display: grid; gap: 0.3404rem; }.landing-stats b { font-size: 1.6454rem; }.landing-stats small { color: #8b9da6; font-size: 0.5674rem; }
.landing-section { max-width: 1120px; margin: 0 auto; padding: 4.766rem 1.5887rem; }.landing-section-kicker { color: #21c8da; font-size: 0.6809rem; }.landing-section h2 { margin: 0.8511rem 0; font-size: 1.9291rem; }.landing-section h2 em { color: #23c6d9; font-style: normal; }.landing-section > p { color: #94a9b3; font-size: 0.7376rem; }.landing-feature-grid, .landing-capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9078rem; margin-top: 2.0426rem; }.landing-feature-grid article, .landing-capability-grid article { padding: 1.0213rem; border: 1px solid rgba(62, 139, 156, .2); border-radius: 0.4539rem; background: #0b1b23; }.landing-feature-grid article b, .landing-capability-grid article b { color: #1ac8da; font-size: 1.1348rem; }.landing-feature-grid h3, .landing-capability-grid h3 { margin: 0.7943rem 0 0.4539rem; font-size: 0.7943rem; }.landing-feature-grid span, .landing-capability-grid p { color: #8b9da6; font-size: 0.6241rem; line-height: 1.6; }.landing-capabilities { border-top: 1px solid rgba(62, 139, 156, .14); }.landing-footer { padding: 1.7021rem; border-top: 1px solid rgba(62, 139, 156, .15); color: #607985; text-align: center; font-size: 0.6241rem; }
@media (max-width: 840px) { .landing-topbar { padding: 0 0.7943rem; }.landing-nav #landing-support, .landing-nav #landing-api { display: none; }.landing-hero { min-height: 39.1489rem; height: 90vh; }.landing-hero-copy h1 { font-size: 3.4043rem; }.landing-hero-copy p { font-size: 0.7376rem; }.landing-model-cloud span { opacity: .5; }.landing-feature-grid, .landing-capability-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .landing-brand strong { max-width: 6.9787rem; overflow: hidden; text-overflow: ellipsis; font-size: 0.7376rem; }.landing-nav #landing-language { display: none; }.landing-nav #landing-account { max-width: 6.922rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.5106rem; }.landing-hero { min-height: 36.3121rem; height: 88vh; }.landing-hero-copy { width: calc(100% - 1.8156rem); padding-top: 2.2695rem; }.landing-hero-copy h1 { font-size: 2.7234rem; }.landing-hero-copy p { margin-bottom: 1.4184rem; font-size: 0.6241rem; }.landing-cta-row button { min-width: 0; flex: 1; height: 2.4965rem; padding: 0 0.4539rem; font-size: 0.6241rem; }.landing-gift { margin: 1.2482rem auto 1.305rem; font-size: 0.5106rem; }.landing-stats { gap: 1.7021rem; }.landing-stats b { font-size: 1.1348rem; }.landing-section { padding: 3.1206rem 0.8511rem; }.landing-section h2 { font-size: 1.4752rem; }.landing-feature-grid, .landing-capability-grid { grid-template-columns: 1fr 1fr; gap: 0.4539rem; }.landing-feature-grid article, .landing-capability-grid article { padding: 0.6809rem; }.landing-feature-grid h3, .landing-capability-grid h3 { font-size: 0.6809rem; } }

/* The reference home hero uses a slow, counter-rotating model orbit. */
.landing-hero { overflow: hidden; }
.landing-grid-lines { animation: landingGridPulse 10s ease-in-out infinite; }
.landing-orbit-stage { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.landing-orbit-grid { position: absolute; left: 50%; top: 50%; width: min(45.9574rem, 92vw); height: min(45.9574rem, 92vw); transform: translate(-50%, -50%); border: 1px solid rgba(14, 176, 196, .14); border-radius: 50%; box-shadow: 0 0 4.539rem rgba(9, 179, 196, .09), inset 0 0 4.539rem rgba(5, 116, 140, .06); }
.landing-orbit-grid::before, .landing-orbit-grid::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(12, 124, 145, .12); border-radius: 50%; transform: rotate(28deg) scaleX(1.7); }.landing-orbit-grid::after { transform: rotate(-30deg) scaleY(.45); }
.landing-orbit { position: absolute; left: 50%; top: 50%; width: min(45.9574rem, 92vw); height: min(45.9574rem, 92vw); transform: translate(-50%, -50%); transform-origin: center; }
.landing-orbit.is-entering { animation: landingOrbitEntrance 2.5s cubic-bezier(.16, 1, .3, 1) forwards; }
.landing-orbit-spin { position: absolute; inset: 0; transform-origin: center; animation: landingOrbitSpin 80s linear infinite; }
.landing-orbit-item { position: absolute; left: 50%; top: 50%; width: 5.2199rem; min-height: 3.5177rem; padding: 0; transform: translate(-50%, -50%) rotate(var(--orbit-angle)) translateY(calc(-1 * var(--orbit-radius))); transform-origin: center; border: 0; background: transparent; color: rgba(112, 190, 203, .46); cursor: pointer; pointer-events: auto; text-align: center; transition: color .25s, filter .25s, opacity .25s; }
.landing-orbit-body { display: flex; flex-direction: column; align-items: center; gap: 0.1702rem; width: 0; animation: landingOrbitCounter 80s linear infinite; transform-origin: center; }.landing-orbit-icon { display: grid; flex: none; width: 1.5887rem; height: 1.5887rem; place-items: center; border: 1px solid rgba(20, 179, 204, .23); border-radius: 0.5106rem; background: rgba(7, 42, 53, .66); color: #20c9df; font-size: 0.9078rem; box-shadow: 0 0 1.1348rem rgba(0, 188, 214, .12); }.landing-orbit-name { display: block; overflow: hidden; max-width: 3.4043rem; color: inherit; font-size: 0.4879rem; line-height: 1.5; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.landing-orbit-item:nth-child(3n) .landing-orbit-icon { color: #a879e9; border-color: rgba(168, 121, 233, .28); }.landing-orbit-item:nth-child(4n) .landing-orbit-icon { color: #ffc44e; border-color: rgba(255, 196, 78, .28); }.landing-orbit-item:nth-child(5n) .landing-orbit-icon { color: #ff7197; border-color: rgba(255, 113, 151, .27); }
.landing-orbit-item:hover, .landing-orbit-item:focus-visible, .landing-orbit-item.is-selected { z-index: 3; color: #effeff; filter: drop-shadow(0 0 0.7376rem rgba(19, 223, 234, .75)); }.landing-orbit-item:hover .landing-orbit-icon, .landing-orbit-item:focus-visible .landing-orbit-icon, .landing-orbit-item.is-selected .landing-orbit-icon { width: 1.9291rem; height: 1.9291rem; border-color: #22d7e6; background: rgba(12, 104, 121, .77); font-size: 1.078rem; box-shadow: 0 0 1.7021rem rgba(19, 223, 234, .4); }.landing-orbit-item.is-selected .landing-orbit-name { color: #fff; font-weight: 700; }
.landing-orbit-detail { position: absolute; z-index: 2; right: max(0.6809rem, calc(50% - 29.5035rem)); bottom: 15%; display: grid; gap: 0.3404rem; width: 11.3475rem; padding: 0.6809rem 0.7943rem; border: 1px solid rgba(40, 213, 227, .42); border-radius: 0.4539rem; background: rgba(6, 26, 34, .88); color: #dffcff; box-shadow: 0 0 1.2482rem rgba(0, 189, 213, .13); pointer-events: none; }.landing-orbit-detail strong { overflow: hidden; color: #23d4e4; font-size: 0.6241rem; text-overflow: ellipsis; white-space: nowrap; }.landing-orbit-detail span { display: -webkit-box; overflow: hidden; color: #9cb5bd; font-size: 0.5106rem; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.landing-hero-copy h1 { display: grid; justify-items: center; gap: 0.1135rem; }.landing-hero-copy h1 > span { display: block; }.landing-hero-copy h1 em { display: block; min-height: 1.1em; color: #18d4bb; font-size: .72em; font-style: normal; text-shadow: 0 0 1.1348rem rgba(0, 229, 194, .28); }.landing-hero-copy h1 em::after { content: ""; display: inline-block; width: 0.227rem; height: .84em; margin-left: 0.4539rem; vertical-align: -.06em; background: #23e5df; box-shadow: 0 0 0.9078rem rgba(35, 229, 223, .85); animation: landingCaret 1s steps(1) infinite; }
@keyframes landingOrbitSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes landingOrbitEntrance {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-360deg); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.25) rotate(0deg); opacity: 1; }
}
@keyframes landingOrbitCounter {
  from { transform: rotate(calc(-1 * var(--orbit-angle))) rotate(0deg); }
  to { transform: rotate(calc(-1 * var(--orbit-angle))) rotate(-360deg); }
}
@keyframes landingGridPulse { 0%, 100% { opacity: .38; background-position: 0 0; } 50% { opacity: .68; background-position: 1.305rem 0.9645rem; } }
@keyframes landingLineFlow { from { transform: rotate(-15deg) translateX(-2%); opacity: .35; } to { transform: rotate(-9deg) translateX(4%); opacity: .9; } }
@keyframes landingCaret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }
@media (max-width: 840px) { .landing-orbit-grid, .landing-orbit { width: 39.7163rem; height: 39.7163rem; }.landing-orbit-item { --orbit-radius: 19.8582rem !important; }.landing-orbit-detail { right: 0.6809rem; bottom: 11%; }.landing-hero-copy { z-index: 1; } }
@media (max-width: 480px) { .landing-orbit-grid, .landing-orbit { width: 34.6099rem; height: 34.6099rem; }.landing-orbit-item { --orbit-radius: 17.305rem !important; }.landing-orbit-item { opacity: .58; }.landing-orbit-item:hover, .landing-orbit-item:focus-visible, .landing-orbit-item.is-selected { opacity: 1; }.landing-orbit-detail { right: 0.5674rem; bottom: 8%; width: 9.078rem; }.landing-hero-copy h1 em { font-size: .67em; } }
@media (prefers-reduced-motion: reduce) { .landing-grid-lines, .landing-orbit-spin, .landing-orbit-body { animation-play-state: paused; }.landing-orbit.is-entering { animation: none; transform: translate(-50%, -50%) scale(1.25); opacity: 1; }.landing-hero-copy h1 em::after { animation: none; } }

/* Reference landing motion layers: three independent curved lines plus focus cards. */
.landing-hero { background-image: radial-gradient(circle at 73% 18%, rgba(122, 94, 193, .14), transparent 33%), radial-gradient(circle at 50% 48%, rgba(5, 113, 129, .18), transparent 54%), linear-gradient(rgba(24, 73, 85, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 73, 85, .12) 1px, transparent 1px); background-size: auto, auto, 3.6879rem 3.6879rem, 3.6879rem 3.6879rem; }
.landing-hero::before, .landing-hero::after { display: none !important; }
.landing-eyebrow { border-color: rgba(174, 151, 255, .38); background: rgba(42, 35, 76, .42); color: #bcaeff; }
.landing-hero-copy h1 { color: #f5fbff; font-size: 4.4255rem; line-height: 1.1; font-weight: 900; letter-spacing: 0; margin: 1.5887rem 0 1.305rem; }
.landing-hero-copy h1 em { display: block; min-height: 1.1em; color: transparent; font-size: 1em; line-height: 1.1; font-weight: 900; text-shadow: 0 0 1.1348rem rgba(0, 229, 194, .3), 0 0 1.5887rem rgba(153, 123, 255, .24); background-image: linear-gradient(90deg, #9deff0, #a77cff, #16d9d7); background-size: 200% 200%; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: landingGradientShift 5s ease-in-out infinite; }
.landing-hero-copy p { font-size: 0.9645rem; line-height: 1.75; }
.landing-connection-lines { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; opacity: 1; }
.landing-connection-lines svg { display: block; width: 100%; height: 100%; overflow: visible; }
.landing-connection-line { fill: none; stroke: rgba(236, 243, 255, .22); stroke-width: .5px; stroke-linecap: round; stroke-dasharray: 11.3475rem; animation: landingDashFlow 12s linear infinite; }
.landing-connection-line.cl-2 { stroke: rgba(0, 229, 160, .14); animation-delay: -4s; }
.landing-connection-line.cl-3 { stroke: rgba(143, 105, 255, .16); animation-delay: -8s; }
.landing-orbit-grid, .landing-orbit { width: min(1080px, 128vw, calc(100vh + 17.0213rem)); height: min(1080px, 128vw, calc(100vh + 17.0213rem)); }
.landing-orbit-item { --orbit-radius: calc((min(1080px, 128vw, calc(100vh + 17.0213rem)) / 2) - 2.383rem); }
.landing-orbit-item.is-selected { transform: rotate(var(--orbit-angle)) translateY(calc(-1 * var(--orbit-radius))); }
.landing-orbit-grid { border-color: rgba(155, 126, 241, .18); box-shadow: 0 0 4.539rem rgba(9, 179, 196, .09), 0 0 5.1064rem rgba(123, 96, 218, .08), inset 0 0 4.539rem rgba(5, 116, 140, .06); }
.landing-orbit-feature { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.3404rem; width: max-content; min-width: 6.8085rem; max-width: min(12.4823rem, 22vw); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.5); transition: left .7s cubic-bezier(.34, 1.56, .64, 1), top .7s cubic-bezier(.34, 1.56, .64, 1), transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .7s cubic-bezier(.34, 1.56, .64, 1), visibility 0s; animation: none; will-change: left, top, transform, opacity; }
.landing-orbit-feature-left { left: 4.4255rem; top: 50%; }
.landing-orbit-feature-right { right: 4.4255rem; top: 50%; transform: translate(50%, -50%) scale(.5); }
.landing-orbit-feature.is-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition-delay: 0s; }
.landing-orbit-feature-right.is-active { transform: translate(50%, -50%) scale(1); }
.landing-orbit-feature.is-preparing { transition: none !important; }
.landing-orbit-feature.is-entering { visibility: visible; transition: none !important; animation: landingFeatureEnter 1.4s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.landing-orbit-feature.is-resting { opacity: 0; visibility: hidden; transition: left .7s cubic-bezier(.34, 1.56, .64, 1), top .7s cubic-bezier(.34, 1.56, .64, 1), transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .7s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .7s; }
.landing-orbit-feature.is-exiting { opacity: 0; visibility: visible; transition: none !important; animation: landingFeatureExit 1.1s cubic-bezier(.55, 0, 1, .45) forwards; }
.landing-orbit-feature-icon { display: grid; width: 2.7234rem; height: 2.7234rem; place-items: center; border: 1px solid rgba(22, 218, 230, .7); border-radius: 0.6809rem; background: rgba(10, 96, 113, .62); color: #28d7e5; font-size: 1.3617rem; box-shadow: 0 0 1.3617rem rgba(21, 218, 230, .24), 0 0 1.4752rem rgba(143, 105, 255, .12); }
.landing-orbit-feature span:last-child { display: flex; flex-direction: column; align-items: center; gap: 0.227rem; min-width: 6.8085rem; width: auto; max-width: min(12.4823rem, 22vw); text-align: center; }
.landing-orbit-feature strong { overflow: hidden; color: #00cae0; font-size: 0.8409rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.landing-orbit-feature small { display: -webkit-box; overflow: hidden; color: rgba(255, 255, 255, .7); font-size: 0.6373rem; line-height: 1.35; text-align: center; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.landing-orbit-detail { right: max(0.6809rem, calc(50% - 30.3546rem)); bottom: 9%; }
@keyframes landingDashFlow { 0% { stroke-dashoffset: 11.3475rem; opacity: .08; } 50% { opacity: .24; } 100% { stroke-dashoffset: -11.3475rem; opacity: .08; } }
@keyframes landingGradientShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes landingFeatureEnter {
  0% { left: var(--spotlight-origin-left); top: var(--spotlight-origin-top); transform: translate(-50%, -50%) scale(.62); opacity: .42; visibility: visible; }
  100% { left: var(--spotlight-focus-left); top: var(--spotlight-focus-top); transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
}
@keyframes landingFeatureExit {
  0% { left: var(--spotlight-focus-left); top: var(--spotlight-focus-top); transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
  100% { left: var(--spotlight-origin-left); top: var(--spotlight-origin-top); transform: translate(-50%, -50%) scale(.62); opacity: .42; visibility: visible; }
}
@keyframes landingFeatureFloat { 0%, 100% { margin-top: 0; } 50% { margin-top: -0.4539rem; } }
@media (max-width: 840px) {
  .landing-hero-copy h1 { font-size: 3.4043rem; }
  .landing-hero-copy h1 em { font-size: .82em; }
  .landing-hero-copy p { font-size: 0.7376rem; }
  .landing-orbit-grid, .landing-orbit { width: min(46.5248rem, 145vw, calc(100vh + 9.6454rem)); height: min(46.5248rem, 145vw, calc(100vh + 9.6454rem)); }
  .landing-orbit-item { --orbit-radius: calc((min(46.5248rem, 145vw, calc(100vh + 9.6454rem)) / 2) - 2.156rem) !important; }
  .landing-orbit-feature { max-width: min(12.4823rem, 40vw); }
  .landing-orbit-feature-left { left: 3.0638rem; }
  .landing-orbit-feature-right { right: 3.0638rem; }
}
@media (max-width: 768px) { .landing-orbit-feature { display: none; } }
@media (max-width: 480px) {
  .landing-hero-copy h1 { font-size: 2.7234rem; }
  .landing-hero-copy h1 em { font-size: .78em; }
  .landing-hero-copy p { font-size: 0.6241rem; }
  .landing-orbit-grid, .landing-orbit { width: 43.1206rem; height: 43.1206rem; }
  .landing-orbit-item { --orbit-radius: 19.7447rem !important; }
  .landing-orbit-feature { display: none; }
  .landing-orbit-detail { right: 0.4539rem; bottom: 7%; width: 8.7943rem; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-connection-line, .landing-orbit-feature { animation: none; }
}

/* Match the reference orbit's zero-size center geometry. The outer layer
   owns the entrance scale; the inner layer only rotates around the hero. */
.landing-orbit {
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) scale(1.25);
}
.landing-orbit-grid { display: none; }
.landing-orbit-spin {
  position: absolute;
  top: 0;
  left: 0;
  inset: auto;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}
.landing-orbit-item {
  left: 0;
  top: 0;
  width: 0;
  min-height: 0;
  transform: rotate(var(--orbit-angle)) translateY(calc(-1 * var(--orbit-radius)));
}
.landing-orbit-body {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  transform-origin: center;
}
.landing-orbit-item { --orbit-radius: 26rem; }
@media (max-width: 840px) {
  .landing-orbit-item { --orbit-radius: 24rem !important; }
}

/* Keep the reference orbit visible on narrow phone screens. The previous
   24rem radius pushed almost every node outside a short mobile hero. */
@media (max-width: 768px) {
  /* Match the reference mobile hero: the orbit stays visible as a compact,
     shallow arc behind the copy instead of overflowing the phone viewport. */
  .landing-orbit-item { --orbit-radius: clamp(9.4184rem, 54vw, 12.1418rem) !important; opacity: .86; }
  .landing-orbit-body { width: 3.1773rem; }
  .landing-orbit-name { max-width: 2.7234rem; font-size: 0.3972rem; }
  .landing-orbit-icon { width: 1.3617rem; height: 1.3617rem; font-size: 0.7376rem; }
}
@media (max-width: 480px) {
  .landing-orbit-item { --orbit-radius: clamp(8.9645rem, 51vw, 10.8936rem) !important; }
  .landing-orbit-name { max-width: 2.383rem; font-size: 0.3688rem; }
}

/* Model nodes remain zero-size angular anchors. The visual body alone has
   width, so responsive sizing cannot shift their rotation centres. */
@media (max-width: 768px) {
  .landing-orbit-item {
    width: 0;
    min-height: 0;
    margin: 0;
    transform-origin: 0 0;
    opacity: .9;
  }
  .landing-orbit-body { width: 4.3121rem; }
  .landing-orbit-icon {
    width: 1.9291rem;
    height: 1.9291rem;
    border-radius: 0.5674rem;
    font-size: 1.0213rem;
  }
  .landing-orbit-name {
    max-width: 3.8582rem;
    font-size: 0.4539rem;
    line-height: 1.35;
  }
  .landing-orbit-feature {
    display: flex !important;
    min-width: 6.1277rem;
    max-width: 7.1489rem;
    padding: 0.3972rem 0.4539rem;
    gap: 0.227rem;
    border: 1px solid rgba(48, 211, 225, .34);
    border-radius: 0.5674rem;
    background: rgba(3, 20, 28, .86);
    box-shadow: 0 0 1.0213rem rgba(19, 212, 232, .18), inset 0 0 1.0213rem rgba(70, 100, 180, .08);
    backdrop-filter: blur(0.3404rem);
  }
  .landing-orbit-feature-icon {
    width: 1.9291rem;
    height: 1.9291rem;
    border-radius: 0.5106rem;
    font-size: 1.0213rem;
  }
  .landing-orbit-feature span:last-child {
    min-width: 0;
    width: 100%;
    max-width: 6.2411rem;
    gap: 0.1135rem;
  }
  .landing-orbit-feature strong {
    max-width: 6.2411rem;
    font-size: 0.5674rem;
  }
  .landing-orbit-feature small {
    max-width: 6.2411rem;
    font-size: 0.4539rem;
    line-height: 1.3;
    -webkit-line-clamp: 3;
  }
}
@media (max-width: 380px) {
  .landing-orbit-body { width: 4.0851rem; }
  .landing-orbit-feature { min-width: 5.6738rem; max-width: 6.3546rem; padding-inline: 0.3404rem; }
  .landing-orbit-feature span:last-child,
  .landing-orbit-feature strong,
  .landing-orbit-feature small { max-width: 5.5603rem; }
}

/* Keep the accepted desktop stacking order unchanged. The mobile-only block
   above lifts cards and controls because narrow screens have less side room. */
.landing-orbit-stage { z-index: 0; }
.landing-orbit-feature { z-index: 2; }
@media (max-width: 768px) {
  .landing-orbit-stage { z-index: auto; }
  .landing-orbit-feature { z-index: 4; }
  .landing-hero-copy .landing-cta-row,
  .landing-hero-copy .landing-gift,
  .landing-hero-copy .landing-stats { position: relative; z-index: 5; }
}

/* Reference homepage scroll composition: the ambient backdrop and controls
   stay fixed while the actual sections move through the viewport. */
.landing-view {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: visible;
  background: #031015;
}
.landing-fixed-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(6, 115, 132, .19), transparent 42%),
    radial-gradient(circle at 82% 76%, rgba(122, 88, 202, .13), transparent 38%),
    linear-gradient(rgba(31, 88, 101, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 88, 101, .12) 1px, transparent 1px),
    #031015;
  background-size: auto, auto, 3.6879rem 3.6879rem, 3.6879rem 3.6879rem, auto;
}
.landing-topbar {
  position: fixed;
  z-index: 100;
  background: rgba(4, 10, 15, .78);
  border-bottom: 1px solid rgba(109, 164, 181, .12);
  box-shadow: 0 0.4539rem 1.5887rem rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(1.2482rem);
  backdrop-filter: blur(1.2482rem);
}
.landing-hero,
.landing-section,
.landing-cta,
.landing-footer { position: relative; z-index: 1; }
.landing-hero { background-color: transparent; }

.landing-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.3617rem; }
.landing-section-head > div { min-width: 0; }
.landing-section-head p { margin: 0; color: #94a9b3; font-size: 0.7376rem; }
.landing-section-count { padding-bottom: 0.3404rem; color: #718f9b; font-size: 0.6241rem; white-space: nowrap; }
.landing-inspiration { max-width: 1280px; padding-top: 5.7872rem; padding-bottom: 6.2411rem; }
.landing-agents { min-height: 41.1915rem; box-sizing: border-box; }
.landing-capabilities { min-height: 29.617rem; box-sizing: border-box; }
.landing-inspiration { min-height: 2322px; box-sizing: border-box; }
.landing-masonry { column-count: 4; column-gap: 1.0213rem; margin-top: 1.9291rem; }
.landing-inspiration-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 1.0213rem;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid rgba(91, 151, 168, .22);
  border-radius: 0.6809rem;
  background: rgba(8, 25, 33, .82);
  box-shadow: 0 0.7943rem 1.8156rem rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.landing-inspiration-card:hover { transform: translateY(-0.2837rem); border-color: rgba(42, 213, 227, .64); box-shadow: 0 1.1348rem 2.2695rem rgba(3, 208, 226, .12); }
.landing-inspiration-art { position: relative; display: grid; min-height: 8.6241rem; place-items: center; overflow: hidden; color: rgba(239, 253, 255, .88); font-size: 3.0638rem; }
.landing-inspiration-art::before, .landing-inspiration-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.19); border-radius: 50%; transform: rotate(-18deg); }
.landing-inspiration-art::before { width: 64%; height: 74%; }
.landing-inspiration-art::after { width: 38%; height: 48%; border-color: rgba(255,255,255,.12); transform: rotate(28deg); }
.landing-inspiration-art span { position: relative; z-index: 1; text-shadow: 0 0 1.5887rem currentColor; }
.inspiration-tall .landing-inspiration-art { min-height: 15.5461rem; }
.inspiration-medium .landing-inspiration-art { min-height: 11.8014rem; }
.inspiration-short .landing-inspiration-art { min-height: 8.6241rem; }
.art-winter { background: radial-gradient(circle at 28% 26%, #d9fbff 0 4%, transparent 5%), linear-gradient(140deg, #163b52, #75b7c3 48%, #f0d7bd); }
.art-fashion { background: radial-gradient(circle at 50% 30%, #fae5d3, transparent 16%), linear-gradient(145deg, #351d58, #e37a9a 55%, #ffc76b); }
.art-character { background: linear-gradient(150deg, #17333f, #37737a 48%, #d9ae75); }
.art-screen { background: linear-gradient(145deg, #0d1f51, #1bb3c8 52%, #eb9bd5); }
.art-blue { background: radial-gradient(circle at 60% 30%, #d2fbff 0 7%, transparent 8%), linear-gradient(145deg, #0b2858, #1776b5 52%, #7ddde3); }
.art-window { background: linear-gradient(145deg, #301b3d, #dc957e 50%, #f6ddb2); }
.art-comic { background: radial-gradient(circle at 70% 32%, #ffda68 0 7%, transparent 8%), linear-gradient(145deg, #421a34, #bc3d44 55%, #f09055); }
.art-mecha { background: linear-gradient(145deg, #09191f, #2e6874 46%, #9c7bd7); }
.art-lace { background: radial-gradient(circle at 42% 32%, #ffe7f4 0 6%, transparent 7%), linear-gradient(145deg, #4a2346, #c174b1 54%, #f4d5cc); }
.art-street { background: linear-gradient(145deg, #14222e, #2b7192 46%, #e3b55e); }
.art-sunset { background: linear-gradient(155deg, #1a263d, #c56c54 53%, #f2c070); }
.art-neon { background: radial-gradient(circle at 70% 38%, #8bf5ef 0 5%, transparent 6%), linear-gradient(145deg, #111548, #bc4393 51%, #40d7c6); }
.art-mountain { background: linear-gradient(155deg, #172b3d, #427f84 49%, #d8b984); }
.art-city { background: linear-gradient(160deg, #18243e, #5478ac 50%, #d2a979); }
.art-earth { background: linear-gradient(145deg, #283e37, #9a815f 50%, #d7bf91); }
.art-poster { background: linear-gradient(145deg, #342255, #7d65ce 49%, #3acfd6); }
.landing-inspiration-copy { display: grid; gap: 0.3972rem; padding: 0.7376rem 0.7943rem 0.8511rem; }
.landing-inspiration-copy strong { overflow: hidden; color: #e4f5f7; font-size: 0.7376rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.landing-inspiration-copy small { overflow: hidden; color: #7fa4ad; font-size: 0.5674rem; text-overflow: ellipsis; white-space: nowrap; }
.landing-load-more { display: block; min-width: 8.7376rem; margin: 1.8156rem auto 0; padding: 0.6241rem 1.078rem; border: 1px solid rgba(35, 195, 216, .35); border-radius: 1.2482rem; background: rgba(9, 44, 55, .58); color: #b8eaf0; font-size: 0.6809rem; transition: border-color .25s, background .25s, transform .25s; }
.landing-load-more:hover { border-color: rgba(35, 225, 237, .8); background: rgba(11, 77, 89, .7); transform: translateY(-0.1135rem); }

.landing-cta { position: relative; display: grid; min-height: 23.2624rem; place-items: center; overflow: hidden; border-top: 1px solid rgba(61, 139, 156, .17); border-bottom: 1px solid rgba(61, 139, 156, .17); text-align: center; }
.landing-cta-glow { position: absolute; inset: 12% 20%; pointer-events: none; background: radial-gradient(ellipse, rgba(22, 197, 221, .18), transparent 68%); filter: blur(0.7943rem); }
.landing-cta-inner { position: relative; z-index: 1; padding: 4.2553rem 1.3617rem; }
.landing-cta h2 { margin: 0.7943rem 0 0.6809rem; color: #f2fbff; font-size: 2.2695rem; }
.landing-cta p { margin: 0 0 1.7021rem; color: #9cb2ba; font-size: 0.7943rem; }
.landing-cta-actions { display: flex; justify-content: center; gap: 0.6809rem; }
.landing-cta-actions button { min-width: 8.2837rem; height: 2.6099rem; padding: 0 1.1348rem; border-radius: 1.3617rem; font-size: 0.6809rem; font-weight: 700; }
.landing-footer { padding: 1.7589rem 1.5887rem 2.0426rem; border-top: 0; color: #66828c; font-size: 0.6241rem; }
.landing-footer-inner { display: grid; max-width: 1220px; margin: 0 auto; grid-template-columns: 1fr auto; align-items: center; gap: 0.9078rem 1.3617rem; }
.landing-footer-inner > strong { color: #b5d0d6; font-size: 0.6809rem; font-weight: 600; }
.landing-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.8511rem; }
.landing-footer nav a, .landing-footer nav button { padding: 0; border: 0; background: transparent; color: #77959d; font: inherit; text-decoration: none; }
.landing-footer nav a:hover, .landing-footer nav button:hover { color: #c3f4f7; }
.landing-payment { grid-column: 1 / -1; color: #4d6a74; font-size: 0.5674rem; text-align: right; }
.landing-floating-support { position: fixed; z-index: 120; right: 2rem; bottom: 2rem; display: grid; width: 3.25rem; height: 3.25rem; place-items: center; padding: 0; border: 0; border-radius: 50%; background: linear-gradient(135deg, #00cae0, #0096c8); color: #fff; box-shadow: 0 0 2rem rgba(0, 202, 224, .4); cursor: pointer; transition: .3s; animation: landingSupportPulse 2.5s ease-in-out infinite; }
.landing-floating-support img { display: block; width: 28px; height: 28px; }
html:has(body.landing-mode)::-webkit-scrollbar { width: 6px; }
html:has(body.landing-mode)::-webkit-scrollbar-track { background: #222; }
html:has(body.landing-mode)::-webkit-scrollbar-thumb { border-radius: 3px; background: #777; }
.landing-floating-support:hover { transform: translateY(-.18rem) scale(1.1); box-shadow: 0 0 3rem rgba(0, 202, 224, .6); }
@keyframes landingSupportPulse { 0%, 100% { box-shadow: 0 0 2rem rgba(0, 202, 224, .4); } 50% { box-shadow: 0 0 2rem rgba(0, 202, 224, .4), 0 0 0 .5rem rgba(0, 202, 224, 0); } }
@media (max-width: 48rem) { .landing-floating-support { width: 3rem; height: 3rem; right: 1.25rem; bottom: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .landing-floating-support { animation: none; } }

@media (max-width: 840px) {
  .landing-masonry { column-count: 3; }
  .landing-footer-inner { grid-template-columns: 1fr; }
  .landing-footer nav { justify-content: flex-start; }
  .landing-payment { grid-column: auto; text-align: left; }
}
@media (max-width: 560px) {
  .landing-agents, .landing-capabilities, .landing-inspiration { min-height: 0; }
  .landing-section-head { align-items: flex-start; flex-direction: column; gap: 0.5674rem; }
  .landing-section-count { padding-bottom: 0; }
  .landing-masonry { column-count: 2; column-gap: 0.5674rem; margin-top: 1.2482rem; }
  .landing-inspiration-card { margin-bottom: 0.5674rem; border-radius: 0.5106rem; }
  .landing-inspiration-copy { padding: 0.5106rem 0.5674rem 0.6241rem; }
  .landing-inspiration-copy strong { font-size: 0.6241rem; }
  .landing-inspiration-copy small { font-size: 0.5106rem; }
  .landing-inspiration-art { min-height: 6.695rem !important; }
  .landing-cta h2 { font-size: 1.7589rem; }
  .landing-cta p { font-size: 0.6241rem; }
  .landing-cta-actions button { min-width: 0; flex: 1; padding: 0 0.6241rem; }
  .landing-footer { padding-inline: 0.8511rem; }
  .landing-footer nav { gap: 0.5674rem; }
}

.landing-feature-grid article { display: flex; flex-direction: column; }
.landing-feature-grid article button { align-self: flex-start; margin-top: 1.0213rem; padding: 0.3972rem 0.6241rem; border: 1px solid rgba(35, 203, 220, .42); border-radius: 0.9078rem; background: rgba(6, 51, 61, .5); color: #a9eaf0; font-size: 0.5674rem; transition: border-color .2s, color .2s, background .2s; }
.landing-feature-grid article button:hover { border-color: #2be0e7; background: rgba(8, 87, 99, .72); color: #fff; }

/* Section headings are centered on the reference page; card contents stay left-aligned. */
.landing-agents,
.landing-capabilities { max-width: 1179px; }
.landing-agents { padding: 5.3333rem 1.5887rem; }
.landing-capabilities { padding: 4.4255rem 1.5887rem; }
.landing-agents > .landing-section-kicker,
.landing-capabilities > .landing-section-kicker,
.landing-section-head .landing-section-kicker {
  display: table;
  margin: 0 auto 1.078rem;
  padding: 0.227rem 1.0213rem;
  border: 1px solid rgba(27, 203, 220, .2);
  border-radius: 1.0213rem;
  background: rgba(8, 42, 51, .55);
  color: #18d6e5;
  font-size: 0.6638rem;
  font-weight: 700;
  line-height: 1.0213rem;
  text-align: center;
}
.landing-agents > h2 {
  margin: 0 0 0.9078rem;
  font-size: 2.2128rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
}
.landing-agents > p {
  max-width: 30.0709rem;
  margin: 0 auto 3.5177rem;
  font-size: 0.8851rem;
  line-height: 1.65;
  text-align: center;
}
.landing-agents .landing-feature-grid { margin-top: 0; }
.landing-feature-grid article {
  position: relative;
  min-height: 15.2057rem;
  padding: 1.7589rem 1.3617rem 1.8156rem;
  background: rgba(9, 28, 36, .76);
  text-align: left;
}
.landing-feature-grid article::before {
  content: "▣";
  display: grid;
  flex: none;
  width: 2.4965rem;
  height: 2.4965rem;
  margin-bottom: 1.0213rem;
  place-items: center;
  border: 1px solid rgba(29, 195, 213, .18);
  border-radius: 0.4539rem;
  background: rgba(13, 71, 82, .46);
  color: #17ccdf;
  font-size: 1.2482rem;
}
.landing-feature-grid article:nth-child(2)::before { content: "✦"; }
.landing-feature-grid article:nth-child(3)::before { content: "◉"; }
.landing-feature-grid article:nth-child(4)::before { content: "♫"; }
.landing-feature-grid article b {
  position: absolute;
  top: 0.9645rem;
  right: 1.1915rem;
  color: rgba(40, 216, 230, .13);
  font-size: 2.2128rem;
  font-weight: 900;
  line-height: 1;
}
.landing-feature-grid article h3 {
  margin: 0 0 0.5106rem;
  font-size: 0.9736rem;
  line-height: 1.5;
}
.landing-feature-grid article span {
  color: #9ab0b8;
  font-size: 0.7523rem;
  line-height: 1.6;
}
.landing-feature-grid article button {
  margin-top: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #16d0df;
  font-size: 0.7262rem;
  font-weight: 600;
  line-height: 1.078rem;
}
.landing-feature-grid article button:hover { border: 0; background: transparent; color: #fff; }
.landing-capabilities > .landing-section-kicker { margin-bottom: 0.9078rem; }
.landing-capabilities > h2 {
  margin: 0;
  font-size: 1.9472rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}
.landing-capabilities .landing-capability-grid { margin-top: 3.1206rem; }
.landing-capability-grid article {
  min-height: 12.7092rem;
  padding: 1.5887rem 1.2482rem 1.305rem;
  background: rgba(9, 28, 36, .7);
  text-align: left;
}
.landing-capability-grid article b {
  display: grid;
  width: 2.3262rem;
  height: 2.3262rem;
  margin-bottom: 1.078rem;
  place-items: center;
  border: 1px solid rgba(29, 195, 213, .18);
  border-radius: 0.4539rem;
  background: rgba(13, 71, 82, .46);
  font-size: 1.1348rem;
}
.landing-capability-grid article h3 { margin: 0 0 0.4539rem; font-size: 0.9294rem; line-height: 1.5; }
.landing-capability-grid article p { margin: 0; font-size: 0.7262rem; line-height: 1.6; }
.landing-inspiration { padding-top: 4.4255rem; }
.landing-section-head { display: block; margin-bottom: 2.2128rem; text-align: center; }
.landing-section-head .landing-section-kicker { margin-bottom: 0.9078rem; }
.landing-section-head h2 { margin: 0 0 0.5106rem; font-size: 1.9472rem; font-weight: 900; line-height: 1.5; }
.landing-section-head p { font-size: 0.8409rem; line-height: 1.5; }
.landing-section-count { display: none; }
.landing-inspiration .landing-masonry { margin-top: 0; }
.landing-cta h2 { font-size: 2.2128rem; font-weight: 900; line-height: 1.2; }
.landing-cta p { font-size: 0.8851rem; line-height: 1.6; }
.landing-footer { font-size: 0.7081rem; }
@media (max-width: 560px) {
  .landing-agents,
  .landing-capabilities,
  .landing-inspiration { padding: 3.4043rem 0.8511rem; }
  .landing-agents > h2 { font-size: 1.7021rem; }
  .landing-agents > p { margin-bottom: 1.8156rem; font-size: 0.7376rem; }
  .landing-capabilities > h2,
  .landing-section-head h2 { font-size: 1.4752rem; }
  .landing-capabilities .landing-capability-grid { margin-top: 1.8156rem; }
  .landing-feature-grid article { min-height: 13.9007rem; padding: 1.1348rem 0.8511rem 1.2482rem; }
  .landing-feature-grid article::before { width: 2.0426rem; height: 2.0426rem; margin-bottom: 0.7943rem; font-size: 1.078rem; }
  .landing-feature-grid article b { top: 0.7943rem; right: 0.8511rem; font-size: 1.5887rem; }
  .landing-feature-grid article h3 { font-size: 0.7943rem; }
  .landing-feature-grid article span { font-size: 0.6241rem; }
  .landing-feature-grid article button { font-size: 0.6241rem; }
  .landing-capability-grid article { min-height: 10.7801rem; padding: 1.0213rem 0.8511rem; }
  .landing-capability-grid article b { width: 2.0426rem; height: 2.0426rem; margin-bottom: 0.7943rem; }
  .landing-capability-grid article h3 { font-size: 0.7943rem; }
  .landing-capability-grid article p { font-size: 0.6241rem; }
  .landing-section-head p { font-size: 0.6809rem; }
  .landing-cta h2 { font-size: 1.7589rem; }
  .landing-cta p { font-size: 0.6241rem; }
}

/* The reference curves belong to the fixed global background, not the hero
   section. The title, orbit and controls remain ordinary scrolling content. */
.landing-fixed-backdrop .landing-connection-lines { position: absolute; z-index: 0; inset: 0; }
.landing-hero { background: transparent !important; }
.landing-hero > .landing-grid-lines { display: none; }

/* Black glass base and white motion traces requested for the new visual pass. */
.landing-view { background: #020406; }
.landing-fixed-backdrop {
  background:
    radial-gradient(circle at 48% 16%, rgba(21, 48, 58, .17), transparent 40%),
    radial-gradient(circle at 78% 73%, rgba(50, 58, 89, .12), transparent 42%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    #020406;
  background-size: auto, auto, 3.6879rem 3.6879rem, 3.6879rem 3.6879rem, auto;
}
.landing-connection-line { stroke: rgba(255, 255, 255, .5); }
.landing-connection-line.cl-2 { stroke: rgba(255, 255, 255, .25); }
.landing-connection-line.cl-3 { stroke: rgba(255, 255, 255, .34); }

/* A restrained double ellipse gives the model orbit a luminous globe edge. */
.landing-orbit-stage::before,
.landing-orbit-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 53%;
  left: 50%;
  width: min(1220px, 128vw);
  height: min(37.4468rem, 84vh);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-12deg);
  box-shadow: 0 0 0.8511rem rgba(255, 255, 255, .15), 0 0 3.4043rem rgba(91, 214, 239, .18), inset 0 0 2.5532rem rgba(112, 200, 232, .08);
}
.landing-orbit-stage::after {
  width: min(1030px, 112vw);
  height: min(29.5035rem, 68vh);
  border-color: rgba(104, 222, 244, .24);
  border-style: dashed;
  transform: translate(-50%, -50%) rotate(25deg) scaleY(.55);
  animation: landingGlobeRingSweep 18s linear infinite;
}
@keyframes landingGlobeRingSweep {
  0%, 100% { opacity: .32; box-shadow: 0 0 0.8511rem rgba(255, 255, 255, .1), 0 0 2.5532rem rgba(91, 214, 239, .12); }
  50% { opacity: .8; box-shadow: 0 0 1.078rem rgba(255, 255, 255, .24), 0 0 4.0851rem rgba(91, 214, 239, .25); }
}

.landing-footer-platform { padding: 0; border: 0; background: transparent; color: #b5d0d6; font: inherit; font-size: 0.6809rem; font-weight: 600; text-align: left; }
.landing-footer-platform:hover { color: #c3f4f7; }
.modal-link-button { display: block; margin: 0.7376rem auto 0; padding: 0; border: 0; background: transparent; color: #83dbe4; font-size: 0.6241rem; }
.modal-link-button:hover { color: #fff; text-decoration: underline; }
.register-modal { width: min(28.3688rem, calc(100vw - 1.7021rem)); }
.register-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0.6809rem; }
.register-grid label { margin: 0.7943rem 0 0; }
.register-code-row { display: grid; grid-template-columns: 1fr auto; gap: 0.3972rem; }
.register-code-row button { padding: 0 0.5674rem; border: 1px solid rgba(56, 213, 231, .35); border-radius: 0.3972rem; background: rgba(8, 65, 74, .55); color: #a8edf2; font-size: 0.5674rem; }
.register-code-row button:hover { border-color: #35e0e8; color: #fff; }
.register-terms { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 0.4539rem; margin: 0.7376rem 0 0.2837rem !important; }
.register-terms input { width: 0.7943rem; height: 0.7943rem; margin: 0; accent-color: #16cadb; }
.register-terms span { color: #8ba6af; font-size: 0.5674rem; line-height: 1.4; }
.register-modal > .primary-cta { margin-top: 0.5106rem; }
@media (max-width: 560px) {
  .register-grid { grid-template-columns: 1fr; gap: 0; }
  .register-grid label { margin-top: 0; }
  .register-grid label + label { margin-top: 0.7943rem; }
  .landing-orbit-stage::before { width: 52.1986rem; height: 29.5035rem; }
  .landing-orbit-stage::after { width: 43.1206rem; height: 22.695rem; }
}

/* Final visual correction: keep the orbit itself, remove the added double
   globe rings, and lift the contrast of the fixed white motion traces and
   model nodes against the black base. */
.landing-orbit-stage::before,
.landing-orbit-stage::after { display: none !important; animation: none !important; }
.landing-connection-line {
  stroke: rgba(255, 255, 255, .82);
  stroke-width: .38px;
  animation: landingWhiteDashFlow 12s linear infinite;
}
.landing-connection-line.cl-2 { stroke: rgba(255, 255, 255, .52); }
.landing-connection-line.cl-3 { stroke: rgba(255, 255, 255, .65); }
@keyframes landingWhiteDashFlow {
  0% { stroke-dashoffset: 11.3475rem; opacity: .34; }
  50% { opacity: .68; }
  100% { stroke-dashoffset: -11.3475rem; opacity: .34; }
}
.landing-orbit-item { color: rgba(224, 252, 255, .9); text-shadow: 0 0 0.6809rem rgba(75, 225, 239, .3); }
.landing-orbit-icon {
  border-color: rgba(74, 226, 239, .58);
  background: rgba(8, 58, 71, .9);
  color: #68f1fa;
  box-shadow: 0 0 1.1348rem rgba(35, 218, 234, .3), inset 0 0 0.9645rem rgba(35, 218, 234, .12);
}
.landing-orbit-name { color: rgba(222, 248, 252, .84); text-shadow: 0 0 0.4539rem rgba(77, 219, 232, .25); }
.landing-orbit-item:nth-child(3n) .landing-orbit-icon { color: #d4a9ff; border-color: rgba(203, 153, 255, .66); box-shadow: 0 0 1.1348rem rgba(176, 113, 255, .28), inset 0 0 0.9645rem rgba(176, 113, 255, .12); }
.landing-orbit-item:nth-child(4n) .landing-orbit-icon { color: #ffe18a; border-color: rgba(255, 216, 103, .7); box-shadow: 0 0 1.1348rem rgba(255, 196, 78, .3), inset 0 0 0.9645rem rgba(255, 196, 78, .12); }
.landing-orbit-item:nth-child(5n) .landing-orbit-icon { color: #ff9bb4; border-color: rgba(255, 132, 169, .68); box-shadow: 0 0 1.1348rem rgba(255, 91, 139, .29), inset 0 0 0.9645rem rgba(255, 91, 139, .12); }

/* Desktop orbit nodes use the same 1.9291rem visual scale as the accepted mobile pass. */
@media (min-width: 769px) {
  .landing-orbit-icon { width: 1.9291rem; height: 1.9291rem; font-size: 1.078rem; }
}

@keyframes landingMobileOrbitEntrance {
  from { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@media (max-width: 768px) {
  .landing-orbit { transform: translate(-50%, -50%) scale(1); }
  .landing-orbit.is-entering { animation-name: landingMobileOrbitEntrance; }
  .landing-orbit-body {
    left: -2.156rem;
    top: -1.13475rem;
    transform-origin: 50% 1.13475rem;
    transform: rotate(calc(-1 * var(--orbit-angle)));
  }
  .landing-orbit-item { --orbit-radius: clamp(13.9007rem, 68vw, 15.8865rem) !important; text-shadow: none; }
  .landing-orbit-item:hover, .landing-orbit-item:focus-visible, .landing-orbit-item.is-selected { filter: none; }
  .landing-orbit-icon { width: 2.2695rem; height: 2.2695rem; font-size: 1.1915rem; }
  .landing-orbit-name { max-width: 4.0851rem; color: #d8f3f7; font-size: 0.6241rem; line-height: 1.3; text-shadow: none; }
  .landing-orbit-feature { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .landing-orbit-feature small { font-size: 0.5674rem; }
  .landing-hero-copy h1 em { text-shadow: none; }
}
@media (max-width: 380px) {
  .landing-orbit-body { left: -2.0426rem; }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .landing-orbit.is-entering { animation: none; transform: translate(-50%, -50%) scale(1); }
}

/* Attachment and asset-library states stay inside the reference composer. */
.asset-library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 7.4894rem; gap: 0.4539rem; margin-top: 0.9078rem; }
.asset-library-toolbar select { height: 1.9858rem; padding: 0 0.4539rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171d25; color: var(--text); font-size: 0.5674rem; }
.asset-library-list { display: grid; gap: 0.4539rem; max-height: 22.1277rem; margin-top: 0.6809rem; overflow-y: auto; }
.asset-library-item { display: grid; grid-template-columns: 1.7021rem minmax(0, 1fr) auto; gap: 0.5106rem; align-items: center; padding: 0.5106rem; border: 1px solid var(--line); border-radius: 0.3972rem; background: #171d25; }
.asset-library-icon { display: grid; width: 1.7021rem; height: 1.7021rem; place-items: center; border: 1px solid rgba(56, 213, 231, .35); border-radius: 0.3972rem; color: var(--cyan); }
.asset-library-copy { min-width: 0; }
.asset-library-copy strong, .asset-library-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-library-copy small { margin-top: 0.1702rem; color: var(--muted); font-size: 0.5106rem; }
.asset-library-item button { padding: 0.3404rem 0.5106rem; border: 1px solid var(--line-strong); border-radius: 0.2837rem; background: transparent; color: var(--cyan); font-size: 0.5674rem; }
.asset-library-item button:disabled { color: var(--muted); border-color: var(--line); }
.modal.wide.text-asset-modal { width: min(35.1773rem, calc(100vw - 1.7021rem)); }
.text-asset-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5674rem; align-items: center; margin-top: 1.1348rem; }
.text-asset-toolbar button, .text-asset-actions button { min-height: 1.9858rem; padding: 0 0.6809rem; border: 1px solid var(--line-strong); border-radius: 0.3404rem; background: #232c37; color: var(--text); font-size: 0.6241rem; white-space: nowrap; }
.text-asset-toolbar button { color: var(--cyan); }
.text-asset-tabs { display: flex; gap: 1.1348rem; margin-top: 1.0213rem; border-bottom: 1px solid var(--line); }
.text-asset-tabs button { min-width: 2.2695rem; padding: 0 0.1135rem 0.5674rem; border-bottom: 0.1135rem solid transparent; background: transparent; color: var(--muted); font-size: 0.6809rem; }
.text-asset-tabs button.active { border-bottom-color: var(--cyan); color: var(--text); }
.text-asset-list { min-height: 14.7518rem; max-height: min(46vh, 22.695rem); overflow-y: auto; }
.text-asset-list .empty-state { min-height: 14.7518rem; }
.text-asset-item { display: grid; grid-template-columns: 1.9291rem minmax(0, 1fr) auto; gap: 0.6241rem; align-items: center; min-height: 3.5177rem; border-bottom: 1px solid var(--line); }
.text-asset-icon { display: grid; width: 1.9291rem; height: 1.9291rem; place-items: center; border: 1px solid var(--line-strong); border-radius: 0.3404rem; color: var(--cyan); }
.text-asset-copy { display: grid; gap: 0.1702rem; min-width: 0; }
.text-asset-copy strong { overflow: hidden; color: var(--text); font-size: 0.6809rem; text-overflow: ellipsis; white-space: nowrap; }
.text-asset-copy small { margin: 0; color: var(--muted); font-size: 0.5674rem; }
.text-asset-item button { min-height: 1.7021rem; padding: 0 0.6241rem; border: 1px solid var(--line-strong); border-radius: 0.3404rem; background: transparent; color: var(--cyan); font-size: 0.6241rem; }
.text-asset-item button:disabled { opacity: .55; cursor: default; }
.text-asset-status { min-height: 0.9078rem; margin: 0.4539rem 0 0 !important; color: var(--orange) !important; font-size: 0.6241rem !important; }
.text-asset-create-modal { width: min(32.3404rem, calc(100vw - 1.7021rem)); }
.text-asset-create-modal > label { margin-top: 1.2482rem; }
.text-asset-field-head { display: flex; align-items: center; justify-content: space-between; margin-top: 1.0213rem; color: #bac7d5; font-size: 0.6241rem; }
.text-asset-field-head label { display: block; margin: 0; }
.text-asset-field-head span { color: var(--muted); }
.text-asset-create-modal textarea { width: 100%; min-height: min(36vh, 14.1844rem); margin-top: 0.5106rem; padding: 0.5674rem; resize: vertical; border: 1px solid var(--line); border-radius: 0.3972rem; background: #1b222d; color: var(--text); font: inherit; font-size: 0.6809rem; line-height: 1.6; }
.text-asset-actions { display: flex; justify-content: flex-end; gap: 0.4539rem; margin-top: 0.7943rem; }
.text-asset-actions .primary-cta { width: auto; margin: 0; border-color: transparent; background: var(--cyan); color: #07191d; }
@media (max-width: 480px) { .text-asset-toolbar { grid-template-columns: 1fr; } .text-asset-toolbar button { justify-self: end; } }
.option-grid button.active, .skill-grid button.active { border-color: var(--cyan); background: rgba(34, 211, 238, .14); color: #e8fbff; }
.inline-status { min-height: 1.3617rem; margin: 0.5674rem 0 !important; color: #a7dbe2 !important; }
.manual-content { display: grid; gap: 0.6809rem; margin-top: 0.8511rem; }
.manual-content article { padding: 0.6809rem; border: 1px solid var(--line); border-radius: 0.4539rem; background: #181e27; }
.manual-content h3 { margin: 0 0 0.3404rem; font-size: 0.6809rem; }
.manual-content p { margin: 0; }

/* Reference-style account overlay (TanChuang_DengLu).  The existing auth
   endpoints remain behind the password tab; phone/code and social controls
   stay explicit until their real providers are connected. */
.login-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(.25rem);
  color: #e7edf3;
  /*
   * The reference account dialog is authored against a 16px component
   * baseline even though the workbench uses the measured 17.625px root
   * scale.  Keep the overlay's rem geometry independent of that workbench
   * scale so the mobile card does not grow into a scrollable full-height
   * sheet.
   */
  font-size: 16px;
}
.login-container {
  position: relative;
  box-sizing: border-box;
  width: min(26rem, calc(100vw - 2.5rem));
  min-height: 39.3125rem;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid #2a2e36;
  border-radius: .75rem;
  background: #16181d;
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .68);
  scrollbar-width: thin;
}
.login-close {
  position: absolute;
  z-index: 2;
  top: .75rem;
  right: .75rem;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  background: transparent;
  color: #8f969f;
  font-size: 1.45rem;
  line-height: 1;
}
.login-close:hover { color: #fff; }
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.75rem .625rem;
  text-align: center;
}
.logo-wrapper {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #2a2e36;
  border-radius: .5rem;
  background: #16181d;
}
.logo-image { display: block; width: 3.5rem; height: 3.5rem; object-fit: cover; }
.login-title { margin: .75rem 0 .6rem; color: #f4f7fa; font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.gift-heading { display: flex; align-items: center; justify-content: center; width: 100%; gap: .7rem; height: 1.25rem; color: #ffbf34; }
.gift-line { width: 2.3rem; height: 1px; background: linear-gradient(90deg, transparent, #0bb8d1); }
.gift-line:last-child { background: linear-gradient(90deg, #0bb8d1, transparent); }
.gift-icon { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; color: #ffbf34; line-height: 1; }
.gift-icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.gift-title { margin: .35rem 0 .45rem; color: #f3f5f7; font-size: .875rem; font-weight: 700; line-height: 1.3; }
.gift-title span { color: #ffc52e; }
.gift-chips { display: flex; justify-content: center; gap: .35rem; flex-wrap: nowrap; }
.gift-chips span {
  padding: .18rem .45rem;
  border: 1px solid rgba(0, 207, 226, .7);
  border-radius: 999px;
  background: rgba(0, 177, 198, .09);
  color: #dffbff;
  font-size: .625rem;
  line-height: 1.25;
  white-space: nowrap;
}
.gift-tip { margin: .45rem 0 0; color: #99a0aa; font-size: .5625rem; line-height: 1.35; }
.login-body { padding: .625rem 1rem 1rem; }
.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #2a2e36;
}
.login-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 2.45rem;
  border: 0;
  background: transparent;
  color: #7f8791;
  font-size: .75rem;
  white-space: nowrap;
}
.login-tab::after { content: ""; position: absolute; right: .65rem; bottom: -.0625rem; left: .65rem; height: 2px; background: transparent; }
.login-tab.active { color: #00c9e2; }
.login-tab.active::after { background: #00c9e2; }
.login-tab-icon { display: inline-grid; width: .9rem; height: .9rem; color: currentColor; line-height: 1; }
.login-tab-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.login-panel { padding-top: .9rem; }
.form-group { display: grid; gap: .35rem; margin: 0 0 .75rem; }
.form-label { color: #aab1ba; font-size: .75rem; line-height: 1.25; }
.form-input {
  box-sizing: border-box;
  width: 100%;
  height: 2.5rem;
  padding: 0 .75rem;
  border: 1px solid #2a2e36;
  border-radius: .375rem;
  outline: none;
  background: #1a1d23;
  color: #e9eef3;
  font: inherit;
  font-size: .8125rem;
}
.form-input::placeholder { color: #68717b; }
.form-input:focus { border-color: #00bfd8; box-shadow: 0 0 0 2px rgba(0, 191, 216, .12); }
.code-wrapper, .password-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; position: relative; }
.password-field .form-input { padding-right: 2.5rem; }
.password-toggle { position: absolute; right: .45rem; top: 50%; display: grid; width: 1.75rem; height: 1.75rem; place-items: center; transform: translateY(-50%); border: 0; background: transparent; color: #78818b; }
.password-toggle svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.code-btn {
  min-width: 5.3rem;
  height: 2.5rem;
  padding: 0 .55rem;
  border: 1px solid rgba(0, 197, 218, .42);
  border-radius: .375rem;
  background: rgba(4, 73, 84, .25);
  color: #00cee7;
  font-size: .6875rem;
  white-space: nowrap;
}
.code-btn:hover { border-color: #00cfe6; background: rgba(4, 105, 119, .3); }
.captcha-wrapper { grid-template-columns: minmax(0, 1fr) 6.25rem; }
.captcha-image {
  position: relative;
  display: grid;
  width: 6.25rem;
  height: 2.5rem;
  place-items: center;
  overflow: hidden;
  border-radius: .3rem;
  background: #f4f5f7;
  color: #1a516a;
  font-family: Georgia, serif;
  font-size: 1rem;
  letter-spacing: .08em;
  transform: skew(-5deg);
}
.captcha-image::before, .captcha-image::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(164deg, transparent 0 7px, rgba(28, 93, 130, .35) 8px 9px, transparent 10px 15px); }
.captcha-image::after { transform: rotate(13deg); opacity: .65; background: repeating-linear-gradient(83deg, transparent 0 11px, rgba(26, 87, 139, .36) 12px 13px, transparent 14px 18px); }
.captcha-image span { position: absolute; inset: 0; background: radial-gradient(circle at 15% 32%, #1489ac 0 1px, transparent 1.5px), radial-gradient(circle at 65% 64%, #143e88 0 1px, transparent 1.5px), radial-gradient(circle at 87% 23%, #1a7b9e 0 1px, transparent 1.5px); }
.login-form-row { display: flex; align-items: flex-start; justify-content: flex-start; min-height: 1.4rem; margin-top: .15rem; }
.login-agreement { display: inline-flex; align-items: flex-start; gap: .4rem; margin: 0; color: #858d96; font-size: .625rem; line-height: 1.45; }
.login-agreement input { flex: 0 0 auto; width: .8rem; height: .8rem; margin: .05rem 0 0; accent-color: #00bad3; }
.login-agreement a { color: #00c9e2; text-decoration: none; }
.login-agreement a:hover { text-decoration: underline; }
.login-submit-btn {
  width: 100%;
  height: 2.625rem;
  margin-top: .7rem;
  border: 0;
  border-radius: .375rem;
  background: #0b7180;
  color: #93a4a8;
  font-size: .9375rem;
  font-weight: 600;
}
.login-submit-btn:not(:disabled) { background: #06b6d4; color: #06242a; }
.login-submit-btn:not(:disabled):hover { background: #16c9e5; }
.login-submit-btn:disabled { cursor: not-allowed; opacity: .84; }
.login-message { display: block; min-height: 1rem; margin-top: .35rem; color: #ffad58; font-size: .625rem; line-height: 1.4; }
.zhaohui-link { display: block; margin: .2rem auto 0; padding: 0; border: 0; background: transparent; color: #9ca4ad; font-size: .6875rem; }
.zhaohui-link:hover { color: #00c9e2; }
.login-divider, .social-login, .login-register-prompt { display: none; }
.register-panel { padding-top: .9rem; }
.register-panel .zhuce-zengsong { display: flex; gap: .55rem; margin-top: .9rem; padding: .65rem; border: 1px solid rgba(255, 191, 52, .24); border-radius: .5rem; background: rgba(255, 191, 52, .06); }
.register-panel .gift-ribbon { color: #ffc52e; font-size: 1.2rem; }
.register-panel .zhuce-zengsong strong, .register-panel .zhuce-zengsong small { display: block; }
.register-panel .zhuce-zengsong strong { color: #ffc52e; font-size: .75rem; }
.register-panel .zhuce-zengsong small { margin-top: .25rem; color: #aab1ba; font-size: .625rem; }
.register-panel .gift-chips { justify-content: flex-start; margin-top: .35rem; }
.register-panel .gift-chips span { border-color: rgba(255, 191, 52, .28); color: #d8dfe3; font-size: .5625rem; }
.register-back-link { margin-top: .75rem; }
.login-overlay .register-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.login-overlay .register-terms { margin-top: .2rem; }
.login-overlay .register-terms + .login-submit-btn { margin-top: .7rem; }
@media (min-width: 769px) {
  .login-container { width: min(26rem, calc(100vw - 2.5rem)); }
}
@media (max-width: 480px) {
  .login-overlay { padding: 1rem; }
  .login-container { width: calc(100vw - 50px); height: 629px; min-height: 629px; max-height: 629px; overflow: hidden; border-radius: .5rem; }
  .login-header { padding: 1.25rem 1rem .625rem; }
  .login-body { padding: .625rem 1rem 1rem; }
  .login-title { margin: .75rem 0 .6rem; font-size: 1.25rem; }
  .gift-title { margin: .35rem 0 .45rem; font-size: .875rem; }
  .gift-tip { margin-top: .45rem; }
  .login-panel { padding-top: .9rem; }
  .form-group { margin-bottom: .75rem; }
  .login-panel .form-group:last-child { margin-bottom: 0; }
  .login-submit-btn { margin-top: .7rem; }
  .login-form-row { margin-top: .15rem; }
  .login-tab { font-size: .75rem; }
}
.composer.composer-fullscreen { position: fixed; z-index: 70; inset: 1.0213rem; width: auto; min-height: calc(100vh - 2.0426rem); padding: 1.3617rem; overflow: auto; background: #10151d; box-shadow: 0 1.4184rem 5.6738rem #000c; }
.composer.composer-fullscreen .composer-main { min-height: min(52vh, 29.5035rem); }
.composer.composer-fullscreen :is(textarea,.refmedia-rich-input) { min-height: min(48vh, 27.234rem); font-size: 0.8511rem; }
body.composer-fullscreen-active::after { content: "按 Esc 退出全屏编辑"; position: fixed; z-index: 71; right: 1.5887rem; top: 1.4752rem; color: var(--muted); font-size: 0.5674rem; pointer-events: none; }

/* Mobile navigation contract: the reference uses a width-animated drawer,
   rather than moving a full-width rail off canvas. Keep the drawer and its
   backdrop in CSS so the existing mobile-menu toggle remains the only JS
   state change required. */
@media (max-width: 450px) {
  .app-shell { display: block; }
  .sidebar-toggle { display: grid; z-index: 180; top: 1.7021rem; left: 0.8511rem; }
  .sidebar {
    z-index: 200;
    inset: 0 auto 0 0;
    width: 0;
    max-width: 86vw;
    overflow: hidden;
    transform: none;
    visibility: hidden;
    pointer-events: none;
    border-right-width: 0;
    box-shadow: none;
    transition: width .38s cubic-bezier(.22, 1, .36, 1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
  }

  .sidebar.mobile-open {
    width: min(20rem, 86vw);
    visibility: visible;
    pointer-events: auto;
    border-right-width: 1px;
    box-shadow: 0.375rem 0 1.5rem #00000073;
  }

  .app-shell:has(.sidebar.mobile-open) > .sidebar-toggle {
    z-index: 210;
    left: calc(min(20rem, 86vw) - 3.1944rem);
  }

  .sidebar .brand-row { width: auto; }

  /* A collapsed desktop state must never leave a one-pixel interactive rail
     on phones. The explicit mobile-open rule above wins when the drawer is
     opened from the mobile menu. */
  body.sidebar-collapsed .sidebar {
    width: 0;
    pointer-events: none;
    overflow: hidden;
    border-right-width: 0;
  }

  body.sidebar-collapsed .sidebar.mobile-open {
    width: min(20rem, 86vw);
    pointer-events: auto;
    border-right-width: 1px;
  }

  body.sidebar-collapsed .sidebar .brand-row { width: auto; }

  .mobile-sidebar-mask {
    display: block;
    position: fixed;
    z-index: 190;
    inset: 0;
    background: #00000080;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }

  .app-shell:has(.sidebar.mobile-open) > .mobile-sidebar-mask {
    opacity: 1;
    pointer-events: auto;
  }

  .app-shell:has(.sidebar.mobile-open) .top-actions {
    opacity: 0;
    pointer-events: none;
  }

  .top-actions { transition: opacity .25s ease; }
  .app-shell .workspace-topbar { padding-left: 0.9028rem; }
}

/* Keep the directory overrides after the responsive blocks so the reference
   dimensions win at both desktop and mobile breakpoints. */
.vendor-menu { position: fixed; z-index: 120; left: 0.7376rem; top: 17.8723rem; width: 9.9858rem; max-height: 16.5106rem; overflow: auto; padding: 0.3404rem; border: 1px solid rgba(121, 203, 222, .28); border-radius: 0.5106rem; background: #171c25; box-shadow: 0 0.8511rem 1.9858rem #000b; }
.vendor-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.4539rem; padding: 0.4539rem 0.5106rem; border-radius: 0.2837rem; background: transparent; color: #bac6d6; text-align: left; font-size: 0.6241rem; }
.vendor-menu button:hover, .vendor-menu button.active { background: rgba(48, 194, 211, .13); color: #fff; }
.vendor-menu .vendor-count { color: #74899d; font-size: 0.5674rem; }
.model-card .model-rate, .model-card .model-tag { flex: 0 0 auto; padding: 0.1248rem 0.3745rem; border: 1px solid rgba(64, 221, 168, .35); border-radius: 0.2496rem; background: rgba(35, 184, 130, .12); color: #39d9a0; font-size: 0.6241rem; line-height: 0.9373rem; white-space: nowrap; }
.model-card .model-rate.rate-mid { border-color: rgba(255, 198, 61, .48); background: rgba(214, 153, 24, .14); color: #ffd45a; }
.model-card .model-rate.rate-low { border-color: rgba(255, 102, 112, .48); background: rgba(204, 54, 67, .15); color: #ff818b; }
.model-card .model-tag-image { border-color: rgba(80, 186, 255, .42); background: rgba(28, 126, 193, .14); color: #66d6ff; }
.model-card .model-tag-video { border-color: rgba(255, 165, 61, .45); background: rgba(187, 113, 22, .14); color: #ffc363; }
.model-card .model-tag-audio { border-color: rgba(218, 129, 255, .46); background: rgba(137, 64, 185, .14); color: #de9aff; }
.model-card .model-tag-chat { border-color: rgba(64, 221, 168, .35); background: rgba(35, 184, 130, .12); color: #39d9a0; }
.model-indicator { position: absolute; z-index: 1; top: -0.1135rem; right: -0.1135rem; width: 0.4539rem; height: 0.4539rem; border: 1px solid #101820; border-radius: 50%; background: #fff; box-shadow: 0 0 0.4539rem rgba(255, 255, 255, .9); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s; }
.model-card.selected .model-indicator { opacity: 1; transform: scale(1); }
.model-card.selected .model-icon-wrapper { background: rgba(22, 145, 164, .18); box-shadow: 0 0 0.7943rem rgba(31, 211, 226, .22); }
.model-card .pin-button { position: absolute; z-index: 3; top: -1px; left: -1px; width: 1.2482rem; height: 1.2482rem; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: #111827; color: #9aaabc; opacity: .85; transition: color .2s, background .2s, border-color .2s, box-shadow .2s, transform .15s; }
.model-card .pin-glyph { display: grid; place-items: center; width: 0.7943rem; height: 0.7943rem; }
.model-card .pin-glyph svg { width: 0.7376rem; height: 0.7376rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-card .pin-button:hover, .model-card .pin-button:focus-visible { color: var(--yellow); border-color: rgba(255, 191, 52, .72); background: rgba(255, 191, 52, .16); box-shadow: 0 0 0.6809rem rgba(255, 191, 52, .3); opacity: 1; }
.model-card .pin-button:active { transform: scale(.97); }
.my-model-toolbar { position: sticky; top: 0; z-index: 5; padding: 0.5106rem 0 0.227rem; background: linear-gradient(#11141b 80%, transparent); }
.add-model-button { width: 100%; margin: 0; padding: 0.5674rem; border: 1px dashed rgba(66, 223, 237, .5); border-radius: 0.4539rem; background: rgba(22, 182, 201, .08); color: var(--cyan); }
.model-picker { width: min(33.9858rem, calc(100vw - 1.7021rem)); max-height: min(35.1206rem, calc(100vh - 1.7021rem)); }
.available-model { grid-template-columns: 2.2695rem minmax(0, 1fr) auto; gap: 0.5674rem; }
.available-model .available-model-icon { width: 2.156rem; height: 2.156rem; display: grid; place-items: center; border: 1px solid rgba(66, 223, 237, .45); border-radius: 0.5674rem; color: var(--cyan); }
.available-model .available-model-icon img { width: 1.7589rem; height: 1.7589rem; object-fit: contain; }
.available-model .available-model-type { display: inline-block; margin-top: 0.227rem; padding: 1px 0.2837rem; border: 1px solid rgba(66, 223, 237, .35); border-radius: 0.227rem; color: var(--cyan); font-size: 0.5106rem; }

@media (max-width: 840px) {
  body.media-mode .chat-workspace {
    position: absolute;
    z-index: 12;
    left: 0.4539rem;
    bottom: 0.6241rem;
    width: calc(100% - 0.9078rem);
    margin: 0;
    transform: none;
  }
  body.media-mode .api-model-link { margin-bottom: 0.5674rem; }
  body.media-mode .composer {
    display: grid;
    grid-template-columns: minmax(5.4468rem, 28%) minmax(0, 1fr);
    grid-template-rows: 7.6596rem 2.4397rem 3.0638rem;
    height: 13.2766rem;
    min-height: 13.2766rem;
    padding: 0;
  }
  body.media-mode .media-composer-options,
  body[data-media-mode="audio"] .media-composer-options { display: contents; }
  body.media-mode .media-reference-slots {
    grid-column: 1;
    grid-row: 1;
    align-content: start;
    flex-wrap: nowrap;
    gap: 0.2837rem;
    min-width: 0;
    margin: 0;
    padding: 0.5674rem 0.3404rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
  body.media-mode .reference-slot-wrap { flex: 0 0 3.5177rem; width: 3.5177rem; }
  body.media-mode .reference-slot { width: 3.5177rem; height: 4.3688rem; }
  body.media-mode .reference-slot-floating-preview { top: 0.1135rem; left: 1px; width: 3.4043rem; height: 4.3688rem; border-width: 1px; }
  body.media-mode .reference-slot-name, body.media-mode .reference-slot-file { max-width: 3.4043rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.media-mode .reference-slot-clear { right: 0; }
  body.media-mode .composer-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    padding: 0.7376rem 0.5674rem 0.227rem 0.2837rem;
  }
  body.media-mode .composer-main :is(textarea,.refmedia-rich-input) { min-height: 0; height: 100%; }
  body.media-mode .composer.without-reference-slots { grid-template-columns: minmax(0, 1fr); }
  body.media-mode .composer.without-reference-slots .media-reference-slots { display: none; }
  body.media-mode .composer.without-reference-slots .composer-main { grid-column: 1; padding-left: 0.7376rem; }
  body.media-mode .media-control-row {
    grid-column: 1 / -1;
    grid-row: 2;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    padding: 0.1702rem 0.5106rem;
    border-top: 1px solid rgba(132, 157, 182, .11);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
  body.media-mode .media-control-shell,
  body.media-mode .media-control,
  body.media-mode .media-extra-action { flex: 0 0 auto; white-space: nowrap; }
  body.media-mode .media-extra-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
    width: calc(100% - 10.6099rem);
    padding: 0.227rem 0.227rem 0.227rem 0.5106rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
  }
  body.media-mode .composer-footer { position: absolute; right: 0.6241rem; bottom: 0.6241rem; margin: 0; }
  body.media-mode .composer-rail {
    position: absolute;
    top: auto;
    right: 2.8936rem;
    bottom: 0.6809rem;
    display: flex;
    gap: 0.2837rem;
    transform: none;
  }
  body.media-mode .composer-rail button { flex: 0 0 1.7021rem; width: 1.7021rem; height: 1.7021rem; }
  body[data-media-mode="audio"] .composer { min-height: 13.2766rem; }
  body[data-media-mode="audio"] .audio-field-grid {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    margin: 0;
    padding: 0.5674rem 0.5106rem 0.227rem;
    border: 0;
  }
  body[data-media-mode="audio"] .audio-field-grid textarea { min-height: 4.9929rem; }
}

/* Chat workbench alignment: the reference keeps a 1234px tray anchored to
   the desktop bottom edge and a compact, scrollable control row on phones.
   These selectors intentionally exclude media mode so image/video/audio
   trays keep their model-specific layouts. */
@media (min-width: 841px) {
  body:not(.media-mode) .chat-workspace {
    position: absolute;
    z-index: 12;
    left: 50%;
    bottom: 1.2482rem;
    width: min(1234px, calc(100% - 9.078rem));
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
  }
  body:not(.media-mode) .api-model-link { margin: 0 auto 0.6809rem; }
  body:not(.media-mode) .composer {
    display: grid;
    grid-template-rows: minmax(0, 8.227rem) 3.0071rem;
    width: 100%;
    height: 11.234rem;
    min-height: 11.234rem;
    padding: 0;
    overflow: visible;
  }
  body:not(.media-mode) .composer-main {
    min-height: 0;
    padding: 0.8511rem 0.9645rem 0.2837rem;
  }
  body:not(.media-mode) .composer-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3.0071rem;
    padding: 0.5674rem 0.9078rem;
    border-top: 1px solid rgba(132, 157, 182, .11);
  }
  body:not(.media-mode) .composer-tools {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-right: 2.4965rem;
  }
  body:not(.media-mode) .composer-tools::-webkit-scrollbar { display: none; }
  body:not(.media-mode) .tool-chip { flex: 0 0 auto; white-space: nowrap; }
  body:not(.media-mode) .composer-rail {
    top: auto;
    right: -2.9504rem;
    bottom: 0.5674rem;
    z-index: 3;
  }
  body:not(.media-mode) .quick-actions { bottom: 0.9078rem; }
}

@media (max-width: 840px) {
  body:not(.media-mode) .chat-workspace {
    position: absolute;
    z-index: 12;
    left: 0.5106rem;
    bottom: 0.6241rem;
    width: calc(100% - 1.0213rem);
    margin: 0;
    padding: 0;
    transform: none;
  }
  body:not(.media-mode) .api-model-link { margin: 0 auto 0.5674rem; }
  body:not(.media-mode) .composer {
    display: grid;
    grid-template-rows: minmax(0, 8.227rem) 5.3901rem;
    height: 13.617rem;
    min-height: 13.617rem;
    padding: 0 0.5106rem;
    overflow: visible;
  }
  body:not(.media-mode) .composer-main {
    min-height: 0;
    padding: 0.7376rem 0 0.227rem;
  }
  body:not(.media-mode) .composer-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5.3901rem;
    align-items: flex-end;
    padding: 0.4539rem 2.7234rem 0.5674rem 0.5106rem;
    border-top: 1px solid rgba(132, 157, 182, .11);
  }
  body:not(.media-mode) .composer-tools {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1135rem;
    scrollbar-width: thin;
  }
  body:not(.media-mode) .tool-chip { flex: 0 0 auto; white-space: nowrap; }
  body:not(.media-mode) .send-button { position: absolute; right: 0.5674rem; bottom: 0.5674rem; }
  body:not(.media-mode) .composer-rail {
    display: flex;
    top: auto;
    right: auto;
    left: 0.5106rem;
    bottom: 2.9504rem;
    z-index: 4;
    gap: 0.2837rem;
    transform: none;
  }
  body:not(.media-mode) .composer-rail button { width: 1.7021rem; height: 1.7021rem; }
  body:not(.media-mode) .quick-actions { display: none; }
}

@media (max-width: 480px) {
  body:not(.media-mode) .composer-rail { display: flex; }
}

/* Reference chat controls: keep the shell geometry stable while allowing the
   chat tray and utility overlays to remain usable at smaller widths. */
@media (min-width: 841px) {
  .history-tab {
    top: 17.0213rem;
    width: 2.7801rem;
    height: 7.6596rem;
    border-radius: 0 0.7376rem 0.7376rem 0;
  }

  .history-drawer {
    left: calc(var(--sidebar) + 0.8511rem);
    width: 19.0071rem;
    padding: 1.1915rem 0.8511rem;
  }
  body.sidebar-collapsed .history-drawer { left: 0.8511rem; }

  .workspace-topbar { min-height: 4.6525rem; }
  .top-actions { gap: 0.6241rem; }
  .round-action { width: 3.234rem; height: 3.234rem; font-size: 1.1348rem; }
  .guide-button { width: 2.2695rem; height: 2.2695rem; font-size: 1.1348rem; }
  .current-model {
    top: 1.3617rem;
    min-height: 1.7021rem;
    padding: 0.3972rem 0.7943rem;
    gap: 0.3404rem;
    white-space: nowrap;
    font-size: 0.6809rem;
  }
  .current-model-icon { min-width: 0.9078rem; min-height: 0.9078rem; }
  .current-model-icon img { width: 1.0213rem; height: 1.0213rem; }

  body:not(.media-mode) .model-hero-icon {
    width: 7.2624rem;
    height: 7.2624rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 2.7234rem;
  }
  body:not(.media-mode) .model-hero-icon img { width: 7.2624rem; height: 7.2624rem; }
  body:not(.media-mode) .hero-brand-tt,
  body:not(.media-mode) .hero-brand-chat { width: 5.1064rem; height: 5.1064rem; }
  body:not(.media-mode) .hero-brand-tt svg { width: 4.539rem; height: 4.539rem; }
  body:not(.media-mode) .hero-notice {
    width: min(37.5035rem, calc(100% - 1.8156rem));
    max-width: 37.5035rem;
  }

  body:not(.media-mode) .composer-rail {
    right: -2.9504rem;
    bottom: 0.5674rem;
    gap: 0.4539rem;
  }
  body:not(.media-mode) .composer-rail button {
    width: 2.0426rem;
    height: 2.0426rem;
  }
}

.model-hero-icon.hero-brand-tt { border: 0; background: transparent; box-shadow: none; color: #48d1ad; }
.hero-brand-tt svg { display: block; width: 4.0851rem; height: 4.0851rem; fill: none; stroke: currentColor; stroke-width: 5; stroke-linejoin: round; filter: drop-shadow(0 0 0.5674rem rgba(72, 209, 173, .35)); }
.current-model-icon.is-tt-brand { color: #48d1ad; }
.current-model-icon.is-tt-brand svg { display: block; width: 0.9645rem; height: 0.9645rem; fill: none; stroke: currentColor; stroke-width: 7; stroke-linejoin: round; }
.model-hero-icon.hero-brand-chat { border-color: rgba(56, 213, 231, .48); border-radius: 1.3617rem; background: rgba(12, 48, 58, .45); box-shadow: 0 0 1.1348rem rgba(56, 213, 231, .18); color: #8af5e8; font-size: 1.3617rem; }
.api-model-link { width: fit-content; max-width: 100%; text-align: center; text-decoration: none; }
.api-model-link:hover { color: #d5f5f8; }
.composer-rail .control-icon { width: 1.0213rem; height: 1.0213rem; }
.routing-modal { width: min(36.3121rem, calc(100vw - 1.7021rem)); }
.routing-modal .modal-head { padding-right: 1.4752rem; }
.routing-modal .modal-head h2 { margin-top: 0.2837rem; }
.routing-modal > p { margin: 0.7943rem 0 1.0213rem; }
.routing-section-title, .routing-section-head h3 { margin: 0 0 0.5674rem; color: #e9f2f6; font-size: 0.7376rem; }
.routing-strategies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4539rem; }
.routing-strategies button { display: grid; gap: 0.3404rem; min-height: 4.0851rem; padding: 0.7376rem; border: 1px solid rgba(124, 154, 174, .24); border-radius: 0.4539rem; background: #19212a; color: #e7eff5; text-align: left; }
.routing-strategies button:hover, .routing-strategies button:focus-visible { border-color: rgba(56, 213, 231, .58); }
.routing-strategies button.active { border-color: var(--cyan); background: rgba(26, 145, 163, .18); box-shadow: inset 0 0 0.9078rem rgba(29, 183, 205, .1); }
.routing-strategies strong { font-size: 0.7376rem; }
.routing-strategies small { margin: 0; color: #aab9c5; font-size: 0.6241rem; line-height: 1.4; }
.routing-channels { margin-top: 1.1348rem; padding-top: 0.9645rem; border-top: 1px solid var(--line); }
.routing-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5674rem; }
.routing-section-head span { color: #91aab6; font-size: 0.5674rem; }
.routing-channel-empty { padding: 0.9645rem; border: 1px dashed rgba(124, 154, 174, .28); border-radius: 0.4539rem; color: #aab9c5; font-size: 0.6241rem; line-height: 1.6; }
@media (max-width: 480px) {
  .routing-strategies { grid-template-columns: 1fr; }
  .routing-strategies button { min-height: 3.1773rem; }
  .routing-section-head { display: grid; }
}

/* Semantic overlay hooks used by the reference guide, reward, editor,
   history/manual, and recharge views. They are harmless when not rendered. */
.guide-modal-content, .reward-modal, .editor-modal, .manual-drawer {
  min-width: 0;
}
.reference-guide { width: min(30.6383rem, calc(100vw - 1.7021rem)); }
.guide-modal-content { display: grid; gap: 0.9078rem; }
.guide-head { display: grid; gap: 0.2837rem; padding-right: 1.8156rem; }
.guide-sections { display: grid; gap: 0.5674rem; }
.guide-sections > section, .guide-sections > article {
  padding: 0.6809rem 0.7376rem;
  border: 1px solid var(--line);
  border-radius: 0.4539rem;
  background: #181e27;
}
.reward-modal, .editor-modal { width: min(31.773rem, calc(100vw - 1.7021rem)); }
.editor-modal { width: min(40.8511rem, calc(100vw - 1.7021rem)); }
.editor-modal textarea {
  display: block;
  width: 100%;
  min-height: min(40vh, 18.156rem);
  padding: 0.6809rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0.4539rem;
  background: #1b222d;
  color: var(--text);
  font-size: 0.6809rem;
  line-height: 1.6;
}
.manual-drawer {
  position: fixed;
  z-index: 45;
  inset: 0.8511rem 0.8511rem 0.8511rem auto;
  width: min(22.1277rem, calc(100vw - 1.7021rem));
  overflow: auto;
  padding: 1.1915rem;
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 0.6809rem;
  background: #11161e;
  box-shadow: 0 1.0213rem 3.1206rem #0009;
  transform: none;
}
.recharge-tabs, .recharge-methods { display: flex; flex-wrap: wrap; gap: 0.3972rem; }
.recharge-tabs { margin: 0.6809rem 0 0.7943rem; }
.recharge-tabs button, .recharge-methods button {
  min-height: 1.9291rem;
  padding: 0 0.6241rem;
  border: 1px solid var(--line);
  border-radius: 0.3404rem;
  background: #1b222d;
  color: #c7d3df;
  font-size: 0.5674rem;
}
.recharge-tabs button.active, .recharge-methods button.active,
.recharge-tabs button:hover, .recharge-methods button:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

@media (max-width: 840px) {
  .history-tab {
    top: 5.9574rem;
    width: 2.383rem;
    height: 6.3546rem;
    border-radius: 0 0.6241rem 0.6241rem 0;
  }
  .history-drawer {
    left: 0.8511rem;
    width: min(19.0071rem, calc(100vw - 1.7021rem));
    padding: 1.0213rem 0.8511rem;
  }
  .workspace-topbar {
    display: grid;
    grid-template-columns: 1.9291rem auto 2.0426rem minmax(0, 1fr);
    grid-template-rows: 2.2695rem 1.7021rem;
    align-items: center;
    gap: 0.227rem 0.3404rem;
    min-height: 5.1064rem;
    height: auto;
    padding: 0.5674rem 0;
  }
  .mobile-menu { grid-column: 1; grid-row: 1; }
  .workspace-topbar .new-chat,
  .workspace-topbar .task-list-button { grid-column: 2; grid-row: 1; }
  .workspace-topbar .guide-button { grid-column: 3; grid-row: 1; }
  .workspace-topbar .current-model {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: max-content;
    max-width: min(48vw, 11.9149rem);
    padding: 0.3404rem 0.5674rem;
    transform: none;
    white-space: nowrap;
  }
  .top-actions { grid-column: 4; grid-row: 1; justify-self: end; gap: 0.3404rem; margin-left: 0; }
  .round-action { width: 2.2695rem; height: 2.2695rem; font-size: 0.9078rem; }
  .guide-button { width: 2.0426rem; height: 2.0426rem; }
  body:not(.media-mode) .model-hero-icon { width: 5.4468rem; height: 5.4468rem; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  body:not(.media-mode) .model-hero-icon img { width: 5.4468rem; height: 5.4468rem; }
  body:not(.media-mode) .hero-notice {
    width: min(37.5035rem, calc(100% - 1.1348rem));
    max-width: 100%;
  }
  .manual-drawer {
    inset: 0.5674rem;
    width: auto;
    padding: 0.9645rem;
  }
  body:not(.media-mode) .composer-rail {
    left: auto;
    right: 0.5674rem;
    bottom: 2.9504rem;
    gap: 0.3404rem;
    transform: none;
  }
  body:not(.media-mode) .composer-rail button {
    width: 1.8723rem;
    height: 1.8723rem;
  }
}

@media (max-width: 480px) {
  .history-tab { top: 5.6738rem; width: 2.156rem; height: 5.1064rem; }
  .workspace-topbar .current-model { max-width: 70vw; font-size: 0.5106rem; }
  .top-actions { gap: 0.227rem; }
  .round-action { width: 2.0426rem; height: 2.0426rem; }
  .guide-button { width: 1.9291rem; height: 1.9291rem; }
  body:not(.media-mode) .hero-notice { width: 100%; padding-inline: 0.6809rem; font-size: 0.6241rem; }
  .reference-guide, .reward-modal, .editor-modal { width: calc(100vw - 1.1348rem); }
  .recharge-tabs, .recharge-methods { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.1135rem; }
}

@media (max-width: 840px) and (max-height: 620px) {
  body:not(.media-mode) .chat-workspace {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin: 0 auto 1.0213rem;
  }
}

/* Icon and utility-panel contracts for the reference controls. */
.control-icon {
  width: 0.9645rem;
  height: 0.9645rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.guide-button .control-icon { width: 1.0213rem; height: 1.0213rem; }
.round-action .control-icon { width: 1.1348rem; height: 1.1348rem; }
.composer-rail .control-icon { width: 0.8511rem; height: 0.8511rem; }
.more-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.0213rem; }
.more-panel-grid > div { min-width: 0; }
.more-panel-grid button {
  display: block;
  width: 100%;
  padding: 0.5674rem 0.227rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: #d2dde8;
  text-align: left;
  font-size: 0.6241rem;
}
.more-panel-grid button:hover { color: var(--cyan); background: rgba(56, 213, 231, .06); }
.manual-categories { display: flex; gap: 0.3404rem; overflow-x: auto; margin-top: 0.5674rem; padding-bottom: 0.1135rem; }
.manual-categories button {
  flex: 0 0 auto;
  min-height: 1.6454rem;
  padding: 0 0.4539rem;
  border: 1px solid var(--line);
  border-radius: 0.3404rem;
  background: transparent;
  color: var(--muted);
  font-size: 0.5674rem;
}
.manual-categories button.active, .manual-categories button:hover {
  border-color: var(--line-strong);
  background: rgba(56, 213, 231, .1);
  color: var(--cyan);
}
.manual-drawer[hidden], .modal[hidden], .more-panel[hidden] { display: none !important; }
@media (max-width: 840px) {
  .top-actions .round-action:nth-child(2) { display: grid; }
  .more-panel-grid { grid-template-columns: 1fr; gap: 0.2837rem; }
}

/* One model identity treatment across chat, image, video and audio. */
body.media-mode .model-hero-icon {
  top: 0.3404rem;
  width: 7.2624rem;
  height: 7.2624rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.media-mode .model-hero-icon img { width: 7.2624rem; height: 7.2624rem; object-fit: contain; }
body.media-mode .hero-notice { width: min(37.5035rem, calc(100% - 1.8156rem)); max-width: 37.5035rem; font-size: 0.8511rem; line-height: 1.8; }
@media (max-width: 840px) {
  body.media-mode .model-hero-icon { top: 0.6809rem; width: 5.4468rem; height: 5.4468rem; }
  body.media-mode .model-hero-icon img { width: 5.4468rem; height: 5.4468rem; }
  body.media-mode .hero-notice { width: calc(100% - 1.1348rem); max-width: 100%; font-size: 0.6809rem; }
}

.landing-orbit-icon img, .landing-orbit-feature-icon img { display: block; width: 68%; height: 68%; object-fit: contain; pointer-events: none; }

/* Keep concrete price amounts readable within the existing composer badge. */
.billing-label { max-width: calc(100% - 1.7rem); min-width: 0; box-sizing: border-box; }
.billing-label .billing-type { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billing-label .billing-reservation-label { order: 1; flex: 0 1 auto; min-width: 0; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font: inherit; }
.billing-label .billing-icon { order: 2; flex: 0 0 auto; width: 16px; height: 16px; }
