:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-soft: #f3f4f5;
  --line: #e9eaec;
  --line-strong: #dcdfe3;
  --text: #17191c;
  --muted: #838a93;
  --accent: #2f6ee5;
  --accent-soft: #eef4ff;
  --success: #12805c;
  --warning: #a65d00;
  --danger: #c93636;
  --shadow: 0 18px 54px rgba(18, 22, 28, 0.09), 0 2px 10px rgba(18, 22, 28, 0.04);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .46; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #20242a; outline-offset: 2px; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
::selection { background: #dfe3e8; color: #111316; }

.boot-screen { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.boot-mark, .brand-mark { display: grid; place-items: center; background: transparent; }
.boot-mark { width: 58px; height: 58px; border-radius: 17px; box-shadow: 0 12px 30px rgba(18, 22, 28, .10); }
.boot-mark img, .brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.boot-screen p { margin: 0; font-size: 14px; }

.shell { height: 100vh; display: grid; grid-template-columns: 198px 226px minmax(0, 1fr); background: var(--bg); }
.rail { position: relative; z-index: 30; background: #fff; border-right: 1px solid #e8eaee; padding: 18px 12px 14px; display: flex; flex-direction: column; align-items: stretch; }
.brand-mark { width: 46px; height: 46px; margin: 0 auto 25px; filter: drop-shadow(0 7px 14px rgba(25,31,45,.11)); }
.rail-brand { width: 174px; min-height: 58px; margin: 0 2px 28px; display: flex; align-items: center; gap: 11px; color: #11151d; }
.rail-brand-mark { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; filter: drop-shadow(0 6px 12px rgba(23, 79, 230, .16)); }
.rail-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.rail-brand-copy { min-width: 0; display: grid; gap: 3px; }
.rail-brand-copy strong { font-size: 17px; font-weight: 720; letter-spacing: -.03em; line-height: 1.15; }
.rail-brand-copy small { color: #8a93a1; font-size: 10px; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.rail-nav { display: grid; gap: 4px; }
.rail-button { border: 1px solid transparent; background: transparent; border-radius: 8px; min-height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; color: #69717c; transition: background .16s ease, color .16s ease, border-color .16s ease; white-space: nowrap; }
.rail-button img { width: 18px; height: 18px; opacity: .76; }
.rail-button:hover { background: #f6f7f9; color: #242932; }
.rail-button:hover img { opacity: .9; }
.rail-button.active { background: #eef4ff; border-color: #eef2ff; color: #2f6ee5; font-weight: 650; box-shadow: inset 2px 0 0 #2f6ee5; }
.rail-button.active img { opacity: 1; filter: invert(42%) sepia(96%) saturate(1657%) hue-rotate(199deg) brightness(93%) contrast(92%); }
.rail-button small { font-size: 13px; font-weight: 580; line-height: 20px; letter-spacing: 0; }
.rail-index { display: none; }
.rail-bottom { margin-top: auto; display: grid; gap: 12px; padding-top: 12px; }
.notification-button, .avatar-button { border: 0; background: transparent; position: relative; white-space: nowrap; writing-mode: horizontal-tb; }
.rail .notification-button { width: 100%; height: 38px; border-radius: 8px; display: flex; align-items: center; gap: 12px; padding: 0 14px; color: #68717c; font-size: 13px; line-height: 20px; text-align: left; }
.rail .notification-button img { width: 18px; height: 18px; opacity: .68; }
.notification-button > span:first-child { display: block; white-space: nowrap; writing-mode: horizontal-tb; }
.rail .notification-button:hover, .rail .avatar-button:hover { background: #f0f1f4; }
.unread-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #2f6ee5; right: 13px; top: 8px; border: 2px solid #fff; }
.rail .avatar-button { width: 100%; min-height: 58px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 14px; align-items: center; gap: 9px; padding: 10px 8px; border-top: 1px solid #eaecf0; border-radius: 0; color: #303641; text-align: left; }
.rail-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e5edff; color: #2f6ee5; font-size: 11px; font-weight: 700; }
.rail-account-copy { min-width: 0; }
.rail-account-copy strong, .rail-account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-account-copy strong { color: #262b32; font-size: 12px; font-weight: 650; line-height: 17px; }
.rail-account-copy small { margin-top: 1px; color: #8b929c; font-size: 11px; line-height: 16px; }
.rail .avatar-button > img { width: 14px; height: 14px; opacity: .55; }

.side-panel { min-width: 0; background: #fbfbfc; border-right: 1px solid #e4e6eb; display: flex; flex-direction: column; }
.side-head { min-height: 82px; padding: 23px 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-kicker { display: none; }
.side-head h1 { font-size: 20px; margin: 0; font-weight: 650; line-height: 28px; letter-spacing: -.02em; }
.new-button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 11px; font-size: 12px; font-weight: 650; box-shadow: 0 3px 10px rgba(18,22,28,.03); }
.new-button:hover { border-color: #cfd3d8; background: #f8f9fa; }
.side-action { padding: 0 14px 10px; }
.side-create { width: 100%; height: 42px; border: 1px solid #e0e3e8; border-radius: 8px; background: #fff; color: #252a32; font-size: 13px; font-weight: 600; line-height: 20px; text-align: left; padding: 0 13px; transition: background .16s ease, border-color .16s ease, transform .16s ease; display: flex; align-items: center; gap: 8px; box-shadow: 0 3px 10px rgba(18,22,28,.025); }
.side-create img { width: 16px; height: 16px; opacity: .68; }
.side-create:hover { background: #f8f9fb; border-color: #d4d8df; transform: translateY(-1px); }
.side-search { margin: 0 14px 9px; position: relative; }
.side-search > img { position: absolute; z-index: 1; width: 14px; height: 14px; left: 11px; top: 50%; transform: translateY(-50%); opacity: .48; }
.side-search input { width: 100%; border: 1px solid transparent; outline: 0; background: #f0f1f4; border-radius: 8px; padding: 9px 12px 9px 33px; font-size: 12px; font-weight: 400; line-height: 18px; }
.side-search input:focus { background: #fff; border-color: #d8dce1; box-shadow: 0 0 0 3px #f1f2f3; }
.side-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 10px 26px; }
.side-label { color: #98a0aa; font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: 0; padding: 18px 10px 9px; }
.side-list { display: grid; gap: 2px; }
.project-list-row { position: relative; border-radius: 11px; }
.project-list-row.active { background: #eceefa; box-shadow: inset 2px 0 0 #6767f3; }
.project-list-row .project-side-item { border-radius: 11px; }
.project-list-row.active .project-side-item { background: transparent; box-shadow: none; }
.project-delete-button { position: absolute; right: 8px; top: 50%; z-index: 2; transform: translateY(-50%); border: 0; border-radius: 7px; background: rgba(255,255,255,.78); color: #9a5860; padding: 4px 6px; font-size: 10px; opacity: 0; transition: opacity .16s ease, background .16s ease; }
.project-list-row:hover .project-delete-button, .project-list-row:focus-within .project-delete-button { opacity: 1; }
.project-delete-button:hover { background: #fff3f3; color: #b63232; }
.side-item { width: 100%; border: 0; background: transparent; border-radius: 11px; padding: 9px 10px; text-align: left; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.side-item:hover { background: #f5f6f7; }
.side-item.active { background: #eceefa; box-shadow: inset 2px 0 0 #6767f3; }
.project-side-item { min-height: 68px; grid-template-columns: 42px minmax(0, 1fr) auto; padding: 8px 10px; gap: 10px; }
.asset-side-item { min-height: 56px; grid-template-columns: minmax(0, 1fr) auto; padding: 9px 11px; }
.project-glyph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #e3e8ff, #f0eaff); color: #5758ca; font-size: 12px; font-weight: 750; }
.side-main { min-width: 0; margin: 0 !important; }
.project-thumb, .side-thumb { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #e9ebee; color: #525965; font-size: 13px; font-weight: 740; box-shadow: inset 0 0 0 1px rgba(20,24,32,.035); }
.project-thumb img, .project-thumb video { width: 100%; height: 100%; object-fit: cover; }
.project-thumb.has-media { background: #dfe2e6; }
.project-thumb.empty { background: linear-gradient(145deg, #f0f1f3, #e7e9ed); }
.project-thumb-empty { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 2px; color: #8c939d; }
.project-thumb-empty img { width: 16px; height: 16px; opacity: .42; object-fit: contain; }
.project-thumb-empty small { font-size: 7px; font-weight: 560; line-height: 1; }
.side-item strong { display: block; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .side-main > span { display: block; font-size: 12px; font-weight: 400; line-height: 18px; color: #9299a2; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { align-self: center; min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; display: grid; place-items: center; background: #f4f5f6; color: #858c95; font-size: 10px; }
.project-side-state { align-self: center; text-align: right; }
.project-side-state small { display: block; max-width: 48px; color: #a1a7af; font-size: 11px; font-weight: 450; line-height: 16px; }
.project-side-state em { display: inline-flex; padding: 4px 6px; border-radius: 7px; background: #fff2df; color: #9a5a00; font-size: 9px; font-style: normal; font-weight: 680; white-space: nowrap; }
.side-empty { margin: 28px 12px; padding: 24px 14px; border: 1px dashed var(--line-strong); border-radius: 14px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.member-row { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px; border-radius: 12px; }
.member-row:hover { background: #f6f7f8; }
.member-avatar { width: 34px; height: 34px; border-radius: 50%; background: #e9effa; color: #315f9d; display: grid; place-items: center; font-size: 12px; font-weight: 720; }
.member-row strong { font-size: 13px; }
.member-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

.workspace { min-width: 0; height: 100vh; display: grid; grid-template-rows: 68px minmax(0, 1fr); }
.topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(221,224,231,.88); padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; z-index: 20; }
.project-heading { min-width: 0; display: flex; align-items: center; gap: 11px; }
.project-heading strong { display: block; font-size: 19px; font-weight: 660; line-height: 26px; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-heading span { display: block; max-width: 220px; overflow: hidden; color: #7d858f; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.project-heading em { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border-radius: 6px; background: #eef4ff; color: #2f6ee5; font-size: 10px; font-style: normal; font-weight: 680; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.participant-stack { display: flex; align-items: center; padding-left: 5px; }
.participant-avatar, .participant-more { width: 28px; height: 28px; margin-left: -5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #dfe9ff; color: #2c63ca; font-size: 9px; font-weight: 740; box-shadow: 0 1px 3px rgba(18,22,28,.09); }
.participant-avatar:nth-child(2n) { background: #f5e7df; color: #a1532e; }
.participant-avatar:nth-child(3n) { background: #e5f1e8; color: #2b7a56; }
.participant-more { background: #edf0f3; color: #5e6671; }
.invite-button { min-height: 32px; padding: 6px 10px; border: 1px solid #dbe1ea; border-radius: 8px; background: #fff; color: #3c4652; font-size: 11px; font-weight: 620; display: inline-flex; align-items: center; gap: 5px; }
.invite-button:hover { border-color: #b8c5d8; background: #f8fbff; color: #2f6ee5; }
.invite-button img { width: 13px; height: 13px; opacity: .68; }
.mobile-only { display: none; }
.project-switch { max-width: 150px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 7px 8px; font-size: 12px; }
.filter-button, .ghost-button { border: 1px solid #e0e3e9; background: rgba(255,255,255,.94); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 18px; display: inline-flex; align-items: center; gap: 7px; }
.filter-button img, .ghost-button img { width: 14px; height: 14px; opacity: .62; }
.filter-button { display: inline-flex; gap: 7px; align-items: center; }
.filter-button span { color: #a0a6ae; }
.filter-button:hover, .ghost-button:hover { background: #fff; border-color: #d2d5da; }

.canvas { min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; background: #f7f8fa; }
.canvas-inner { width: min(860px, calc(100% - 72px)); min-height: 100%; margin: 0 auto; padding: 34px 0 286px; }
.feed { display: grid; gap: 68px; }
.day-group { display: grid; gap: 25px; }
.day-header { display: flex; align-items: center; gap: 14px; }
.day-header::after { content: ""; flex: 1; height: 1px; background: #e1e4e8; }
.day-header > span { order: 2; color: #a0a7b0; font-size: 10px; white-space: nowrap; }
.day-label { margin: 0; font-size: 23px; font-weight: 660; letter-spacing: -.045em; }
.day-works { display: grid; gap: 30px; }
.generation { min-width: 0; }
.generation-card { min-width: 0; overflow: hidden; border: 1px solid #e0e3e8; border-radius: 18px; background: #fff; box-shadow: 0 10px 34px rgba(20,24,32,.045); }
.generation-head { min-height: 92px; padding: 16px 18px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 12px; }
.kind-icon { width: 38px; height: 38px; border: 1px solid #e2e5e8; border-radius: 11px; display: grid; place-items: center; background: #f8f9fa; }
.kind-icon img { width: 16px; height: 16px; opacity: .72; }
.generation-title { min-width: 0; }
.generation-byline { display: block; margin-bottom: 5px; color: #777f89; font-size: 10px; font-weight: 610; }
.generation-title strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #24282e; font-size: 14px; font-weight: 630; line-height: 1.48; }
.generation-title small { display: block; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9299a2; font-size: 10px; }
.generation-title small > span { color: #505760; font-weight: 640; }
.generation-status { padding: 5px 8px; border-radius: 999px; background: #eceef1; color: #6f7781; font-size: 10px; white-space: nowrap; }
.generation-status.status-succeeded { background: #e8f5ee; color: #287659; }
.generation-status.status-failed, .generation-status.status-cancelled { background: #fbeaea; color: #a64444; }
.generation-status.status-submitting, .generation-status.status-running, .generation-status.status-queued, .generation-status.status-unknown { background: #fff3df; color: #94600b; }
.generation-body { min-width: 0; border-top: 1px solid #eceef1; border-bottom: 1px solid #eceef1; background: #eef0f2; }
.generation-meta { display: flex; align-items: center; gap: 9px; color: #8b929b; font-size: 12px; flex-wrap: wrap; }
.generation-meta strong { color: #40454c; font-weight: 620; }
.kind-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 8px; background: #e8e9fb; color: #5658bd; font-weight: 660; }
.generation-prompt { color: #30343a; font-size: 14px; line-height: 1.7; margin: 0; }
.generation-prompt .details { color: #8a949f; margin-left: 8px; }
.media-frame { overflow: hidden; background: #e9ebee; max-height: 620px; min-height: 150px; display: grid; place-items: center; }
.media-frame img, .media-frame video { width: 100%; max-height: 620px; object-fit: contain; background: #e9ebee; }
.media-frame audio { width: calc(100% - 34px); margin: 30px 17px; }
.text-output { width: 100%; padding: 24px; background: #fff; white-space: pre-wrap; font-size: 14px; line-height: 1.8; }
.job-state { min-height: 180px; padding: 34px; display: grid; place-items: center; text-align: center; color: var(--muted); line-height: 1.6; }
.job-state strong { color: var(--text); display: block; margin-bottom: 6px; }
.task-frame { background: linear-gradient(145deg, #f8f9fb, #eef1f5); }
.task-state { width: 100%; min-height: 190px; }
.task-state > div { width: min(480px, 100%); }
.task-state > div > span { display: block; font-size: 12px; color: #7d858f; }
.task-steps { margin: 24px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; text-align: center; }
.task-steps span { position: relative; color: #a0a7b0; font-size: 10px; padding-top: 18px; }
.task-steps span::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: #d9dde3; }
.task-steps span:first-child::before { left: 50%; }
.task-steps span:last-child::before { right: 50%; }
.task-steps i { position: absolute; z-index: 1; top: 0; left: 50%; width: 12px; height: 12px; border: 3px solid #eef1f5; border-radius: 50%; background: #c8cdd4; transform: translateX(-50%); }
.task-steps span.done, .task-steps span.active { color: #3e4650; }
.task-steps span.done::before, .task-steps span.active::before { background: #7675ef; }
.task-steps span.done i, .task-steps span.active i { background: #6564ee; }
.task-steps span.active i { box-shadow: 0 0 0 4px rgba(101,100,238,.14); }
.progress-line { height: 3px; background: #dde2e8; position: relative; overflow: hidden; width: 200px; margin-top: 18px; border-radius: 2px; }
.progress-line::after { content: ""; position: absolute; inset: 0 auto 0 -35%; width: 35%; background: var(--accent); animation: progress 1.3s infinite ease-in-out; }
@keyframes progress { to { left: 100%; } }
.generation-footer { min-height: 60px; padding: 12px 16px; display: flex; align-items: center; background: #fff; }
.generation-actions { width: 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-button { min-height: 34px; border: 1px solid transparent; border-radius: 9px; padding: 7px 11px; background: #f2f3f5; color: #3f4650; font-size: 12px; font-weight: 590; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.action-button img { width: 15px; height: 15px; opacity: .72; }
.action-button:hover { background: #e8ebef; border-color: #dce1e7; }
.review-action.pending { color: #265fc9; background: #eef4ff; border-color: #dbe8ff; }
.review-action.changes_requested { color: #a05a09; background: #fff6e9; border-color: #f5dfbb; }
.review-action.approved, .action-button.approved { color: var(--success); background: #e9f6f1; border-color: #d6eee4; }
.review-indicator { min-height: 34px; padding: 7px 10px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; color: #7e8791; background: #f4f5f6; font-size: 12px; font-weight: 580; }
.review-indicator img { width: 15px; height: 15px; opacity: .58; }
.review-indicator.changes_requested { color: #a05a09; background: #fff6e9; }
.review-indicator.approved { color: var(--success); background: #e9f6f1; }
.action-button:disabled { cursor: not-allowed; opacity: .48; }
.download-action { margin-left: auto; }
.generation-live-note { color: #858d97; font-size: 11px; line-height: 1.5; }
.review-note { display: flex; align-items: flex-start; gap: 9px; padding: 10px 16px; border-top: 1px solid #f4e7d0; background: #fffaf2; color: #7e561b; }
.review-note > span { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; background: #ffedcf; color: #9a5a00; font-size: 10px; font-weight: 700; line-height: 14px; }
.review-note p { margin: 1px 0 0; font-size: 12px; line-height: 19px; }
.comment-panel { background: #fff; border-top: 1px solid #eceef1; padding: 15px 18px 17px; display: grid; gap: 12px; }
.comment-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.comment-panel-head strong { color: #303640; font-size: 13px; font-weight: 680; }
.comment-panel-head span { color: #9299a2; font-size: 11px; }
.comments { display: grid; gap: 10px; }
.comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: flex-start; }
.comment-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e9efff; color: #3165c8; font-size: 10px; font-weight: 700; }
.comment-content { min-width: 0; padding: 8px 10px; border-radius: 4px 10px 10px; background: #f3f5f7; }
.comment.review-comment .comment-content { background: #fff6e9; }
.comment-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.comment-meta strong { color: #424952; font-size: 11px; font-weight: 650; }
.comment-meta time { margin-left: auto; color: #9aa1a9; font-size: 10px; white-space: nowrap; }
.comment-review-state { padding: 2px 5px; border-radius: 5px; background: #ffebc8; color: #9e5b06; font-size: 9px; font-weight: 700; }
.comment-review-state.approved { background: #ddf2e9; color: #197755; }
.comment-content p { margin: 4px 0 0; color: #515963; font-size: 12px; line-height: 19px; white-space: pre-wrap; }
.comment-empty { padding: 10px 11px; border-radius: 8px; background: #f7f8f9; color: #9299a2; font-size: 12px; line-height: 19px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { flex: 1; min-width: 0; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 10px; font-size: 12px; outline: 0; }
.comment-form input:focus { border-color: #9cbff2; box-shadow: 0 0 0 3px #e8f1ff; }
.comment-form button { border: 0; border-radius: 9px; padding: 0 14px; background: #20242a; color: #fff; font-size: 12px; font-weight: 650; }

.empty-canvas { min-height: 58vh; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }
.empty-canvas strong { color: var(--text); font-size: 27px; font-weight: 650; letter-spacing: -.04em; margin-bottom: 10px; }
.empty-canvas p { margin: 0; font-size: 14px; line-height: 1.7; }
.feed-empty { width: 100%; min-height: 0; margin: 0; padding-top: 14px; text-align: left; }
.first-use-empty { min-height: 100%; }
.filtered-empty { gap: 16px; }
.filtered-empty button { height: 38px; border: 1px solid #dde0e4; border-radius: 10px; padding: 0 16px; background: #fff; font-size: 11px; font-weight: 650; }

.start-canvas { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 36px 20px; }
.start-mark { width: 82px; height: 82px; margin-bottom: 20px; }
.start-mark img { width: 100%; height: 100%; object-fit: contain; }
.start-kicker { color: #2377e7; font-size: 12px; font-weight: 720; letter-spacing: .12em; }
.start-canvas h2 { margin: 11px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -.055em; font-weight: 680; }
.start-canvas > p { max-width: 560px; margin: 18px 0 0; color: #747c86; font-size: 15px; line-height: 1.85; }
.start-primary { margin-top: 28px; min-width: 170px; height: 48px; border: 0; border-radius: 13px; padding: 0 22px; color: #fff; background: #17191c; font-size: 14px; font-weight: 680; box-shadow: 0 12px 28px rgba(20,24,30,.13); }
.start-primary:hover { background: #050607; transform: translateY(-1px); }
.start-flow { width: min(680px, 100%); margin-top: 54px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid #e5e7ea; }
.start-flow > div { padding: 22px 20px 0; display: grid; gap: 7px; text-align: left; }
.start-flow > div + div { border-left: 1px solid #eceef0; }
.start-flow span { color: #a2a8b0; font-size: 10px; letter-spacing: .12em; }
.start-flow strong { font-size: 13px; font-weight: 680; }
.start-flow small { color: #8d949d; font-size: 11px; line-height: 1.5; }

.composer-wrap { position: fixed; z-index: 25; left: 424px; right: 0; bottom: 28px; pointer-events: none; }
.composer { pointer-events: auto; width: min(860px, calc(100% - 72px)); margin: 0 auto; background: rgba(255,255,255,.985); border: 1px solid rgba(210,214,220,.98); border-radius: 16px; box-shadow: 0 22px 52px rgba(24,28,40,.10), 0 2px 8px rgba(24,28,40,.035); padding: 14px 15px 12px; backdrop-filter: blur(24px); }
.references { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px 2px; }
.reference-chip { position: relative; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: #eceff2; border: 1px solid var(--line); }
.reference-chip img, .reference-chip video { width: 100%; height: 100%; object-fit: cover; }
.reference-chip .file-chip { height: 100%; display: grid; place-items: center; padding: 8px; font-size: 10px; text-align: center; color: var(--muted); }
.reference-chip button { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(20,23,28,.78); color: #fff; font-size: 12px; }
.prompt-row { min-height: 84px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: start; }
.prompt-row.no-assets { grid-template-columns: minmax(0,1fr); }
.composer-assets { display: flex; align-items: flex-start; gap: 8px; padding-top: 2px; }
.upload-tile { width: 46px; height: 46px; border: 1px dashed #c8ccd2; border-radius: 8px; display: grid; place-items: center; background: #f9fafb; color: #818892; font-size: 22px; line-height: 1; }
.upload-tile:hover { background: #f0f1f3; border-color: #9299a3; color: #333941; }
.built-in-add { align-content: center; gap: 2px; }
.built-in-add span { font-size: 20px; line-height: 1; }
.built-in-add small { font-size: 9px; line-height: 12px; color: #8e959e; }
.built-in-reference { width: 162px; height: 50px; position: relative; flex: 0 0 auto; display: grid; grid-template-columns: 50px minmax(0,1fr); align-items: center; border: 1px solid #e0e3e7; border-radius: 13px; background: #f7f8f9; }
.built-in-preview { width: 50px; height: 50px; padding: 0; border: 1px solid #dfe2e6; border-radius: 13px; overflow: hidden; background: #eef0f2; position: relative; }
.built-in-preview img, .built-in-preview video { width: 100%; height: 100%; object-fit: cover; }
.built-in-preview span { position: absolute; left: 4px; bottom: 4px; padding: 2px 4px; border-radius: 4px; background: rgba(20,23,28,.72); color: #fff; font-size: 8px; line-height: 1; }
.built-in-reference-copy { min-width: 0; padding: 0 9px; display: block; text-align: left; }
.built-in-reference-copy small { display: block; color: #7c838d; font-size: 8px; line-height: 1; }
.built-in-reference-copy strong { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 650; }
.built-in-reference-copy button { margin: 2px 0 0; padding: 0; border: 0; background: transparent; color: #5e5dcc; font-size: 8px; }
.built-in-remove { position: absolute; z-index: 2; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #25292f; color: #fff; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.composer textarea { width: 100%; min-height: 78px; max-height: 180px; resize: none; border: 0; outline: 0; background: transparent; padding: 4px 2px 8px; font-size: 14px; line-height: 22px; }
.composer textarea::placeholder { color: #969da6; }
.composer-bar { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 11px; border-top: 1px solid #eef0f2; }
.composer-options { min-width: 0; display: flex; align-items: center; gap: 7px; }
.select-control { min-height: 38px; border: 1px solid #e5e7ea; background: #f7f8f9; border-radius: 8px; padding: 8px 28px 8px 10px; outline: 0; font-size: 12px; line-height: 18px; max-width: 170px; }
.param-button { min-height: 38px; border: 1px solid #e5e7ea; background: #f7f8f9; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 18px; color: #5b626c; white-space: nowrap; }
.param-button:hover, .select-control:hover { border-color: #cfd3d8; background: #f2f3f5; }
.composer-spacer { flex: 1; }
.submit-button { min-width: 82px; height: 42px; border: 0; border-radius: 10px; background: #202328; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; font-size: 13px; line-height: 20px; font-weight: 650; box-shadow: 0 9px 20px rgba(18,22,29,.14); transition: transform .16s ease, background .16s ease; }
.submit-button img { width: 15px; height: 15px; filter: invert(1); }
.submit-button:hover:not(:disabled) { transform: translateY(-1px); background: #07080a; }
.submit-button.loading { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .6; } }
.hint { margin-left: auto; color: #9aa1aa; font-size: 12px; line-height: 18px; }
.param-popover { position: absolute; left: 50%; bottom: 132px; transform: translateX(-12%); width: min(560px, calc(100vw - 450px)); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 19px; display: grid; gap: 16px; }
.param-section { display: grid; gap: 8px; }
.param-section label { color: var(--muted); font-size: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { border: 1px solid var(--line); background: #fff; border-radius: 9px; min-width: 62px; padding: 8px 11px; font-size: 12px; }
.choice.active { border-color: #8a89ee; background: var(--accent-soft); color: #4f50c0; font-weight: 680; }
.duration-section { gap: 11px; }
.duration-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.duration-heading > label { color: var(--muted); font-size: 12px; }
.duration-heading > span { color: #8a919b; font-size: 10px; }
.duration-control { display: grid; grid-template-columns: minmax(0,1fr) 88px; align-items: center; gap: 14px; }
.duration-range { width: 100%; height: 18px; margin: 0; accent-color: #5f5eea; cursor: pointer; }
.duration-input { height: 38px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 4px; padding: 0 10px; border: 1px solid #dfe2e7; border-radius: 10px; background: #f7f8f9; }
.duration-input:focus-within { border-color: #8a89ee; box-shadow: 0 0 0 3px rgba(95,94,234,.1); }
.duration-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; text-align: right; appearance: textfield; }
.duration-input input::-webkit-inner-spin-button, .duration-input input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.duration-input span { color: #7f8690; font-size: 11px; }
.duration-scale { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #a0a6ae; font-size: 9px; }
.duration-scale strong { color: #5f5eea; font-size: 10px; font-weight: 680; }
.duration-scale span:last-child { text-align: right; }

.asset-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.asset-toolbar h2 { margin: 0; font-size: 25px; font-weight: 660; letter-spacing: -.035em; }
.asset-toolbar .form-note { margin-top: 7px; }
.asset-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.asset-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px rgba(18,22,28,.035); transition: transform .16s ease, box-shadow .16s ease; }
.asset-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18,22,28,.065); }
.asset-preview { aspect-ratio: 4 / 3; background: #eceef0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.asset-preview img, .asset-preview video { width: 100%; height: 100%; object-fit: cover; }
.asset-preview audio { width: calc(100% - 24px); }
.asset-info { padding: 13px 14px 14px; }
.asset-info strong { display: block; font-size: 13px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-info span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.asset-actions { display: flex; gap: 6px; margin-top: 10px; }
.asset-actions button { border: 0; border-radius: 8px; background: #f0f2f4; padding: 7px 9px; font-size: 11px; }
.asset-actions button:hover { background: #e6e9ed; }
.asset-actions .favorited { background: #eef4ff; color: #2f6ee5; font-weight: 650; }
.danger-text-button { color: #ad3c3c !important; }
.danger-text-button:hover { background: #fff1f1 !important; }

.team-members { display: grid; gap: 12px; }
.team-members h3, .team-workspace h3 { margin: 0; font-size: 15px; font-weight: 700; }
.team-workspace { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.team-workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.team-workspace-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.team-workspace-head > span { color: #6e7782; font-size: 11px; white-space: nowrap; }
.team-generation-list { display: grid; gap: 14px; }
.team-generation { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(18,22,28,.035); }
.team-generation > header { padding: 14px 15px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.team-generation > header strong, .team-generation > header span { display: block; }
.team-generation > header strong { font-size: 13px; }
.team-generation > header span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.team-generation > header em { border-radius: 7px; background: #f1f3f5; color: #69717a; padding: 4px 7px; font-size: 10px; font-style: normal; white-space: nowrap; }
.team-generation > header em.status-succeeded { background: #eaf7f1; color: #12805c; }
.team-generation-prompt { margin: 11px 15px; color: #3f4650; font-size: 12px; line-height: 1.6; }
.team-generation-output .media-frame, .team-generation-output .text-output { margin: 0 15px; }
.team-generation-output .media-frame { max-height: 400px; }
.team-generation-output .media-frame img, .team-generation-output .media-frame video { max-height: 400px; object-fit: contain; background: #eff1f3; }
.team-generation > footer { margin-top: 12px; padding: 10px 15px 13px; border-top: 1px solid #f0f1f3; color: #8a919a; font-size: 11px; }

.account-management { display: grid; gap: 18px; }
.account-list { display: grid; gap: 4px; }
.account-row { min-height: 52px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 10px; }
.account-row:hover { background: #f7f8fa; }
.account-row span { min-width: 0; }
.account-row strong, .account-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-row strong { font-size: 13px; }
.account-row small, .account-row em { margin-top: 3px; color: var(--muted); font-size: 11px; font-style: normal; }

.modal-layer { position: fixed; z-index: 100; inset: 0; background: rgba(18,22,29,.28); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 22px; }
.modal { width: min(520px, 100%); max-height: calc(100vh - 44px); overflow: auto; background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 30px 90px rgba(14,18,28,.22); }
.modal.wide { width: min(760px, 100%); }
.modal-head { padding: 20px 22px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.close-button { width: 34px; height: 34px; border: 0; background: #f2f3f5; border-radius: 50%; font-size: 18px; }
.modal-body { padding: 20px 22px 24px; }
.built-in-library { display: grid; gap: 16px; }
.built-in-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.built-in-option { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.built-in-option:hover { transform: translateY(-1px); border-color: #cfd4da; box-shadow: 0 10px 28px rgba(18,22,28,.08); }
.built-in-option.active { border-color: #25292f; box-shadow: 0 0 0 1px #25292f; }
.built-in-option img, .built-in-option video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eef0f2; }
.built-in-option > span { display: block; padding: 10px 11px 11px; }
.built-in-option strong { display: block; font-size: 12px; font-weight: 650; }
.built-in-option small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.built-in-detail { display: grid; gap: 18px; }
.built-in-detail-media { position: relative; border-radius: 16px; overflow: hidden; background: #e9ebee; }
.built-in-detail-media img, .built-in-detail-media video { width: 100%; max-height: 440px; aspect-ratio: 16 / 9; object-fit: contain; background: #e9ebee; }
.built-in-detail-media > span { position: absolute; left: 12px; top: 12px; padding: 5px 8px; border-radius: 8px; background: rgba(20,23,28,.74); color: #fff; font-size: 10px; }
.built-in-detail-info > span { color: #8b929b; font-size: 10px; }
.built-in-detail-info strong { display: block; margin-top: 5px; font-size: 17px; }
.built-in-detail-info p { margin: 8px 0 0; color: #737b85; font-size: 12px; line-height: 1.65; }
.form { display: grid; gap: 15px; }
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: 13px; font-weight: 650; }
.form-row input, .form-row textarea, .form-row select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 11px; outline: 0; background: #fff; }
.form-row textarea { min-height: 90px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: #96baf0; box-shadow: 0 0 0 3px #e8f1ff; }
.form-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.danger-button { color: #aa3939; border-color: #f0d5d5; background: #fff; }
.danger-button:hover { color: #992d2d; background: #fff5f5; border-color: #eabcbc; }
.review-work { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; padding: 12px; border: 1px solid #e5e8ec; border-radius: 12px; background: #fafbfc; }
.review-work .kind-icon { width: 38px; height: 38px; }
.review-work strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #30363e; font-size: 13px; line-height: 19px; }
.review-work p { margin: 4px 0 0; overflow: hidden; color: #89919b; font-size: 11px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.review-form .form-note { margin: 12px 0; }
.review-form .form-row label span { color: #9aa1a9; font-weight: 400; }
.primary-button { border: 0; border-radius: 10px; padding: 10px 15px; background: var(--text); color: #fff; font-size: 13px; font-weight: 650; }
.secondary-button { border: 1px solid var(--line); border-radius: 10px; padding: 10px 15px; background: #fff; font-size: 13px; }
.settings-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.settings-group h3 { margin: 0; padding: 13px 15px; background: #f6f7f8; font-size: 14px; }
.settings-fields { padding: 15px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.account-menu, .notification-panel { position: fixed; z-index: 80; background: rgba(255,255,255,.98); border: 1px solid #e3e5e9; box-shadow: 0 18px 48px rgba(24,28,38,.13), 0 3px 12px rgba(24,28,38,.06); backdrop-filter: blur(20px); }
.account-menu { width: 270px; left: 12px; bottom: 70px; border-radius: 17px; padding: 8px; }
.notification-panel { width: 320px; left: 12px; bottom: 118px; border-radius: 17px; padding: 10px; max-height: 420px; overflow: auto; }
.account-summary { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 9px; padding: 9px 8px 10px; }
.account-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #eef0ff; color: #514fd2; font-size: 11px; font-weight: 700; }
.account-summary strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; }
.account-summary small { display: block; margin-top: 3px; color: #9299a2; font-size: 9px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-button { width: 100%; min-height: 48px; border: 0; background: transparent; border-radius: 11px; text-align: left; padding: 7px 8px; display: grid; grid-template-columns: 32px minmax(0,1fr); align-items: center; gap: 8px; transition: background .14s ease, color .14s ease; }
.menu-button > img { width: 16px; height: 16px; margin: auto; opacity: .68; }
.menu-button strong { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.003em; }
.menu-button small { display: block; margin-top: 2px; color: #9aa0a8; font-size: 9px; line-height: 1.35; }
.menu-button:hover { background: #f3f4f7; }
.menu-button.danger { color: #b33838; }
.menu-button.danger > img { filter: invert(32%) sepia(51%) saturate(1268%) hue-rotate(321deg) brightness(88%); }
.menu-button.danger small { color: #b98e8e; }
.menu-separator { height: 1px; background: #eceef1; margin: 6px 5px; }
.notification-item { border: 0; width: 100%; background: transparent; text-align: left; padding: 11px; border-radius: 10px; }
.notification-item:hover { background: #f4f5f6; }
.notification-item.unread { background: #fff0f0; }
.notification-item strong { font-size: 12px; }
.notification-item p { margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); background: #fff; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(circle at 72% 24%, rgba(32,129,255,.28), transparent 32%), radial-gradient(circle at 28% 82%, rgba(104,66,255,.22), transparent 36%), #111318; padding: clamp(40px, 5vw, 72px); color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::after { content: ""; position: absolute; width: min(52vw, 660px); aspect-ratio: 1; right: -20%; bottom: -36%; border: 1px solid rgba(255,255,255,.09); border-radius: 38%; transform: rotate(22deg); box-shadow: 0 0 0 64px rgba(255,255,255,.025), 0 0 0 128px rgba(255,255,255,.018); pointer-events: none; }
.brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; }
.brand-lockup .brand-mark { width: 68px; height: 68px; margin: 0; }
.brand-lockup strong { display: block; font-size: 22px; font-weight: 720; letter-spacing: -.035em; }
.brand-lockup small { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 12px; letter-spacing: .04em; }
.auth-copy { position: relative; z-index: 1; max-width: 650px; }
.auth-eyebrow { display: inline-block; margin-bottom: 21px; color: #81b7ff; font-size: 12px; font-weight: 680; letter-spacing: .14em; }
.auth-copy h1 { font-size: clamp(42px, 4.5vw, 64px); font-weight: 630; letter-spacing: -.055em; line-height: 1.1; margin: 0 0 22px; }
.auth-copy p { max-width: 590px; margin: 0; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.66); }
.auth-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.auth-capabilities span { border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.055); color: rgba(255,255,255,.76); font-size: 11px; }
.auth-art > small { position: relative; z-index: 1; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .06em; }
.auth-panel { display: grid; place-items: center; padding: clamp(38px, 6vw, 82px); background: #fbfbfc; }
.auth-card { width: min(420px, 100%); }
.auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 38px; }
.auth-mobile-brand img { width: 50px; height: 50px; }
.auth-mobile-brand span { display: grid; gap: 3px; }
.auth-mobile-brand strong { font-size: 16px; line-height: 20px; }
.auth-mobile-brand small { color: #89919b; font-size: 10px; line-height: 14px; }
.auth-card-kicker { display: block; margin-bottom: 12px; color: #2377e7; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.auth-card h2 { font-size: 30px; font-weight: 650; letter-spacing: -.04em; line-height: 1.25; margin: 0 0 11px; }
.auth-card > p { color: var(--muted); margin: 0 0 30px; line-height: 1.7; font-size: 13px; }
.auth-tabs { display: flex; gap: 18px; margin-bottom: 20px; }
.auth-tab { border: 0; padding: 7px 0; background: transparent; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--text); border-color: var(--text); }
.auth-submit { width: 100%; min-height: 46px; margin-top: 5px; border: 0; border-radius: 12px; padding: 12px; background: linear-gradient(135deg, #176ee6, #4e42ed); color: #fff; font-weight: 680; box-shadow: 0 10px 24px rgba(36,91,217,.19); }
.auth-submit:hover { filter: brightness(.96); transform: translateY(-1px); }
.auth-error { padding: 10px 12px; border-radius: 10px; background: #fff0f0; color: var(--danger); font-size: 13px; line-height: 1.5; }

.toast-region { position: fixed; z-index: 200; right: 20px; top: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 14px; background: #20242a; color: #fff; border-radius: 11px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.5; animation: toast-in .2s ease; }
.toast.error { background: #a92d2d; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 1040px) {
  .shell { grid-template-columns: 168px 222px minmax(0,1fr); }
  .rail-brand { width: 144px; }
  .rail-button { padding-left: 12px; padding-right: 12px; }
  .composer-wrap { left: 390px; }
  .composer { width: calc(100% - 44px); }
  .canvas-inner { width: calc(100% - 48px); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .settings-fields { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { overflow: auto; }
  .shell { display: block; height: auto; min-height: 100vh; }
  .rail { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; border-right: 0; border-top: 1px solid var(--line); padding: 5px 10px; flex-direction: row; z-index: 60; }
  .rail-brand, .rail-bottom { display: none; }
  .rail-nav { width: 100%; grid-template-columns: repeat(3,1fr); gap: 4px; }
  .rail-button { min-height: 56px; padding: 5px; flex-direction: column; justify-content: center; gap: 2px; box-shadow: none; }
  .rail-button small { font-size: 10px; line-height: 14px; }
  .rail-index { display: none; }
  .side-panel { display: none; }
  .workspace { height: auto; min-height: 100vh; grid-template-rows: 58px minmax(0,1fr); }
  .topbar { padding: 0 16px; position: sticky; top: 0; }
  .project-heading { gap: 7px; }
  .project-heading strong { font-size: 16px; line-height: 22px; }
  .project-heading span, .project-heading em, .participant-stack, .invite-button { display: none; }
  .filter-button { display: none; }
  .mobile-only { display: inline-flex; }
  .top-actions .avatar-button, .top-actions .notification-button { width: 34px; height: 34px; font-size: 11px; }
  .canvas { overflow: visible; }
  .canvas-inner { width: calc(100% - 28px); padding: 24px 0 278px; }
  .composer-wrap { left: 0; bottom: 78px; }
  .composer { width: calc(100% - 20px); border-radius: 20px; padding: 13px 13px 11px; }
  .prompt-row { min-height: 82px; gap: 10px; }
  .built-in-reference { width: 142px; }
  .built-in-reference-copy { padding: 0 7px; }
  .composer textarea { min-height: 78px; font-size: 14px; }
  .composer-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; overflow: visible; }
  .composer-options { overflow-x: auto; padding-bottom: 2px; }
  .composer-spacer { display: none; }
  .hint { display: none; }
  .select-control { flex: 0 0 auto; }
  .submit-button { min-width: 70px; }
  .param-popover { position: fixed; left: 10px; right: 10px; bottom: 232px; width: auto; transform: none; }
  .account-menu { left: auto; right: 10px; bottom: 76px; width: min(286px, calc(100vw - 20px)); }
  .notification-panel { left: auto; right: 10px; bottom: 76px; width: min(320px, calc(100vw - 20px)); }
  .asset-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .built-in-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .asset-toolbar { align-items: flex-start; flex-direction: column; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { padding: 28px 20px; min-height: 100vh; }
  .auth-mobile-brand { display: flex; }
  .start-flow { grid-template-columns: 1fr; margin-top: 38px; }
  .start-flow > div { padding: 16px 12px; }
  .start-flow > div + div { border-left: 0; border-top: 1px solid #eceef0; }
  .feed { gap: 52px; }
  .day-works { gap: 24px; }
  .day-label { font-size: 20px; }
  .feed-empty { min-height: 0; padding: 6px 2px 0; }
  .generation-head { grid-template-columns: 34px minmax(0,1fr); padding: 14px; }
  .kind-icon { width: 34px; height: 34px; }
  .generation-status { grid-column: 2; justify-self: start; }
  .generation-footer { padding: 10px; }
  .review-note { padding: 10px 12px; }
  .comment-panel { padding: 13px 12px 14px; }
  .download-action { margin-left: 0; }
}

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