:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-soft: #eef1f4;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --panel-3: #f0f3f6;
  --line: rgba(34, 48, 62, .09);
  --line-strong: rgba(34, 48, 62, .16);
  --text: #202b36;
  --muted: #586571;
  --muted-2: #6e7a85;
  --orange: #b96c3a;
  --orange-2: #9d582f;
  --orange-soft: rgba(185, 108, 58, .12);
  --mint: #367c62;
  --mint-soft: rgba(54, 124, 98, .11);
  --blue: #4e75b0;
  --blue-soft: rgba(78, 117, 176, .11);
  --red: #b65b54;
  --red-soft: rgba(182, 91, 84, .1);
  --purple: #76599f;
  --purple-soft: rgba(118, 89, 159, .11);
  --radius: 15px;
  --shadow: 0 16px 50px rgba(34, 48, 62, .1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font-size: 14px; letter-spacing: .01em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid rgba(240, 165, 108, .8); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed !important; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 248px; padding: 24px 15px 16px; background: #151a20; border-right: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 10px; margin-bottom: 29px; }
.brand-mark { width: 31px; height: 31px; position: relative; border: 1px solid rgba(240,165,108,.52); border-radius: 9px; transform: rotate(-8deg); background: linear-gradient(145deg, rgba(240,165,108,.2), rgba(240,165,108,.04)); }
.brand-mark span { position: absolute; display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: rotate(8deg); }
.brand-mark span:nth-child(1) { left: 6px; top: 6px; opacity: .65; }
.brand-mark span:nth-child(2) { right: 5px; top: 6px; width: 10px; height: 10px; }
.brand-mark span:nth-child(3) { left: 10px; bottom: 5px; width: 11px; height: 7px; opacity: .82; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 12px; letter-spacing: .16em; font-weight: 760; }
.brand-copy span { color: var(--muted-2); font-size: 8px; letter-spacing: .17em; }
.project-switcher { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; margin-bottom: 27px; color: var(--text); text-align: left; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: background .18s, border-color .18s; }
.project-switcher:hover { background: rgba(255,255,255,.06); border-color: var(--line-strong); }
.project-thumb { position: relative; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; overflow: hidden; background: linear-gradient(145deg, #3a7169, #20313c); }
.project-thumb::before { content: ""; position: absolute; width: 31px; height: 16px; left: 2px; bottom: -6px; background: #739883; border-radius: 50%; }
.project-thumb i { position: absolute; bottom: 7px; width: 6px; height: 12px; background: #f0a56c; border-radius: 5px 5px 3px 3px; z-index: 1; }
.project-thumb i:nth-child(1) { left: 8px; height: 8px; background: #8aa7e5; }
.project-thumb i:nth-child(2) { left: 16px; height: 13px; }
.project-thumb i:nth-child(3) { left: 24px; height: 9px; background: #d98576; }
.project-copy { display: grid; gap: 3px; min-width: 0; }
.project-copy small { color: var(--muted-2); font-size: 10px; }
.project-copy strong { font-size: 12px; font-weight: 650; }
.chevron { margin-left: auto; color: var(--muted-2); font-size: 16px; }
.nav-list { display: grid; gap: 4px; }
.nav-label { padding: 0 11px 7px; color: #707b88; text-transform: uppercase; font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.nav-label-spaced { margin-top: 20px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid transparent; border-radius: 9px; color: #a8b1bc; background: transparent; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.045); }
.nav-item.is-active { color: var(--orange-2); background: rgba(240,165,108,.105); border-color: rgba(240,165,108,.11); }
.nav-item.is-active::before { content: ""; position: absolute; left: -16px; top: 10px; height: 21px; width: 2px; border-radius: 2px; background: var(--orange); }
.nav-icon { width: 17px; flex: 0 0 17px; text-align: center; font-size: 17px; color: #788492; line-height: 1; }
.nav-item.is-active .nav-icon { color: var(--orange); }
.nav-icon-spark { font-size: 15px; }
.nav-count { margin-left: auto; min-width: 18px; height: 18px; display: inline-grid; place-items: center; color: #e9af82; background: rgba(240,165,108,.13); border-radius: 6px; font-size: 10px; }
.nav-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 9px rgba(135,205,180,.55); }
.sidebar-spacer { flex: 1; min-height: 18px; }
.sidebar-status-card { padding: 13px 13px 11px; border-radius: 12px; border: 1px solid rgba(135,205,180,.13); background: linear-gradient(145deg, rgba(135,205,180,.085), rgba(255,255,255,.018)); }
.status-card-top { display: flex; align-items: center; gap: 7px; color: #c3dfd4; font-size: 10px; font-weight: 650; }
.status-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px rgba(135,205,180,.65); }
.mini-pill { padding: 2px 5px; margin-left: auto; font-size: 8px; letter-spacing: .1em; color: var(--mint); border: 1px solid rgba(135,205,180,.22); border-radius: 4px; }
.sidebar-status-card p { margin: 9px 0 10px; color: #8c9a9a; font-size: 10px; line-height: 1.6; }
.text-button { padding: 0; color: #b4d7ca; background: none; border: 0; cursor: pointer; font-size: 10px; }
.text-button span { padding-left: 4px; }
.sidebar-footer { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding: 12px 7px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; color: #32231c; font-size: 12px; font-weight: 800; border-radius: 50%; background: linear-gradient(135deg, #f2bd91, #cf866a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); }
.avatar-small { width: 28px; height: 28px; flex-basis: 28px; font-size: 10px; }
.user-copy { display: grid; gap: 3px; min-width: 0; }
.user-copy strong { font-size: 10px; font-weight: 620; }
.user-copy span { color: var(--muted-2); font-size: 9px; }
.icon-button { position: relative; display: inline-grid; place-items: center; width: 35px; height: 35px; color: #a7b1bd; background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: .18s; }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.055); border-color: var(--line); }
.icon-button.tiny { width: 25px; height: 25px; margin-left: auto; font-size: 11px; }

.main-shell { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(17,21,27,.88); backdrop-filter: blur(16px); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 11px; }
.breadcrumbs strong { color: #cdd3da; font-weight: 550; }
.crumb-sep { color: #49515b; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.global-search { display: flex; align-items: center; gap: 8px; min-width: 218px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--muted); }
.global-search > span { font-size: 16px; line-height: 1; }
.global-search input { width: 100%; min-width: 0; color: var(--text); background: transparent; border: 0; outline: none; font-size: 10px; }
.global-search input::placeholder { color: #687381; }
kbd { padding: 2px 4px; color: #72808d; border: 1px solid var(--line-strong); border-radius: 4px; font: 9px ui-monospace, monospace; white-space: nowrap; }
.topbar-divider { width: 1px; height: 23px; background: var(--line-strong); }
.notification-button { font-size: 18px; }
.notification-button i { position: absolute; right: 6px; top: 6px; width: 5px; height: 5px; border: 1px solid var(--bg); border-radius: 50%; background: var(--orange); }
.page-host { width: min(100%, 1600px); margin: 0 auto; padding: 31px 34px 58px; }

.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 4px 0 7px; font-size: clamp(24px, 2.3vw, 31px); line-height: 1.16; letter-spacing: -.04em; font-weight: 680; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #84909e; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; font-weight: 720; }
.eyebrow .eyebrow-dot { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 8px; color: #d6dce2; background: rgba(255,255,255,.035); cursor: pointer; font-size: 11px; font-weight: 600; transition: .18s ease; }
.button:hover { background: rgba(255,255,255,.075); border-color: rgba(226,235,244,.22); transform: translateY(-1px); }
.button-primary { color: #2d2119; border-color: transparent; background: linear-gradient(135deg, #f4b37f, #ec9661); box-shadow: 0 5px 17px rgba(240,165,108,.13); }
.button-primary:hover { color: #221912; background: linear-gradient(135deg, #ffc18c, #f0a16c); border-color: transparent; }
.button-quiet { min-height: 30px; padding: 0 9px; color: #a7b1bc; background: transparent; border-color: transparent; }
.button-danger { color: #e99792; border-color: rgba(233,143,139,.23); background: rgba(233,143,139,.07); }
.button-small { min-height: 29px; padding: 0 9px; font-size: 10px; }
.button-icon { font-size: 16px; line-height: 1; }
.demo-badge, .soft-badge, .state-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: #aeb8c4; background: rgba(255,255,255,.035); font-size: 9px; white-space: nowrap; }
.demo-badge { color: #9bd5bf; border-color: rgba(135,205,180,.19); background: rgba(135,205,180,.08); }
.demo-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

.card { background: linear-gradient(145deg, rgba(30,37,47,.96), rgba(24,30,38,.96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.card-pad { padding: 17px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-title-row h2, .card-title-row h3 { margin: 0; font-size: 13px; font-weight: 650; letter-spacing: -.01em; }
.card-title-row p { margin: 5px 0 0; color: var(--muted-2); font-size: 10px; }
.section-block { margin-top: 27px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.section-header h2 { margin: 0; font-size: 14px; font-weight: 650; }
.section-header p { margin: 5px 0 0; color: var(--muted-2); font-size: 10px; }
.link-button { padding: 4px 0; color: #c8a17f; background: none; border: 0; cursor: pointer; font-size: 10px; }
.link-button:hover { color: var(--orange-2); }

.overview-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .86fr); gap: 15px; }
.hero-art-card { position: relative; min-height: 280px; padding: 22px; overflow: hidden; background: radial-gradient(ellipse at 69% 39%, rgba(78,124,105,.21), transparent 34%), linear-gradient(125deg, #202b32, #1c242d 58%, #29252a); }
.hero-art-card::after { content: ""; position: absolute; right: -40px; top: -125px; width: 390px; height: 390px; border: 1px solid rgba(207,221,217,.06); border-radius: 50%; box-shadow: 0 0 0 40px rgba(207,221,217,.018), 0 0 0 80px rgba(207,221,217,.012); pointer-events: none; }
.hero-copy { position: relative; z-index: 3; max-width: 48%; }
.hero-copy .eyebrow { color: #b1bba9; }
.hero-copy h2 { max-width: 345px; margin: 14px 0 9px; font-size: clamp(21px, 2vw, 28px); line-height: 1.23; font-weight: 650; letter-spacing: -.035em; }
.hero-copy p { max-width: 320px; margin: 0 0 17px; color: #a6b0af; font-size: 11px; line-height: 1.7; }
.hero-copy .button { min-height: 34px; }
.hero-scene { position: absolute; z-index: 2; right: 3%; bottom: 5%; width: min(49%, 390px); height: 84%; }
.hero-scene .scene-base { position: absolute; left: 3%; right: 0; bottom: 5%; height: 47%; border-radius: 49% 51% 43% 45%; background: linear-gradient(160deg, #83a68b, #587b70 57%, #365a5a); transform: rotate(-7deg); box-shadow: inset 0 10px 28px rgba(255,255,255,.1), 0 19px 25px rgba(5,10,12,.25); }
.hero-scene .scene-path { position: absolute; left: 34%; bottom: 13%; width: 46%; height: 19%; border: 11px solid rgba(204,184,141,.45); border-top-color: transparent; border-left-color: transparent; border-radius: 50%; transform: rotate(24deg); }
.scene-tree { position: absolute; z-index: 2; width: 36px; height: 56px; }
.scene-tree::before { content: ""; position: absolute; left: 14px; bottom: 0; width: 9px; height: 23px; border-radius: 4px; background: #775e48; }
.scene-tree::after { content: ""; position: absolute; left: 0; top: 0; width: 36px; height: 37px; border-radius: 46% 54% 42% 58%; background: #a8c09a; box-shadow: inset -5px -4px rgba(45,77,66,.15); }
.scene-tree.tree-a { left: 13%; bottom: 37%; transform: scale(.85); }
.scene-tree.tree-b { right: 14%; bottom: 39%; transform: scale(1.15); }
.scene-tree.tree-c { left: 48%; bottom: 52%; transform: scale(.64); }
.scene-hero { position: absolute; z-index: 4; left: 52%; bottom: 28%; width: 45px; height: 82px; transform: translateX(-50%); }
.scene-hero .head { position: absolute; z-index: 3; left: 12px; top: 1px; width: 24px; height: 26px; border-radius: 45% 45% 49% 49%; background: #e9b587; box-shadow: inset -4px -2px rgba(122,80,58,.13); }
.scene-hero .hair { position: absolute; z-index: 4; left: 10px; top: -1px; width: 27px; height: 12px; border-radius: 14px 14px 5px 5px; background: #463d36; transform: rotate(-9deg); }
.scene-hero .body { position: absolute; left: 8px; top: 24px; width: 32px; height: 36px; border-radius: 10px 10px 13px 13px; background: linear-gradient(120deg, #e3a16b, #b97553); box-shadow: inset -5px -2px rgba(83,51,39,.17); }
.scene-hero .cape { position: absolute; z-index: -1; left: 2px; top: 29px; width: 41px; height: 37px; background: #627e87; clip-path: polygon(22% 0, 78% 0, 100% 96%, 1% 82%); border-radius: 8px; }
.scene-hero .leg { position: absolute; top: 55px; width: 10px; height: 24px; border-radius: 5px; background: #554e49; }
.scene-hero .leg.l1 { left: 11px; transform: rotate(4deg); }.scene-hero .leg.l2 { right: 10px; transform: rotate(-5deg); }
.scene-hero .sword { position: absolute; z-index: 4; right: -8px; top: 24px; width: 5px; height: 41px; background: #dfe4d5; border-radius: 2px; transform: rotate(-34deg); box-shadow: 0 0 8px rgba(220,239,225,.3); }
.scene-enemy { position: absolute; z-index: 4; width: 27px; height: 31px; border-radius: 48% 48% 40% 40%; background: #e77c6b; box-shadow: inset -5px -2px rgba(82,39,44,.18), 0 8px 10px rgba(0,0,0,.2); }
.scene-enemy::before, .scene-enemy::after { content: ""; position: absolute; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: #352e30; }
.scene-enemy::before { left: 7px; }.scene-enemy::after { right: 7px; }
.scene-enemy.e1 { left: 10%; bottom: 18%; transform: rotate(-14deg) scale(.82); }.scene-enemy.e2 { right: 4%; bottom: 28%; transform: rotate(13deg) scale(.92); background: #d88963; }.scene-enemy.e3 { right: 28%; bottom: 63%; transform: scale(.7); background: #b884d4; }.scene-enemy.e4 { left: 27%; bottom: 62%; transform: scale(.73); background: #9ba5dd; }
.scene-ring { position: absolute; z-index: 1; left: 50%; bottom: 18%; width: 70%; height: 38%; border: 1px dashed rgba(233,143,139,.48); border-radius: 50%; transform: translateX(-50%) rotate(-7deg); }
.hero-caption { position: absolute; z-index: 5; right: 17px; bottom: 12px; color: rgba(232,239,233,.62); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.hero-side { display: grid; grid-template-rows: 1fr auto; gap: 15px; }
.style-snapshot { padding: 19px; }
.style-snapshot h3 { margin: 11px 0 7px; font-size: 14px; font-weight: 650; }
.style-snapshot p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.snapshot-top { display: flex; justify-content: space-between; align-items: center; }
.snapshot-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--orange-2); border-radius: 9px; background: var(--orange-soft); font-size: 16px; }
.swatch-row { display: flex; gap: 5px; margin-top: 14px; }
.swatch { width: 22px; height: 7px; border-radius: 4px; background: var(--swatch); }
.snapshot-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 9px; }
.progress-card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.progress-orbit { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: conic-gradient(var(--mint) 72%, rgba(255,255,255,.08) 0); position: relative; }
.progress-orbit::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #1c242b; }
.progress-orbit span { position: relative; z-index: 1; color: var(--mint); font-size: 9px; font-weight: 700; }
.progress-copy { flex: 1; min-width: 0; }
.progress-copy strong { display: block; font-size: 11px; font-weight: 630; }
.progress-copy small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.progress-copy .progress-line { height: 3px; margin-top: 9px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.07); }
.progress-copy .progress-line i { display: block; width: 72%; height: 100%; border-radius: inherit; background: var(--mint); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat-card { display: flex; align-items: center; gap: 12px; padding: 15px; }
.stat-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; color: var(--stat-color, var(--orange)); border-radius: 10px; background: var(--stat-bg, var(--orange-soft)); font-size: 15px; }
.stat-copy small { display: block; color: var(--muted-2); font-size: 9px; }
.stat-copy strong { display: block; margin-top: 4px; font-size: 20px; font-weight: 670; letter-spacing: -.04em; }
.stat-copy .stat-delta { margin-left: 5px; color: var(--mint); font-size: 9px; font-weight: 550; letter-spacing: 0; }
.activity-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .7fr); gap: 15px; }
.activity-list { margin-top: 12px; }
.activity-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.activity-thumb { width: 34px; height: 34px; overflow: hidden; border-radius: 8px; }
.activity-row strong { display: block; overflow: hidden; color: #dce2e8; font-size: 10px; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.activity-row small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.activity-meta { display: grid; justify-items: end; gap: 5px; }
.activity-meta time { color: #6f7b88; font-size: 8px; }
.state-pill { padding: 4px 7px; font-size: 8px; }
.state-pill.approved { color: #9dd3be; border-color: rgba(135,205,180,.16); background: var(--mint-soft); }
.state-pill.review { color: #f0b47d; border-color: rgba(240,165,108,.18); background: var(--orange-soft); }
.state-pill.generating { color: #9fc1f1; border-color: rgba(146,184,239,.18); background: var(--blue-soft); }
.state-pill.rejected { color: #eea09c; border-color: rgba(233,143,139,.18); background: var(--red-soft); }
.state-pill.archived { color: #9aa4b0; background: rgba(255,255,255,.04); }
.quick-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.quick-action { display: flex; align-items: center; gap: 12px; padding: 13px 14px; text-align: left; cursor: pointer; transition: .18s; }
.quick-action:hover { transform: translateY(-2px); border-color: var(--line-strong); background: #202731; }
.quick-action .quick-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--quick-color, var(--orange)); background: var(--quick-bg, var(--orange-soft)); font-size: 16px; }
.quick-action strong { display: block; font-size: 10px; font-weight: 640; }
.quick-action small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }

/* Asset thumbnails: illustrative UI placeholders, not production game files. */
.art-thumb { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.54; overflow: hidden; border-radius: 11px; background: radial-gradient(ellipse at 52% 35%, rgba(255,255,255,.09), transparent 35%), linear-gradient(145deg, #2d3a42, #202b32 64%, #28303a); --hero: #e4a06c; --foe: #df7b6f; --field: #6b967e; }
.art-thumb::before { content: ""; position: absolute; width: 78%; height: 43%; left: 11%; bottom: -5%; border-radius: 50%; background: linear-gradient(150deg, color-mix(in srgb, var(--field) 87%, white), var(--field) 67%, color-mix(in srgb, var(--field) 65%, black)); transform: rotate(-6deg); box-shadow: inset 0 7px 15px rgba(255,255,255,.11); }
.art-thumb::after { content: ""; position: absolute; width: 57%; height: 22%; left: 24%; bottom: 8%; border: 1px solid rgba(220,199,151,.42); border-top-color: transparent; border-left-color: transparent; border-radius: 50%; transform: rotate(-16deg); opacity: .75; }
.art-thumb.thumb-lilac { --hero: #aa9de6; --foe: #d8788a; --field: #71839b; background: radial-gradient(ellipse at 55% 39%, rgba(167,151,222,.17), transparent 36%), linear-gradient(145deg, #34344a, #242936 70%, #292535); }
.art-thumb.thumb-mint { --hero: #83cbb0; --foe: #df8b69; --field: #6f9e88; }
.art-thumb.thumb-blue { --hero: #92b8ef; --foe: #d97f78; --field: #71869a; background: radial-gradient(ellipse at 50% 35%, rgba(137,177,225,.16), transparent 37%), linear-gradient(145deg, #293744, #1f2932 65%, #282c38); }
.art-thumb.thumb-rose { --hero: #e5a08d; --foe: #be7caa; --field: #80718a; background: radial-gradient(ellipse at 50% 35%, rgba(207,145,161,.17), transparent 37%), linear-gradient(145deg, #44343d, #292a35 68%, #2c2b36); }
.thumb-sun { position: absolute; z-index: -1; right: 13%; top: 13%; width: 19%; aspect-ratio: 1; border-radius: 50%; background: rgba(242,206,149,.35); filter: blur(1px); }
.thumb-hill { position: absolute; z-index: -1; left: -8%; bottom: 19%; width: 58%; height: 35%; border-radius: 50%; background: rgba(87,120,111,.45); transform: rotate(-11deg); }
.thumb-hill.hill-back { left: 53%; bottom: 20%; background: rgba(91,120,128,.4); transform: rotate(10deg); }
.thumb-tree { position: absolute; z-index: 1; bottom: 25%; width: 7%; height: 21%; }
.thumb-tree::before { content: ""; position: absolute; left: 42%; bottom: 0; width: 22%; height: 41%; border-radius: 3px; background: #78644c; }
.thumb-tree::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 68%; border-radius: 50% 50% 42% 42%; background: #9cb893; box-shadow: inset -4px -3px rgba(47,77,63,.2); }
.thumb-tree.t1 { left: 12%; transform: scale(.78); }.thumb-tree.t2 { right: 12%; transform: scale(1.1); }.thumb-tree.t3 { left: 32%; bottom: 46%; transform: scale(.58); }
.thumb-hero { position: absolute; z-index: 4; left: 49%; bottom: 24%; width: 12%; height: 48%; transform: translateX(-50%); }
.thumb-hero .head { position: absolute; z-index: 3; left: 28%; top: 0; width: 45%; aspect-ratio: 1; border-radius: 47%; background: #e8ba94; box-shadow: inset -3px -2px rgba(108,67,50,.16); }
.thumb-hero .hair { position: absolute; z-index: 4; left: 23%; top: -3%; width: 53%; height: 19%; border-radius: 10px 10px 4px 4px; background: #443d39; transform: rotate(-7deg); }
.thumb-hero .torso { position: absolute; left: 19%; top: 22%; width: 62%; height: 37%; border-radius: 9px 9px 12px 12px; background: linear-gradient(110deg, var(--hero), color-mix(in srgb, var(--hero) 68%, #4a403d)); box-shadow: inset -4px -2px rgba(53,41,37,.16); }
.thumb-hero .cape { position: absolute; z-index: -1; left: 5%; top: 28%; width: 90%; height: 39%; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 85%); border-radius: 5px; background: #607d87; }
.thumb-hero .leg { position: absolute; top: 54%; width: 22%; height: 41%; border-radius: 5px; background: #5b514a; }
.thumb-hero .leg.left { left: 26%; transform: rotate(4deg); }.thumb-hero .leg.right { right: 25%; transform: rotate(-4deg); }
.thumb-hero .sword { position: absolute; z-index: 5; right: -18%; top: 19%; width: 10%; height: 45%; border-radius: 2px; background: #d8ded4; transform: rotate(-34deg); box-shadow: 0 0 6px rgba(230,245,235,.25); }
.thumb-foe { position: absolute; z-index: 3; width: 8%; aspect-ratio: .82; left: var(--x, 18%); bottom: var(--y, 25%); border-radius: 48% 48% 39% 39%; background: var(--foe); box-shadow: inset -4px -2px rgba(61,37,42,.15), 0 6px 7px rgba(0,0,0,.16); }
.thumb-foe::before, .thumb-foe::after { content: ""; position: absolute; top: 39%; width: 11%; height: 11%; border-radius: 50%; background: #2b2b30; }
.thumb-foe::before { left: 25%; }.thumb-foe::after { right: 25%; }
.thumb-foe.f1 { --x: 15%; --y: 21%; transform: scale(.7); }.thumb-foe.f2 { --x: 75%; --y: 23%; transform: scale(.86); }.thumb-foe.f3 { --x: 29%; --y: 61%; transform: scale(.63); }.thumb-foe.f4 { --x: 65%; --y: 58%; transform: scale(.73); }
.thumb-ring { position: absolute; z-index: 2; left: 49%; bottom: 12%; width: 56%; height: 34%; border: 1px dashed rgba(235,159,141,.5); border-radius: 50%; transform: translateX(-50%) rotate(-7deg); }
.thumb-label { position: absolute; z-index: 5; left: 9px; bottom: 8px; padding: 4px 6px; color: rgba(230,239,234,.71); border: 1px solid rgba(230,239,234,.1); border-radius: 5px; background: rgba(13,18,21,.44); font-size: 7px; letter-spacing: .1em; }
.thumb-mode { position: absolute; z-index: 5; right: 8px; top: 8px; color: rgba(234,240,240,.56); font-size: 7px; letter-spacing: .09em; }
.thumb-frame-strip { position: absolute; z-index: 5; right: 8px; bottom: 8px; display: flex; gap: 2px; }
.thumb-frame-strip i { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: .75; }
.thumb-glow { position: absolute; z-index: 2; left: 50%; top: 48%; width: 23%; height: 23%; border-radius: 50%; background: radial-gradient(circle, rgba(246,213,135,.92), rgba(239,145,108,.2) 55%, transparent 74%); transform: translate(-50%,-50%); box-shadow: 0 0 35px rgba(241,166,110,.2); }
.thumb-skeleton-lines { position: absolute; z-index: 5; left: 50%; top: 46%; width: 22%; height: 40%; border-left: 1px solid rgba(177,220,234,.75); transform: translateX(-50%); }
.thumb-skeleton-lines::before { content: ""; position: absolute; top: 26%; left: -7px; width: 14px; height: 16px; border-top: 1px solid rgba(177,220,234,.75); border-bottom: 1px solid rgba(177,220,234,.75); transform: rotate(10deg); }
.thumb-skeleton-lines::after { content: ""; position: absolute; left: -5px; bottom: 0; width: 10px; height: 12px; border-top: 1px solid rgba(177,220,234,.75); transform: rotate(-4deg); }

.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.asset-card { min-width: 0; padding: 8px; overflow: hidden; cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.asset-card:hover { transform: translateY(-3px); border-color: rgba(240,165,108,.25); background: #212832; }
.asset-card .art-thumb { border-radius: 9px; }
.asset-card-body { padding: 11px 4px 3px; }
.asset-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.asset-card h3 { margin: 0; overflow: hidden; color: #e3e8ed; font-size: 11px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.asset-card .asset-subtitle { margin: 5px 0 0; color: var(--muted-2); font-size: 9px; }
.asset-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.asset-card-foot small { color: var(--muted-2); font-size: 8px; }
.asset-type { color: #aab5c1; font-size: 8px; }
.asset-card .state-pill { flex: 0 0 auto; }
.asset-card-mini { display: flex; gap: 10px; align-items: center; min-width: 0; }
.asset-card-mini .art-thumb { width: 62px; flex: 0 0 62px; aspect-ratio: 1.25; }

.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-search { display: flex; align-items: center; gap: 8px; min-width: 235px; padding: 0 10px; height: 35px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted-2); }
.filter-search input { width: 100%; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 10px; }
.filter-search input::placeholder { color: #727d89; }
.select-control { height: 35px; padding: 0 28px 0 10px; color: #bfc7d0; border: 1px solid var(--line); border-radius: 8px; background: #1a2028; font-size: 10px; cursor: pointer; }
.filter-spacer { flex: 1; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); }
.view-toggle button { width: 27px; height: 26px; color: #7f8a97; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.view-toggle button.active { color: var(--orange-2); background: rgba(240,165,108,.11); }
.empty-state { display: grid; place-items: center; min-height: 220px; padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state .empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 13px; color: var(--orange); background: var(--orange-soft); font-size: 18px; }
.empty-state strong { color: var(--text); font-size: 12px; }
.empty-state p { max-width: 320px; margin: 7px 0 12px; color: var(--muted-2); font-size: 10px; line-height: 1.6; }

.generator-layout { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(290px, .76fr); gap: 15px; align-items: start; }
.generator-card { padding: 20px; }
.form-section + .form-section { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line); }
.form-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 9px; }
.form-label-row label, .field-label { color: #d7dde3; font-size: 10px; font-weight: 620; }
.form-label-row small, .field-hint { color: var(--muted-2); font-size: 9px; font-weight: 400; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.13); }
.segmented button { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 0 11px; color: #8f9aa7; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 9px; }
.segmented button.active { color: #f1bd93; background: rgba(240,165,108,.13); box-shadow: inset 0 0 0 1px rgba(240,165,108,.08); }
.segmented button span { font-size: 12px; }
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 13px; }
.textarea, .input, .field select { width: 100%; color: #e0e5e9; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(10,13,18,.3); font-size: 10px; transition: border-color .18s; }
.textarea { min-height: 102px; padding: 11px 12px; resize: vertical; line-height: 1.7; }
.input, .field select { height: 36px; padding: 0 10px; }
.textarea:focus, .input:focus, .field select:focus { border-color: rgba(240,165,108,.47); outline: none; }
.textarea::placeholder, .input::placeholder { color: #687380; }
.field select { color-scheme: light; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec-grid.two { grid-template-columns: repeat(2, 1fr); }
.spec-field { display: grid; gap: 6px; }
.spec-field label { color: #aeb8c2; font-size: 9px; }
.spec-field select, .spec-field input { width: 100%; height: 33px; padding: 0 9px; color: #dce2e8; border: 1px solid var(--line); border-radius: 7px; background: #171d25; font-size: 9px; }
.reference-drop { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 9px; border: 1px dashed rgba(226,235,244,.17); border-radius: 9px; background: rgba(255,255,255,.018); cursor: pointer; }
.reference-drop:hover { border-color: rgba(240,165,108,.35); }
.reference-icon { display: grid; place-items: center; width: 33px; height: 33px; color: #b99bda; border-radius: 8px; background: var(--purple-soft); font-size: 15px; }
.reference-copy { flex: 1; min-width: 0; }
.reference-copy strong { display: block; overflow: hidden; color: #d3dae1; font-size: 9px; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.reference-copy small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.reference-drop input { display: none; }
.asset-reference-chip { display: inline-flex; align-items: center; gap: 6px; margin: 7px 6px 0 0; padding: 5px 7px; color: #b5c2cf; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.03); font-size: 8px; cursor: pointer; }
.asset-reference-chip.selected { color: #f0bc91; border-color: rgba(240,165,108,.26); background: rgba(240,165,108,.08); }
.asset-reference-chip .tiny-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.lock-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 9px 10px; color: #a8c9be; border: 1px solid rgba(135,205,180,.12); border-radius: 8px; background: rgba(135,205,180,.045); font-size: 9px; }
.lock-row input { accent-color: var(--mint); }
.lock-row small { margin-left: auto; color: #718982; font-size: 8px; }
.generate-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.mock-notice { display: flex; align-items: center; gap: 7px; color: #8ebca9; font-size: 9px; line-height: 1.5; }
.mock-notice .notice-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--mint-soft); }
.generate-side { display: grid; gap: 13px; }
.preview-card { padding: 14px; }
.preview-card .art-thumb { margin-top: 11px; aspect-ratio: 1.36; }
.preview-empty { display: grid; place-items: center; min-height: 176px; margin-top: 11px; color: #7c8895; border: 1px dashed var(--line-strong); border-radius: 10px; background: radial-gradient(circle at 50% 43%, rgba(146,184,239,.07), transparent 42%), rgba(255,255,255,.015); text-align: center; }
.preview-empty span { display: block; margin-bottom: 7px; color: #9cb8df; font-size: 25px; }
.preview-empty small { display: block; color: var(--muted-2); font-size: 8px; }
.style-lock-card { padding: 14px; }
.style-lock-list { display: grid; gap: 9px; margin-top: 13px; }
.style-lock-item { display: flex; align-items: center; gap: 8px; color: #aab4bf; font-size: 9px; }
.style-lock-item .check { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 5px; color: #a9d8c5; background: rgba(135,205,180,.12); font-size: 9px; }
.style-lock-item small { margin-left: auto; color: #687582; font-size: 8px; }
.mock-mode-banner { display: flex; align-items: start; gap: 9px; padding: 11px 12px; color: #9db9d8; border: 1px solid rgba(146,184,239,.13); border-radius: 9px; background: rgba(146,184,239,.055); font-size: 9px; line-height: 1.6; }
.mock-mode-banner strong { display: block; margin-bottom: 2px; color: #c0d4ee; font-size: 9px; }

.animation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 13px; }
.animation-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .72fr); gap: 14px; align-items: stretch; }
.animation-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 398px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background-color: #171c22; background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px), radial-gradient(ellipse at 50% 42%, rgba(112,153,133,.1), transparent 43%); background-size: 18px 18px, auto; }
.animation-stage::before { content: ""; position: absolute; left: 50%; bottom: 15%; width: 51%; height: 19%; border-radius: 50%; background: radial-gradient(ellipse, rgba(3,7,10,.38), transparent 68%); transform: translateX(-50%); }
.stage-caption { position: absolute; top: 14px; left: 15px; display: flex; gap: 7px; align-items: center; color: #7f8b98; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.stage-caption .stage-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.stage-zoom { position: absolute; right: 13px; top: 11px; display: flex; gap: 4px; }
.stage-zoom button { width: 25px; height: 25px; color: #84909c; border: 1px solid var(--line); border-radius: 6px; background: rgba(14,18,23,.6); cursor: pointer; }
.frame-figure { position: relative; z-index: 2; width: 116px; height: 228px; transform-origin: center bottom; transition: transform .12s ease; filter: drop-shadow(0 7px 8px rgba(0,0,0,.18)); }
.frame-figure .frame-head { position: absolute; z-index: 4; left: 37px; top: 8px; width: 43px; height: 44px; border-radius: 48% 48% 45% 45%; background: linear-gradient(135deg,#f0c59e,#d89e7d); }
.frame-figure .frame-hair { position: absolute; z-index: 5; left: 33px; top: 3px; width: 49px; height: 21px; border-radius: 23px 22px 7px 6px; background: #4d4139; transform: rotate(-7deg); }
.frame-figure .frame-body { position: absolute; left: 28px; top: 47px; width: 61px; height: 79px; border-radius: 18px 18px 21px 21px; background: linear-gradient(135deg,var(--hero,#e4a06c),#b97656); box-shadow: inset -9px -3px rgba(68,43,34,.15); }
.frame-figure .frame-cape { position: absolute; z-index: -1; left: 17px; top: 58px; width: 84px; height: 88px; clip-path: polygon(23% 0, 77% 0, 100% 97%, 0 86%); border-radius: 13px; background: #617f89; }
.frame-figure .frame-arm { position: absolute; z-index: 2; left: 12px; top: 60px; width: 22px; height: 67px; border-radius: 12px; background: #d0946e; transform: rotate(16deg); }
.frame-figure .frame-arm.right { left: 79px; top: 57px; height: 60px; transform: rotate(-17deg); }
.frame-figure .frame-leg { position: absolute; top: 118px; width: 22px; height: 89px; border-radius: 12px; background: #554f4b; }
.frame-figure .frame-leg.left { left: 35px; transform: rotate(3deg); }.frame-figure .frame-leg.right { right: 34px; transform: rotate(-3deg); }
.frame-figure .frame-boot { position: absolute; bottom: 8px; width: 34px; height: 15px; border-radius: 12px 7px 7px 7px; background: #36363a; }
.frame-figure .frame-boot.left { left: 22px; }.frame-figure .frame-boot.right { right: 20px; transform: scaleX(-1); }
.frame-figure .frame-sword { position: absolute; z-index: 5; left: 95px; top: 48px; width: 8px; height: 102px; border-radius: 3px; background: linear-gradient(90deg,#a6c5c5,#e1eee2 55%,#899b9a); transform: rotate(-31deg); box-shadow: 0 0 15px rgba(166,207,207,.24); }
.frame-figure .frame-sword::after { content: ""; position: absolute; left: -8px; top: 30px; width: 24px; height: 5px; border-radius: 4px; background: #92745c; }
.frame-figure.is-playing { animation: hero-bob .36s ease-in-out infinite alternate; }
.frame-figure[data-frame="1"], .frame-figure[data-frame="5"] { transform: rotate(-4deg) translateY(2px); }
.frame-figure[data-frame="2"], .frame-figure[data-frame="6"] { transform: rotate(3deg) translateY(-2px) scaleY(1.02); }
.frame-figure[data-frame="3"], .frame-figure[data-frame="7"] { transform: rotate(1deg) translateY(2px) scaleY(.98); }
.frame-figure[data-frame="4"] { transform: rotate(-2deg) translateY(-1px); }
@keyframes hero-bob { to { translate: 0 -3px; } }
.stage-ground-line { position: absolute; z-index: 1; left: 50%; bottom: 17%; width: 25%; height: 1px; background: rgba(195,221,201,.3); transform: translateX(-50%); }
.stage-axis { position: absolute; z-index: 1; left: 50%; bottom: 14%; height: 18px; border-left: 1px dashed rgba(146,184,239,.48); }
.animation-side-panel { display: flex; flex-direction: column; gap: 12px; }
.animation-side-panel .card { padding: 15px; }
.preview-info-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); color: #8f9aa7; font-size: 9px; }
.preview-info-row:last-child { padding-bottom: 0; border-bottom: 0; }
.preview-info-row strong { color: #d2d8df; font-size: 9px; font-weight: 560; }
.playback-controls { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 12px; border-top: 1px solid var(--line); background: rgba(255,255,255,.015); }
.control-button { display: grid; place-items: center; width: 29px; height: 29px; color: #a5b1bd; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); cursor: pointer; }
.control-button.primary { width: 35px; height: 35px; color: #2c2119; border-color: transparent; background: var(--orange); font-weight: 800; }
.playback-time { min-width: 57px; color: #9ba6b1; font: 9px ui-monospace, monospace; text-align: center; }
.timeline-card { margin-top: 13px; padding: 14px; }
.timeline-track { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 13px; }
.frame-cell { position: relative; display: grid; place-items: center; min-height: 72px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #212832; cursor: pointer; }
.frame-cell.active { border-color: rgba(240,165,108,.6); box-shadow: inset 0 0 0 1px rgba(240,165,108,.16); }
.frame-cell .frame-mini { position: relative; width: 25px; height: 46px; transform-origin: center bottom; }
.frame-cell .frame-mini::before { content: ""; position: absolute; left: 8px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #e9ba94; }
.frame-cell .frame-mini::after { content: ""; position: absolute; left: 5px; top: 10px; width: 16px; height: 24px; border-radius: 6px; background: var(--hero,#e4a06c); box-shadow: 0 20px 0 -5px #55504d; }
.frame-cell:nth-child(even) .frame-mini { transform: rotate(5deg) translateY(1px); }
.frame-cell:nth-child(3n) .frame-mini { transform: rotate(-5deg) translateY(-1px); }
.frame-number { position: absolute; left: 5px; bottom: 4px; color: #73808e; font: 8px ui-monospace, monospace; }
.frame-duration { color: #6d7986; font-size: 8px; }

.skeleton-stage { position: relative; width: 280px; height: 286px; transform: perspective(600px) rotateX(5deg); }
.skeleton-stage .skel-shadow { position: absolute; left: 50%; bottom: 8px; width: 210px; height: 48px; border-radius: 50%; background: rgba(2,6,8,.38); filter: blur(6px); transform: translateX(-50%); }
.skeleton-stage .skel-body { position: absolute; z-index: 2; left: 50%; bottom: 36px; width: 86px; height: 144px; border-radius: 40px 40px 24px 24px; background: linear-gradient(135deg,#d99265,#ad6d54 72%); box-shadow: inset -13px -5px rgba(58,37,35,.18), inset 8px 5px rgba(255,255,255,.09); transform: translateX(-50%); }
.skeleton-stage .skel-head { position: absolute; z-index: 4; left: 50%; top: 21px; width: 58px; height: 60px; border-radius: 49%; background: linear-gradient(140deg,#f0c29b,#d99b77); transform: translateX(-50%); box-shadow: inset -6px -3px rgba(91,60,47,.13); }
.skeleton-stage .skel-hair { position: absolute; z-index: 5; top: 15px; left: 50%; width: 63px; height: 25px; border-radius: 24px 23px 8px 5px; background: #443d38; transform: translateX(-50%) rotate(-8deg); }
.skeleton-stage .skel-cape { position: absolute; z-index: 1; left: 50%; bottom: 35px; width: 127px; height: 156px; clip-path: polygon(21% 0, 80% 0, 100% 98%, 0 84%); border-radius: 17px; background: linear-gradient(115deg,#688792,#435965); transform: translateX(-50%); }
.skeleton-stage .skel-leg { position: absolute; z-index: 2; bottom: 14px; width: 33px; height: 82px; border-radius: 15px; background: linear-gradient(130deg,#645a52,#423f3f); }
.skeleton-stage .skel-leg.left { left: calc(50% - 29px); transform: rotate(4deg); }.skeleton-stage .skel-leg.right { right: calc(50% - 29px); transform: rotate(-4deg); }
.skeleton-stage .skel-arm { position: absolute; z-index: 3; top: 96px; width: 31px; height: 92px; border-radius: 17px; background: linear-gradient(140deg,#e2a477,#bd7959); transform-origin: top center; }
.skeleton-stage .skel-arm.left { left: calc(50% - 65px); transform: rotate(14deg); }.skeleton-stage .skel-arm.right { right: calc(50% - 65px); transform: rotate(-31deg); }
.skeleton-stage .skel-sword { position: absolute; z-index: 4; right: 18px; top: 118px; width: 8px; height: 108px; border-radius: 4px; background: linear-gradient(90deg,#9bbabe,#e1eee6,#8ca4a5); transform: rotate(-28deg); }
.skeleton-stage.bones-on .bone { position: absolute; z-index: 6; display: block; width: 4px; height: 4px; border: 1px solid #b5e7f0; border-radius: 50%; background: #4d879b; box-shadow: 0 0 0 3px rgba(122,207,225,.14), 0 0 10px rgba(122,207,225,.55); }
.skeleton-stage.bones-on .bone::after { content: ""; position: absolute; left: 1px; top: 2px; width: 2px; height: var(--bone-len,22px); transform-origin: top; transform: rotate(var(--bone-angle,0deg)); background: rgba(152,225,237,.85); }
.bone.b-head { left: 138px; top: 53px; --bone-len: 35px; }.bone.b-chest { left: 138px; top: 92px; --bone-len: 44px; }.bone.b-hip { left: 138px; top: 137px; --bone-len: 35px; }.bone.b-arm-l { left: 104px; top: 103px; --bone-len: 40px; --bone-angle: 13deg; }.bone.b-arm-r { left: 176px; top: 103px; --bone-len: 40px; --bone-angle: -30deg; }.bone.b-leg-l { left: 123px; top: 166px; --bone-len: 45px; --bone-angle: 5deg; }.bone.b-leg-r { left: 153px; top: 166px; --bone-len: 45px; --bone-angle: -5deg; }
.skeleton-stage.is-playing .skel-arm.right { animation: skel-swing .7s ease-in-out infinite alternate; }
@keyframes skel-swing { to { transform: rotate(-66deg); } }

.style-page-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 14px; }
.style-board { position: relative; min-height: 310px; padding: 22px; overflow: hidden; background: linear-gradient(135deg,#232e35,#1d272d 60%,#2b2830); }
.style-board::after { content: ""; position: absolute; right: -3%; bottom: -37%; width: 57%; height: 80%; border: 1px solid rgba(214,231,221,.08); border-radius: 50%; box-shadow: 0 0 0 33px rgba(214,231,221,.025), 0 0 0 65px rgba(214,231,221,.02); }
.style-board h2 { position: relative; z-index: 2; max-width: 330px; margin: 13px 0 8px; font-size: 23px; line-height: 1.25; letter-spacing: -.04em; }
.style-board p { position: relative; z-index: 2; max-width: 300px; margin: 0; color: #a3aeae; font-size: 10px; line-height: 1.8; }
.style-board .hero-scene { width: 40%; height: 75%; right: 1%; bottom: -1%; }
.style-locks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 16px; }
.style-lock { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.022); }
.style-lock strong { display: block; color: #d5dce2; font-size: 9px; font-weight: 600; }
.style-lock small { display: block; margin-top: 5px; color: var(--muted-2); font-size: 8px; line-height: 1.55; }
.palette-list { display: grid; gap: 9px; margin-top: 15px; }
.palette-row { display: grid; grid-template-columns: 84px 1fr 45px; align-items: center; gap: 9px; color: #aab5bf; font-size: 9px; }
.palette-bar { display: flex; height: 13px; overflow: hidden; border-radius: 5px; }
.palette-bar i { flex: 1; background: var(--color); }
.palette-row code { color: #73808c; font: 8px ui-monospace, monospace; text-align: right; }
.notice-panel { padding: 14px; border: 1px solid rgba(240,165,108,.14); border-radius: 11px; background: rgba(240,165,108,.055); color: #bca38c; font-size: 9px; line-height: 1.7; }
.notice-panel strong { color: #e1bd9c; }

.export-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.export-list { display: grid; gap: 8px; margin-top: 12px; }
.export-row { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }
.export-row input { accent-color: var(--orange); }
.export-row .art-thumb { width: 55px; flex: 0 0 55px; aspect-ratio: 1.25; }
.export-row-copy { flex: 1; min-width: 0; }
.export-row-copy strong { display: block; overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.export-row-copy small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.export-row .state-pill { margin-left: auto; }
.export-side { padding: 17px; }
.export-check-list { display: grid; gap: 11px; margin: 15px 0; }
.export-check { display: flex; align-items: flex-start; gap: 8px; color: #a8b2bd; font-size: 9px; line-height: 1.5; }
.export-check .check { display: grid; place-items: center; width: 15px; height: 15px; flex: 0 0 15px; border-radius: 5px; color: #a8dbc5; background: rgba(135,205,180,.11); font-size: 9px; }
.export-check.warning .check { color: #f2bd89; background: rgba(240,165,108,.12); }
.export-summary { display: grid; gap: 8px; padding: 12px 0; margin: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.export-summary-row { display: flex; justify-content: space-between; color: var(--muted-2); font-size: 9px; }.export-summary-row strong { color: #cbd3dc; font-weight: 560; }
.export-format-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 9px; }
.format-option { padding: 9px 7px; color: #8995a1; text-align: center; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.02); cursor: pointer; font-size: 8px; }
.format-option.selected { color: #f1bd91; border-color: rgba(240,165,108,.27); background: rgba(240,165,108,.07); }
.format-option strong { display: block; margin-bottom: 4px; font-size: 9px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); gap: 14px; align-items: start; }
.settings-card { padding: 18px; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 16px; }
.settings-field { display: grid; gap: 7px; }
.settings-field.full { grid-column: 1 / -1; }
.settings-field label { color: #b7c0c9; font-size: 9px; }
.settings-field input, .settings-field select { width: 100%; height: 36px; padding: 0 10px; color: #dce2e8; border: 1px solid var(--line-strong); border-radius: 8px; background: #171d25; font-size: 10px; }
.connection-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.connection-row:last-child { border-bottom: 0; }
.connection-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #bac7d5; background: rgba(146,184,239,.1); font-size: 12px; font-weight: 700; }
.connection-copy { flex: 1; }.connection-copy strong { display: block; font-size: 10px; font-weight: 600; }.connection-copy small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.connection-state { color: #8e9aa7; font-size: 8px; }
.connection-state.connected { color: #99d3ba; }.connection-state.disconnected { color: #e4b27f; }
.settings-help { margin: 12px 0 0; color: var(--muted-2); font-size: 9px; line-height: 1.65; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(5,8,12,.72); backdrop-filter: blur(9px); animation: fade-in .16s ease; }
.modal-card { width: min(760px, 100%); max-height: min(85vh, 850px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: #1a2028; box-shadow: var(--shadow); animation: rise-in .2s ease; }
.modal-card.modal-small { width: min(430px, 100%); }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 15px; font-weight: 650; }.modal-header p { margin: 5px 0 0; color: var(--muted-2); font-size: 9px; }
.modal-body { padding: 18px 19px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 19px; border-top: 1px solid var(--line); }
.modal-preview-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,.8fr); gap: 16px; }
.modal-preview-grid .art-thumb { aspect-ratio: 1.2; }
.modal-kv { display: grid; gap: 9px; margin-top: 13px; }.modal-kv div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 9px; }.modal-kv strong { color: #cbd3da; font-weight: 550; text-align: right; }
.modal-prompt { margin: 0; padding: 10px; color: #acb6c0; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.025); font-size: 9px; line-height: 1.65; }
.modal-section-title { margin: 16px 0 7px; color: #d5dce2; font-size: 9px; font-weight: 650; }
.toast-root { position: fixed; z-index: 90; right: 22px; bottom: 20px; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 10px; color: #d7e1e0; background: #202a2c; box-shadow: var(--shadow); font-size: 10px; line-height: 1.5; animation: rise-in .2s ease; }
.toast .toast-icon { color: var(--mint); font-weight: 700; }.toast.warning { background: #302821; color: #e6cfb2; }.toast.warning .toast-icon { color: var(--orange); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1200px) {
  .page-host { padding-right: 25px; padding-left: 25px; }
  .topbar { padding-right: 25px; padding-left: 25px; }
  .asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-copy { max-width: 53%; }
  .hero-scene { right: -1%; width: 47%; }
  .activity-grid { grid-template-columns: minmax(0,1.2fr) minmax(250px,.8fr); }
}
@media (max-width: 980px) {
  .sidebar { width: 76px; padding-right: 10px; padding-left: 10px; }
  .brand-lockup { justify-content: center; padding: 0; }
  .brand-copy, .project-copy, .project-switcher .chevron, .nav-label, .nav-item > span:not(.nav-icon), .sidebar-status-card, .user-copy, .sidebar-footer .icon-button { display: none; }
  .project-switcher { justify-content: center; padding: 8px; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item.is-active::before { left: -11px; }
  .nav-count, .nav-dot { position: absolute; display: block !important; right: 7px; top: 7px; min-width: 7px; width: 7px; height: 7px; padding: 0; overflow: hidden; font-size: 0; }
  .nav-count { background: var(--orange); }
  .nav-label-spaced { display: block; height: 14px; padding: 0; overflow: hidden; font-size: 0; }
  .sidebar-footer { justify-content: center; padding-right: 0; padding-left: 0; }
  .main-shell { margin-left: 76px; }
  .overview-hero { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-art-card { min-height: 265px; }
  .animation-layout, .generator-layout { grid-template-columns: 1fr; }
  .animation-side-panel { grid-template-columns: repeat(2, 1fr); }
  .generator-side { grid-template-columns: repeat(2, 1fr); }
  .mock-mode-banner { grid-column: 1/-1; }
  .export-layout { grid-template-columns: 1fr; }
  .export-side { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .export-side .card-title-row, .export-side .export-format-grid, .export-side .button { grid-column: 1/-1; }
}
@media (max-width: 700px) {
  .sidebar { inset: auto 0 0; width: 100%; height: 63px; padding: 5px 8px; border-right: 0; border-top: 1px solid var(--line-strong); background: rgba(20,25,32,.96); backdrop-filter: blur(16px); }
  .brand-lockup, .project-switcher, .sidebar-spacer, .sidebar-footer { display: none; }
  .nav-list { display: flex; justify-content: space-around; gap: 2px; height: 100%; }
  .nav-label, .nav-label-spaced { display: none !important; }
  .nav-item { display: grid; justify-items: center; align-content: center; gap: 2px; flex: 1; min-width: 0; height: 52px; min-height: 0; padding: 2px 0; border-radius: 7px; font-size: 8px; }
  .nav-item > span:not(.nav-icon) { display: block; max-width: 100%; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .nav-icon { font-size: 15px; }
  .nav-count, .nav-dot { display: none !important; }
  .nav-item.is-active::before { inset: auto auto -5px 50%; width: 17px; height: 2px; transform: translateX(-50%); }
  .main-shell { margin-left: 0; padding-bottom: 63px; }
  .topbar { height: 55px; padding: 0 15px; }
  .global-search { min-width: 0; width: 33px; height: 33px; justify-content: center; padding: 0; border: 0; background: transparent; }
  .global-search input, .global-search kbd { display: none; }
  .topbar-right { gap: 7px; }
  .topbar-divider { display: none; }
  .page-host { padding: 21px 14px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 24px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .hero-art-card { min-height: 320px; padding: 18px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h2 { max-width: 250px; font-size: 23px; }
  .hero-copy p { max-width: 235px; }
  .hero-scene { width: 72%; height: 53%; right: -5%; bottom: 0; opacity: .95; }
  .hero-side { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 8px; }
  .stat-card { padding: 11px; gap: 8px; }
  .stat-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .stat-copy strong { font-size: 17px; }
  .activity-grid { grid-template-columns: 1fr; }
  .quick-action-grid { grid-template-columns: 1fr; }
  .quick-action { padding: 10px; }
  .asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .asset-card { padding: 6px; }
  .asset-card-body { padding: 9px 3px 2px; }
  .asset-card h3 { font-size: 10px; }
  .asset-card-foot { align-items: flex-start; flex-direction: column; }
  .filter-bar { gap: 7px; }
  .filter-search { width: 100%; }
  .select-control { flex: 1; min-width: 0; }
  .filter-spacer, .view-toggle { display: none; }
  .generator-card { padding: 14px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 0 4px; }
  .spec-grid { grid-template-columns: repeat(2,1fr); }
  .generator-side { grid-template-columns: 1fr; }
  .animation-toolbar { align-items: flex-start; flex-direction: column; }
  .animation-stage { min-height: 320px; }
  .animation-side-panel { grid-template-columns: 1fr; }
  .timeline-track { gap: 3px; }
  .frame-cell { min-height: 54px; }
  .frame-cell .frame-mini { transform: scale(.72); }
  .style-page-grid, .settings-grid { grid-template-columns: 1fr; }
  .style-board { min-height: 315px; }
  .style-board .hero-scene { width: 73%; right: -7%; bottom: -5%; opacity: .8; }
  .style-locks-grid { grid-template-columns: 1fr 1fr; }
  .settings-form-grid { grid-template-columns: 1fr; }
  .settings-field.full { grid-column: auto; }
  .export-side { display: block; }
  .modal-backdrop { padding: 12px; }
  .modal-card { max-height: 88vh; }
  .modal-preview-grid { grid-template-columns: 1fr; }
  .modal-preview-grid .art-thumb { aspect-ratio: 1.7; }
  .toast-root { right: 12px; bottom: 76px; }
}
/* Light-only interface theme. Artwork thumbnails keep their illustrative colors. */
html, body { color-scheme: light; background: var(--bg); color: var(--text); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: rgba(185,108,58,.62); }
.sidebar { background: var(--panel); box-shadow: 5px 0 24px rgba(34,48,62,.035); }
.project-switcher { background: rgba(34,48,62,.035); }
.project-switcher:hover { background: rgba(34,48,62,.06); }
.nav-label { color: #6e7a85; }
.eyebrow { color: #697580; }
.nav-item { color: #52606c; }
.nav-item:hover { background: rgba(34,48,62,.045); }
.nav-item.is-active { color: var(--orange-2); background: var(--orange-soft); border-color: rgba(185,108,58,.16); }
.nav-icon { color: #73808c; }
.nav-count { color: #8b4d28; background: rgba(185,108,58,.14); }
.sidebar-status-card { border-color: rgba(54,124,98,.16); background: linear-gradient(145deg, rgba(54,124,98,.07), rgba(255,255,255,.9)); }
.status-card-top { color: #3c705a; }
.sidebar-status-card p { color: #667a71; }
.text-button { color: #39745e; }
.icon-button { color: #64717d; }
.icon-button:hover { background: rgba(34,48,62,.045); }
.topbar { background: rgba(255,255,255,.92); }
.breadcrumbs strong { color: #303b46; }
.crumb-sep { color: #9aa4ad; }
.global-search, .filter-search { background: rgba(34,48,62,.025); }
.global-search input::placeholder, .filter-search input::placeholder { color: #7b8792; }
kbd { color: #65717d; }
.button { color: #34414d; background: rgba(34,48,62,.035); }
.button:hover { background: rgba(34,48,62,.07); border-color: rgba(34,48,62,.2); }
.button-quiet { color: #596671; }
.button-danger { color: #a74843; border-color: rgba(182,91,84,.24); background: rgba(182,91,84,.07); }
.demo-badge, .soft-badge, .state-pill { color: #52606c; background: rgba(34,48,62,.035); }
.demo-badge { color: #347458; border-color: rgba(54,124,98,.2); background: rgba(54,124,98,.08); }
.card { background: linear-gradient(145deg, #fff, #fbfcfd); box-shadow: 0 8px 24px rgba(34,48,62,.055); }
.link-button { color: #97572f; }
.link-button:hover { color: #7f4524; }
.hero-art-card { background: radial-gradient(ellipse at 69% 39%, rgba(91,151,126,.14), transparent 35%), linear-gradient(125deg, #e9f1ec, #f3f0e9 58%, #f4eded); }
.hero-copy .eyebrow { color: #5c7065; }
.hero-copy p { color: #55665d; }
.hero-caption { color: rgba(37,56,47,.72); }
.progress-orbit { background: conic-gradient(var(--mint) 72%, rgba(34,48,62,.09) 0); }
.progress-orbit::after { background: #fff; }
.progress-copy .progress-line { background: rgba(34,48,62,.09); }
.activity-row strong { color: #27333e; }
.activity-meta time { color: #6e7a85; }
.state-pill.approved { color: #2f7053; border-color: rgba(54,124,98,.18); }
.state-pill.review { color: #925522; border-color: rgba(185,108,58,.2); }
.state-pill.generating { color: #456b9e; border-color: rgba(78,117,176,.2); }
.state-pill.rejected { color: #a84e49; border-color: rgba(182,91,84,.2); }
.state-pill.archived { color: #65717d; background: rgba(34,48,62,.045); }
.quick-action:hover { background: var(--panel-2); }
.asset-card:hover { background: var(--panel-2); }
.asset-card h3 { color: #27333e; }
.asset-type { color: #5e6b77; }
.select-control { color: #34414d; background: #fff; }
.view-toggle { background: #f3f5f7; }
.view-toggle button { color: #64717d; }
.view-toggle button.active { color: var(--orange-2); background: var(--orange-soft); }
.form-label-row label, .field-label { color: #34414d; }
.segmented { background: #f0f3f6; }
.segmented button { color: #596671; }
.segmented button.active { color: #8f4e28; background: rgba(185,108,58,.12); box-shadow: inset 0 0 0 1px rgba(185,108,58,.12); }
.textarea, .input, .field select { color: #27333e; background: #fff; }
.field select { color-scheme: light; }
.textarea::placeholder, .input::placeholder { color: #7b8792; }
.spec-field label { color: #5b6874; }
.spec-field select, .spec-field input, .settings-field input, .settings-field select { color: #27333e; background: #fff; }
.reference-drop { border-color: rgba(34,48,62,.18); background: rgba(34,48,62,.02); }
.reference-copy strong { color: #34414d; }
.asset-reference-chip { color: #52606c; background: rgba(34,48,62,.035); }
.asset-reference-chip.selected { color: #8f4e28; border-color: rgba(185,108,58,.28); background: rgba(185,108,58,.08); }
.lock-row { color: #3c705a; border-color: rgba(54,124,98,.15); background: rgba(54,124,98,.055); }
.lock-row small { color: #607a6d; }
.mock-notice { color: #36745a; }
.preview-empty { color: #62707d; background: radial-gradient(circle at 50% 43%, rgba(78,117,176,.06), transparent 42%), rgba(34,48,62,.018); }
.preview-empty span { color: #587bad; }
.style-lock-item { color: #52606c; }
.style-lock-item small { color: #6e7a85; }
.mock-mode-banner { color: #456b9e; border-color: rgba(78,117,176,.16); background: rgba(78,117,176,.055); }
.mock-mode-banner strong { color: #345782; }
.animation-stage { background-color: #f5f7f9; background-image: radial-gradient(rgba(54,68,82,.09) 1px, transparent 1px), radial-gradient(ellipse at 50% 42%, rgba(86,145,119,.08), transparent 43%); }
.animation-stage::before { background: radial-gradient(ellipse, rgba(34,48,62,.14), transparent 68%); }
.stage-caption { color: #65717d; }
.stage-zoom button { color: #52606c; background: rgba(255,255,255,.9); }
.preview-info-row { color: #5e6b77; }
.preview-info-row strong { color: #34414d; }
.playback-controls { background: #f8f9fb; }
.control-button { color: #52606c; background: #fff; }
.frame-cell { background: #f3f5f7; }
.frame-number, .frame-duration { color: #687580; }
.style-board { background: linear-gradient(135deg, #eaf1ed, #f2f4ef 60%, #f4eef0); }
.style-board p { color: #56655f; }
.style-lock { background: rgba(34,48,62,.025); }
.style-lock strong { color: #34414d; }
.palette-row { color: #52606c; }
.palette-row code { color: #687580; }
.notice-panel { color: #76562f; border-color: rgba(185,108,58,.17); background: rgba(185,108,58,.055); }
.notice-panel strong { color: #70471f; }
.export-row { background: rgba(34,48,62,.02); }
.export-check { color: #52606c; }
.export-summary-row strong { color: #34414d; }
.format-option { color: #5d6975; background: #fff; }
.format-option.selected { color: #8f4e28; border-color: rgba(185,108,58,.28); background: rgba(185,108,58,.07); }
.settings-field label { color: #52606c; }
.connection-logo { color: #456b9e; background: rgba(78,117,176,.1); }
.connection-state { color: #65717d; }
.connection-state.connected { color: #347458; }
.connection-state.disconnected { color: #925522; }
.modal-backdrop { background: rgba(32,43,54,.38); }
.modal-card { background: #fff; }
.modal-kv strong { color: #34414d; }
.modal-prompt { color: #52606c; background: #f7f8fa; }
.modal-section-title { color: #34414d; }
.toast { color: #34414d; background: #fff; }
.toast.warning { color: #76562f; background: #fff8ee; }
@media (max-width: 700px) {
  .sidebar { background: rgba(255,255,255,.96); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Model catalog: responsive local configuration UI; no provider calls are made here. */
.model-security-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 13px; border: 1px solid rgba(185,108,58,.2); border-radius: 12px; background: rgba(185,108,58,.055); }
.model-security-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; color: var(--orange-2); border-radius: 9px; background: var(--orange-soft); font-size: 17px; }
.model-security-banner strong { display: block; color: #70471f; font-size: 11px; }
.model-security-banner p { margin: 5px 0 0; color: #765f46; font-size: 9px; line-height: 1.65; }
.model-overview-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.model-overview-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; padding: 13px 15px; }
.model-overview-card > span { color: var(--muted); font-size: 9px; }
.model-overview-card > strong { grid-row: span 2; color: var(--text); font-size: 22px; font-weight: 680; }
.model-overview-card > small { color: var(--muted-2); font-size: 8px; }
.model-route-card { padding: 17px; margin-top: 13px; }
.model-route-card h2, .model-list-section h2 { margin: 0; color: var(--text); font-size: 12px; font-weight: 650; }
.model-route-card .card-title-row p, .model-list-section .section-header p { margin: 5px 0 0; color: var(--muted-2); font-size: 9px; }
.model-default-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.model-default-field { min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); }
.model-default-field > label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.model-default-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; color: var(--blue); border-radius: 8px; background: var(--blue-soft); font-size: 14px; }
.model-default-field label strong, .model-default-field label small { display: block; }
.model-default-field label strong { overflow: hidden; color: var(--text); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.model-default-field label small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.model-default-field select { width: 100%; margin-top: 10px; }
.model-list-section { margin-top: 21px; }
.model-list-section .section-header { margin-bottom: 11px; }
.model-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.model-card { min-width: 0; padding: 14px; }
.model-card.is-disabled { background: #f7f8f9; }
.model-card-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.model-provider-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; color: #456b9e; border: 1px solid rgba(78,117,176,.14); border-radius: 10px; background: var(--blue-soft); font-size: 10px; font-weight: 750; }
.model-card-title { min-width: 0; flex: 1; }
.model-card-title h3 { overflow: hidden; margin: 0; color: var(--text); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.model-card-title p { overflow: hidden; margin: 4px 0 0; color: var(--muted-2); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.model-status { flex: 0 0 auto; padding: 4px 7px; border-radius: 6px; font-size: 8px; }
.model-status.ready { color: #347458; background: var(--mint-soft); }
.model-status.paused { color: #65717d; background: rgba(34,48,62,.06); }
.model-id-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 13px; padding: 8px 9px; border-radius: 7px; background: rgba(34,48,62,.035); }
.model-id-row span, .model-meta-grid span { color: var(--muted-2); font-size: 7px; letter-spacing: .08em; }
.model-id-row code, .model-meta-grid code { max-width: 70%; overflow: hidden; color: #34414d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.model-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.model-meta-grid > div { display: grid; gap: 4px; min-width: 0; }
.model-meta-grid code { max-width: 100%; }
.model-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.model-capability-chip { padding: 4px 6px; color: #52606c; border: 1px solid rgba(34,48,62,.08); border-radius: 5px; background: rgba(34,48,62,.035); font-size: 7px; }
.model-capability-chip.default { color: #347458; border-color: rgba(54,124,98,.16); background: var(--mint-soft); }
.model-capability-chip.muted { color: var(--muted-2); }
.model-card-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 9px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.model-card-footer > small { max-width: 35%; color: var(--muted-2); font-size: 7px; line-height: 1.5; }
.model-card-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 9px; }
.model-card-actions .link-button { font-size: 8px; }
.model-card-actions .model-delete-link { color: #a74843; }
.model-empty { grid-column: 1 / -1; }
.model-footnote { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: rgba(34,48,62,.02); font-size: 8px; line-height: 1.6; }
.model-footnote strong { flex: 0 0 auto; color: var(--text); }
.model-config-modal { width: min(820px, 100%); }
.model-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.model-form-field { display: grid; gap: 6px; min-width: 0; }
.model-form-field > span { color: #34414d; font-size: 9px; font-weight: 620; }
.model-form-field > span b { color: var(--red); }
.model-form-field > span small, .model-capability-fieldset legend small { color: var(--muted-2); font-size: 8px; font-weight: 400; }
.model-form-field .input { height: 37px; font-size: 10px; }
.model-form-full { grid-column: 1 / -1; }
.model-form-label { color: #34414d; font-size: 9px; font-weight: 620; }
.model-form-label small { margin-left: 5px; color: var(--muted-2); font-size: 8px; font-weight: 400; }
.model-api-key-row { display: flex; align-items: center; gap: 7px; }
.model-api-key-row .input { min-width: 0; flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.model-api-key-toggle { min-width: 50px; height: 37px; flex: 0 0 auto; }
.model-form-help { margin: 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.model-capability-fieldset { min-width: 0; padding: 11px; margin: 0; border: 1px solid var(--line-strong); border-radius: 9px; }
.model-capability-fieldset legend { padding: 0 5px; color: #34414d; font-size: 9px; font-weight: 650; }
.model-capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.model-capability-option, .model-enabled-option { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); cursor: pointer; }
.model-capability-option input, .model-enabled-option input { margin: 2px 0 0; accent-color: var(--orange); }
.model-capability-option strong, .model-capability-option small, .model-enabled-option strong, .model-enabled-option small { display: block; }
.model-capability-option strong, .model-enabled-option strong { color: var(--text); font-size: 8px; font-weight: 620; }
.model-capability-option small, .model-enabled-option small { margin-top: 4px; color: var(--muted-2); font-size: 7px; line-height: 1.5; }
.model-enabled-option { align-items: center; }
.model-modal-safety { padding: 10px 11px; margin-top: 13px; color: #765f46; border: 1px solid rgba(185,108,58,.16); border-radius: 8px; background: rgba(185,108,58,.045); font-size: 8px; line-height: 1.6; }
.model-modal-safety strong { margin-right: 6px; color: #70471f; }

@media (max-width: 980px) {
  .model-default-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .model-overview-cards { gap: 7px; }
  .model-overview-card { padding: 10px; }
  .model-overview-card > strong { font-size: 18px; }
  .model-route-card { padding: 13px; }
  .model-default-grid, .model-form-grid, .model-capability-grid { grid-template-columns: 1fr; }
  .model-form-full { grid-column: auto; }
  .model-card-footer { align-items: flex-start; flex-direction: column; }
  .model-card-footer > small { max-width: none; }
  .model-card-actions { justify-content: flex-start; }
  .model-footnote { flex-direction: column; gap: 3px; }
}

/* Real generated-file workflow. */
.workspace-intro { display:flex; justify-content:space-between; align-items:center; gap:22px; padding:24px 26px; margin-bottom:14px; }
.workspace-intro h2 { margin:8px 0 6px; font-size:22px; letter-spacing:-.03em; }
.workspace-intro p { max-width:700px; margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.intro-tags { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.intro-tags span { padding:5px 8px; color:#52606c; border:1px solid var(--line); border-radius:999px; background:var(--panel-2); font-size:9px; }
.recent-assets-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:12px; }
.asset-media-button { display:block; width:100%; padding:0; overflow:hidden; border:0; border-radius:9px; background:#f0f3f6; cursor:zoom-in; }
.asset-image { display:block; width:100%; aspect-ratio:1; object-fit:contain; background:#f2f4f6; }
.asset-missing { display:grid; place-items:center; min-height:120px; color:var(--muted-2); background:var(--panel-2); font-size:10px; }
.asset-card { cursor:default; }
.asset-card:hover { transform:translateY(-2px); }
.asset-card .asset-card-body { padding:10px 4px 3px; }
.asset-card .asset-card-foot { align-items:flex-start; }
.asset-card .asset-card-foot small:first-child { max-width:58%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.asset-actions { display:flex; justify-content:space-between; margin-top:8px; padding-top:7px; border-top:1px solid var(--line); }
.asset-delete { color:#a74843 !important; }
.job-list { display:grid; gap:0; margin-top:9px; }
.job-row { display:grid; grid-template-columns:9px minmax(0,1fr) auto; align-items:start; gap:10px; padding:11px 0; border-top:1px solid var(--line); }
.job-status-dot { width:8px; height:8px; margin-top:4px; border-radius:50%; background:#9aa4ae; }
.job-status-dot.running { background:#b96c3a; box-shadow:0 0 0 4px rgba(185,108,58,.12); }
.job-status-dot.completed { background:#367c62; }
.job-status-dot.failed { background:#b65b54; }
.job-row-copy { min-width:0; }
.job-row-copy strong { display:block; color:var(--text); font-size:10px; }
.job-row-copy small { display:block; margin-top:4px; color:var(--muted-2); font-size:8px; line-height:1.5; overflow-wrap:anywhere; }
.job-row-copy .job-error { color:#a74843; }
.job-row-copy .job-warning { color:#9a641e; }
.job-row-meta { display:grid; justify-items:end; gap:5px; }
.job-row-meta small { color:var(--muted-2); font-size:8px; text-align:right; }
.job-status { padding:3px 6px; color:#65717d; border-radius:5px; background:rgba(34,48,62,.06); font-size:8px; }
.job-status.running { color:#8f4e28; background:var(--orange-soft); }
.job-status.completed { color:#347458; background:var(--mint-soft); }
.job-status.failed { color:#a74843; background:var(--red-soft); }
.compact-empty { min-height:105px; padding:15px; border:0; }
.library-job-panel { margin-top:14px; }
.generation-mode-tabs { display:flex; gap:7px; margin:0 0 13px; }
.generation-mode-tabs button { min-height:34px; padding:0 13px; color:var(--muted); border:1px solid var(--line-strong); border-radius:8px; background:var(--panel); cursor:pointer; font-size:10px; }
.generation-mode-tabs button.active { color:#8f4e28; border-color:rgba(185,108,58,.28); background:var(--orange-soft); }
.generation-mode-tabs .disabled-tab { opacity:.55; cursor:not-allowed; }
.generation-key-note { display:grid; gap:5px; padding:11px 12px; color:var(--muted); border:1px solid var(--line); border-radius:8px; background:var(--panel-2); font-size:9px; line-height:1.65; }
.generation-key-note strong { color:var(--text); }
.generation-preview-image { display:block; width:100%; max-height:360px; margin-top:12px; border-radius:9px; object-fit:contain; background:#f0f3f6; }
.actual-animation-stage { min-height:440px; }
.animation-frame-image { position:relative; z-index:1; display:block; max-width:min(86%,540px); max-height:365px; object-fit:contain; border-radius:9px; background:#f2f4f6; }
.actual-animation-stage .stage-caption { z-index:2; }
.actual-timeline-track { grid-template-columns:repeat(4,minmax(0,1fr)); }
.actual-timeline-track .frame-cell { display:grid; grid-template-rows:1fr auto; gap:5px; min-width:0; height:auto; padding:5px; }
.timeline-frame-image { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:5px; background:#f2f4f6; }
.asset-detail-preview { display:grid; place-items:center; min-height:210px; max-height:470px; overflow:hidden; border-radius:10px; background:#f1f3f5; }
.asset-detail-preview img { display:block; max-width:100%; max-height:460px; object-fit:contain; }
.asset-detail-frames { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:10px; }
.asset-detail-frames img { display:block; width:100%; aspect-ratio:1; object-fit:contain; border-radius:6px; background:#f1f3f5; }
.asset-file-links { display:flex; flex-wrap:wrap; gap:8px; }
.asset-file-links a { padding:6px 9px; color:#345782; border:1px solid var(--line); border-radius:6px; background:var(--panel-2); font-size:9px; }
.export-mini-image { display:block; width:42px; height:42px; overflow:hidden; border-radius:6px; background:#f0f3f6; }
.export-mini-image img { width:100%; height:100%; object-fit:contain; }
.connection-list { margin-top:10px; }
.status-pulse.is-ready { background:#45a779; box-shadow:0 0 9px rgba(69,167,121,.7); }
@media (max-width:700px) {
  .workspace-intro { align-items:flex-start; flex-direction:column; padding:18px; }
  .workspace-intro h2 { font-size:18px; }
  .recent-assets-grid { grid-template-columns:1fr; }
  .generator-layout { grid-template-columns:1fr; }
  .generation-mode-tabs { flex-wrap:wrap; }
  .actual-animation-stage { min-height:300px; }
  .animation-frame-image { max-height:235px; }
  .actual-timeline-track { grid-template-columns:repeat(4,minmax(0,1fr)); }
}

