:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:var(--lightningcss-light,#faf8f5)var(--lightningcss-dark,#101010);--surface:var(--lightningcss-light,#fffdf9)var(--lightningcss-dark,#1b1919);--surface-soft:var(--lightningcss-light,#eee9e4)var(--lightningcss-dark,#272222);--text:var(--lightningcss-light,#342e2c)var(--lightningcss-dark,#f1e9df);--text-muted:var(--lightningcss-light,#70615b)var(--lightningcss-dark,#b8aaa1);--accent:var(--lightningcss-light,#804352)var(--lightningcss-dark,#d3b99e);--accent-soft:var(--lightningcss-light,#f0e5e4)var(--lightningcss-dark,#342328);--on-accent:var(--lightningcss-light,#fff)var(--lightningcss-dark,#261e18);--action:var(--lightningcss-light,#843e50)var(--lightningcss-dark,#8e3f54);--on-action:#fff;--line:var(--lightningcss-light,#e4dcd6)var(--lightningcss-dark,#363030);--input-line:var(--lightningcss-light,#a59189)var(--lightningcss-dark,#786962);--success:var(--lightningcss-light,#28644f)var(--lightningcss-dark,#9bd7bb);--success-bg:var(--lightningcss-light,#edf5f0)var(--lightningcss-dark,#21372e);--danger:var(--lightningcss-light,#ad3048)var(--lightningcss-dark,#ffadb9);--danger-bg:var(--lightningcss-light,#fce9ed)var(--lightningcss-dark,#44202e);--warning:var(--lightningcss-light,#77541c)var(--lightningcss-dark,#e6c484);--warning-bg:var(--lightningcss-light,#faf3e5)var(--lightningcss-dark,#382f22);--sky:var(--lightningcss-light,#eee5d9)var(--lightningcss-dark,#302721);--mint:var(--lightningcss-light,#e8ebe3)var(--lightningcss-dark,#262b25);--font-display:"Songti SC", "STSong", "SimSun", serif;--ink-plum:var(--bg);--cabinet:var(--surface);--wine:var(--accent-soft);--brass:var(--accent);--candle:var(--text);--ash-rose:var(--text-muted);--pink:var(--accent-soft);--coral:var(--accent);--app-safe-top:calc(var(--tg-safe-area-inset-top,env(safe-area-inset-top,0px)) + var(--tg-content-safe-area-inset-top,0px));--app-safe-bottom:calc(var(--tg-safe-area-inset-bottom,env(safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px));color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:PingFang SC,Microsoft YaHei,Microsoft YaHei UI,system-ui,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}#root{min-height:100svh}body{background:var(--bg);min-width:0;margin:0}button,input,textarea,select{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}input,textarea,select{accent-color:var(--accent)}a{color:var(--accent)}::selection{color:var(--text);background:var(--accent-soft)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}}.admin-layout{--admin-rail:224px;min-width:1120px;min-height:100vh;color:var(--text);background:var(--bg);font-family:Segoe UI,Microsoft YaHei UI,PingFang SC,sans-serif;font-size:14px}.admin-sidebar{width:var(--admin-rail);background:var(--surface);border-right:1px solid var(--line);z-index:20;flex-direction:column;padding:30px 18px 20px;display:flex;position:fixed;inset:0 auto 0 0}.admin-brand{color:var(--text);align-items:center;gap:11px;margin:0 8px 42px;font-size:18px;font-weight:650;text-decoration:none;display:flex}.admin-brand>span{background:var(--action);color:#fff;border-radius:12px 12px 4px 4px;place-items:center;width:36px;height:40px;font:italic 24px Georgia,serif;display:grid}.admin-brand small{letter-spacing:.1em;color:var(--text-muted);margin-top:5px;font-size:11px;font-weight:400;display:block}.admin-sidebar nav{gap:8px;display:grid}.admin-sidebar nav a{color:var(--text-muted);border-radius:8px;align-items:center;gap:14px;padding:13px 16px;font-weight:500;text-decoration:none;display:flex}.admin-sidebar nav svg{flex-shrink:0}.admin-sidebar nav a:hover{background:var(--surface-soft);color:var(--text)}.admin-sidebar nav a[aria-current]{background:var(--accent-soft);color:var(--accent);font-weight:650}.admin-sidebar-bottom{margin-top:auto;padding:24px 6px 0}.admin-sidebar .appearance-setting{gap:8px;padding:0 0 20px;font-size:12px}.admin-sidebar .choice-select-trigger{min-height:34px;padding:7px 10px;font-size:12px}.admin-identity{border-top:1px solid var(--line);align-items:center;gap:10px;padding-top:20px;display:flex}.admin-avatar{background:var(--accent-soft);width:34px;height:34px;color:var(--accent);border-radius:50%;place-items:center;display:grid}.admin-identity>div{flex:1;min-width:0}.admin-identity strong{overflow-wrap:anywhere;font-size:12px;display:block}.admin-identity small{color:var(--text-muted);margin-top:4px;font-size:11px;display:block}.admin-identity button{color:var(--text-muted);background:0 0;border:0;padding:8px 0;font-size:12px}.admin-main{margin-left:var(--admin-rail);min-width:0}.admin-topbar{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;height:72px;padding:0 36px;display:flex}.admin-topbar>div{align-items:center;gap:16px;font-size:12px;display:flex}.admin-topbar span{color:var(--text-muted)}.admin-topbar a{color:var(--text-muted);font-size:12px;text-decoration:none}.admin-layout .admin-shell{width:auto;max-width:none;min-height:calc(100vh - 72px);margin:0;padding:32px 36px 56px}.admin-layout h1,.admin-layout h2,.admin-layout h3,.admin-layout h4{color:var(--text);font-family:inherit;font-weight:600}.admin-layout .report-page-title{margin:0 0 10px;padding:0;font-size:26px;line-height:1.4}.admin-layout .admin-help{max-width:85ch;margin:0 0 26px;padding:0;font-size:13px;line-height:1.7}.admin-layout h2{margin-top:0;font-size:17px}.admin-layout h3{font-size:14px}.admin-layout p{line-height:1.7}.admin-layout label{font-size:13px}.admin-layout input:not([type=checkbox]),.admin-layout select,.admin-layout textarea{background:var(--surface);min-height:38px;color:var(--text);border:1px solid var(--line);border-radius:6px;width:100%;padding:9px 12px}.admin-layout input[type=checkbox]{width:16px;height:16px;min-height:0}.admin-layout select{color-scheme:inherit}.admin-layout textarea{min-height:90px}.admin-layout button:not(.choice-select-trigger){font-size:13px}.admin-layout .secondary-action,.admin-layout .primary-action,.admin-layout .brass-button{border-radius:6px;width:auto;min-height:36px;padding:9px 16px;font-family:inherit;font-size:13px}.admin-layout .admin-proof{border:1px solid var(--line);background:var(--surface);border-radius:8px;flex-wrap:wrap;align-items:center;gap:14px;margin:20px 0;padding:14px 18px;display:flex}.admin-layout .admin-proof p{color:var(--text-muted);margin:0;font-size:12px}.admin-layout .prompt-workspace{grid-template-columns:248px minmax(0,1fr);align-items:start;gap:20px;min-height:0}.admin-layout .prompt-index{border:1px solid var(--line);border-radius:10px;gap:8px;padding:20px;display:grid;overflow:visible}.admin-layout .prompt-index button,.admin-layout .prompt-index button span{font-family:inherit}.admin-layout .prompt-desk{background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0;padding:24px}.admin-layout .prompt-empty{min-height:420px}.admin-layout .prompt-empty h1,.admin-layout .prompt-title h1{font-size:26px}.admin-layout .prompt-editor textarea{min-height:380px}.admin-layout .sample-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout .publish-panel{grid-template-columns:minmax(0,1fr) auto}.admin-layout .report-workspace{display:block}.admin-layout .report-workspace>.prompt-index{flex-wrap:wrap;align-items:end;gap:16px;width:100%;padding:24px;display:flex}.admin-layout .report-workspace .prompt-index>form{align-items:end;gap:10px;margin:0;display:flex}.admin-layout .report-workspace .prompt-index>form label{width:260px}.admin-layout .report-workspace .prompt-index>label{gap:8px;width:180px;display:grid}.admin-layout .report-workspace .prompt-index>p{flex-basis:100%;margin:0}.admin-layout .report-workspace .prompt-index>button{border:1px solid var(--line);border-radius:6px;width:auto;min-height:36px;margin:0}.admin-table-wrap{width:100%;margin-top:8px;overflow-x:auto}.admin-table{border-collapse:collapse;table-layout:fixed;text-align:left;width:100%;font-size:13px}.admin-table th{background:var(--bg);color:var(--text-muted);border-bottom:1px solid var(--line);padding:13px 16px;font-size:12px;font-weight:500}.admin-table td{border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere;padding:18px 16px}.admin-table tr:last-child td{border-bottom:0}.admin-table tbody tr:hover{background:var(--bg)}.admin-layout .admin-table td button{min-height:32px;color:var(--accent);text-align:left;background:0 0;border:0;padding:0;font-weight:600;display:inline}.admin-table td small{color:var(--text-muted);margin-top:5px;font-size:11px;display:block}.admin-table th:first-child{width:36%}.admin-status{background:var(--surface-soft);color:var(--text-muted);white-space:nowrap;border-radius:5px;padding:4px 9px;font-size:12px;display:inline-block}.admin-status.good{color:var(--success);background:var(--success-bg)}.admin-layout .delivery-pagination{align-items:center;gap:12px;margin:12px 0 0;display:flex}.admin-layout .delivery-pagination button{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:6px;padding:8px 12px;display:inline-block}.admin-layout .delivery-pagination span{color:var(--text-muted);font-size:12px}.admin-drawer{z-index:30;background:var(--surface);border-left:1px solid var(--line);width:540px;max-width:52vw;position:fixed;inset:0 0 0 auto;overflow-y:auto;box-shadow:-18px 0 40px #00000012}.admin-drawer[hidden]{display:none}.admin-drawer>header{background:var(--surface);z-index:1;border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:20px 24px;display:flex;position:sticky;top:0}.admin-drawer>header button{border:1px solid var(--line);color:var(--text-muted);background:0 0;border-radius:6px;width:32px;height:32px;font-size:22px!important}.admin-layout .admin-drawer .prompt-desk{border:0;border-radius:0;padding:24px}.admin-layout .admin-drawer .report-resolution{margin-top:22px}.admin-layout .admin-user-detail dl{grid-template-columns:1fr 1fr;gap:18px;display:grid}.admin-layout .admin-user-detail dd{margin:5px 0 0}.admin-layout .operations-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:24px;display:grid}.admin-layout .usage-panel{border:1px solid var(--line);background:var(--surface);border-radius:10px;min-width:0;margin:24px 0 0;padding:24px}.admin-layout .usage-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout .site-statistic-totals{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-overview-summary{border:1px solid var(--line);background:var(--surface);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:24px;display:grid}.admin-overview-summary>div,.admin-overview-summary>a{border-right:1px solid var(--line);color:var(--text);gap:10px;padding:24px;text-decoration:none;display:grid}.admin-overview-summary>:last-child{border:0}.admin-overview-summary span,.admin-overview-summary small{color:var(--text-muted);font-size:12px}.admin-overview-summary strong{font-variant-numeric:tabular-nums;font-size:30px;font-weight:600}.admin-layout .admin-content-tabs{margin:24px 0}.admin-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:24px;display:grid}.admin-settings-grid>section{margin:0}.admin-settings-grid .admin-presets{grid-column:1/-1}.admin-settings-grid .admin-preset-item{grid-template-columns:1fr 1fr 1fr 2fr;gap:12px;padding:18px;display:grid}.admin-settings-grid .admin-preset-item .model-actions{grid-column:1/-1}.admin-skip{z-index:50;background:var(--surface);padding:12px;position:fixed;top:-100px;left:240px}.admin-skip:focus{top:12px}.admin-sidebar .appearance-setting>span{white-space:nowrap;flex-shrink:0}.admin-sidebar .choice-trigger{min-height:34px;padding:8px 12px;font-size:12px}.admin-layout .choice-sheet{border-radius:12px;max-width:420px;margin:auto;inset:0}.admin-layout .admin-shell .admin-help{margin:0 0 26px;padding:0}.admin-layout .admin-shell .admin-proof{margin:20px 0}.admin-layout .report-workspace .prompt-index form>button{flex-shrink:0;width:auto;margin:0}.admin-layout .report-workspace .prompt-index form>label{flex-shrink:0;width:240px}.admin-layout .usage-panel>label{width:180px;display:inline-grid}.admin-layout .usage-panel>.secondary-action{justify-self:start}.admin-layout .site-statistic-totals{gap:18px}.admin-layout .site-statistic-totals dd{font-size:26px}.admin-layout .usage-panel .usage-totals{margin-top:10px}.admin-layout .usage-panel .usage-totals dd{font-variant-numeric:tabular-nums;font-size:22px}.admin-diagnostic-grid{border-top:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:1fr 2fr 1fr;gap:30px;padding:20px 0;display:grid}.admin-layout .admin-diagnostic-grid .usage-totals{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-diagnostic-grid p{font-size:12px;margin:10px 0!important}.admin-layout .admin-diagnostics>.usage-purpose{border:0;border-bottom:1px solid var(--line);grid-template-columns:1fr 2fr 1fr 1fr;align-items:center;gap:16px;padding:14px 0;display:grid}.admin-layout .admin-diagnostics>.usage-purpose p{font-size:12px}.admin-login{place-items:center;max-width:none;min-height:100vh;display:grid}.admin-login .telegram-entry-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;width:480px;max-width:none;padding:48px}.admin-login h1{font-family:Segoe UI,Microsoft YaHei UI,sans-serif;font-size:26px}.admin-layout .prompt-empty h2,.admin-layout .prompt-title h2{margin:0;font-size:26px}.admin-layout .admin-settings-grid .report-resolution{gap:12px;margin-top:16px}.admin-layout .admin-settings-grid p{color:var(--text-muted);font-size:12px}.admin-layout .admin-settings-grid .admin-confirm{min-height:32px}@property --admin-scroll-color{syntax:"<color>";inherits:false;initial-value:#0000}.admin-layout *{scrollbar-width:thin;scrollbar-color:var(--admin-scroll-color) transparent;transition:--admin-scroll-color .25s}html:has(.admin-layout){scrollbar-width:thin;scrollbar-color:var(--admin-scroll-color) transparent;transition:--admin-scroll-color .25s}html[data-scroll-active],.admin-layout [data-scroll-active],.admin-layout :focus-visible{--admin-scroll-color:color-mix(in srgb, var(--text-muted) 45%, transparent)}.admin-layout .site-statistics-history{scrollbar-gutter:stable;padding-right:16px}.admin-layout .operations-layout>.usage-panel{min-height:640px}.admin-layout .operations-layout>.usage-panel>h2{margin-bottom:0}.admin-layout .operations-layout>.usage-panel>p{margin:0}.admin-layout .operations-layout .site-statistics-history{max-height:280px}.admin-layout .prompt-workspace:not(.report-workspace){border:1px solid var(--line);background:var(--surface);border-radius:10px;align-items:stretch;gap:0;overflow:hidden}.admin-layout .prompt-workspace:not(.report-workspace)>.prompt-index{border:0;border-right:1px solid var(--line);border-radius:0;padding:20px 16px;display:block}.admin-layout .prompt-workspace:not(.report-workspace)>.prompt-desk{border:0;border-radius:0}.admin-layout .prompt-category{margin-bottom:24px}.admin-layout .prompt-category h3{color:var(--text-muted);margin:0 12px 10px;font-size:12px}.admin-layout .prompt-category button{border-radius:6px;width:100%}.admin-layout .prompt-category button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}.admin-layout .visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.admin-layout *{transition:none}html:has(.admin-layout){transition:none}}.admin-topbar h1{margin:0;font-size:14px;font-weight:600}.admin-brand img{object-fit:contain;flex-shrink:0;width:44px;height:44px}.admin-layout .admin-shell{padding-bottom:32px}.admin-layout .prompt-workspace:not(.report-workspace){min-height:calc(100dvh - 136px)}.admin-layout .prompt-empty{flex-direction:column;justify-content:center;min-height:100%;display:flex}.admin-layout .prompt-empty p{flex-grow:0}.admin-layout .report-workspace>.prompt-index{align-content:start;min-height:calc(100dvh - 136px)}.admin-layout .admin-content-shell .report-workspace>.prompt-index{min-height:calc(100dvh - 220px)}.admin-layout .admin-overview-summary,.admin-layout .admin-content-tabs{margin-top:0}.admin-layout .prompt-index .admin-proof{text-align:right;background:0 0;border:0;justify-content:flex-end;gap:8px;max-width:340px;margin:0 0 0 auto;padding:0}.admin-layout .prompt-index .admin-proof p{flex-basis:100%;font-size:11px}.admin-settings-grid{align-items:stretch}.admin-settings-grid>section{align-content:start}.admin-layout .admin-shell>.admin-proof{justify-content:flex-end;margin-top:0}.admin-layout select{appearance:base-select}.admin-layout select::picker(select){appearance:base-select}.admin-layout select::picker(select){color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-top:6px;padding:6px;box-shadow:0 12px 30px #0002}.admin-layout select option{cursor:pointer;border-radius:6px;min-height:38px;padding:10px 12px}.admin-layout select option:hover,.admin-layout select option:focus{background:var(--surface-soft);outline:none}.admin-layout select option:checked{color:var(--accent);background:var(--accent-soft)}.admin-layout select::picker-icon{color:var(--text-muted)}.admin-layout .admin-role-scope{border:1px solid var(--line);border-radius:8px;gap:10px;margin:0;padding:12px;display:grid}.admin-layout .admin-role-scope label{align-items:center;gap:8px;display:flex}.admin-layout .admin-role-scope input[type=radio]{width:16px;height:16px;min-height:0;padding:0}.admin-layout .choice-sheet.admin-choice-menu{border-radius:10px;max-width:none;max-height:320px;margin:0;padding:6px;position:fixed;inset:auto;box-shadow:0 12px 30px #0002}.admin-layout .admin-choice-menu::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0}.admin-layout .admin-choice-menu .choice-heading{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.admin-layout .admin-choice-menu .choice-heading button{display:none}.admin-layout .admin-choice-menu .choice-options button{border-radius:6px;min-height:38px;padding:10px 12px}.admin-layout .admin-overview .overview-card{height:440px;min-height:0;padding-right:32px;position:relative;overflow:auto}.admin-layout .overview-card .site-statistics-history{max-height:190px}.admin-layout .overview-card .site-statistics-table caption{display:none}.admin-layout .overview-card .site-statistics-table th,.admin-layout .overview-card .site-statistics-table td{padding-top:8px;padding-bottom:8px}.overview-details,.overview-back{color:var(--accent);font-size:13px}.overview-details{margin-top:auto;padding-top:8px;display:block}.admin-layout .overview-diagnostics{max-height:310px;overflow:auto}.admin-layout .overview-diagnostics>h2{margin-bottom:0}.admin-layout .overview-diagnostics p{margin:0}.overview-warning{color:var(--danger);overflow-wrap:anywhere}.admin-layout .prompt-workspace:not(.report-workspace){grid-template-rows:minmax(0,1fr);height:calc(100dvh - 136px);min-height:0}.admin-layout .prompt-workspace:not(.report-workspace)>.prompt-index,.admin-layout .prompt-workspace:not(.report-workspace)>.prompt-desk{scrollbar-gutter:stable;min-height:0;overflow-y:auto}.admin-sidebar nav{min-height:0;overflow-y:auto}.admin-overview-summary small{-webkit-line-clamp:2;overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.admin-layout [hidden]{display:none!important}.admin-layout .admin-content-detail{width:100%;min-height:calc(100dvh - 230px)}.admin-visibility-filter{gap:8px;width:220px;margin-bottom:20px;display:grid}.admin-layout .admin-content-detail>.report-resolution{background:var(--surface-soft);border-radius:8px;max-width:720px;margin:20px 0;padding:16px}.admin-layout .admin-content-detail details{border:1px solid var(--line);border-radius:8px;margin:20px 0;padding:12px}.admin-layout .admin-content-detail summary{cursor:pointer;color:var(--accent)}.loading-screen{min-height:100svh;color:var(--ash-rose);background:var(--ink-plum);place-items:center;display:grid}.plaza-list[aria-busy=true]:empty:before,.plaza-list[aria-busy=true]:empty:after,.delivery-list[aria-busy=true]:empty:before,.delivery-list[aria-busy=true]:empty:after{content:"";border:1px solid var(--line);background:linear-gradient(to bottom, var(--surface-soft) 0 72%, var(--surface) 72% 100%);border-radius:20px;min-height:128px;display:block}.plaza-list[aria-busy=true]:empty:before,.plaza-list[aria-busy=true]:empty:after{aspect-ratio:.72}.brand-mark{aspect-ratio:.72;width:clamp(88px,12vw,150px);color:var(--brass);border:1px solid var(--line);box-shadow:none;border-radius:50% 50% 8px 8px;flex:none;place-items:center;margin:0;font:700 clamp(3rem,7vw,6rem)/1 Georgia,Times New Roman,serif;display:grid}.build-intro h1,.profile-page h1,.current-copy h1,.character-dialog h2{font-family:STSong,Songti SC,Noto Serif CJK SC,serif}.character-form label,.model-form label{color:var(--ash-rose);gap:9px;font-size:.88rem;display:grid}.character-form input,.character-form textarea,.model-form input,.model-form select{width:100%;color:var(--candle);border:0;border-bottom:1px solid var(--line);background:0 0;border-radius:0;outline:none;padding:13px 0}.character-form input:focus,.character-form textarea:focus,.model-form input:focus,.model-form select:focus{border-color:var(--brass);box-shadow:none}.primary-action,.secondary-action,.brass-button,.back-button{cursor:pointer;border-radius:6px;min-height:46px;padding:11px 18px}.primary-action,.brass-button{color:var(--text);background:var(--brass);border:1px solid var(--brass);font-weight:700}.secondary-action,.back-button{color:var(--candle);border:1px solid var(--line);background:0 0}button:disabled{cursor:not-allowed;opacity:.5}.form-error,.shell-error{color:var(--danger);line-height:1.5}.shell-error{background:var(--danger-bg);border-left:3px solid var(--line);width:min(100% - 32px,960px);margin:18px auto 0;padding:12px 16px}.tavern-content,.build-page,.profile-page{width:min(100% - 32px,960px);margin:0 auto}.current-character{display:grid;overflow:hidden}.current-copy h1{margin:0;font-weight:500}.current-copy h1+p{max-width:34rem;color:var(--ash-rose);margin:22px 0 0}.current-sigil{place-items:center}.current-sigil img,.card-portrait img{object-fit:cover;width:100%;height:100%}.section-heading{justify-content:space-between;display:flex}.section-heading h2{margin:0;font:500 1.8rem/1.2 STSong,serif}.section-heading p{color:var(--ash-rose);margin:8px 0 0}.brass-button{min-width:92px}.empty-cabinet{width:100%;color:var(--candle);border:1px dashed var(--line);cursor:pointer;place-content:center;gap:10px;display:grid}.empty-cabinet span{font:500 1.25rem/1.4 STSong,serif}.empty-cabinet small{color:var(--ash-rose)}.character-grid{display:grid}.character-card{text-align:left;border:1px solid var(--line);cursor:pointer;min-width:0;padding:0;position:relative;overflow:hidden}.card-portrait{place-items:center;display:grid}.card-copy{display:grid}.card-copy strong{font:500 1.2rem/1.2 STSong,serif}.card-copy small{color:var(--ash-rose);overflow:hidden}.current-ribbon{position:absolute}.build-page{padding:38px 0 30px}.back-button{border:0}.build-intro{max-width:640px}.build-intro h1{margin:0;font-weight:500}.build-intro p{color:var(--ash-rose)}.character-form{max-width:680px;display:grid}.character-form textarea{resize:vertical;min-height:88px;line-height:1.6}.character-form .primary-action{margin-top:16px}.build-modes{max-width:680px;display:flex}.build-modes button{color:var(--text-muted);cursor:pointer;background:0 0;border:0;flex:1}.build-source{max-width:680px;margin-bottom:24px;display:grid}.build-source label,.advanced-definition label{color:var(--text-muted);gap:9px;font-size:.88rem;display:grid}.build-source textarea,.external-template textarea,.advanced-definition textarea{width:100%;min-height:130px;color:var(--text);background:var(--surface);border:1px solid var(--input-line);resize:vertical;border-radius:10px;padding:13px;line-height:1.6}.source-actions{flex-wrap:wrap;gap:10px;display:flex}.file-picker input{background:var(--bg);border:1px dashed var(--input-line);border-radius:10px;padding:12px}.external-template{border-top:1px solid var(--line);padding-top:14px}.external-template summary,.advanced-definition summary{color:var(--accent);cursor:pointer}.external-template p{color:var(--text-muted);line-height:1.6}.external-template textarea{min-height:100px;margin-top:12px}.build-notice{max-width:680px;color:var(--success)}.candidate-card{background:var(--success-bg);border:1px solid var(--line);border-radius:16px;justify-content:space-between;align-items:center;gap:18px;max-width:680px;margin:18px 0;padding:20px;display:flex}.candidate-card p{color:var(--text-muted);margin:6px 0 0}.creation-warnings{max-width:680px;color:var(--warning);background:var(--warning-bg);border-radius:12px;padding:14px 14px 14px 34px}.preview-title{max-width:680px;font:600 1.35rem/1.3 STSong,serif}.advanced-definition{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0}.advanced-definition[open]{gap:16px;display:grid}.avatar-picker{background:var(--surface);border:1px dashed var(--input-line);border-radius:14px;padding:16px}.avatar-picker img{object-fit:cover;border-radius:24px;width:112px;height:112px}.avatar-picker input{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px}.profile-page{padding:54px 0 30px}.profile-heading{margin-bottom:42px;display:flex}.profile-seal{aspect-ratio:1;flex:none;place-items:center;font:500 2.5rem/1 STSong,serif;display:grid}.profile-page h1{margin:0;font-weight:500}.profile-heading p{color:var(--ash-rose);margin:10px 0 0}.profile-layout{grid-template-columns:minmax(220px,.65fr) minmax(0,1.6fr);align-items:start;gap:34px}.account-panel{background:var(--cabinet);border-top:3px solid var(--brass)}.profile-page dl{text-align:left;margin:0 0 26px}.profile-page dl div{border-bottom:1px solid var(--line);justify-content:space-between;gap:24px;padding:18px 0;display:flex}.profile-page dt{color:var(--ash-rose)}.profile-page dd{margin:0}.account-panel .secondary-action{width:100%}.account-settings,.notification-settings,.email-verification,.account-security,.account-security form,.deletion-preview{gap:12px;display:grid}.account-settings,.notification-settings,.email-verification,.account-security{border-bottom:1px solid var(--line);margin:0 0 18px;padding:0 0 18px}.account-settings label,.email-verification label,.account-security label{color:var(--ash-rose);gap:7px;font-size:.84rem;display:grid}.account-settings input,.email-verification input,.account-security input[type=password]{width:100%;color:var(--candle);border:0;border-bottom:1px solid var(--line);background:0 0;padding:9px 0}.notification-settings label,.deletion-preview label{color:var(--ash-rose);align-items:center;gap:9px;font-size:.84rem;display:flex}.account-notice{color:var(--success);margin:-8px 0 16px;font-size:.84rem}.account-security summary{color:var(--brass);cursor:pointer}.account-security[open] summary{margin-bottom:4px}.danger-action{border:1px solid var(--line);cursor:pointer;border-radius:6px;min-height:42px;padding:9px 14px}.danger-action:disabled{opacity:.45;cursor:not-allowed}.deletion-preview{padding:12px}.deletion-preview p{color:var(--ash-rose);margin:0;font-size:.82rem;line-height:1.55}.email-verification{gap:12px;display:grid}.email-verification p{color:var(--success);margin:0}.password-reset-request{border-top:1px solid var(--line);gap:12px;margin-top:12px;padding-top:20px;display:grid}.password-reset-request p{color:var(--success);margin:0;font-size:.84rem}.telegram-binding{border-bottom:1px solid var(--line);gap:12px;margin-bottom:16px;padding-bottom:16px;display:grid}.telegram-binding p{color:var(--ash-rose);margin:0;font-size:.84rem;line-height:1.6}.telegram-binding label{color:var(--ash-rose);gap:8px;font-size:.84rem;display:grid}.telegram-binding input{width:100%;color:var(--candle);border:0;border-bottom:1px solid var(--line);background:0 0;padding:10px 0}.model-vault{min-width:0}.model-vault-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:end;padding-bottom:18px}.model-vault-heading h2{margin:0;font:500 1.8rem/1.2 STSong,serif}.model-vault-heading p{color:var(--ash-rose);margin:8px 0 0;line-height:1.6}.model-form{display:grid}.model-form select{appearance:none;background-image:linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%);background-position:calc(100% - 15px) 54%,calc(100% - 10px) 54%;background-repeat:no-repeat;background-size:5px 5px}.model-form .primary-action{grid-column:1/-1;justify-self:start}.empty-model-vault{width:100%;min-height:130px;color:var(--ash-rose);border:1px dashed var(--line);cursor:pointer;background:0 0;border-radius:8px;margin-top:20px}.model-list{gap:14px;margin-top:20px;display:grid}.model-card{overflow-wrap:anywhere;background:var(--surface-soft);border:1px solid var(--line);padding:22px}.model-card-title{justify-content:space-between;align-items:center;gap:16px;display:flex}.model-card h3{margin:0;font:500 1.25rem/1.2 STSong,serif}.model-card-title span{padding:5px 9px;font-size:.72rem}.model-card>p{margin:12px 0 4px}.model-card small{color:var(--ash-rose);overflow-wrap:anywhere}.probe-state{font-size:.84rem}.probe-state.unknown{color:var(--ash-rose)}.probe-state.passed{color:var(--success)}.probe-state.failed{color:var(--danger)}.available-models{color:var(--ash-rose);overflow-wrap:anywhere;font-size:.82rem;line-height:1.6}.model-actions{margin-top:18px;display:flex}.model-actions button{min-height:42px;color:var(--candle);border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:5px;padding:9px 13px}.bottom-nav{z-index:10;display:flex}.bottom-nav button{color:var(--ash-rose);cursor:pointer;background:0 0;border:0;flex:1}@media (width>=761px){.bottom-nav{margin:32px auto 14px;position:static;left:auto;transform:none}}.character-dialog{z-index:20;border-left:1px solid var(--line);position:fixed;overflow-y:auto}.dialog-close{cursor:pointer;font-size:2rem;right:20px}.dialog-portrait{place-items:center;margin-bottom:28px;font:500 4rem/1 STSong,serif;display:grid}.character-dialog h2{margin:0;font-weight:500}.dialog-summary{color:var(--ash-rose);line-height:1.7}.character-dialog dl div{border-top:1px solid var(--line);padding:18px 0}.character-dialog dt{color:var(--brass);margin-bottom:8px;font-size:.8rem}.character-dialog dd{margin:0}.character-dialog .primary-action{width:100%}.character-delete-confirm{box-sizing:border-box;border:1px solid var(--line);width:min(400px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--text);background:var(--surface);border-radius:20px;margin:auto;padding:24px;overflow:auto;box-shadow:0 20px 80px #0000004d}.character-delete-confirm::backdrop{background:#0009}.character-delete-confirm p{line-height:1.65}.character-delete-confirm button{width:100%;margin-top:12px;display:block}.character-deletion{gap:12px;margin-top:14px;display:grid}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.admin-shell{min-height:100svh;color:var(--candle);background:var(--bg)}.admin-header{background:var(--surface);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;min-height:74px;display:flex}.admin-header div{align-items:baseline}.admin-header span{font:600 1.1rem/1 Georgia,serif}.admin-header strong{font:500 1.45rem/1.2 STSong,serif}.admin-header button{color:var(--ash-rose);cursor:pointer;background:0 0;border:0}.admin-error{color:var(--danger);background:var(--danger-bg);margin:0;padding:12px clamp(20px,4vw,54px)}.prompt-workspace{grid-template-columns:280px minmax(0,1fr);display:grid}.prompt-index{background:var(--surface)}.prompt-index>p{color:var(--ash-rose);margin:0 10px 22px;font-size:.82rem;line-height:1.6}.prompt-index button{text-align:left;cursor:pointer;background:0 0;border:0;border-left:2px solid #0000;gap:6px;padding:14px 12px;display:grid}.prompt-index button[aria-pressed=true]{border-left-color:var(--brass)}.prompt-index button span{font-family:STSong,serif;font-size:1rem}.prompt-index button small{color:var(--ash-rose)}.prompt-empty{align-content:center;display:grid}.prompt-empty h1,.prompt-title h1{font-weight:500}.prompt-empty h1{margin:0;font-size:clamp(2.5rem,6vw,5rem)}.prompt-empty p{color:var(--ash-rose)}.prompt-title{justify-content:space-between;align-items:end;display:flex}.prompt-title p{color:var(--brass);margin:0 0 8px;font-size:.8rem}.prompt-title h1{margin:0;font-size:clamp(2.2rem,5vw,4rem)}.prompt-title>span{color:var(--ash-rose);font-size:.85rem}.prompt-editor,.sample-fields label,.publish-panel label{color:var(--ash-rose);gap:10px;font-size:.86rem;display:grid}.prompt-editor textarea{resize:vertical;min-height:260px;color:var(--candle);background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:20px;font:400 .95rem/1.75 ui-monospace,Cascadia Code,monospace}.prompt-buttons{gap:12px;margin-top:18px;display:flex}.sample-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:34px;display:grid}.sample-fields h2{grid-column:1/-1;margin:0;font:500 1.2rem/1.2 STSong,serif}.sample-fields input,.publish-panel input{color:var(--candle);background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:11px 12px}.prompt-preview{white-space:pre-wrap;border-left:3px solid var(--line);border-radius:0 6px 6px 0;margin:22px 0 0;padding:20px;font:400 .92rem/1.7 ui-monospace,Cascadia Code,monospace}.publish-panel{border-top:1px solid var(--line);grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;margin-top:36px;padding-top:24px;display:grid}.admin-notice{color:var(--success)}.prompt-history{margin-top:38px}.prompt-history h2{margin:0 0 14px;font:500 1.25rem/1.2 STSong,serif}.version-strip{flex-wrap:wrap;gap:8px;display:flex}.version-strip button{color:var(--ash-rose);border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:4px;padding:8px 11px}.version-strip button[aria-pressed=true]{background:var(--brass);border-color:var(--brass)}.history-detail{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;margin-top:16px;display:grid}.history-detail pre{white-space:pre-wrap;color:var(--ash-rose);background:var(--surface);border:1px solid var(--line);border-radius:5px;grid-column:1/-1;margin:0;padding:16px;font:400 .86rem/1.65 ui-monospace,Cascadia Code,monospace}.history-detail label{color:var(--ash-rose);gap:8px;font-size:.84rem;display:grid}.history-detail input{color:var(--candle);background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:11px 12px}.admin-denied{text-align:center;min-height:100svh;color:var(--candle);background:var(--ink-plum);place-content:center;gap:16px;padding:24px;display:grid}.admin-denied h1,.admin-denied p{margin:0}@media (width<=760px){.brand-mark{width:68px}.current-character{border-radius:8px 28px 8px 8px;grid-template-columns:minmax(0,1.35fr) minmax(100px,.65fr);min-height:260px;margin-top:18px}.current-copy{padding:26px 22px}.current-copy h1{font-size:clamp(2rem,9vw,3.5rem)}.current-copy h1+p{font-size:.88rem}.character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-copy{padding:14px}.card-copy small{font-size:.78rem}.build-page{padding-top:22px}.candidate-card{flex-direction:column;align-items:stretch}.profile-page{padding-top:30px}.profile-heading{align-items:flex-start;gap:16px;margin-bottom:30px}.profile-seal{width:62px;font-size:2rem}.profile-layout{grid-template-columns:1fr;gap:30px}.model-vault-heading{align-items:flex-start}.model-form{grid-template-columns:1fr;padding:22px 18px}.admin-header div{gap:5px;display:grid}.prompt-workspace{grid-template-columns:1fr}.prompt-index{border-right:0;border-bottom:1px solid var(--line);gap:8px;padding:14px 16px;display:flex;overflow-x:auto}.prompt-index>p{display:none}.prompt-index button{border-bottom:2px solid #0000;border-left:0;width:max-content;min-width:150px}.prompt-index button[aria-pressed=true]{border-bottom-color:var(--brass)}.prompt-desk{padding:28px 18px 90px}.prompt-title{align-items:flex-start}.sample-fields,.publish-panel,.history-detail{grid-template-columns:1fr}}@media (width<=360px){.brand-mark{width:52px}.current-character{grid-template-columns:1fr}.current-sigil{display:none}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important}}.telegram-entry{place-items:center;min-height:100svh;display:grid}.telegram-entry-card{box-shadow:none}.telegram-entry-card .brand-mark{border-color:var(--line);box-shadow:none}.telegram-entry-card h1{color:var(--text)}.telegram-entry-card .primary-action{width:100%;margin-top:24px}.account-panel,.character-card{box-shadow:none}.current-character,.current-character.is-empty{color:var(--text);background:var(--surface);border-color:var(--line)}.empty-cabinet,.empty-model-vault{background:var(--surface);border-color:var(--input-line)}.character-card{color:var(--text);background:var(--surface);border-color:var(--line)}.palette-1 .card-portrait{background:var(--sky)}.palette-2 .card-portrait{background:var(--mint)}.current-ribbon,.bottom-nav button[aria-current=page],.model-card-title span,.version-strip button[aria-pressed=true]{color:var(--text-muted)}.character-form input,.character-form textarea,.model-form input,.model-form select,.account-settings input,.sample-fields input,.publish-panel input,.history-detail input{color:var(--text);border-color:var(--input-line)}.secondary-action,.back-button,.model-actions button{color:var(--text);background:var(--surface);border-color:var(--input-line)}.account-panel,.model-form,.model-card{color:var(--text);background:var(--surface);border-color:var(--line)}.profile-page dl div,.account-settings,.notification-settings,.account-security,.telegram-binding{border-color:var(--line)}.account-notice,.telegram-binding p,.probe-state.passed,.admin-notice{color:var(--success)}.deletion-preview{background:var(--danger-bg)}.bottom-nav{border-color:var(--line)}.character-dialog{color:var(--text);border-color:var(--line)}.character-dialog dl div{border-color:var(--line)}.relationship-panel{background:var(--surface-soft);border:1px solid var(--line);border-radius:18px;gap:14px;margin:28px 0 20px;padding:18px;display:grid}.relationship-panel>label{gap:8px;font-size:14px;display:grid}.relationship-panel select{width:100%;min-height:44px;color:var(--text);background:var(--surface);border:1px solid var(--input-line);border-radius:10px;padding:10px 12px;font-size:16px}.relationship-panel>label+.relationship-empty{font-size:14px}.relationship-heading{justify-content:space-between;align-items:end;gap:12px;display:flex}.relationship-heading small{color:var(--text-muted);letter-spacing:.15em;font-size:.68rem}.relationship-heading h3{color:var(--text);margin:2px 0 0}.relationship-heading>span{color:var(--text-muted);font-size:.78rem}.relationship-notice{color:var(--success);background:var(--success-bg);border-radius:10px;margin:0;padding:9px 12px;font-size:.8rem;line-height:1.5}.growth-grid{gap:9px;display:grid}.growth-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px}.growth-card span{color:var(--text-muted);font-size:.72rem;display:block}.growth-card strong{color:var(--accent);margin:3px 0 7px;font-size:1.25rem;display:block}.growth-track{background:var(--surface);border-radius:10px;height:5px;overflow:hidden}.growth-track i{background:var(--surface-soft);border-radius:inherit;height:100%;display:block}.memory-section{gap:9px;display:grid}.memory-section h4{color:var(--text);margin:4px 0 0}.memory-card{background:var(--surface);border-left:3px solid var(--line);border-radius:4px 12px 12px 4px;gap:8px;padding:12px;display:grid}.memory-card p,.experience-list p,.relationship-empty{color:var(--text-muted);margin:0;font-size:.82rem;line-height:1.6}.memory-card textarea{min-height:78px;color:var(--text);background:var(--surface);border:1px solid var(--input-line);resize:vertical;border-radius:9px;padding:9px}.memory-actions{justify-content:flex-end;gap:8px;display:flex}.memory-actions button{color:var(--text-muted);border:1px solid var(--input-line);cursor:pointer;background:0 0;border-radius:8px;padding:5px 9px}.experience-list{color:var(--text-muted);font-size:.82rem}.experience-list summary{cursor:pointer}.experience-list p{border-bottom:1px solid var(--line);padding:8px 0}.relationship-reset-button{width:100%}.relationship-reset{margin-top:0}@media (width<=420px){.growth-grid{grid-template-columns:1fr}}:root{--app-safe-top:calc(var(--tg-safe-area-inset-top,env(safe-area-inset-top,0px)) + var(--tg-content-safe-area-inset-top,0px));--app-safe-bottom:calc(var(--tg-safe-area-inset-bottom,env(safe-area-inset-bottom,0px)) + var(--tg-content-safe-area-inset-bottom,0px))}.tavern-shell{min-height:100svh;padding-top:var(--app-safe-top);padding-bottom:calc(88px + var(--app-safe-bottom));margin:0 auto}.tavern-shell h1,.tavern-shell h2,.tavern-shell h3,.card-copy strong{font-family:inherit;font-weight:650}.tavern-content,.build-page,.profile-page{width:auto;max-width:none;margin:0 18px}.current-character{margin-top:20px}.current-copy h1{font-size:25px;line-height:1.35}.current-copy h1+p{margin-top:10px;font-size:14px;line-height:1.6}.current-sigil{font-size:40px}.section-heading{align-items:center;gap:12px}.section-heading h2{font-size:20px}.character-grid{grid-template-columns:1fr}.character-card{min-height:104px;box-shadow:none;border-radius:14px;grid-template-columns:88px minmax(0,1fr);display:grid}.card-portrait{aspect-ratio:auto;font-size:32px}.card-copy{align-content:center}.card-copy small{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-height:0;display:-webkit-box}.profile-page,.build-page{padding-top:22px}.profile-heading{align-items:center;gap:16px}.profile-heading p{line-height:1.6}.profile-seal{width:60px;font-size:26px}.profile-layout{display:block}.settings-list{background:var(--surface);border-radius:18px;display:grid;overflow:hidden}.settings-list button{text-align:left;color:var(--text);border:0;border-bottom:1px solid var(--line);cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:16px;display:flex}.settings-list button:last-child{border-bottom:0}.settings-list button>span:first-child{gap:6px;display:grid}.settings-list small{color:var(--text-muted)}.account-panel{border:1px solid var(--line);box-shadow:none;border-radius:16px;padding:20px}.account-panel h2,.model-vault-heading h2{margin:0 0 18px;font-size:20px}.delivery-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.delivery-heading h2{margin:0}.delivery-help,.delivery-card time{color:var(--text-muted);overflow-wrap:anywhere;font-size:14px;line-height:1.6}.delivery-list{gap:14px;margin:20px 0;display:grid}.delivery-card{border:1px solid var(--line);background:var(--bg);border-radius:12px;padding:16px}.delivery-pagination{justify-content:space-between;align-items:center;gap:8px;margin:20px 0;display:flex}.account-panel .delivery-pagination .secondary-action,.account-panel .delivery-heading .secondary-action{width:auto}.account-security{border:0;margin:0}.account-security summary{display:none}.account-settings,.notification-settings{border:0;gap:22px;margin:0;padding:0}.model-vault-heading{gap:12px;display:grid}.model-vault-heading h2{margin-bottom:8px}.model-vault-heading p{font-size:13px}.model-vault-heading .brass-button{justify-self:start}.model-form{border-radius:16px;grid-template-columns:minmax(0,1fr);gap:20px;margin:18px 0}.model-form .primary-action{width:100%}.model-form .capability-option{align-items:center;gap:10px;min-height:44px;display:flex}.model-form .capability-option input{border:0;flex:0 0 20px;width:20px;height:20px;padding:0}.model-actions{flex-wrap:wrap;gap:8px}.model-card{border-radius:16px}.tavern-shell input:not([type=checkbox]):not([type=file]),.tavern-shell textarea,.tavern-shell select{min-width:0;font-size:16px}.tavern-shell button{touch-action:manipulation;font-family:inherit}.tavern-shell .primary-action,.tavern-shell .secondary-action,.tavern-shell .brass-button,.model-actions button,.memory-actions button{min-height:44px}.build-intro p{line-height:1.65}.build-progress{border-bottom:1px solid var(--line);color:var(--text-muted);justify-content:space-between;margin:0 0 20px;padding:0 0 16px;list-style:none;display:flex}.build-progress [aria-current=step]{font-weight:700}.preview-title{margin:22px 0;font-size:20px}.character-form{gap:22px}.manual-build{width:100%}.build-actions{bottom:calc(74px + var(--app-safe-bottom));z-index:5;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px 0;display:grid;position:sticky}.build-actions .primary-action{margin:0}.building-character{padding-bottom:var(--app-safe-bottom)}.building-character .build-page{padding-top:12px;padding-bottom:0}.building-character .back-button{background:0 0;min-height:44px;padding-left:0;font-size:14px}.building-character .build-intro{margin:8px 0 18px}.building-character .build-intro h1{margin:0;font-size:20px}.building-character .build-progress{margin-bottom:16px}.building-character .build-notice{margin:0 0 16px;font-size:13px;line-height:1.6}.building-character .build-actions{padding:12px 0 calc(12px + var(--app-safe-bottom));border-top:1px solid var(--line);bottom:0}.building-character .build-actions button{min-height:48px;font-size:15px}.character-introduction{background:var(--surface);overflow-wrap:anywhere;min-width:0;padding:26px 22px}.introduction-identity{padding-bottom:18px}.introduction-identity h2{letter-spacing:.02em;margin:0 0 14px;font-size:32px;line-height:1.25}.introduction-summary{color:var(--text-muted);white-space:pre-wrap;margin:0 0 8px;font-size:16px;line-height:1.8}.introduction-section{border-top:1px solid var(--line);padding:22px 0}.introduction-section h3{margin:0;font-size:17px;line-height:1.5}.introduction-section p{white-space:pre-wrap;margin:10px 0 0;font-size:16px;line-height:1.85}.introduction-section-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.introduction-edit{min-height:44px;color:var(--accent);cursor:pointer;text-align:left;background:0 0;border:0;padding:8px 0;font-size:14px}.introduction-section-heading .introduction-edit{margin-right:-8px;padding:8px}.introduction-editor{gap:18px;display:grid}.character-introduction textarea{resize:none;height:auto;line-height:1.8;overflow:hidden}.character-introduction input,.character-introduction textarea{border:1px solid var(--input-line);border-radius:10px;padding:12px}.character-introduction input:focus,.character-introduction textarea:focus,.introduction-edit:focus-visible,.introduction-add summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.introduction-done{width:100%;margin-top:16px}.introduction-add{color:var(--text-muted);margin-top:12px;font-size:14px}.introduction-add summary{cursor:pointer;min-height:44px;padding:12px 0}.introduction-add button{display:block}.building-character .avatar-picker small{font-size:13px}.building-character .avatar-picker input{width:100%;min-width:0;font-size:14px}@media (width<=360px){.building-character .build-page{margin-inline:12px}.character-introduction{padding:22px 18px}.building-character .build-actions{gap:8px}}.bottom-nav{border:0;border-top:1px solid var(--line);box-shadow:none;border-radius:0;margin:0;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.character-dialog{inset:var(--app-safe-top) auto 0 50%;padding:18px 22px calc(30px + var(--app-safe-bottom));border:0;transform:translate(-50%)}.dialog-close{float:right;background:var(--surface);z-index:1;border-radius:50%;min-width:44px;min-height:44px;position:sticky;top:0}.dialog-portrait{aspect-ratio:1;font-size:32px}.character-dialog dl{margin:24px 0}.telegram-entry{padding:calc(20px + var(--app-safe-top)) 16px calc(20px + var(--app-safe-bottom))}.telegram-entry-card .brand-mark{font-size:32px}.admin-shell,.admin-denied{color:var(--text);background:var(--bg)}.admin-header,.prompt-index{background:var(--surface);border-color:var(--line)}.prompt-index button{color:var(--text)}.prompt-index button[aria-pressed=true]{background:var(--accent-soft)}.prompt-editor textarea,.sample-fields input,.publish-panel input,.history-detail input,.history-detail pre{color:var(--text);background:var(--surface);border-color:var(--input-line)}.prompt-preview{color:var(--success);background:var(--success-bg)}.shell-error,.admin-error{background:var(--danger-bg)}.probe-page{min-height:100svh;color:var(--text);background:var(--bg);flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:24px 16px;display:flex}.probe,.welcome{background:var(--surface);border:1px solid var(--line);border-radius:20px;width:min(100%,480px);padding:24px}.welcome{text-align:center}.welcome h1{margin:0;font-size:clamp(2.2rem,13vw,3rem)}.tagline{color:var(--text-muted);line-height:1.7}.status{color:var(--accent)}.status-dot{background:var(--coral);border-radius:50%;width:8px;height:8px;margin-right:8px;display:inline-block}.probe{gap:14px;display:grid}.probe h2,.probe p{margin:0}.probe>div p{color:var(--text-muted);margin-top:8px;line-height:1.6}.probe textarea{resize:vertical;border:1px solid var(--input-line);border-radius:10px;width:100%;min-width:0;min-height:84px;padding:12px}.probe button{min-height:44px;color:var(--text-muted);background:var(--coral);border:0;border-radius:10px}.probe-status{color:var(--success);font-weight:700}.probe-reply{white-space:pre-wrap;background:var(--success-bg);border-left:4px solid var(--line);min-height:48px;padding:14px}.plaza-page{min-width:0}.plaza-page,.definition-manager,.definition-view,.character-dialog{overflow-wrap:anywhere}.plaza-page h1{margin:0 0 10px;font-size:25px}.plaza-search{gap:16px;margin-top:16px;display:grid}.plaza-search>label:first-child{gap:7px;font-size:14px;display:grid}.plaza-search input:not([type=checkbox]){border:1px solid var(--input-line);background:var(--surface);width:100%;min-height:46px;color:var(--text);border-radius:10px;padding:10px}.plaza-official{align-items:center;gap:8px;min-height:44px;font-size:14px;display:flex}.plaza-list{gap:12px;display:grid}.plaza-tabs{margin:0;display:flex}.plaza-tabs [aria-pressed=true]{border-color:var(--brass)}.report-page-title{margin:24px;font-size:25px}.report-resolution{gap:16px;margin-top:24px;display:grid}.report-resolution label,.definition-manager form>label{gap:8px;display:grid}.report-resolution label:has(input[type=checkbox]){align-items:center;display:flex}.report-resolution textarea,.definition-manager form textarea{width:100%;min-height:100px}.report-resolution select,.prompt-index select{width:100%;min-height:44px}.admin-header a{color:inherit;padding:10px}.admin-header{flex-wrap:wrap}.report-workspace .prompt-index{min-width:0;display:block;overflow:visible}.report-workspace .prompt-index>p{display:block}.report-workspace .prompt-index>label{gap:8px;display:grid}.report-workspace .prompt-index>button{width:100%;min-width:0;margin:8px 0}.report-workspace .delivery-pagination button{width:auto;min-width:0}.report-workspace .delivery-pagination span{white-space:nowrap}.report-workspace .prompt-desk{overflow-wrap:anywhere;min-width:0}.public-share-page{overflow-wrap:anywhere;width:min(100%,760px);margin:auto;padding:24px 18px 48px}.shared-transcript{gap:16px;padding:0;list-style:none;display:grid}.shared-message{border:1px solid var(--line);background:var(--surface);border-radius:18px;min-width:0;padding:18px}.shared-message.user{background:var(--accent-soft)}.shared-message header{gap:6px;display:grid}.shared-message time{color:var(--text-muted);font-size:12px}.shared-message p{white-space:pre-wrap;overflow-wrap:anywhere}.share-page{width:100%;min-width:0}.share-page>label{gap:8px;display:grid}.share-page select,.share-page input[readonly]{border:1px solid var(--input-line);background:var(--surface);width:100%;min-width:0;color:var(--text);border-radius:10px;padding:12px}.share-selection{gap:12px;padding:0;list-style:none;display:grid}.share-selection li{border-top:1px solid var(--line);min-width:0;padding:12px 0}.share-selection label{align-items:center;gap:10px;min-height:44px;display:flex}.share-selection label span{gap:4px;display:grid}.share-selection time{color:var(--text-muted);font-size:12px}.share-selection p{white-space:pre-wrap;overflow-wrap:anywhere}.publication-preview>label.definition-confirm{align-items:flex-start;display:flex}.publication-preview>label.definition-confirm input{flex:0 0 18px;width:18px;margin-top:4px}.admin-proof{background:var(--surface);border:1px solid var(--line);border-radius:12px;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 24px;padding:16px;display:flex}.admin-proof p{margin:0;line-height:1.6}.admin-account-id,.admin-user-detail dd{overflow-wrap:anywhere}.admin-user-detail dl{gap:12px;display:grid}.admin-user-detail dt{color:var(--text-muted);font-size:13px}.admin-user-detail dd{margin:6px 0 0}.report-resolution .admin-confirm{align-items:flex-start;gap:10px;min-height:44px;display:flex}.report-resolution .admin-confirm input{flex:0 0 18px;width:18px;margin-top:4px}.admin-users-shell{font-family:system-ui,-apple-system,PingFang SC,Microsoft YaHei,sans-serif}.admin-users-shell .admin-help{margin:24px;line-height:1.7}.admin-users-shell .admin-proof{margin:0 24px 24px}.admin-users-shell input:not([type=checkbox]),.admin-users-shell select,.admin-users-shell textarea{border:1px solid var(--input-line);background:var(--surface);width:100%;min-width:0;min-height:44px;color:var(--text);font:inherit;border-radius:10px;padding:10px 12px}.admin-users-shell .prompt-index form>label{gap:8px;display:grid}.admin-users-shell .prompt-index form>button{width:100%;margin:8px 0}.admin-preset-item{border:1px solid var(--line);background:var(--surface);border-radius:12px;gap:14px;min-width:0;padding:18px;display:grid}.public-card{border-color:var(--line);grid-template-columns:88px minmax(0,1fr);width:100%;display:grid}.public-card .card-copy small{overflow-wrap:anywhere}.protected-image{object-fit:contain;border-radius:12px;width:100%;max-width:240px;max-height:320px;display:block}.card-portrait .protected-image{object-fit:cover;border-radius:0;width:100%;height:100%;max-height:none}.image-placeholder{text-align:center;font-size:12px;line-height:1.5}.definition-view dl{margin:20px 0}.definition-view dl>div,.public-attribution>div{border-bottom:1px solid var(--line);padding:12px 0}.definition-view dt,.public-attribution dt{color:var(--text-muted);margin-bottom:6px;font-size:13px}.definition-view dd,.public-attribution dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.7}.definition-view details{margin:16px 0}.definition-view summary{cursor:pointer;min-height:44px;padding:12px 0}.definition-view article{border-top:1px solid var(--line);padding:12px 0}.definition-view article p,.rights-statement p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.public-attribution{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;font-size:14px;display:grid}.public-attribution>div:last-child{grid-column:1/-1}.rights-statement{border:1px solid var(--line);background:var(--surface);border-radius:14px;margin:20px 0;padding:16px}.rights-statement h2{margin:0;font-size:16px}.public-detail>.primary-action{width:100%;margin-top:12px}.definition-manager{background:var(--surface);border:1px solid var(--line);border-radius:14px;gap:12px;margin:20px 0;padding:16px;display:grid}.definition-manager>p{margin:0}.publication-preview{gap:12px;min-width:0;display:grid}.publication-preview h3{margin:0;font-size:18px}.publication-preview>label{gap:8px;font-size:14px;display:grid}.publication-preview textarea{border:1px solid var(--input-line);width:100%;min-height:100px;color:var(--text);background:var(--surface);resize:vertical;border-radius:10px;padding:10px}.definition-manager>h3{margin:0;font-size:18px}.definition-preview{gap:12px;min-width:0;display:grid}.definition-preview>h4{margin:4px 0;font-size:16px}.definition-confirm{align-items:center;gap:9px;min-height:44px;font-size:14px;line-height:1.6;display:flex}.definition-change{border:1px solid var(--line);background:var(--bg);border-radius:10px;gap:8px;min-width:0;padding:12px;display:grid}.definition-change h4{margin:0}.definition-change>div{min-width:0}.definition-change strong{color:var(--text-muted);font-size:13px}.definition-change p,.definition-change pre{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;line-height:1.7}.definition-change pre{max-height:300px;font-size:13px;overflow:auto}.definition-backups{gap:12px;min-width:0;display:grid}.backup-summary{border-top:1px solid var(--line);padding:12px 0}.backup-summary p{color:var(--text-muted);overflow-wrap:anywhere;font-size:13px}.usage-panel{border:1px solid var(--line);overflow-wrap:anywhere;border-radius:16px;align-content:start;gap:12px;min-width:0;padding:20px;display:grid}.usage-panel h2,.usage-panel h3,.usage-panel h4,.usage-panel p{margin:0}.usage-panel label{gap:8px;display:grid}.usage-panel select{width:100%;min-height:44px;font:inherit;border:1px solid var(--input-line);background:var(--surface);border-radius:10px;padding:10px}.profile-layout>.usage-panel{grid-column:1/-1}.usage-panel .usage-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;display:grid}.usage-panel .usage-totals>div{border:0;min-width:0;padding:0;display:block}.usage-totals dt{color:var(--text-muted);font-size:13px}.usage-totals dd{overflow-wrap:anywhere;margin:6px 0 0}.usage-purpose{border-top:1px solid var(--line);gap:10px;min-width:0;padding-top:14px;display:grid}.operations-layout{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}@media (width<=760px){.operations-layout{grid-template-columns:minmax(0,1fr)}}.admin-version-history{border-bottom:1px solid var(--line);gap:10px;padding-bottom:18px;display:grid}.admin-content-tabs{flex-wrap:wrap;margin:20px;display:flex}.admin-content-shell .prompt-slot,.admin-content-shell .prompt-desk{overflow-wrap:anywhere;min-width:0}.tavern-shell{background:var(--bg);max-width:480px;font-family:inherit;display:flow-root}.tavern-content,.build-page,.profile-page{min-width:0;margin-inline:22px}h1,h2,h3,h4{overflow-wrap:anywhere}p{line-height:1.7}button,input,textarea,select{min-width:0}input:not([type=checkbox]):not([type=file]),textarea,select{max-width:100%;min-height:46px;color:var(--text);background:var(--surface);border:1px solid var(--input-line);border-radius:10px;padding:12px;font-size:16px}input[type=checkbox]{flex:0 0 18px;width:18px;height:18px}input[type=file]{max-width:100%;color:var(--text-muted);font-size:14px}input::file-selector-button{color:var(--text);background:var(--surface-soft);border:0;border-radius:8px;margin-right:10px;padding:10px}textarea{line-height:1.75}.primary-action,.secondary-action,.brass-button,.back-button,.danger-action,.model-actions button{border-radius:12px;min-height:46px;padding:11px 16px;line-height:1.5}.primary-action,.brass-button{color:var(--on-action);background:var(--action);border-color:var(--action);font-weight:500}.secondary-action,.model-actions button{color:var(--text);background:var(--surface);border-color:var(--line)}.back-button{color:var(--accent);background:0 0;padding-left:0}.danger-action{color:var(--danger);background:var(--danger-bg);border-color:var(--danger)}.form-error,.shell-error,.admin-error{color:var(--danger);overflow-wrap:anywhere}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.tavern-shell>[role=status]{color:var(--text-muted);margin-inline:22px;font-size:14px}.appearance-setting{border-bottom:1px solid var(--line);background:0 0;border-radius:0;justify-content:space-between;align-items:center;gap:16px;min-height:64px;margin-bottom:20px;padding:10px 0;font-size:14px;display:flex}.appearance-setting select{width:auto;max-width:65%;min-height:44px;color:var(--accent);background:var(--surface-soft);border:0;padding:8px 12px;font-size:14px}.telegram-entry{background:var(--bg);max-width:480px;margin:auto;padding-inline:28px}.telegram-entry-card{text-align:left;-webkit-backdrop-filter:none;backdrop-filter:none;background:0 0;border:0;border-radius:0;width:100%;padding:0}.telegram-entry-card .brand-mark{width:66px;height:80px;color:var(--accent);border:1px solid var(--input-line);background:0 0;border-radius:32px 32px 3px 3px;margin:0 0 34px;font:400 38px/1 Georgia,serif}.telegram-entry-card h1{font:400 28px/1.5 var(--font-display);margin:0 0 32px}.telegram-entry-card>p:not(.brand-mark){color:var(--text);margin:0 0 8px;font-weight:600}.telegram-entry-card>p.form-error{color:var(--danger);margin-bottom:20px;font-size:14px;font-weight:400}input::placeholder,textarea::placeholder{color:var(--text-muted);opacity:1}.telegram-entry-card small{color:var(--text-muted);font-size:14px;line-height:1.8;display:block}.telegram-entry-card .primary-action{min-height:52px;margin:28px 0}.telegram-entry-card .appearance-setting{color:var(--text-muted);background:0 0;margin:0;padding-inline:0}.tavern-greeting{margin:16px 0}.tavern-greeting h1{margin:0;font-size:18px;font-weight:500;line-height:1.5}.current-character{background:var(--accent-soft);border:0;border-radius:24px;min-height:0;margin:0;padding:0;display:block;overflow:hidden}.current-copy{align-self:center;min-width:0;padding:0}.current-copy>p:first-child{color:var(--accent);letter-spacing:.08em;margin:0 0 20px;font-size:11px;font-weight:400}.current-copy h2{font:400 32px/1.4 var(--font-display);letter-spacing:.06em;margin:0}.current-copy h2+p{color:var(--text-muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:10px 0 0;font-size:13px;line-height:1.7;display:-webkit-box;overflow:hidden}.current-character.is-empty{min-height:220px;padding:24px}.current-character.is-empty h2{font-size:22px}.current-character.is-empty .primary-action{margin-top:20px}.companion-open{color:#fff;border-radius:inherit;text-align:left;background:#221b26;border:0;width:100%;height:332px;padding:0;display:block;position:relative}.companion-open:after,.character-detail-cover:after{content:"";pointer-events:none;background:linear-gradient(#0f0a121a 25%,#0f0a128c 55%,#0f0a12f5 100%);position:absolute;inset:0}.companion-open:focus-visible{outline-offset:-5px;outline:3px solid #fff}.companion-eyebrow{z-index:1;color:#fff;background:#19101acc;border:1px solid #ffffff40;border-radius:20px;padding:7px 12px;font-size:11px;position:absolute;top:18px;left:18px}.companion-copy{z-index:1;gap:10px;display:grid;position:absolute;bottom:22px;left:22px;right:22px}.companion-copy strong{-webkit-line-clamp:2;font:500 30px/1.3 var(--font-display);overflow-wrap:anywhere;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.companion-summary{-webkit-line-clamp:2;color:#f5e9ec;-webkit-box-orient:vertical;font-size:13px;line-height:1.7;display:-webkit-box;overflow:hidden}.companion-cta{color:#382432;overflow-wrap:anywhere;background:#f9eced;border-radius:14px;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin-top:4px;padding:10px 16px;font-size:14px;display:flex}.companion-cta>span{font-size:22px}.character-artwork{background:var(--accent-soft);width:100%;height:100%;display:block;position:relative;overflow:hidden}.character-artwork-fallback{color:var(--accent);background:radial-gradient(ellipse at 65% 20%, var(--sky), transparent 70%), var(--accent-soft);place-items:center;display:grid;position:absolute;inset:0}.character-artwork-fallback svg{opacity:.65;width:85%;height:85%}.character-artwork-fallback>span{letter-spacing:.08em;font-size:11px;position:absolute;bottom:12%}.character-artwork .protected-image{object-fit:cover;object-position:center 30%;border-radius:0;width:100%;max-width:none;height:100%;max-height:none;display:block;position:relative}.character-artwork .image-placeholder{color:var(--text);text-align:center;place-items:center;padding:12px;font-size:12px;display:grid;position:absolute;inset:0}.companion-open>.character-artwork{position:absolute;inset:0}.character-cabinet{margin-top:28px}.section-heading{margin-top:0}.section-heading h2{font:400 22px/1.5 var(--font-display)}.section-heading p{margin-top:5px;font-size:12px}.section-heading .brass-button{background:var(--surface);min-width:0;color:var(--accent);border-color:var(--line);padding:9px 16px;font-size:14px}.character-grid,.plaza-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:14px;margin-top:18px;display:grid}.plaza-list>.rights-statement{grid-column:1/-1}.empty-cabinet{background:var(--surface);border-color:var(--input-line);border-radius:18px;min-height:152px;margin-top:18px;padding:24px}.empty-cabinet span{font-family:inherit;font-size:16px;font-weight:600}.character-card,.public-card{width:100%;min-height:0;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:18px;flex-direction:column;align-items:stretch;gap:0;padding:0;display:flex;overflow:hidden}.character-card:focus-visible{outline-offset:-3px}.card-portrait{aspect-ratio:4/4.5;width:100%;height:auto;min-height:0;max-height:190px;color:var(--accent);background:var(--accent-soft);border-radius:0;display:block;overflow:hidden}.palette-3 .card-portrait{background:var(--accent-soft)}.card-copy{text-align:left;gap:6px;min-width:0;padding:12px}.card-copy strong{overflow-wrap:anywhere;font-family:inherit;font-size:16px;font-weight:500}.card-copy small{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.7;display:-webkit-box}.card-copy .card-author{margin-top:3px;font-size:10px}.current-ribbon{color:#fff;background:#19101ad9;border-radius:20px;padding:5px 9px;font-size:10px;top:10px;left:10px;right:auto}.build-page,.profile-page{padding-top:20px}.build-intro{margin:10px 0 24px}.build-intro h1{font:400 28px/1.5 var(--font-display)}.build-intro p{font-size:14px}.tavern-shell.secondary-page{padding-bottom:var(--app-safe-bottom)}.page-title-row{align-items:center;gap:8px;display:flex}.back-button.compact-back{flex:0 0 44px;width:44px;height:44px;padding:0;font:32px/1 system-ui}.build-progress{counter-reset:step;gap:6px;margin-bottom:22px;padding-bottom:18px;font-size:12px}.build-progress li{counter-increment:step;flex:1}.build-progress li:before{content:counter(step);background:var(--surface-soft);border-radius:50%;place-items:center;width:22px;height:22px;margin-right:6px;font-size:11px;display:inline-grid}.build-progress [aria-current=step]{color:var(--accent)}.build-progress [aria-current=step]:before{color:var(--on-accent);background:var(--accent)}.build-modes{border:0;border-bottom:1px solid var(--line);background:0 0;border-radius:0;gap:16px;margin-bottom:24px;padding:0}.build-modes button{border-radius:0;min-height:44px;padding:8px 0;font-size:13px}.build-modes button[aria-selected=true]{color:var(--text);box-shadow:inset 0 -2px var(--accent);background:0 0;font-weight:500}.build-source{background:0 0;border:0;border-radius:0;gap:20px;padding:0}.build-source textarea{background:var(--surface);min-height:180px}.build-source label{font-size:14px}.external-template{padding:12px 0}.external-template summary,.advanced-definition summary{min-height:44px;padding:12px 0;font-size:14px;font-weight:500}.external-template p{font-size:13px}.build-cache-status{color:var(--warning);background:var(--warning-bg);border-radius:12px;margin-bottom:20px;padding:16px;font-size:14px}.build-cache-status button{width:100%;margin-top:8px}.build-actions{background:var(--bg)}.character-form>label>input,.character-form>label>textarea{background:var(--surface);border:1px solid var(--input-line);border-radius:10px;padding:12px}.character-introduction{border-radius:18px}.character-introduction input,.character-introduction textarea{background:var(--surface)}.profile-heading{margin:12px 0 28px}.profile-heading>div{min-width:0}.profile-heading h1{font:400 28px/1.5 var(--font-display)}.profile-heading p{overflow-wrap:anywhere;font-size:12px}.profile-heading .profile-seal{font-size:26px}.profile-seal{color:var(--accent);background:var(--accent-soft);border:1px solid var(--line);border-radius:50%;margin:0}.settings-list{background:0 0;border:0;border-radius:0}.settings-list button{min-height:62px;padding:18px 0;font-size:14px}.settings-list small{font-size:12px}.settings-list .settings-logout{color:var(--danger)}.model-form{background:0 0;border:0;padding:20px 0}.model-form .capability-option input{min-height:0}.model-card-title{flex-wrap:wrap}.model-card-title span{color:var(--accent);background:var(--accent-soft);border-radius:6px}.model-card h3{font-family:inherit;font-size:18px}.model-actions button{font-size:13px}.bottom-nav{width:min(100%,480px);min-height:72px;padding:8px 16px calc(8px + var(--app-safe-bottom));background:var(--surface)}.bottom-nav button{border-radius:0;align-content:center;justify-items:center;gap:6px;min-height:52px;padding:4px;font-size:10px;display:grid;position:relative}.bottom-nav button[aria-current=page]{color:var(--accent);background:0 0;font-weight:500}.bottom-nav button[aria-current=page]:before{content:"";background:var(--accent);width:24px;height:2px;position:absolute;top:-8px}.nav-icon{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px}.character-dialog{overscroll-behavior:contain;background:var(--bg);width:min(100%,480px);box-shadow:0 0 0 100vmax #00000052}.dialog-close{border:1px solid var(--line);color:var(--text);place-items:center;padding:0;display:grid}.character-toolbar{z-index:2;justify-content:flex-end;gap:8px;margin-bottom:12px;display:flex;position:sticky;top:0}.character-toolbar .dialog-close{float:none;width:44px;height:44px;position:static}.character-menu{position:relative}.character-menu-trigger{border:1px solid var(--line);background:var(--surface);width:44px;height:44px;color:var(--text);cursor:pointer;border-radius:50%;place-items:center;padding:0;font-size:24px;display:grid}.character-menu-actions{border:1px solid var(--line);background:var(--surface);border-radius:14px;width:204px;padding:6px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 12px 36px #00000038}.character-menu-actions button{width:100%;min-height:44px;color:var(--text);text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 12px;display:block}.character-menu-actions button:hover{background:var(--surface-soft)}.character-menu-actions .character-menu-delete{border-top:1px solid var(--line);color:var(--danger);border-radius:0 0 8px 8px;margin-top:4px}.profile-seal img{object-fit:cover;border-radius:inherit;width:100%;height:100%}.dialog-portrait{width:88px;height:100px;color:var(--accent);background:var(--accent-soft);border-radius:40px 40px 14px 14px;margin:26px 0 20px}.character-dialog h2{font-size:28px}.character-dialog dd{white-space:pre-wrap;font-size:15px;line-height:1.85}.character-detail-cover{clear:both;border-radius:22px;height:300px;position:relative;overflow:hidden}.character-detail-cover h2{z-index:1;color:#fff;font:500 32px/1.4 var(--font-display);overflow-wrap:anywhere;position:absolute;bottom:22px;left:22px;right:22px}.character-opening-block{background:var(--accent-soft);border-radius:4px 20px 20px;margin:24px 0;padding:20px}.character-opening-block>span{color:var(--accent);font-size:11px}.character-opening{color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0;font-size:16px;line-height:1.85}.relationship-heading{flex-wrap:wrap}.relationship-heading h3{font-family:inherit;font-size:20px}.growth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plaza-page{margin:28px 22px}.plaza-page:not(.public-detail){margin-top:12px}.plaza-page>.delivery-help{font-size:13px}.plaza-page>h1{font:400 28px/1.5 var(--font-display)}.plaza-toolbar{align-items:center;gap:12px;display:flex}.plaza-tabs{border-bottom:1px solid var(--line);background:0 0;border-radius:0;flex:1;gap:8px;padding:0}.plaza-tabs button{background:0 0;border:0;border-radius:0;flex:1;min-height:44px;padding:8px;font-size:13px}.plaza-tabs [aria-pressed=true]{color:var(--accent);box-shadow:inset 0 -2px var(--accent);background:0 0}.plaza-search-trigger{width:44px;height:44px;color:var(--text-muted);background:0 0;border:0;border-radius:12px;flex:0 0 44px;place-items:center;padding:10px;display:grid}.plaza-search-trigger svg{width:24px;height:24px}.plaza-search-trigger.has-filters{color:var(--accent);background:var(--accent-soft)}.plaza-search-dialog{width:min(440px,100vw - 24px);max-height:calc(100dvh - var(--app-safe-top) - var(--app-safe-bottom) - 24px);border:1px solid var(--line);color:var(--text);background:var(--surface);border-radius:24px;padding:18px;overflow-y:auto;box-shadow:0 20px 80px #0005}.plaza-search-dialog::backdrop{background:#0007}.plaza-search-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.plaza-search-heading h2{margin:0;font-size:18px}.plaza-search-heading button{width:44px;height:44px;color:var(--accent);background:var(--accent-soft);border:0;border-radius:50%;padding:0;font-size:24px}.public-share-page{max-width:480px;padding-top:calc(24px + var(--app-safe-top));padding-bottom:calc(32px + var(--app-safe-bottom))}.usage-panel{background:var(--surface)}.admin-shell{max-width:480px;padding-top:var(--app-safe-top);margin:auto}.admin-header{gap:12px;padding:20px}.admin-header div{gap:8px;min-width:0;display:grid}.admin-header a,.admin-header button{min-height:44px;padding:10px}.admin-header strong{font-family:inherit;font-size:20px}.prompt-workspace,.operations-layout,.sample-fields,.publish-panel,.history-detail{grid-template-columns:minmax(0,1fr)}.prompt-workspace{min-height:auto}.prompt-index{border-right:0;border-bottom:1px solid var(--line);padding:16px;display:block}.prompt-index button{border-radius:8px;width:100%;min-width:0;min-height:44px}.prompt-index button[aria-pressed=true]{color:var(--accent)}.prompt-desk{width:100%;padding:24px 20px calc(32px + var(--app-safe-bottom));overflow-wrap:anywhere}.prompt-empty{min-height:220px}.prompt-empty h1,.prompt-title h1{font-family:inherit;font-size:25px}.prompt-title{flex-wrap:wrap;gap:12px;margin-bottom:24px}.prompt-buttons{flex-wrap:wrap}.version-strip button{min-height:44px}.version-strip button[aria-pressed=true]{color:var(--on-accent)}.prompt-preview,.history-detail pre{overflow-wrap:anywhere}.admin-content-tabs{gap:8px}.site-statistics{margin:20px}.site-statistic-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;margin:12px 0;display:grid}.site-statistic-totals dt{color:var(--text-muted);font-size:12px}.site-statistic-totals dd{overflow-wrap:anywhere;margin:6px 0 0;font-size:26px;font-weight:600}.site-statistics-table{border-collapse:collapse;width:100%;font-size:12px}.site-statistics-history{max-height:360px;overflow:auto}.site-statistics-table thead{background:var(--surface);position:sticky;top:0}.site-statistics-table caption{text-align:left;padding:14px 0;font-size:16px;font-weight:600}.site-statistics-table th,.site-statistics-table td{text-align:right;border-bottom:1px solid var(--line);padding:12px 4px}.site-statistics-table th:first-child{text-align:left;padding-left:0;font-weight:400}.site-statistics-table thead th,.site-statistics-table small{color:var(--text-muted);font-weight:400}.site-statistics-table small{margin-top:4px;font-size:11px;display:block}@media (width<=360px){.tavern-content,.build-page,.profile-page,.plaza-page{margin-inline:16px}.companion-open{height:332px}.companion-copy{left:18px;right:18px}.character-grid,.plaza-list{gap:10px}.card-copy{padding:10px}.build-progress{gap:4px;font-size:11px}.build-progress li:before{width:18px;height:18px;margin-right:4px}.character-dialog{padding-inline:16px}}.choice-trigger{border:1px solid var(--line);width:100%;min-height:44px;color:var(--text);background:var(--surface);text-align:left;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex}.choice-trigger>span:first-child{overflow-wrap:anywhere}.choice-sheet{border:1px solid var(--line);width:min(440px,100vw - 24px);max-height:70svh;color:var(--text);background:var(--surface);border-radius:24px;padding:18px;box-shadow:0 20px 80px #0005}.choice-sheet::backdrop{background:#0007}.choice-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.choice-heading h2{margin:0;font-size:18px}.choice-heading button{background:var(--accent-soft);width:44px;height:44px;color:var(--text);border:0;border-radius:50%;font-size:24px}.choice-options{gap:6px;margin-top:12px;display:grid}.choice-options button{min-height:48px;color:var(--text);text-align:left;overflow-wrap:anywhere;background:0 0;border:0;border-radius:12px;justify-content:space-between;gap:12px;padding:12px;display:flex}.choice-options button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}@media (width<=600px){.choice-sheet,.plaza-search-dialog{margin:auto auto max(12px, var(--app-safe-bottom))}}.character-toolbar>.back-button{margin-right:auto}.toast{z-index:100;top:max(18px, var(--app-safe-top));border:1px solid var(--line);background:var(--surface);width:max-content;max-width:min(440px,100vw - 32px);color:var(--text);border-radius:16px;align-items:center;gap:12px;padding:12px 16px;font-size:14px;animation:5s forwards toast-fade;display:flex;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 8px 32px #0003}.toast button{color:var(--text-muted);background:0 0;border:0;flex:none;min-width:32px;min-height:32px}@keyframes toast-fade{0%{opacity:0}5%,90%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){.toast{animation:none}}.guide-badge{color:var(--accent);margin-top:3px;font-size:10px;display:block}.protected-image-container{display:block}.character-artwork>.protected-image-container{width:100%;height:100%;position:relative}.telegram-entry-card .brand-logo{object-fit:contain;width:80px;height:80px;margin-bottom:26px;display:block}
