:root{--bg:#f6f4ef;--surface:#fdfcf9;--surface-2:#f1eee7;--surface-raise:#fdfcf9;--surface-deep:#eae6dc;--ink:#211d16;--ink-2:#4c463b;--muted:#7c7466;--muted-soft:#a69d8c;--border:#e3ddcf;--border-soft:#2e271b14;--primary:#2a251d;--primary-hover:#3b352a;--accent:#3f6a62;--accent-strong:#33574f;--accent-weak:#e7efec;--border-accent:#3f6a6266;--accent-ring:#3f6a6224;--auth-deep-start:#2a251d;--auth-deep-mid:#211d16;--auth-deep-end:#33574f;--auth-glow:#7ea9a038;--auth-icon:#9cbfb8;--auth-paper-72:#fdfcf9b8;--auth-paper-66:#fdfcf9a8;--auth-paper-42:#fdfcf96b;--auth-paper-14:#fdfcf924;--auth-watermark:#fdfcf909;--auth-grid-line:#2e271b06;--auth-card-bg:#fdfcf9f5;--auth-card-shadow:#2e271b1a;--success:#4a7c59;--success-weak:#e9f1ea;--border-success:#4a7c5952;--danger:#b0453c;--danger-weak:#f7e9e7;--border-danger:#b0453c52;--danger-ring:#b0453c1f;--warning:#9a6b1f;--warning-weak:#f5edda;--info:#4b6e8c;--info-weak:#e9eef4;--amber:#9a6b1f;--amber-weak:#f5edda;--border-amber:#9a6b1f66;--violet:#6b5e8c;--violet-weak:#edeaf4;--border-violet:#6b5e8c52;--teal:#3f6a62;--shadow-sm:0 1px 2px #2e271b0d;--shadow-md:0 6px 24px #2e271b17;--editor-bg:#fbf9f4;--editor-line:#eae6dc;--font-ui:-apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;--font-serif:Georgia, "Times New Roman", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;--font-mono:"SFMono-Regular", Consolas, "Liberation Mono", monospace;--radius:10px;--radius-sm:6px;--sidebar-w:216px;--sidebar-w-collapsed:60px;--workspace-height:calc(100dvh - 48px)}html,body,#root{height:100%;margin:0;padding:0}*,:before,:after{box-sizing:border-box}body{font-family:var(--font-ui);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:var(--ink);background:var(--bg);overflow-x:hidden}.mantine-AppShell-root,.mantine-AppShell-main{background:var(--bg);min-width:0}.project-shell-loader{place-items:center;min-height:60vh;display:grid}img,svg,canvas,video{max-width:100%}pre,code{white-space:pre-wrap;overflow-wrap:anywhere}*{scrollbar-width:thin;scrollbar-color:#2e271b3d transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#2e271b2e;border-radius:8px}::-webkit-scrollbar-thumb:hover{background:#2e271b4d}:where(button,a,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent-weak);color:var(--ink)}.app-sidebar{background:var(--bg);border-right:1px solid var(--border);flex-direction:column;height:100%;display:flex}.sidebar-brand{cursor:pointer;text-align:left;background:0 0;border:0;align-items:center;gap:10px;min-height:56px;padding:16px 16px 12px;display:flex}.sidebar-brand__mark{border-radius:var(--radius-sm);background:var(--primary);width:28px;height:28px;color:var(--surface);font-family:var(--font-serif);flex:none;place-items:center;font-size:16px;font-weight:600;line-height:1;display:grid}.sidebar-brand__name{font-family:var(--font-serif);color:var(--ink);letter-spacing:.02em;white-space:nowrap;font-size:16px;font-weight:600}.sidebar-project{margin:0 12px 8px}.sidebar-nav{flex-direction:column;flex:auto;gap:2px;min-height:0;padding:4px 12px;display:flex;overflow-y:auto}.sidebar-item{border-radius:var(--radius-sm);width:100%;min-height:34px;color:var(--ink-2);cursor:pointer;white-space:nowrap;background:0 0;border:0;align-items:center;gap:10px;padding:6px 10px;font-size:13px;font-weight:500;transition:background .1s,color .1s;display:flex}.sidebar-item svg{color:var(--muted);flex:none;transition:color .1s}.sidebar-item:hover{background:var(--surface-2);color:var(--ink)}.sidebar-item[data-active=true]{background:var(--surface);color:var(--ink);box-shadow:inset 2px 0 0 var(--accent), var(--shadow-sm);font-weight:600}.sidebar-item[data-active=true] svg{color:var(--accent)}.sidebar-item__badge{margin-left:auto}.sidebar-pipe-dot{border-radius:999px;flex:none;width:8px;height:8px;margin-left:auto}.sidebar-pipe-dot[data-state=running]{background:var(--accent);animation:1.6s ease-in-out infinite pipe-dot-pulse}.sidebar-pipe-dot[data-state=paused]{background:var(--warning)}@keyframes pipe-dot-pulse{0%,to{opacity:1}50%{opacity:.35}}.app-sidebar[data-collapsed=true] .sidebar-item{position:relative}.app-sidebar[data-collapsed=true] .sidebar-pipe-dot{margin:0;position:absolute;top:5px;right:5px}.sidebar-section{color:var(--muted-soft);letter-spacing:.05em;white-space:nowrap;margin:12px 10px 4px;font-size:12px;font-weight:500}.sidebar-foot{border-top:1px solid var(--border-soft);flex-direction:column;flex:none;gap:2px;padding:8px 12px 12px;display:flex}.sidebar-kbd{border:1px solid var(--border);background:var(--surface);color:var(--muted-soft);font-size:12px;font-family:var(--font-mono);border-radius:4px;margin-left:auto;padding:1px 6px;line-height:1.4}.sidebar-mode{border:1px solid var(--border-soft);background:var(--surface-2);margin-bottom:4px}.sidebar-mode[data-mode=engineering]{color:var(--accent-strong);border-color:var(--border-accent);background:var(--accent-weak)}.sidebar-mode[data-mode=engineering] svg{color:var(--accent)}.sidebar-mode__hint{color:var(--muted-soft);margin-left:auto;font-size:11px;font-weight:400}.sidebar-account{border-top:1px solid var(--border-soft);min-height:44px;color:var(--muted);align-items:center;gap:10px;margin-top:4px;padding:6px 10px;display:flex}.sidebar-account svg{color:var(--accent);flex:none}.sidebar-account__copy{min-width:0;line-height:1.25;display:grid}.sidebar-account__copy strong,.sidebar-account__copy small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-account__copy strong{color:var(--ink-2);font-size:12px;font-weight:600}.sidebar-account__copy small{color:var(--muted-soft);font-size:11px}.app-sidebar[data-collapsed=true] .sidebar-brand__name,.app-sidebar[data-collapsed=true] .sidebar-item span,.app-sidebar[data-collapsed=true] .sidebar-kbd,.app-sidebar[data-collapsed=true] .sidebar-section,.app-sidebar[data-collapsed=true] .sidebar-account__copy{display:none}.app-sidebar[data-collapsed=true] .sidebar-account{justify-content:center;padding-inline:6px}.app-sidebar[data-collapsed=true] .sidebar-item{justify-content:center;padding:6px}.app-sidebar[data-collapsed=true] .sidebar-brand{justify-content:center;padding-inline:8px}.app-sidebar[data-collapsed=true] .sidebar-project{display:none}.mobile-topbar{background:var(--bg);border-bottom:1px solid var(--border);align-items:center;gap:10px;height:100%;padding:0 12px;display:flex}.page{max-width:1400px;margin:0 auto;padding:24px 28px 40px}.page--flush{max-width:none;margin:0;padding:0}.page--narrow{max-width:880px}.page-header{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;display:flex}.page-header__title{font-family:var(--font-serif);color:var(--ink);margin:0;font-size:24px;font-weight:600;line-height:1.25}.page-header__desc{color:var(--muted);margin:4px 0 0;font-size:13px}.page-header__actions{flex:none;align-items:center;gap:8px;display:flex}@media (width<=36em){.page{padding:18px 16px 32px}.page-header{flex-direction:column;align-items:stretch;gap:12px}.page-header>:first-child{min-width:0}.page-header__desc{overflow-wrap:anywhere}.page-header__actions{flex-wrap:wrap;justify-content:flex-start;width:100%}}.panel{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);padding:16px}.panel--inset{background:var(--surface-2);box-shadow:none}.panel-title{color:var(--ink-2);align-items:center;gap:6px;margin:0 0 10px;font-size:13px;font-weight:600;display:flex}.tone-badge{white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-weight:600;line-height:1.5;display:inline-flex}.tone-badge[data-tone=neutral]{background:var(--surface-2);color:var(--muted)}.tone-badge[data-tone=accent]{background:var(--accent-weak);color:var(--accent-strong)}.tone-badge[data-tone=success]{background:var(--success-weak);color:var(--success)}.tone-badge[data-tone=warning]{background:var(--warning-weak);color:var(--warning)}.tone-badge[data-tone=danger]{background:var(--danger-weak);color:var(--danger)}.tone-badge[data-tone=info]{background:var(--info-weak);color:var(--info)}.empty-state{text-align:center;color:var(--muted);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:40px 20px;display:flex}.empty-state svg{color:var(--muted-soft)}.empty-state__title{color:var(--ink-2);margin:0;font-size:14px;font-weight:600}.empty-state__hint{color:var(--muted);max-width:360px;margin:0;font-size:13px}.prose{font-family:var(--font-serif);color:var(--ink);font-size:16px;line-height:1.9}.kbd{border:1px solid var(--border);background:var(--surface);color:var(--muted);font-size:12px;font-family:var(--font-mono);border-bottom-width:2px;border-radius:4px;padding:1px 6px}.project-dashboard-page,.global-settings-page{max-width:1540px}.project-list-page{max-width:none;min-height:var(--workspace-height);background:var(--bg)}.project-list-frame{min-height:var(--workspace-height);background:var(--bg);justify-content:center;align-items:flex-start;padding:18px 22px 24px;display:flex}.project-list-shell{width:min(100%,1560px);min-height:calc(var(--workspace-height) - 42px);box-shadow:none;background:0 0;border:0;border-radius:0;overflow:visible}.project-list-main{width:100%;min-width:0;padding:0}.project-list-head{margin-bottom:18px}.project-list-title{color:var(--ink);letter-spacing:-.03em;font-size:26px;font-weight:900;line-height:1.12}.page-bar{background:var(--accent);border-radius:999px;width:4px;height:20px;display:inline-block}.project-list-toolbar{gap:12px;min-height:42px;margin-bottom:12px;padding:0}.project-list-filter-tabs{border:1px solid var(--border);background:var(--surface-2);scrollbar-width:none;border-radius:12px;flex:auto;gap:4px;min-width:0;padding:4px;display:inline-flex;overflow-x:auto}.project-list-filter-tabs::-webkit-scrollbar{display:none}.project-list-filter-tabs button{min-height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;flex:none;align-items:center;gap:7px;padding:6px 10px;font-size:13px;font-weight:800;display:inline-flex}.project-list-filter-tabs button:hover,.project-list-filter-tabs button[data-active=true]{color:var(--accent);background:var(--surface);box-shadow:var(--shadow-sm)}.project-list-filter-tabs span{color:var(--muted-soft);font-size:11px}.project-list-toolbar__actions{flex:none}.project-list-search{flex:360px;max-width:390px}.project-list-search .mantine-Input-input{height:40px;font-size:13px}.project-list-status-filter{flex:0 0 132px}.project-list-sort{flex:0 0 176px}.project-list-status-filter .mantine-Input-input,.project-list-sort .mantine-Input-input{height:40px;font-size:13px}.project-list-create{border-radius:7px;height:40px;margin-left:auto;padding-inline:18px;font-size:14px;font-weight:800}.project-table-shell{border:1px solid var(--border);background:var(--surface);border-radius:7px;overflow:auto hidden}.project-create-modal{border:1px solid var(--border);background:var(--surface);border-radius:10px;max-height:calc(100dvh - 48px);overflow:hidden;box-shadow:0 18px 50px #0f172a29}.project-create-modal__header{border-bottom:1px solid var(--border);min-height:54px;padding:16px 18px}.project-create-modal__header .mantine-Modal-title{color:var(--ink);font-size:16px;font-weight:900}.project-create-modal__body{padding:0}.project-create-form{flex-direction:column;display:flex}.project-create-simple{padding:18px}.project-create-pane{min-width:0}.project-create-pane--form{background:var(--surface)}.project-create-simple .mantine-InputWrapper-label{color:var(--ink);margin-bottom:7px;font-size:12px;font-weight:800}.project-create-simple .mantine-TextInput-input,.project-create-simple .mantine-Select-input{border-color:var(--border);height:34px;color:var(--ink);border-radius:7px;font-size:13px}.project-create-simple .mantine-Textarea-input{border-color:var(--border);min-height:132px;color:var(--ink);resize:none;border-radius:7px;font-size:13px;line-height:1.7;padding:10px 12px 28px!important}.project-create-intro-field{position:relative}.project-create-counter{color:var(--muted-soft);pointer-events:none;font-size:12px;font-weight:700;line-height:1;position:absolute;bottom:10px;right:12px}.project-create-actions{border-top:1px solid var(--border);background:var(--surface);min-height:64px;padding:13px 18px 16px}.project-create-actions .mantine-Button-root{border-radius:7px;min-width:76px;height:34px;font-size:13px;font-weight:800}.project-table{table-layout:fixed;border-collapse:collapse;width:100%;min-width:1020px}.project-table th{color:var(--muted-soft);border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;padding:13px 16px;font-size:12px;font-weight:700}.project-table td{border-bottom:1px solid var(--border-soft);vertical-align:middle;height:62px;padding:9px 16px}.project-table th:first-child{width:26%}.project-table th:nth-child(2){width:18%}.project-table th:nth-child(3){width:17%}.project-table th:nth-child(4){width:10%}.project-table th:nth-child(5){width:12%}.project-table th:nth-child(6){width:10%}.project-table th:nth-child(7){width:7%}.project-table tr:last-child td{border-bottom:0}.project-table tr:hover td{background:var(--surface-2)}.project-table__row{cursor:pointer}.project-table__row[data-deleted=true]{cursor:default}.project-table__row[data-deleted=true] td{background:var(--surface)}.project-table__book{grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;min-width:0;display:grid}.project-table__cover{color:#fff;letter-spacing:-.04em;background:linear-gradient(150deg,#ffffff38,#0000 38%),linear-gradient(145deg,#14213d,#2f6bff);border:1px solid #1f293724;border-radius:3px;place-items:center;width:36px;height:44px;font-size:11px;font-weight:900;display:grid;overflow:hidden;box-shadow:inset 0 -16px 28px #0000003d}.project-table__cover[data-kind=screenplay]{background:linear-gradient(150deg,#ffffff3d,#0000 38%),linear-gradient(145deg,#35200f,#bd6b2c)}.project-table__title{min-width:0}.project-table__name,.project-table__metric{color:var(--ink);font-size:13px;font-weight:800;line-height:1.25}.project-table__type{color:var(--muted-soft);margin-top:2px;font-size:12px;line-height:1.2}.project-table__genre{color:var(--muted);font-size:13px;font-weight:700}.project-table__badge{font-size:11px;font-weight:700}.project-table__subnote{color:var(--danger);margin-top:2px;font-size:11px;line-height:1.2}.project-table__status{justify-content:center;min-width:58px;font-size:12px;font-weight:800}.project-table__status[data-status=active]{color:var(--success);background:var(--success-weak)}.project-table__status[data-status=draft]{color:var(--muted);background:var(--surface-deep)}.project-table__status[data-status=trash]{color:var(--danger);background:var(--danger-weak)}.project-table__action{justify-content:center;min-width:0}.project-table__action .mantine-Button-root{min-width:70px;height:28px;padding-inline:9px;font-size:12px}.project-table__action .mantine-ActionIcon-root{color:var(--muted)}.project-list-empty{min-height:360px}.project-list-footer{color:var(--muted);text-align:center;margin-top:34px;font-size:12px;display:block}.project-list-pagination{min-width:1020px;min-height:54px;color:var(--muted);border-top:1px solid var(--border-soft);justify-content:flex-end;align-items:center;gap:18px;padding:9px 16px;font-size:12px;display:flex}.project-list-pagination__controls{align-items:center;gap:7px;display:inline-flex}.project-list-pagination__controls>button{width:28px;height:28px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;place-items:center;font-size:14px;font-weight:800;display:grid}.project-list-pagination__controls>button:hover:not(:disabled),.project-list-pagination__controls>button[data-active=true]{color:var(--accent);border-color:var(--border-accent);background:var(--accent-weak)}.project-list-pagination__controls>button:disabled{opacity:.34;cursor:not-allowed}.project-list-page-size{width:96px}.project-list-cards--list .proj-card{grid-template-columns:118px minmax(0,1fr);align-items:stretch;display:grid}.project-list-cards--list .proj-card__cover{border-radius:14px 0 0 14px;min-height:100%}.project-list-cards--list .proj-card__body{justify-content:center}.proj-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:136px;box-shadow:var(--shadow-sm);cursor:pointer;grid-template-columns:92px minmax(0,1fr);transition:transform .14s,border-color .14s,box-shadow .14s;display:grid;overflow:hidden}.proj-card:hover{border-color:var(--border-accent);box-shadow:var(--shadow-md);transform:translateY(-2px)}.proj-card[data-deleted=true]{cursor:default;border-color:var(--border-danger)}.proj-card[data-deleted=true]:hover{border-color:var(--danger);box-shadow:none;transform:none}.proj-card__cover{min-height:136px;color:var(--accent);background:linear-gradient(145deg, var(--accent-weak), var(--surface));border-right:1px solid var(--border-soft);flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:14px;display:flex;position:relative}.proj-card__cover span{max-width:62px;color:var(--ink);text-align:center;font-size:22px;font-weight:800;line-height:1.05;overflow:hidden}.proj-card__body{min-width:0;padding:14px 14px 12px}.proj-card__title-button{min-width:0;max-width:100%;color:inherit;text-align:left;cursor:pointer;border-radius:4px}.proj-card__title-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.settings-readiness-card,.settings-mini-stat{border:1px solid var(--border-soft);background:var(--surface);border-radius:10px;min-width:0;padding:12px}.settings-readiness-card[data-tone=ready],.settings-mini-stat[data-tone=ready]{border-color:var(--border-success)}.settings-readiness-card[data-tone=warn],.settings-mini-stat[data-tone=warn]{border-color:var(--border-amber);background:var(--amber-weak)}.settings-readiness-card .mantine-Text-root,.settings-mini-stat .mantine-Text-root{overflow-wrap:anywhere}.global-settings-page .settings-workbench-tabs{height:560px;max-height:var(--workspace-height);min-height:430px}.project-settings-page .settings-workbench-tabs{height:710px;max-height:var(--workspace-height);min-height:540px}.settings-tabs-list{scrollbar-width:none;flex-wrap:nowrap;overflow:auto hidden}.settings-tabs-list::-webkit-scrollbar{display:none}.settings-tabs-list .mantine-Tabs-tab{flex:none}.dashboard-hero{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-height:170px;box-shadow:var(--shadow-sm);grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:12px;display:grid}.dashboard-hero__main,.dashboard-hero__rail{min-width:0;padding:18px}.dashboard-hero__rail{border-left:1px solid var(--border);background:var(--surface-2)}.dashboard-grid{grid-template-columns:minmax(300px,.95fr) minmax(360px,1.2fr) minmax(260px,.85fr);gap:12px;display:grid}.dashboard-step{border:1px solid var(--border-soft);background:var(--surface-2);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;min-height:42px;padding:9px 10px;display:flex}.dashboard-small-stat{border:1px solid var(--border-soft);background:var(--surface-2);min-height:92px;color:var(--muted);border-radius:10px;align-content:center;justify-items:center;gap:4px;padding:12px;display:grid}.dashboard-small-stat svg{color:var(--accent)}.project-dashboard-page{max-width:none;margin:0;padding:12px}.project-dashboard-page--loading{min-height:var(--workspace-height);place-items:center;display:grid}.project-entry-grid{grid-template-columns:minmax(0,1fr) 290px;align-content:start;gap:12px;width:min(100%,1240px);margin:0 auto;display:grid}.project-entry-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-width:0;box-shadow:0 1px 4px #1018280a}.project-entry-summary{grid-template-columns:128px minmax(0,1fr);align-items:start;gap:26px;min-height:332px;padding:28px 30px;display:grid}.project-entry-cover{color:#fff;background:radial-gradient(circle at 62% 30%,#7abeffe6 0 19%,#0000 20%),radial-gradient(circle at 24% 18%,#ffffffd9 0 1px,#0000 2px),radial-gradient(circle at 82% 12%,#ffffffa6 0 1px,#0000 2px),linear-gradient(155deg,#08192f 0%,#132d55 50%,#6a82a8 74%,#2f244a 100%);border:1px solid #0f172a29;border-radius:8px;place-items:end center;width:116px;height:148px;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 -26px 38px #00000052}.project-entry-cover[data-kind=screenplay]{background:linear-gradient(160deg,#ffffff2e,#0000 34%),linear-gradient(145deg,#302112,#97632f 58%,#d8b270)}.project-entry-cover:before{content:"";background:linear-gradient(155deg,#ffffff6b,#11223bd1);border-radius:50% 50% 0 0;height:52px;position:absolute;bottom:22px;left:-18px;right:-24px;transform:rotate(-7deg)}.project-entry-cover span{z-index:1;color:#fffffff0;text-align:center;text-shadow:0 2px 14px #0000007a;max-width:86px;margin-bottom:18px;font-size:20px;font-weight:950;line-height:1.05;position:relative}.project-entry-copy{min-width:0}.project-entry-title-row{align-items:center;gap:12px;display:flex}.project-entry-title{min-width:0;color:var(--ink);letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:24px;font-weight:950;line-height:1.12;overflow:hidden}.project-entry-title-row button{color:var(--accent);cursor:pointer;background:0 0;border:0;flex:none;font-size:12px;font-weight:900}.project-entry-meta{color:var(--muted);flex-wrap:wrap;gap:7px 10px;margin-top:13px;font-size:12px;font-weight:800;display:flex}.project-entry-meta span:not(:first-child):before{content:"·";color:var(--muted-soft);margin-right:10px}.project-entry-meta [data-status=active]{color:var(--success)}.project-entry-stats{grid-template-columns:repeat(2,minmax(0,136px));gap:24px;margin:28px 0 0;display:grid}.project-entry-stats dt{color:var(--muted-soft);font-size:12px;font-weight:900}.project-entry-stats dd{color:var(--ink);margin:7px 0 0;font-size:16px;font-weight:950}.project-entry-notes{border-top:1px solid var(--border-soft);max-width:720px;margin-top:30px;padding-top:22px}.project-entry-notes section+section{margin-top:18px}.project-entry-notes h2{color:var(--ink);letter-spacing:-.01em;margin:0 0 7px;font-size:13px;font-weight:950}.project-entry-notes p{max-width:680px;color:var(--muted);margin:0;font-size:13px;font-weight:700;line-height:1.75}.project-entry-actions{min-height:332px;padding:24px}.project-entry-card-title{color:var(--ink);letter-spacing:-.02em;margin:0;font-size:16px;font-weight:950}.project-entry-actions>div{flex-direction:column;gap:9px;margin-top:20px;display:flex}.project-entry-actions button{border:1px solid var(--border);min-height:43px;color:var(--muted);background:var(--surface);cursor:pointer;border-radius:8px;justify-content:flex-start;align-items:center;gap:9px;padding:9px 13px;font-size:13px;font-weight:900;transition:color .14s,border-color .14s,background .14s;display:inline-flex}.project-entry-actions button:first-child{color:var(--accent);background:var(--accent-weak);border-color:var(--border-accent);padding-inline:16px}.project-edit-modal{border:1px solid var(--border);box-shadow:0 18px 50px #0f172a24}.project-edit-modal__header{border-bottom:1px solid var(--border);min-height:56px;padding:16px 18px}.project-edit-modal__header .mantine-Modal-title{color:var(--ink);font-size:16px;font-weight:950}.project-edit-modal__body{padding:18px}.project-edit-form{gap:14px;display:grid}.project-edit-form .mantine-InputWrapper-label{color:var(--ink);margin-bottom:7px;font-size:12px;font-weight:850}.project-edit-form .mantine-Input-input,.project-edit-form .mantine-Textarea-input{border-radius:8px;font-size:13px}.project-edit-form__actions{padding-top:4px}.project-entry-actions button:hover{color:var(--accent);border-color:var(--border-accent);background:var(--accent-weak)}.project-entry-actions svg{color:var(--accent);flex:none}.project-studio-dashboard{min-height:calc(var(--workspace-height) - 24px);grid-template-columns:minmax(360px,1.05fr) minmax(360px,.96fr) minmax(270px,.78fr);grid-auto-rows:minmax(226px,auto);gap:10px;padding:0;display:grid}.studio-panel{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-width:0;min-height:0;overflow:hidden;box-shadow:0 1px 2px #10182808}.studio-panel-title{color:var(--ink);letter-spacing:-.02em;margin:0;font-size:16px;font-weight:900;line-height:1.2}.studio-muted{color:var(--muted);font-size:13px;line-height:1.55}.studio-project-panel{grid-template-columns:130px minmax(0,1fr);align-items:center;gap:22px;padding:28px 26px;display:grid}.studio-book-cover{color:#fff;background:radial-gradient(circle at 78% 18%,#ffffffeb 0 1px,#0000 2px),radial-gradient(circle at 24% 12%,#ffffffd1 0 1px,#0000 2px),radial-gradient(circle at 74% 64%,#ffffffa3 0 1px,#0000 2px),linear-gradient(155deg,#071426 0%,#0d2c57 49%,#45678c 72%,#2d1f3f 100%);border:1px solid #0f172a2e;border-radius:6px;place-items:center;width:122px;height:170px;display:grid;position:relative;overflow:hidden;box-shadow:inset 0 -26px 38px #0000005c,0 12px 22px #0f172a1f}.studio-book-cover:before{content:"";background:radial-gradient(circle at 40% 36%,#8ec6fff2,#2663a3b8 44%,#102546f0 70%);border-radius:999px;width:96px;height:96px;position:absolute;top:28px;left:-28px;box-shadow:0 0 26px #74b1ff6b}.studio-book-cover:after{content:"";background:linear-gradient(165deg,#ffffff70,#0000 28%),linear-gradient(135deg,#47345eb3,#141e31e6);border-radius:60% 38% 0 0;height:54px;position:absolute;bottom:28px;left:14px;right:-20px;transform:rotate(-8deg)}.studio-book-cover span{z-index:1;color:#fffffff0;text-align:center;text-shadow:0 2px 14px #00000085;max-width:88px;font-size:18px;font-weight:950;line-height:1.15;position:relative}.studio-project-copy{min-width:0}.studio-project-title{color:var(--ink);letter-spacing:-.035em;margin:0 0 12px;font-size:27px;font-weight:950;line-height:1.12}.studio-project-meta{color:var(--muted);font-size:14px;font-weight:700}.studio-project-state{color:var(--muted-soft);flex-wrap:wrap;gap:8px;margin-top:9px;font-size:12px;font-weight:700;display:flex}.studio-project-state span:first-child{color:var(--success)}.studio-project-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:34px;display:grid}.studio-project-stats span,.studio-progress-list dt{color:var(--muted-soft);font-size:12px;font-weight:800}.studio-project-stats strong,.studio-progress-list dd{color:var(--ink);margin:6px 0 0;font-size:15px;font-weight:900;display:block}.studio-progress-panel,.studio-material-panel,.studio-continue-panel,.studio-recent-panel,.studio-quick-panel{padding:24px 26px}.studio-progress-body{grid-template-columns:132px minmax(0,1fr);align-items:center;gap:30px;margin-top:30px;display:grid}.studio-progress-ring{background:radial-gradient(circle closest-side, var(--surface) 70%, transparent 72%), conic-gradient(var(--accent) var(--progress,0deg), #edf1f7 0);border-radius:999px;place-items:center;width:112px;height:112px;display:grid;box-shadow:inset 0 0 0 1px #1f29370f}.studio-progress-ring strong{color:var(--ink);font-size:22px;font-weight:950}.studio-progress-list{gap:13px;margin:0;display:grid}.studio-progress-list div{grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:18px;display:grid}.studio-progress-list dd{text-align:right;margin:0}.studio-material-list{gap:15px;margin-top:22px;display:grid}.studio-material-list div{color:var(--muted);grid-template-columns:22px minmax(0,1fr) auto;align-items:center;gap:12px;font-size:13px;font-weight:800;display:grid}.studio-material-list svg,.studio-quick-button svg,.studio-export-button svg{color:var(--accent)}.studio-material-list strong{color:var(--ink);font-size:14px;font-weight:900}.studio-continue-title{color:var(--ink);margin-top:28px;font-size:16px;font-weight:900;line-height:1.45}.studio-primary-action{border-radius:7px;min-width:112px;height:40px;margin-top:32px;font-weight:900}.studio-recent-list{gap:3px;margin-top:20px;display:grid}.studio-recent-row{min-height:38px;color:var(--muted);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:minmax(0,1.35fr) 116px 78px 54px;align-items:center;gap:14px;padding:0;display:grid}.studio-recent-row:hover span,.studio-recent-row:focus-visible span{color:var(--accent)}.studio-recent-row span{min-width:0;color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:900;overflow:hidden}.studio-recent-row time,.studio-recent-row strong,.studio-recent-row small{color:var(--muted-soft);white-space:nowrap;font-size:12px;font-weight:800}.studio-recent-row strong{color:var(--muted);text-align:right}.studio-recent-row small{text-align:right}.studio-empty-row{min-height:88px;color:var(--muted-soft);place-items:center;font-size:13px;font-weight:700;display:grid}.studio-link-action{color:var(--accent);cursor:pointer;background:0 0;border:0;margin:22px auto 0;font-size:13px;font-weight:900;display:block}.studio-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px;display:grid}.studio-quick-button,.studio-export-button{border:1px solid var(--border);min-height:38px;color:var(--muted);background:var(--surface);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:900;display:inline-flex}.studio-quick-button:hover,.studio-export-button:hover{color:var(--accent);border-color:var(--border-accent);background:var(--accent-weak)}.studio-export-button{width:100%;margin-top:12px}.workflow-page{max-width:1240px;margin:0 auto}.workflow-shell{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm);border-radius:12px;overflow:hidden}.workflow-layout{grid-template-columns:minmax(0,1fr);min-height:650px;display:grid}.workflow-main-card{border-right:0;min-width:0;padding:0}.workflow-stepbar{border-bottom:1px solid var(--border);background:linear-gradient(#fff 0%,#fbfcff 100%);justify-content:center;align-items:center;gap:26px;min-height:74px;padding:0 22px;display:flex}.workflow-stepbar-node{align-items:center;gap:0;display:inline-flex}.workflow-stepbar-item{color:var(--muted-soft);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:9px;padding:0;font-size:15px;font-weight:900;display:inline-flex}.workflow-stepbar-item:disabled{cursor:default}.workflow-stepbar-index{color:#8390a3;background:#fff;border:2px solid #d7deea;border-radius:999px;justify-content:center;align-items:center;width:27px;height:27px;font-size:13px;font-weight:950;line-height:1;display:inline-flex}.workflow-stepbar-item[data-status=active]{color:var(--accent)}.workflow-stepbar-item[data-status=active] .workflow-stepbar-index,.workflow-stepbar-item[data-status=done] .workflow-stepbar-index{border-color:var(--accent);color:#fff;background:var(--accent);box-shadow:0 4px 10px #2f6bff33}.workflow-stepbar-item[data-status=done]{color:var(--accent)}.workflow-stepbar-line{display:none}.workflow-form-card{min-height:505px;padding:22px 42px;background:var(--surface)!important;box-shadow:none!important}.workflow-footer-actions{padding:0 42px 26px}.workflow-ready-mark{border:1px solid var(--border-success);color:var(--success);background:var(--success-weak);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:900}.ideation-step{flex-direction:column;gap:18px;display:flex}.ideation-compose{background:0 0;flex-direction:column;gap:16px;padding:0;display:flex}.ideation-compose-row{max-width:620px}.ideation-field{min-width:0}.ideation-count-field{max-width:168px}.ideation-label{color:#465266;margin-bottom:7px;font-size:13px;font-weight:900}.ideation-input{color:#263244;background:#fff;border-color:#dfe5ee;border-radius:10px;min-height:42px;font-size:14px;font-weight:650;box-shadow:0 1px 2px #10182808}.ideation-input:focus,.ideation-input:focus-within{border-color:var(--border-accent);box-shadow:0 0 0 3px var(--accent-ring)}.ideation-thought-input{font-size:15px;line-height:1.8}.ideation-compose-footer{justify-content:flex-end;align-items:center;gap:16px;display:flex}.ideation-save-button{min-width:132px;height:38px;box-shadow:none;border-radius:8px;font-weight:900}.ideation-results{flex-direction:column;gap:8px;margin-top:18px;display:flex}.ideation-results-head{justify-content:space-between;align-items:center;gap:16px;padding-bottom:0;display:flex}.ideation-result-status{color:var(--muted);font-size:14px;font-weight:800}.ideation-candidate{background:#fff;border:1px solid #e7ebf2;border-radius:12px;flex-direction:column;gap:14px;padding:18px 20px;display:flex}.ideation-candidate[data-selected=true]{border-color:var(--border-accent);background:#fff}.ideation-candidate-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.ideation-candidate-index{color:var(--muted);align-items:center;font-size:12px;font-weight:800;display:inline-flex}.ideation-candidate-title{color:var(--ink);letter-spacing:-.01em;margin-top:4px;font-size:17px;font-weight:850}.ideation-alignment{color:var(--muted);margin:0;font-size:13px;line-height:1.75}.ideation-candidate-body{flex-direction:column;gap:10px;display:flex}.ideation-candidate-line{color:#263244;margin:0;font-size:13px;font-weight:500;line-height:1.75}.ideation-candidate-line span{min-width:44px;color:var(--muted);margin-right:10px;font-weight:800;display:inline-block}.ideation-candidate-line[data-muted=true]{color:var(--muted)}.ideation-response-empty{color:#435066;background:0 0;border:0;border-radius:0;flex-direction:column;justify-content:center;min-height:0;padding:8px 0 0;display:flex}.ideation-response-empty[data-state=running]{background:0 0}.ideation-modal-list{flex-direction:column;gap:12px;height:500px;max-height:62vh;padding:2px 8px 2px 0;display:flex;overflow-y:auto}.mantine-Modal-content:has(.ideation-modal-list) .mantine-Modal-header{min-height:48px;padding:16px 18px 8px}.mantine-Modal-content:has(.ideation-modal-list) .mantine-Modal-title{color:var(--ink);font-size:17px;font-weight:850}.mantine-Modal-content:has(.ideation-modal-list) .mantine-Modal-body{padding:8px 18px 18px}.auto-run-card{flex-direction:column;gap:22px;min-height:100%;display:flex}.auto-run-head{flex-direction:column;gap:10px;display:flex}.auto-run-title{color:var(--ink);letter-spacing:-.01em;font-size:18px;font-weight:950}.auto-run-current{color:var(--muted);font-size:13px;font-weight:800}.auto-run-list{flex-direction:column;gap:14px;display:flex}.auto-run-item{color:#435066;background:#fff;border:1px solid #dfe5ee;border-radius:9px;align-items:center;gap:12px;min-height:58px;padding:0 14px;font-size:14px;font-weight:850;display:flex;box-shadow:0 1px 2px #10182808}.auto-run-check{color:#8a94a3;border:2px solid #d3dbe8;border-radius:999px;justify-content:center;align-items:center;width:21px;height:21px;font-size:12px;font-weight:950;line-height:1;display:inline-flex}.auto-run-item[data-status=done] .auto-run-check{border-color:var(--success);color:#fff;background:var(--success)}.auto-run-item[data-status=active]{border-color:var(--border-accent);background:#f8fbff}.auto-run-item[data-status=active] .auto-run-check{border-color:var(--accent);color:var(--accent);background:#fff}.auto-run-actions{flex-direction:column;gap:10px;margin-top:auto;display:flex}.auto-run-result{border-top:1px solid var(--border);padding-top:12px}.writing-tree{background:var(--surface);border:1px solid var(--border);width:252px;box-shadow:none;border-radius:14px;flex:0 0 252px;overflow:hidden}.writing-tree__head{color:var(--ink);background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:8px;padding:11px 13px;font-size:13px;font-weight:700;display:flex}.writing-tree__scroll{height:calc(var(--workspace-height) - 92px);background:var(--surface)}.writing-tree__group{padding:6px 0}.writing-tree__arc,.writing-tree__chapter{text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:7px;width:100%;transition:background .14s,color .14s,border-color .14s;display:flex}.writing-tree__arc{color:var(--ink);padding:8px 13px;font-size:13px;font-weight:700}.writing-tree__arc:hover,.writing-tree__chapter:hover{background:var(--surface-2)}.writing-tree__arc[data-active=true]{color:var(--accent);background:var(--accent-weak)}.writing-tree__arc-title,.writing-tree__chapter-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.writing-tree__count{color:var(--muted);background:var(--surface-deep);border-radius:999px;flex:none;padding:1px 7px;font-size:11px}.writing-tree__chapter{color:var(--muted);border-left:3px solid #0000;padding:7px 10px 7px 26px;font-size:13px}.writing-tree__chapter[data-active=true]{color:var(--accent);background:var(--accent-weak);border-left-color:var(--accent);font-weight:700}.writing-workbench{width:100%;height:var(--workspace-height);min-height:680px;overflow:hidden;align-items:stretch!important;gap:12px!important}.writing-main{flex:1;min-width:0;height:100%;overflow:hidden}.screenplay-list-page,.screenplay-workbench{height:var(--workspace-height);min-height:680px;overflow:hidden}.screenplay-list-page{padding:0}.screenplay-workbench{grid-template-columns:230px minmax(0,1fr);gap:12px;display:grid}.screenplay-scene-list,.screenplay-editor-pane{min-width:0;min-height:0;overflow:hidden}.screenplay-scene-list{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm);flex-direction:column;gap:10px;padding:12px;display:flex}.screenplay-scene-list__head{justify-content:space-between;align-items:center;padding-top:4px;display:flex}.screenplay-scene-item{width:100%;min-width:0;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:3px 8px;padding:9px 10px;display:grid}.screenplay-scene-item span{width:24px;height:24px;color:var(--muted);background:var(--surface-2);border-radius:8px;grid-row:span 2;place-items:center;font-size:12px;font-weight:800;display:grid}.screenplay-scene-item strong,.screenplay-scene-item small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.screenplay-scene-item:hover,.screenplay-scene-item[data-active=true]{color:var(--accent);border-color:var(--border-accent);background:var(--accent-weak)}.screenplay-scene-item[data-active=true] span{color:var(--surface);background:var(--accent)}.screenplay-editor-pane>.chapter-editor{height:100%}.chapter-editor{flex-direction:column;height:100%;min-height:0;gap:8px!important;display:flex!important}.chapter-editor__header{min-width:0;min-height:40px;box-shadow:none;background:0 0;border:0;border-radius:0;flex:none;align-items:center;padding:0 4px 4px}.chapter-editor__title-block{flex:auto;min-width:0}.chapter-editor__header-tools{flex:none;align-self:center}.chapter-editor__title-row,.chapter-editor__meta-row{min-width:0}.chapter-editor__title-row .mantine-Title-root{color:var(--ink);letter-spacing:0;flex:none;font-size:20px;font-weight:800}.chapter-editor__chapter-kicker{border:1px solid var(--border);color:var(--muted);background:var(--surface);border-radius:999px;flex:none;padding:3px 8px;font-size:12px;font-weight:800}.chapter-editor__meta-row{min-height:18px;color:var(--muted)}.chapter-editor__title-input{flex:0 auto;width:clamp(260px,36vw,560px);min-width:120px;max-width:clamp(260px,36vw,560px)}.chapter-editor__title-input .mantine-TextInput-input{height:34px;padding-inline:0;font-size:21px;font-weight:800;color:var(--ink)!important;background:0 0!important;border-color:#0000!important}.chapter-editor__workspace{flex:auto;grid-template-rows:minmax(0,1fr) auto;gap:8px;min-height:0;display:grid}.chapter-quality-strip,.chapter-action-bar{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-sm)}.chapter-quality-strip{flex:none;grid-template-columns:minmax(130px,auto) minmax(0,1fr) minmax(160px,auto) minmax(170px,auto);gap:0;min-width:0;padding:6px 8px;display:grid}.chapter-quality-strip[data-tone=ready]{border-color:var(--border-success)}.chapter-quality-strip[data-tone=blocked]{border-color:var(--border-danger)}.chapter-quality-strip__item,.chapter-quality-strip__button{border:0;border-left:1px solid var(--border-soft);background:0 0;border-radius:0;min-width:0;padding:4px 12px}.chapter-quality-strip__item:first-child{border-left:0;padding-left:4px}.chapter-quality-strip__button{color:var(--ink);text-align:left;cursor:pointer}.chapter-quality-strip__button:hover{background:var(--accent-weak)}.chapter-action-bar{background:color-mix(in srgb, var(--surface) 94%, transparent);border-radius:16px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;display:grid;box-shadow:0 10px 28px #10182814}.chapter-action-bar__primary,.chapter-action-bar__tools{min-width:0}.chapter-action-bar__primary{scrollbar-width:none;padding-bottom:0;overflow:hidden}.chapter-action-bar__primary::-webkit-scrollbar{display:none}.chapter-action-bar__primary .mantine-Button-root{flex:none}.chapter-action-bar__main{min-width:132px}.chapter-action-bar__commit-button{color:var(--muted)}.chapter-quality-trigger{flex:none;min-width:128px}.chapter-quality-trigger[data-tone=red]{background:var(--danger-weak)}.chapter-quality-trigger[data-tone=teal]{background:var(--success-weak)}.chapter-quality-trigger__dot{background:var(--danger);width:7px;height:7px;box-shadow:0 0 0 4px var(--danger-ring);border-radius:999px;flex:0 0 7px}.chapter-action-bar__commit{display:none}.chapter-editor__body{grid-template-columns:minmax(640px,1fr) 318px;align-items:stretch;gap:10px;height:100%;min-height:0;display:grid}.chapter-editor__body .mantine-Textarea-root{min-width:0}.chapter-editor__writer{border:1px solid var(--border);background:linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), #1f29370b calc(100% - 1px)), var(--surface-2);min-width:0;min-height:0;box-shadow:none;background-size:44px 100%;border-radius:16px;grid-template-rows:auto minmax(0,1fr) auto;display:grid;overflow:hidden}.chapter-editor__writer-toolbar,.chapter-editor__writer-footer{background:color-mix(in srgb, var(--surface) 94%, transparent);min-width:0;padding:8px 12px}.chapter-editor__writer-toolbar{border-bottom:1px solid var(--editor-line)}.chapter-editor__writer-footer{border-top:1px solid var(--editor-line);min-height:34px}.chapter-editor__writer .mantine-Textarea-root,.chapter-editor__writer .mantine-Textarea-wrapper{min-width:0;height:100%;min-height:0}.chapter-editor__writer .mantine-Textarea-root{height:100%;min-height:0}.chapter-editor__writer .mantine-Textarea-wrapper{justify-content:center;align-items:stretch;padding:14px 20px 18px;display:flex}.chapter-editor__body textarea{resize:none;box-shadow:0 10px 28px #1018280f;background:var(--editor-bg)!important;width:min(100%,800px)!important;height:100%!important;min-height:0!important;max-height:none!important;color:var(--ink)!important;font-family:var(--font-serif)!important;border:1px solid #1f293717!important;border-radius:18px!important;padding:34px 46px!important;font-size:16.5px!important;line-height:2.05!important;overflow-y:auto!important}.chapter-editor__context{min-width:0;height:100%;min-height:0;overflow:hidden}.writing-assist-shelf{border:1px solid var(--border);background:var(--surface);height:100%;min-height:0;box-shadow:none;border-radius:16px;grid-template-rows:auto minmax(0,1fr);display:grid;overflow:hidden}.writing-assist-shelf__head{border-bottom:1px solid var(--border);background:var(--surface);padding:11px 12px}.context-budget-panel{background:var(--surface);height:100%;min-height:0;box-shadow:none;border:0;border-radius:0;flex-direction:column;display:flex;overflow:hidden}.context-budget-panel .mantine-Tabs-root,.context-budget-panel .mantine-Tabs-panel{min-height:0}.context-budget-tabs{border-bottom:1px solid var(--border);background:var(--surface);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.context-budget-tabs .mantine-Tabs-tab{min-height:38px;color:var(--muted);background:0 0;border:0;border-radius:0;font-weight:700}.context-budget-tabs .mantine-Tabs-tab[data-active=true]{color:var(--accent);box-shadow:inset 0 -2px 0 var(--accent);background:0 0}.context-budget-panel__body{min-height:0;max-height:calc(var(--workspace-height) - 96px);padding:9px;overflow-y:auto}.scene-assist-rail{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;min-height:0;box-shadow:var(--shadow-sm);padding:14px;overflow-y:auto}.scene-assist-rail section+section{border-top:1px solid var(--border-soft);margin-top:14px;padding-top:14px}.scene-assist-action{border:1px solid var(--border);width:100%;min-height:34px;color:var(--muted);background:var(--surface);text-align:left;cursor:pointer;border-radius:9px;padding:7px 10px}.scene-assist-action:hover:not(:disabled){color:var(--accent);border-color:var(--border-accent);background:var(--accent-weak)}.scene-assist-action:disabled{opacity:.45;cursor:default}.context-rail-section{border:1px solid var(--border-soft);background:var(--surface);border-radius:10px;min-width:0;padding:10px}.context-rail-section--summary{border-color:var(--border);background:var(--surface)}.context-coverage-grid,.context-coverage-list,.context-style-grid,.context-entity-grid{gap:8px;display:grid}.context-coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.context-coverage-list{gap:6px}.context-coverage-list span{border-bottom:1px solid var(--border-soft);min-width:0;color:var(--muted);justify-content:space-between;align-items:baseline;gap:8px;padding:6px 0;font-size:12px;font-weight:700;display:flex}.context-coverage-list span:last-child{border-bottom:0}.context-coverage-list strong{color:var(--ink);font-size:16px;font-weight:850}.context-style-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.context-entity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.context-coverage-grid>div,.context-style-grid>div,.context-memory-item,.context-entity-grid span{border:1px solid var(--border-soft);background:var(--surface);border-radius:8px;min-width:0;padding:8px}.context-entity-grid span{color:var(--muted);font-size:12px;font-weight:700}.context-budget-total{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-bottom:7px;display:grid}.context-trimmed{gap:5px;margin-top:9px;display:grid}.blacklist-hit-strip{border:1px solid var(--border-violet);background:var(--violet-weak);border-radius:10px;padding:10px}.blacklist-hit-strip__item{border:1px solid var(--border-soft);background:var(--surface);width:100%;color:var(--ink);text-align:left;border-radius:8px;grid-template-columns:44px minmax(0,1fr);align-items:start;gap:8px;padding:6px 8px;display:grid}.blacklist-hit-strip__item:hover{border-color:var(--border-violet)}.blacklist-hit-strip__snippet{overflow-wrap:anywhere}.blacklist-hit-strip__mark{color:var(--ink);background:var(--violet-weak);border-radius:3px;padding:0 2px}.chapter-editor__commit{z-index:2;box-shadow:none;background:0 0;border:0;padding:0;position:static}.chapter-editor__results{min-height:0}.memory-page{max-width:none}.memory-page__stack{height:var(--workspace-height);min-height:680px;overflow:hidden}.memory-doc-layout{flex:auto;grid-template-columns:minmax(0,1fr) 360px;gap:12px;min-height:0;display:grid;overflow:hidden}.memory-context-doc,.memory-budget-aside{min-width:0;min-height:0;overflow:hidden}.memory-doc-tabs,.memory-doc-tabs .mantine-Tabs-panel{height:100%;min-height:0}.memory-doc-tabs{grid-template-rows:auto minmax(0,1fr);display:grid}.memory-doc-tabs__list{border:1px solid var(--border);background:var(--surface-2);border-radius:12px;gap:4px;width:fit-content;margin-bottom:14px;padding:4px;display:inline-flex}.memory-doc-tabs__list .mantine-Tabs-tab{min-height:32px;color:var(--muted);background:0 0;border:0;border-radius:9px;font-weight:700}.memory-doc-tabs__list .mantine-Tabs-tab[data-active=true]{color:var(--accent);background:var(--surface);box-shadow:var(--shadow-sm)}.memory-doc-panel{height:100%;min-height:0;padding-right:4px;overflow-y:auto}.memory-doc-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);padding:16px}.memory-doc-card+.memory-doc-card{margin-top:12px}.memory-doc-card--fill{flex-direction:column;height:100%;display:flex}.memory-doc-scroll{min-height:0;max-height:calc(var(--workspace-height) - 160px);flex:auto;margin-top:12px;padding-right:4px;overflow-y:auto}.memory-doc-scroll--short{max-height:240px}.memory-doc-two-col{flex:auto;grid-template-columns:minmax(0,1fr) 300px;gap:12px;min-height:0;display:grid}.memory-budget-aside{flex-direction:column;display:flex}.memory-budget-aside>.mantine-Stack-root{min-height:0;padding-right:3px;overflow-y:auto}.memory-workbench{flex:auto;grid-template-columns:minmax(330px,.92fr) minmax(470px,1.1fr) minmax(380px,1fr);align-items:stretch;gap:10px;min-height:0;display:grid}.memory-workbench__middle{grid-template-rows:minmax(0,1fr) 146px;gap:10px;min-width:0;min-height:0;display:grid}.memory-panel{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.memory-panel__scroll{flex:auto;min-height:0;padding-right:3px;overflow-y:auto}.memory-panel--l3{min-height:146px}.memory-panel--budget>.mantine-Stack-root{min-height:0;padding-right:3px;overflow-y:auto}.memory-l1-layout{flex:auto;grid-template-rows:minmax(0,1fr) 154px;gap:10px;min-height:0;display:grid}.memory-l1-list{min-height:0;padding-right:3px;overflow-y:auto}.memory-l1-log{flex:none;min-height:0}.memory-l1-log .memory-log-card{height:100%;overflow:hidden}.working-memory-list>.mantine-Stack-root:last-child{gap:6px}.memory-log-card{background:var(--amber-weak)!important;border-color:var(--border-amber)!important;box-shadow:none!important}.memory-budget-pipeline{border:1px solid var(--border);color:var(--muted);background:var(--surface-2);border-radius:10px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;padding:8px;font-size:12px;font-weight:700;display:grid}.memory-budget-pipeline span{border:1px solid var(--border-soft);background:var(--surface);text-align:center;text-overflow:ellipsis;white-space:nowrap;border-radius:8px;min-width:0;padding:8px 9px;overflow:hidden}.memory-budget-pipeline svg{color:var(--muted-soft)}.memory-budget-footer{border:1px solid var(--border-soft);background:var(--surface-2);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:9px;display:grid}.memory-budget-footer>div{border-right:1px solid var(--border-soft);min-width:0;padding-right:8px}.memory-budget-footer>div:last-child{border-right:0;padding-right:0}.memory-list-row,.memory-tree-node,.memory-entity-card{border:1px solid var(--border-soft);background:var(--surface);border-radius:10px;min-width:0;padding:10px 11px}.memory-list-row .mantine-Badge-root,.memory-tree-node .mantine-Badge-root{flex:none;height:18px;font-size:10px}.memory-list-row .mantine-ActionIcon-root,.memory-tree-node .mantine-ActionIcon-root{width:26px;min-width:26px;height:26px}.memory-list-row:hover,.memory-tree-node:hover,.memory-entity-card:hover{border-color:var(--border-accent);background:var(--accent-weak)}.memory-tree-node{position:relative}.memory-tree-node:before{content:"";background:var(--border);width:1px;position:absolute;top:0;bottom:-8px;left:-7px}.memory-entity-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0;display:grid}.memory-entity-card{color:var(--ink);text-align:left;cursor:pointer}.memory-panel--budget .mantine-Card-root{border-radius:10px;border-color:var(--border-soft)!important;background:var(--surface)!important;box-shadow:none!important}.memory-panel--budget .mantine-Tabs-list{border-color:var(--border)}.memory-panel--budget .mantine-Tabs-tab{min-height:34px;color:var(--muted);font-weight:700}.memory-panel--budget .mantine-Tabs-tab[data-active=true]{color:var(--accent)}.entity-page{max-width:1580px}.entity-page__stack{height:var(--workspace-height);min-height:680px;overflow:hidden}.entity-workbench{flex:auto;grid-template-columns:132px minmax(0,1fr);gap:12px;min-height:0;display:grid;overflow:hidden}.entity-type-rail,.entity-workbench__content,.entity-list-pane,.entity-editor-pane,.entity-suggestion-pane{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);min-width:0;min-height:0;box-shadow:var(--shadow-sm)}.entity-type-rail{align-content:start;gap:6px;padding:10px;display:grid}.entity-type-button{width:100%;min-height:42px;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:8px;padding:8px 10px;display:grid}.entity-type-button:hover,.entity-type-button[data-active=true]{color:var(--accent);border-color:var(--border-accent);background:var(--accent-weak)}.entity-type-button svg{color:currentColor}.entity-workbench__content{flex-direction:column;padding:12px;display:flex;overflow:hidden}.entity-tab-workbench{flex:auto;grid-template-columns:minmax(280px,.76fr) minmax(430px,1.2fr) 286px;gap:12px;min-height:0;display:grid;overflow:hidden}.entity-list-pane,.entity-editor-pane,.entity-suggestion-pane{flex-direction:column;padding:12px;display:flex;overflow:hidden}.entity-search{flex:auto;min-width:220px}.entity-list-columns,.entity-row{grid-template-columns:minmax(150px,.9fr) minmax(180px,1.1fr) 64px;gap:10px;display:grid}.entity-list-columns{color:var(--muted-soft);padding:0 10px 7px;font-size:11px;font-weight:700}.entity-list-scroll,.entity-editor-scroll{flex:auto;height:100%;min-height:0}.entity-row{border:1px solid var(--border-soft);background:var(--surface);width:100%;min-width:0;min-height:52px;color:var(--ink);cursor:pointer;text-align:left;border-radius:8px;align-items:center;padding:8px 10px;transition:border-color .14s,background .14s}.entity-row:hover,.entity-row[data-active=true]{border-color:var(--border-accent);background:var(--accent-weak)}.entity-row__name,.entity-row__summary,.entity-row__score{min-width:0}.entity-row__score{justify-content:flex-end;display:flex}.entity-form .mantine-Input-input,.entity-form .mantine-TagsInput-input,.entity-form .mantine-Select-input,.entity-form .mantine-MultiSelect-input{background:var(--surface)!important}.entity-editor-pane{background:linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), var(--border-soft) calc(100% - 1px)), var(--surface);background-size:34px 100%}.entity-editor-scroll{padding-right:4px}.entity-form{max-width:760px}.entity-suggestion-pane{background:var(--surface-2);gap:12px}.entity-suggestion-pane__head{border-bottom:1px solid var(--border-soft);padding-bottom:12px}.entity-suggestion-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;min-width:0;padding:12px}.entity-suggestion-card--accent{border-color:var(--border-accent);background:var(--accent-weak)}.mantine-Modal-content,.mantine-Drawer-content{max-width:calc(100vw - 16px)}.mantine-Modal-body,.mantine-Drawer-body{overflow-x:hidden}@media (width<=64em){.chapter-editor__body{grid-template-columns:1fr}}@media (width<=48em){.chapter-editor{height:auto;overflow:visible}.chapter-editor__header{flex-wrap:wrap!important}.chapter-editor__header-tools{justify-content:space-between;width:100%}.chapter-editor__workspace{display:block}.chapter-editor__body{height:auto;display:block}.chapter-editor__writer{height:auto}.chapter-editor__body textarea{height:420px!important;min-height:420px!important}.mantine-AppShell-main{padding-inline:8px}.mantine-Card-root{max-width:100%}input,textarea,select{font-size:16px}}.route-loader{background:var(--bg);justify-content:center;align-items:center;gap:12px;min-height:100dvh;display:flex}.auth-page{background:var(--surface);grid-template-columns:minmax(360px,.9fr) minmax(480px,1.1fr);min-height:100dvh;display:grid}.auth-story{color:var(--surface);background:radial-gradient(circle at 18% 12%, var(--auth-glow), transparent 34%), linear-gradient(145deg, var(--auth-deep-start) 0%, var(--auth-deep-mid) 56%, var(--auth-deep-end) 130%);flex-direction:column;padding:40px clamp(36px,5vw,80px);display:flex;position:relative;overflow:hidden}.auth-story:after{content:"文";color:var(--auth-watermark);font-family:var(--font-serif);pointer-events:none;font-size:360px;line-height:1;position:absolute;bottom:-100px;right:-32px}.auth-brand{z-index:1;font-family:var(--font-serif);letter-spacing:.04em;align-items:center;gap:12px;font-size:18px;font-weight:600;display:flex;position:relative}.auth-brand__mark{border-radius:var(--radius-sm);width:32px;height:32px;color:var(--surface);background:var(--primary);font-family:var(--font-serif);flex:none;place-items:center;font-size:17px;font-weight:600;display:inline-grid}.auth-story .auth-brand__mark{color:var(--primary);background:var(--surface)}.auth-story__body{z-index:1;width:min(560px,100%);margin:auto 0;padding-block:64px;position:relative}.auth-eyebrow{color:var(--auth-paper-66);letter-spacing:.18em;margin-bottom:16px;font-size:12px;font-weight:600}.auth-story h1{font-family:var(--font-serif);letter-spacing:.02em;margin:0;font-size:clamp(36px,4vw,56px);font-weight:500;line-height:1.28}.auth-story__lead{max-width:500px;color:var(--auth-paper-72);margin-top:24px;font-size:15px;line-height:1.9}.auth-capabilities{border-top:1px solid var(--auth-paper-14);gap:12px;margin-top:40px;padding-top:24px;display:grid}.auth-capabilities>div{color:var(--auth-paper-72);align-items:center;gap:10px;font-size:13px;display:flex}.auth-capabilities svg{color:var(--auth-icon)}.auth-story__foot{z-index:1;color:var(--auth-paper-42);font-family:var(--font-serif);letter-spacing:.12em;font-size:12px;position:relative}.auth-entry{background:linear-gradient(var(--auth-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--auth-grid-line) 1px, transparent 1px), var(--bg);background-size:32px 32px;place-items:center;padding:40px clamp(24px,7vw,104px);display:grid}.auth-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--auth-card-bg);width:min(420px,100%);box-shadow:0 18px 60px var(--auth-card-shadow);padding:32px}.auth-card__heading{margin-bottom:24px}.auth-card__kicker{color:var(--accent);letter-spacing:.08em;font-size:12px;font-weight:600}.auth-card h2{color:var(--ink);font-family:var(--font-serif);margin:6px 0;font-size:26px;font-weight:600}.auth-mode{border-radius:var(--radius-sm);background:var(--surface-2);grid-template-columns:1fr 1fr;gap:4px;margin-bottom:22px;padding:4px;display:grid}.auth-mode button{height:34px;color:var(--muted);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:4px;font-size:13px;font-weight:500}.auth-mode button[data-active=true]{color:var(--ink);background:var(--surface);box-shadow:var(--shadow-sm)}.auth-form{gap:16px;display:grid}.auth-form .mantine-Button-root{margin-top:4px}@media (width<=62em){.auth-page{grid-template-columns:1fr}.auth-story{min-height:280px;padding:28px 32px}.auth-story__body{padding:48px 0 36px}.auth-story h1{font-size:34px}.auth-capabilities,.auth-story__foot{display:none}}@media (width<=36em){.auth-story{min-height:220px;padding:24px}.auth-story__body{padding:32px 0 16px}.auth-story h1{font-size:28px}.auth-story__lead{margin-top:14px;font-size:13px;line-height:1.65}.auth-entry{place-items:start center;padding:24px 16px 40px}.auth-card{padding:24px 20px}}
