@font-face {font-family:StudioSerif;src:local('Iowan Old Style'),local('Baskerville');font-display:swap}
:root { color-scheme:light; --sidebar:#eeece5; --ink:#302e2a; --muted:#77746c; --soft:#f0e3dc; --green:#526747; --serif:StudioSerif,Georgia,'Songti SC','STSong',serif; --sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; font-family:var(--sans); font-size:16px; color:var(--ink); background:var(--paper); }
* { box-sizing:border-box; }
html, body { touch-action:manipulation; }
body { margin:0; }
button, a, input, textarea, select, summary, label { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:wait; }
a { color:inherit; text-decoration:none; }
button, a, input, select, textarea { outline-offset:4px; }
button svg, a svg { flex-shrink:0; }
button { color:inherit; }
::selection { background:var(--theme-inset-strong,#d8bcae); }
.skip { position:fixed; left:12px; top:-80px; background:var(--ink); color:white; padding:12px; z-index:100; }
.skip:focus { top:10px; }
.loading { padding:60px; text-align:center; color:var(--muted); }
.shell { display:grid; grid-template-columns:226px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100dvh; background:var(--sidebar); border-right:1px solid var(--line); padding:32px 18px 20px; display:flex; flex-direction:column; }
.brand { display:flex; align-items:center; padding:0 12px; }
.brand-mark { display:grid; place-items:center; background:var(--ink); color:var(--paper); }
.nav-group { margin:16px 12px 9px; font-size:12px; color:var(--theme-muted,#8a867c); letter-spacing:1px; }
.nav-item { display:flex; align-items:center; border-radius:3px; }
.nav-item:hover { background:var(--theme-inset,#e5e1d7); }
.nav-count { margin-left:auto; min-width:21px; text-align:center; font-size:12px; padding:2px 5px; background:var(--theme-surface,#fff7ee); border-radius:3px; color:var(--accent); }
.sidebar-bottom { margin-top:auto; }
.workspace { min-width:0; }
.topbar { border-bottom:1px solid var(--line); background:var(--paper); display:flex; align-items:center; padding:0 42px; }
.breadcrumb span { margin:0 10px; color:var(--theme-muted-soft,#b1aca0); }
.topbar-right { display:flex; align-items:center; margin-left:auto; }
.topbar-date { font-size:12px; color:var(--muted); }
.mobile-menu { display:none; }
.icon-btn { border:0; background:transparent; padding:8px; display:inline-flex; align-items:center; justify-content:center; }
.content { margin:0 auto; padding:40px 42px 28px; }
.page-heading { display:flex; justify-content:space-between; gap:20px; }
.eyebrow { color:var(--accent); text-transform:uppercase; }
.page-heading h1 { font:normal 38px/1.3 var(--serif); margin:0; letter-spacing:1px; }
.page-heading p { color:var(--muted); margin:12px 0 0; line-height:1.7; }
.btn { border:1px solid var(--line); white-space:nowrap; }
.btn.dark { background:var(--ink); border-color:var(--ink); color:white; }
.btn.danger { color:var(--theme-danger-text,#a14135); border-color:var(--theme-danger-line,#d7aaa1); }
.btn.block { width:100%; }
.link { color:var(--accent); font-size:13px; cursor:pointer; background:transparent; border:0; padding:6px 0; }
.section-head { display:flex; justify-content:space-between; margin-bottom:20px; }
.section-head h2 { font:normal 23px var(--serif); margin:0; }
.section-head small { font-size:12px; color:var(--muted); margin-left:10px; }
.stat { padding:0 24px; border-right:1px solid var(--line); }
.stat:first-child { padding-left:0; }
.stat:last-child { border:0; }
.small-note { margin-top:24px; }
.work-row { display:flex; gap:16px; align-items:center; border-top:1px solid var(--line); padding:17px 0; }
.work-row:last-child { border-bottom:1px solid var(--line); }
.work-row-title { flex:1; min-width:0; }
.work-row-title h3 { font-size:14px; font-weight:500; margin:0 0 7px; overflow-wrap:anywhere; }
.work-row-title p { font-size:12px; color:var(--muted); margin:0; }
.badge { display:inline-block; white-space:nowrap; border:1px solid transparent; }
.badge.published, .badge.active { background:var(--theme-success-fill,#e9eee3); color:var(--theme-success-text,#526747); }
.badge.pending { background:var(--theme-warning-fill,#f1e6cf); color:var(--theme-warning-text,#8a6c2b); }
.badge.draft { background:var(--theme-inset,#eae7df); color:var(--theme-text,#777064); }
.badge.rejected, .badge.revoked, .badge.paused { background:var(--theme-danger-fill,#f3e2dc); color:var(--theme-danger-text,#9b5143); }
.badge.offline, .badge.used { background:var(--theme-danger-fill,#e5e6e2); color:var(--theme-danger-text,#6d7069); }
.panel { border:1px solid var(--line); background:var(--panel); padding:26px; }
.panel h2, .panel h3 { font-family:var(--serif); font-weight:normal; margin-top:0; }
.note-box { display:flex; gap:12px; background:var(--theme-inset,#eeece4); padding:16px 18px; font-size:13px; line-height:1.8; color:var(--theme-text,#70695d); border:1px solid var(--theme-line,#e2dccc); }
.note-box svg { flex-shrink:0; margin-top:3px; }
.toolbar { display:flex; flex-wrap:wrap; }
.tabs { display:flex; gap:4px; background:var(--theme-inset,#eeebe3); border:1px solid var(--theme-line,#e7e2d8); }
.tab { border:0; background:transparent; padding:7px 12px; border-radius:2px; color:var(--muted); min-height:34px; }
.tab.active { background:var(--panel); color:var(--ink); box-shadow:0 1px 3px #0000000a; }
.search-field { margin-left:auto; position:relative; min-width:180px; }

.search-field input { width:100%; border:1px solid var(--line); background:transparent; padding:10px 12px 10px 34px; border-radius:4px; }
.work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.work-card { border:1px solid var(--line); background:var(--panel); border-radius:3px; overflow:hidden; transition:transform .15s,border-color .15s; }
.work-card:hover { transform:translateY(-2px); border-color:var(--theme-line,#bfb5a5); }
.card-preview { display:block; width:100%; height:232px; background:#e8e2d6; position:relative; overflow:hidden; border:0; padding:0; cursor:pointer; }
.card-preview iframe { height:100%; min-height:232px; }
.card-preview img.cover { width:100%; height:100%; object-fit:cover; }
.bubble { font-size:12px; line-height:1.5; padding:9px 13px; max-width:80%; min-width:78px; background:var(--theme-inset,#eeeae1); border-radius:12px; color:var(--theme-text,#383c33); background-size:100% 100%; background-repeat:no-repeat; }
.right .bubble { background-color:var(--theme-inset,#d2dbc8); }
.upload-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; }
.field { display:flex; flex-direction:column; gap:9px; font-size:14px; min-width:0; }
.field input, .field textarea, .field select, .select { border:1px solid var(--theme-line,#d6d1c6); background:var(--theme-surface,#fffefa); padding:11px 12px; width:100%; border-radius:3px; min-height:43px; font-size:14px; color:var(--ink); }
.field small { font-size:12px; color:var(--muted); line-height:1.7; }
.field input[type=file] { font-size:12px; padding:9px; background:var(--paper); }
.field input[type=file]::file-selector-button { border:0; background:var(--theme-inset,#e8e2d6); padding:6px 10px; margin-right:12px; border-radius:2px; color:var(--ink); }
.drop-zone { border:1px dashed var(--theme-line,#b6ad9c); background:var(--theme-surface,#f7f4ed); padding:35px 20px; position:relative; text-align:center; transition:background .15s; margin-bottom:24px; }
.drop-zone.drag { background:var(--theme-inset,#efe0d7); border-color:var(--accent); }
.drop-zone>svg { color:var(--accent); margin-bottom:12px; }
.drop-zone strong { display:block; font-size:15px; font-weight:500; }
.drop-zone p { font-size:12px; color:var(--muted); margin:10px 0 15px; }
.drop-zone .file-select { position:relative; display:inline-flex; }
.drop-zone input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.form-error { color:var(--theme-danger-text,#a14535); font-size:13px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; margin:0 0 14px; }
.guide { font-size:13px; line-height:1.9; }
.guide h3 { font:normal 23px var(--serif); margin:0 0 18px; }
.guide h4 { font-size:13px; font-weight:500; margin:20px 0 8px; }
.guide p { color:var(--muted); margin:0; }
.guide pre { white-space:pre-wrap; background:var(--theme-inset,#eeece4); padding:12px; font-size:12px; line-height:1.9; border:1px solid var(--line); overflow-wrap:anywhere; }
.guide .btn { margin-top:15px; }
.guide-label { color:var(--accent); font-size:11px; letter-spacing:2px; margin-bottom:14px; }
.empty { text-align:center; color:var(--theme-muted,#8c8271); }
.empty svg { margin-bottom:12px; }
.empty p { line-height:1.8; }
.empty .btn { margin-top:10px; }
.table-wrap { corner-shape:round; overflow:auto; border:1px solid var(--line); background:var(--panel); }
table { border-collapse:separate; border-spacing:0; width:100%; text-align:left; font-size:13px; white-space:nowrap; }
th { font-size:12px; color:var(--muted); font-weight:400; background:var(--theme-inset,#eeece4); padding:14px 17px; border-bottom:1px solid var(--line); }
td { padding:15px 17px; border-bottom:1px solid var(--theme-line,#e9e4da); }
tr:last-child td { border-bottom:0; }
td .subtext { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
td .link { font-size:12px; }
.mono { font-family:'SFMono-Regular',Consolas,monospace; font-size:12px; }
.table-wrap .empty { white-space:normal; }
.records-summary { margin:16px 0; }
.db-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:25px 0; }
.db-card { border:1px solid var(--line); background:var(--panel); text-align:left; border-radius:3px; }
.db-card.active { border-color:var(--accent); background:var(--theme-inset,#f5eae3); }
.db-card span { display:block; font-size:12px; color:var(--muted); margin-top:5px; }
.db-card strong { font:23px var(--serif); font-weight:normal; }
.db-card b { float:right; font:26px var(--serif); color:var(--accent); }
.db-data td { max-width:300px; overflow:hidden; text-overflow:ellipsis; }
.db-data td.audit-note,.audit-note { max-width:none; overflow:visible; text-overflow:clip; white-space:nowrap; }
dialog { color:var(--ink); background:var(--paper); border:1px solid var(--theme-line,#cfc8ba); }
.dialog-header { position:sticky; top:0; z-index:2; }
.dialog-body .field:last-of-type { margin-bottom:22px; }
.detail-description { font-size:13px; color:var(--muted); line-height:1.9; white-space:pre-wrap; overflow-wrap:anywhere; }
.rejection { padding:13px 15px; border:1px solid var(--theme-danger-line,#dbc1b3); background:var(--theme-danger-fill,#f1e4dc); font-size:13px; line-height:1.8; color:var(--theme-danger-text,#8f4c3c); overflow-wrap:anywhere; }
.toast { position:fixed; top:18px; left:50%; transform:translate(-50%,-18px); opacity:0; background:#33312c; color:#fff9f0; padding:13px 22px; z-index:100; transition:opacity .2s,transform .2s; pointer-events:none; max-width:calc(100vw - 32px); }
.toast.visible { opacity:1; transform:translate(-50%,0); }
.login-page { min-height:100dvh; display:grid; grid-template-columns:1.1fr 1fr; }
.login-editorial { background:var(--paper); padding:55px 65px; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.login-editorial .brand { padding:0; }
.login-title { font:normal 60px/1.4 var(--serif); letter-spacing:5px; margin:30px 0 20px; position:relative; z-index:1; }
.editorial-art { margin-top:auto; padding-top:55px; position:relative; min-height:240px; }
.art-card { max-width:330px; border:1px solid #9d9586; padding:24px 27px; background:#f2eee4; position:relative; transform:rotate(-5deg); z-index:1; }
.art-card:before { content:''; position:absolute; inset:0; border:1px solid #b2a995; background:#d4cfbf; transform:translate(24px,-18px) rotate(11deg); z-index:-1; }
.art-date { font:60px var(--serif); padding-bottom:16px; border-bottom:1px solid #c7bfaf; }
.art-date span { font:10px var(--sans); letter-spacing:2px; float:right; margin-top:25px; }
.art-line { height:1px; background:#c7bfaf; margin-top:20px; width:85%; }
.art-line.short { width:55%; }
.login-foot { font:italic 14px var(--serif); color:var(--theme-muted,#8f8068); margin-top:40px; }
.login-form-side { display:flex; align-items:center; justify-content:center; padding:40px; }
.login-form { width:100%; max-width:350px; }
.login-form h2 { font:normal 32px var(--serif); margin:10px 0 24px; }
.login-form>p { font-size:13px; color:var(--muted); line-height:1.9; margin-bottom:30px; }
.login-form .field { margin-bottom:16px; }
.login-form .field input { font-size:16px; }
.login-remember { display:flex; align-items:center; gap:8px; width:max-content; margin:0 0 20px; font-size:13px; line-height:22px; color:var(--ink); cursor:pointer; }
.login-remember input { width:16px; height:16px; margin:0; accent-color:var(--accent); cursor:pointer; }
.error-panel { padding:25px; border:1px solid var(--theme-danger-line,#d7aaa0); color:var(--theme-danger-text,#8e4738); font-size:14px; line-height:1.8; }
.mobile-overlay { display:none; margin:0; padding:0; border:0; border-radius:0; appearance:none; }
@media(min-width:1500px) {
  .content { padding-top:50px; }
  .card-preview { height:265px; }
}
@media(max-width:1200px) {
  .content { padding:32px 28px; }
  .topbar { padding:0 28px; }
  .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .upload-layout { grid-template-columns:minmax(0,1fr) 245px; gap:20px; }
  .topbar-date { display:none; }
  .stat { padding:0 18px; }
}
@media(max-width:900px) {
  .shell { grid-template-columns:190px minmax(0,1fr); }
  .sidebar { padding:25px 12px 18px; }
  .nav-item { gap:10px; }
  .brand { padding:0 8px; }
  .topbar { padding:0 23px; }
  .upload-layout { grid-template-columns:1fr; }
  .upload-guide { order:2; }
  .stat { padding:0 12px; }
  .page-heading h1 { font-size:33px; }
  .db-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
  .shell { display:block; }
  .sidebar { position:fixed; left:0; top:0; width:240px; z-index:30; border-right:0; transform:translateX(-100%); transition:transform .2s; }
  .shell.menu-open .sidebar { transform:translateX(0); }
  .shell.menu-open .mobile-overlay { display:block; position:fixed; inset:0; background:#23221f66; z-index:29; }
  .topbar { gap:10px; }
  .mobile-menu { display:inline-flex; padding:7px; margin-left:-5px; }
  .breadcrumb { font-size:12px; }
  .topbar-right { gap:10px; }
  .page-heading { margin-bottom:24px; }
  .page-heading p { margin-top:9px; }
  .eyebrow { font-size:10px; letter-spacing:1.5px; }
  .stat { padding:18px 15px!important; border-right:0; }
  .stat:nth-child(odd) { border-right:1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .work-row { gap:12px; padding:15px 0; }
  .work-row-title h3 { font-size:13px; }
  .work-row-title p { font-size:11px; }
  .work-row>.link { font-size:12px; }
  .work-grid { grid-template-columns:1fr; gap:20px; }
  .card-preview { height:265px; }
  .card-preview iframe { min-height:265px; }
  .toolbar { align-items:stretch; }
  .tabs { max-width:100%; overflow:auto; }
  .tab { font-size:12px; padding:6px 10px; flex-shrink:0; }
  .search-field { margin-left:0; width:100%; }
  .panel { padding:20px; }
  .form-footer { flex-wrap:wrap; }
  .form-footer .btn { flex:1; }
  .guide { font-size:12px; }
  .note-box { font-size:12px; padding:13px; gap:8px; }
  .note-box>svg { width:18px; }
  .section { margin-top:25px; }
  .table-wrap { margin-left:0; width:100%; }
  th, td { padding:13px 14px; }
  .db-card { padding:14px; }
  .db-card strong { font-size:20px; }
  .db-card span { font-size:11px; }
  .db-card b { font-size:22px; }
  .dialog-header h2 { font-size:22px; }
  .login-page { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
  .login-editorial { padding:30px; }
  .login-title { line-height:1.4; margin:20px 0 10px; letter-spacing:3px; }
  .editorial-art, .login-foot { display:none; }
  .login-form-side { padding:35px 27px 45px; align-items:flex-start; }
  .login-form { max-width:430px; }
  .login-form h2 { font-size:28px; }
  .login-form>p { margin-bottom:25px; }
}
.topbar .mobile-menu { display:none; }
@media(prefers-reduced-motion:reduce) {
  *, *:before, *:after { transition:none!important; scroll-behavior:auto!important; }
}
:root { --accent:#a45d46; --line:#ded9ce; --paper:#f8f6f1; --panel:#fffefa; }
.assistant-shell { grid-template-columns:238px minmax(0,1fr); }
.assistant-shell .sidebar { padding:24px 12px 10px; }
.brand-name { font:23px/1 var(--serif); letter-spacing:-.7px; }
.brand-mark { border-radius:9px; width:35px; height:35px; flex-shrink:0; }
.brand-mark>svg { display:block; width:24px; height:24px; stroke-width:1.6; }
.brand { gap:10px; }
#navigation { margin-top:29px; overflow-y:auto; scrollbar-width:thin; flex:1; min-height:0; padding-right:3px; }
.nav-item { font-size:13px; margin:3px 0; padding:11px 12px; min-height:42px; gap:10px; }
.nav-folder-toggle { width:100%; border:0; background:none; text-align:left; }
.nav-folder-toggle span:nth-child(2) { flex:1; }
.nav-chevron { font-size:16px; color:var(--theme-muted,#9a9283); }
.nav-folder.open .nav-chevron { transform:rotate(180deg); }
.nav-children { display:none; border-left:1px solid var(--theme-line,#d6cfc0); margin:0 0 9px 21px; padding:2px 0 3px 10px; }
.nav-folder.open .nav-children { display:block; }
.nav-child { font-size:12px; color:var(--theme-text,#7a7265); padding:9px 10px; display:flex; align-items:center; justify-content:flex-start; gap:9px; margin:1px 0; border-radius:3px; line-height:1.5; }
.nav-child small { font-size:11px; color:var(--theme-muted,#9d8e77); }
.nav-child:hover { background:var(--theme-inset,#e6e0d4); }
.nav-item.active, .nav-child.active { color:var(--ink); background:var(--theme-inset,#e5e1d7); font-weight:500; }
.sidebar-bottom { padding:14px 0 20px; flex-shrink:0; }
.topbar-balance { font:18px var(--serif); color:var(--accent); padding-left:17px; border-left:1px solid var(--line); }
.page-heading { margin-bottom:28px; align-items:center; }
.page-heading h1 { font-size:34px; }
.page-heading p { font-size:13px; margin-top:9px; }
.eyebrow { font-size:10px; margin-bottom:8px; letter-spacing:1.7px; }
.muted { color:var(--muted); }
.small { font-size:12px; }
.accent { color:var(--accent); }
.metric { padding:0 23px; border-right:1px solid var(--line); min-width:0; }
.metric:last-child { border:0; }
.metric>span { font-size:12px; color:var(--muted); display:block; }
.metric>strong { font:35px/1.25 var(--serif); display:block; margin:9px 0 5px; letter-spacing:-.6px; overflow-wrap:anywhere; }
.metric>small { font-size:10px; color:var(--theme-muted,#958c7c); line-height:1.7; }
.overview-secondary { flex-wrap:wrap; color:var(--muted); }
.overview-secondary strong { color:var(--ink); font-weight:500; }
.overview-columns { align-items:stretch; display:grid; }
.overview-columns h2 { font-size:21px; }
.sales-chart { width:100%; display:block; max-height:205px; }
.chart-foot { padding-top:15px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--muted); }
.chart-foot b { font-weight:500; color:var(--ink); margin-left:6px; }
.sale-row { display:flex; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--theme-line,#e8e2d8); }
.sale-row:last-child { border-bottom:0; }
.sale-row strong { font-weight:500; display:block; overflow-wrap:anywhere; }
.sale-row small { display:block; color:var(--muted); margin-top:7px; }
.sale-row>b { font:17px var(--serif); white-space:nowrap; }
.recent-sales .empty { padding:36px 10px; }
.recent-sales .empty h3 { font-size:20px; }
.recent-sales .empty p { font-size:12px; }
.preview-loading { display:grid; place-items:center; height:100%; color:var(--theme-muted,#a89b83); }
.toolbar .tabs { overflow-x:auto; max-width:100%; }
.tabs a.tab { display:block; white-space:nowrap; }
.tab { font-size:12px; }
.toolbar { gap:13px; }
.badge.blocked, .badge.deleted { background:var(--theme-danger-fill,#f1ddd7); color:var(--theme-danger-text,#9d4135); }
.badge.removed { background:var(--theme-inset,#e9e5de); color:var(--theme-text,#7e776b); }
.work-portrait { min-width:0; }
.work-portrait img.cover { width:100%; }
.work-portrait .link { font-size:11px; }
.original-warning { border:1px solid var(--theme-danger-line,#dbb4aa); border-left:3px solid var(--theme-danger-line,#b64635); color:var(--theme-danger-text,#a63e31); background:var(--theme-danger-fill,#faece7); padding:15px 19px; border-radius:3px; margin-bottom:12px; font-size:13px; line-height:1.9; }
.original-warning strong { font-size:14px; }
.original-warning p { margin:4px 0 0; }
.upload-steps { display:flex; align-items:center; justify-content:center; gap:14px; padding:24px 0; font-size:12px; color:var(--theme-muted,#b2a99a); }
.upload-steps .active { color:var(--accent); font-weight:500; }
.upload-steps .done { color:var(--green); }
.upload-steps i { width:60px; height:1px; background:var(--theme-inset-strong,#d9d0bf); }
.selected-resource { display:flex; align-items:center; gap:13px; background:var(--theme-inset,#f0ece2); padding:17px; margin-bottom:24px; border:1px solid var(--theme-line,#e0d7c6); }
.selected-resource>div { flex:1; min-width:0; }
.selected-resource strong { font-size:13px; font-weight:500; display:block; overflow-wrap:anywhere; }
.selected-resource small { font-size:11px; display:block; margin-top:5px; color:var(--muted); }
.file-select { position:relative; display:inline-flex; overflow:hidden; }
.file-select input { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; font-size:0; }
.upload-layout .guide h3 { font-size:22px; }
.query-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; margin-bottom:22px; }
.query-bar>.btn { min-width:104px; min-height:44px; padding:10px 22px; border-radius:999px; }
.query-bar>input { min-width:0; }
#customer-form { grid-template-columns:minmax(0,1fr) 150px auto; }
#customer-form>.select-control { width:100%; max-width:none; }
.customer-query-panel { padding:20px; }
.customer-query-panel .section-head { margin-bottom:16px; }
.customer-query-panel #customer-form:last-child { margin-bottom:0; }
.deletion-notice { margin:0; padding:14px 18px; border-radius:12px; color:var(--theme-success-text,#397b58); background:var(--theme-success-fill,#eef6ef); font-size:13px; line-height:1.8; }
#customer-form>.btn { min-width:88px; padding-inline:16px; }
.query-bar>input { width:100%; padding:12px 15px; border:1px solid var(--line); border-radius:999px; background:var(--panel); font-size:13px; min-width:0; }
.credit { color:var(--ledger-credit,#268653); }
.debit { color:var(--ledger-debit,#cf4b42); }
.balance-cell { color:var(--accent); font:18px var(--serif); }
.wrap-cell { white-space:normal; min-width:200px; max-width:400px; line-height:1.8; overflow-wrap:anywhere; }
.inline-actions { display:flex; gap:14px; align-items:center; }
.action-menu { font-size:12px; }
.action-menu>summary { list-style:none; cursor:pointer; color:var(--accent); white-space:nowrap; }
.action-menu>summary::-webkit-details-marker { display:none; }
.action-menu>div { position:absolute; right:0; top:calc(100% + 8px); min-width:150px; z-index:9; background:var(--panel); border:1px solid var(--theme-line,#d8cdbb); padding:5px; }
.action-menu>div>a, .action-menu>div>button { display:block; text-align:left; padding:11px 13px; width:100%; border:0; background:none; font-size:12px; color:var(--ink); }
.action-menu>div>a:hover, .action-menu>div>button:hover { background:var(--theme-inset,#eee7dc); }
.danger-text { color:var(--theme-danger-text,#a33e32)!important; }
.recharge-recipient { flex-direction:column; overflow-wrap:anywhere; }
.recharge-recipient>span, .recharge-recipient>small, .recharge-recipient>code { font-size:12px; color:var(--muted); }
.recharge-recipient>b { margin-top:6px; }
.confirm-check { display:flex; gap:9px; align-items:flex-start; font-size:12px; line-height:1.7; margin:20px 0; }
.confirm-check input { accent-color:var(--accent); width:15px; height:15px; }
.confirmation-totals { display:flex; flex-direction:column; gap:13px; font-size:13px; padding:15px 0; }
.confirmation-totals>span { display:flex; justify-content:space-between; border-bottom:1px solid var(--line); padding-bottom:12px; }
.confirmation-totals b { font-weight:500; }
.confirmation-totals strong { font:23px var(--serif); color:var(--accent); }
.palette-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; }
.palette-heading h3 { font:550 14px var(--sans); margin:0; }
.palette-grid { border:1px solid var(--line); border-radius:14px; overflow:hidden; margin-bottom:18px; }
.palette-row { display:grid; grid-template-columns:136px repeat(2,minmax(0,1fr)); gap:14px; padding:7px 13px; align-items:center; border-bottom:1px solid var(--line); font-size:12px; }
.palette-row:last-child { border-bottom:0; }
.palette-row strong { font-weight:400; color:var(--muted); }
.palette-labels { background:var(--theme-inset,#eeeae0); color:var(--muted); font-size:11px; padding-top:9px; padding-bottom:9px; }
.palette-control { display:flex; gap:8px; align-items:center; min-width:0; }
.palette-control input[data-palette-value] { width:100%; min-width:0; min-height:32px; height:32px; padding:5px 10px; border:1px solid var(--field-border); border-radius:999px; background:var(--field-surface); color:var(--ink); font:12px ui-monospace,SFMono-Regular,monospace; box-shadow:none; }
.color-trigger { display:block; width:25px; height:25px; flex-shrink:0; padding:0; border:1px solid var(--line); border-radius:7px; background:var(--swatch); box-shadow:none; cursor:pointer; }

.color-trigger:focus-visible { outline:2px solid var(--theme-focus,#aa9a8b); outline-offset:2px; }
@media(min-width:1600px) {
  .content { padding-top:43px; }
}
@media(max-width:1120px) {
  .assistant-shell { grid-template-columns:218px minmax(0,1fr); }
  .topbar { padding:0 26px; }
  .content { padding:30px 26px; }
  .overview-columns { grid-template-columns:1fr; }
  .metric { padding:0 16px; }
  .metric>strong { font-size:29px; }
  .table-wrap { max-width:100%; }
}
@media(max-width:900px) {
  .assistant-shell { grid-template-columns:200px minmax(0,1fr); }
  .assistant-shell .sidebar { padding:22px 12px 10px; }
  .brand-name { font-size:20px; }
  .brand-mark { width:30px; height:32px; }
  .nav-item { font-size:12px; padding:10px; }
  .nav-child { font-size:11px; }
  .content { padding:28px 22px; }
  .metric { padding:18px 20px; border:0; }
  .metric:nth-child(odd) { border-right:1px solid var(--line); }
  .metric:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .topbar-right { gap:13px; }
  .topbar-balance { font-size:16px; padding-left:12px; }
}
@media(max-width:680px) {
  .assistant-shell { display:block; }
  .assistant-shell .sidebar { width:250px; padding:20px 12px 8px; background:var(--paper); }
  .brand-name { font-size:23px; }
  .brand-mark { width:35px; height:35px; }
  .nav-item { font-size:13px; padding:11px 12px; }
  .nav-child { font-size:12px; }
  .topbar { height:60px; padding:0 17px; }
  .topbar-balance { font-size:17px; border:0; padding:0; }
  .page-heading { align-items:flex-start; gap:13px; }
  .page-heading h1 { font-size:30px; overflow-wrap:anywhere; }
  .page-heading p { font-size:12px; }
  .metric>small { font-size:10px; }
  .overview-columns { gap:18px; }
  .overview-columns .panel { padding:20px 17px; }
  .section-head h2, .overview-columns h2 { font-size:21px; }
  .original-warning { padding:13px 14px; font-size:12px; }
  .original-warning strong { font-size:13px; }
  .upload-layout { gap:18px; }
  .upload-steps { font-size:11px; padding:21px 0; }
  .query-bar { gap:8px; }
  .query-bar>.btn { min-width:96px; min-height:42px; padding:10px 20px; font-size:13px; }
  #customer-form { gap:8px; }
  #customer-form>.btn { min-width:80px; padding-inline:12px; font-size:12px; }
  .query-bar>input { font-size:13px; }
  .palette-heading { flex-wrap:wrap; gap:0; margin-bottom:14px; }
  .palette-heading h3 { margin-bottom:8px; }
  .palette-heading>span { display:block; }
  .palette-row { padding:7px 9px; gap:7px; font-size:11px; grid-template-columns:74px repeat(2,minmax(0,1fr)); }
  .palette-control { gap:5px; }
  .palette-control input[data-palette-value] { font-size:11px; padding:5px 7px; }
  .color-trigger { width:24px; height:26px; }
  .login-title { font-size:37px; }
  .login-form-side { padding-top:36px; }
  .recharge-recipient>strong { font-size:21px; }
  .inline-actions { gap:11px; }
  .topbar .mobile-menu { display:inline-flex; }
  .toolbar { gap:12px; }
  .toolbar .tabs { width:100%; }
  .tabs a.tab { font-size:11px; padding:7px 10px; }
  .selected-resource { padding:13px; gap:10px; }
  .selected-resource .link { font-size:11px; }
}
.btn, input:not([type="checkbox"]):not([type="color"]), select, textarea, .query-bar input { border-radius:var(--control-radius); }
.field input, .field select, .field textarea { padding:12px 14px; transition:border-color .15s,box-shadow .15s; }
.panel, .table-wrap, .error-panel, .original-warning { border-radius:var(--panel-radius); }
.tabs { border-radius:13px; padding:5px; }
.tabs .tab { border-radius:9px; }
.nav-item, .nav-child { border-radius:12px; }
.action-menu>div { border-radius:14px; box-shadow:0 8px 28px #352b181a; }
.action-menu>div>button, .action-menu>div>a { border-radius:9px; }
.note-box, .rejection, .selected-resource, .recharge-recipient, .guide pre { border-radius:13px; }
.drop-zone { border-radius:18px; }
.db-card { border-radius:14px; }
.form-footer .btn { min-height:42px; }
:focus-visible { outline:2px solid var(--theme-focus,#8c877c); outline-offset:2px; }
input:focus, textarea:focus, select:focus, input:focus-visible, textarea:focus-visible, select:focus-visible { outline:none; border-color:var(--theme-line,#a9a398); box-shadow:0 0 0 2px #77706412; }
.btn:focus-visible, .tab:focus-visible { outline:2px solid var(--theme-focus,#8c877c); outline-offset:2px; }
.search-field:focus-within { outline:none; box-shadow:none; border-color:var(--theme-line,#a9a398); }
.content-preview { position:relative; width:100%; min-width:0; overflow:hidden; margin:auto; background:transparent; border:0; border-radius:0; box-shadow:none; }
.content-preview>iframe { position:absolute; left:50%; top:0; margin-left:calc(var(--preview-width,375px) / -2); display:block; border:0; transform-origin:top left; background:transparent; }
.preview-mini { pointer-events:none; }
.preview-detail { max-width:375px; margin:0 auto 12px; overflow:hidden; }
.work-portrait { width:100%; max-width:none; text-align:center; }
.work-portrait img.cover { max-width:360px; max-height:480px; height:auto; object-fit:contain; }
.portrait-cover { max-height:180px; object-fit:contain; }
.bubble-content { margin:auto; }
.bubble-content.dark { border-radius:15px; }
.bubble-series { display:flex; flex-direction:column; gap:0; margin-bottom:14px; }
.bubble-art { display:flex; justify-content:flex-start; line-height:0; }
.bubble-art.bubble-right { justify-content:flex-end; }
.bubble-art img { display:block; height:auto; }
.bubble-singles { border-top:1px solid #c5bca533; }
.preview-mini .bubble-series { margin-bottom:7px; }
.license-table table { border-radius:19px; }
.license-table .action-menu>div { right:0; z-index:20; min-width:155px; }
@media(max-width:900px) {
  .work-portrait { max-width:375px; margin:auto; }
}
@media(max-width:680px) {
  .btn { padding:10px 14px; }
  .license-table { overflow-x:auto; overflow-y:visible; padding-bottom:120px; margin-bottom:-100px; }
  .work-portrait { max-width:100%; }
  .content-preview>iframe { max-width:none; }
}
@media(prefers-reduced-motion:reduce) {
  .field input, .field select, .field textarea { transition:none; }
}
.bubble-content { display:grid; grid-template-columns:1fr 1fr; gap:12px 22px; max-width:340px; padding:14px; background:#dedbd3; border-radius:15px; }
.bubble-content.dark { background:#272a28; }
.bubble-series { margin:0; }
.bubble-art img { width:132px; max-width:100%; max-height:none; object-fit:contain; }
.bubble-singles { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:22px; padding-top:12px; }
.preview-mini .bubble-content { max-width:230px; }
.btn, .icon-btn, .field input, .field select, .field textarea, .query-bar input, .search-field { border-radius: var(--control-radius); corner-shape: superellipse(1.6); }
.panel, .db-card { border-radius: var(--panel-radius); corner-shape: superellipse(1.6); }
.btn { border-color: var(--theme-line,#ded8cc); background: var(--theme-surface,#fffefb); }
.btn:hover { background: var(--theme-inset,#f0ede6); border-color: var(--theme-line,#cbc2b3); }
.btn:active { transform: translateY(1px); }
.btn.primary { color: #fffaf6; }
.btn.quiet { background: var(--theme-surface,#f4f1e9); border-color: transparent; box-shadow: none; }
.btn:disabled { opacity: .5; }
.icon-btn { border-radius: 16px; min-width: 36px; min-height: 36px; }
.icon-btn:hover { background: var(--theme-inset,#ece7dc); }
.field > span { font-size: 12px; margin-bottom: 10px; color: var(--theme-text,#686154); }
.field input, .field select, .field textarea, .query-bar > input { border: 1px solid var(--field-border); background-color: var(--field-surface); padding: 15px 18px; color: var(--ink); font-size: 14px; line-height: 1.5; box-shadow: inset 0 1px 3px #352b1803; min-height: 50px; }
.field textarea { padding: 18px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--theme-muted,#aaa397); opacity: 1; }
.field select { padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover, .query-bar > input:hover { border-color: var(--theme-line,#c5bcad); }
.field input:focus, .field select:focus, .field textarea:focus, .query-bar > input:focus { outline: none; border-color: var(--theme-line,#a19b90); background-color: var(--theme-surface,#fffefa); box-shadow: 0 0 0 3px #7a705611; }
input[type="file"] { border-radius: 20px; font-size: 12px; }
input[type="file"]::file-selector-button { border: 0; border-radius: 13px; padding: 8px 12px; margin-right: 12px; background: var(--theme-inset,#ece7dc); color: var(--theme-text,#645a49); cursor: pointer; }
.search-field { border: 1px solid var(--theme-line,#dfdacd); padding: 0 15px; background: var(--theme-surface,#fcfbf7); box-shadow: inset 0 1px 3px #352b1803; }
.search-field:focus-within { border-color: var(--theme-line,#a19b90); background: var(--theme-surface,#fffefa); box-shadow: 0 0 0 3px #7a705611; }
.search-field input { min-width: 0; padding: 10px 0; background: transparent; border: 0; border-radius: 0; outline: none; box-shadow: none !important; }
.tabs, .toolbar .tabs { border: 0; border-radius: 999px; corner-shape: round; background: var(--theme-inset,#eeebe4); box-shadow: inset 0 1px 3px #33281704; align-items: center; }
.tabs a.tab, .tabs .tab { border: 0; border-radius: 999px; corner-shape: round; color: var(--theme-muted,#8b8478); line-height: 1.4; }
.tabs .tab.active { background: var(--theme-inset,#fffefa); color: var(--theme-text,#4a4237); box-shadow: 0 2px 6px #30200c0d; }
.tabs .tab:hover { color: var(--theme-text,#4a4237); }
.panel { box-shadow: var(--soft-shadow); border-color: var(--theme-line,#e5dfd3); }
.action-menu > div { border-radius: 22px; corner-shape: superellipse(1.6); padding: 7px; border-color: var(--theme-line,#e4ddd0); box-shadow: 0 8px 35px #3a2d171c; }
.action-menu > div > button, .action-menu > div > a { border-radius: 14px; min-height: 40px; }
.original-warning, .note-box, .rejection, .selected-resource, .recharge-recipient, .drop-zone, .guide pre { border-radius: 23px; corner-shape: superellipse(1.6); }
dialog { border-color: var(--theme-line,#e3dccf); padding: 0; }
.form-footer { border-top-color:var(--theme-line,#e6dfd2); }
.form-footer .btn { min-width: 100px; }
.small-note { line-height: 1.8; font-size: 12px; color: var(--theme-muted,#928879); }
.back-link { display: inline-flex; align-items: center; color: var(--theme-muted,#948978); font-size: 12px; margin-bottom: 13px; padding: 4px 0; }
.work-hero { display: grid; align-items: start; }
.work-identity { min-width: 0; }
.work-primary-actions { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.work-primary-actions>.btn { min-width:0; min-height:36px; padding:8px 14px; font-size:12px; justify-content:center; color:#fff; background:var(--theme-accent-fill,#a16e56); border-color:var(--theme-accent-fill,#a16e56); box-shadow:none; }
.work-primary-actions>.btn:hover {filter:brightness(.95); }
.work-primary-actions>.btn>svg { width:14px; height:14px; }
.subpackage-panel { padding:18px 20px; }
.subpackage-panel .section-head { align-items:center; gap:12px; margin-bottom:12px; }
.subpackage-panel h2 { display:flex; align-items:center; gap:8px; font:500 16px/24px var(--sans); }
.subpackage-panel h2 small { padding:2px 6px; border-radius:8px; background:var(--theme-inset,#f0ece3); color:var(--muted); font:12px/20px var(--sans); }
.subpackage-panel .section-head>.btn { min-width:110px; min-height:34px; padding:6px 16px; }
.subpackage-table { overflow-x:auto; }
.subpackage-table table { min-width:480px; width:100%; }
.subpackage-table th,.subpackage-table td { white-space:nowrap; }
.subpackage-table th:last-child,.subpackage-table td:last-child { width:1%; }
.subpackage-actions { display:flex; align-items:center; flex-shrink:0; gap:8px; }
.subpackage-actions>.btn.small { min-width:72px; min-height:34px; padding:6px 14px; border-radius:999px; }
.work-workflow { display: flex; flex-wrap: wrap; }
.work-preview-panel > summary { display: flex; justify-content: space-between; align-items: center; color: var(--theme-muted,#978b7a); cursor: pointer; font-size: 11px; list-style: none; }
.work-preview-panel > summary::-webkit-details-marker { display: none; }
.work-preview-panel .work-portrait { padding-top: 15px; }
.work-preview-panel .bubble-content.dark { background: #272a28; }
.work-preview-panel .theme-switch { border: 0; box-shadow: none; margin: 10px auto 0; }
.work-preview-panel .content-preview { margin-bottom: 0; }
.batch-modal-work { display: flex; align-items: center; gap: 14px; background: var(--theme-inset,#eee9de); corner-shape: superellipse(1.6); }
.batch-modal-work > span { color: var(--theme-muted,#aa9473); }
.batch-modal-work strong { display: block; overflow-wrap: anywhere; }
.batch-modal-work small { font: 11px monospace; color: var(--theme-muted,#9b8b72); margin-top: 7px; }
.confirmation-work-list { max-height: 220px; overflow: auto; margin-bottom: 20px; }
.confirmation-work-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--theme-line,#e7e0d3); font-size: 13px; }
.confirmation-work-list small { color: var(--theme-muted,#a2947d); font-size: 11px; flex-shrink: 0; }
@media (min-width: 1500px) {
  .work-hero { grid-template-columns: minmax(0, 1fr) 330px; gap: 48px; padding: 34px; }
}
@media (max-width: 1100px) {
  .work-hero { gap: 25px; grid-template-columns: minmax(0, 1fr) 245px; padding: 24px; }
}
@media (max-width: 900px) {
  .work-preview-panel .work-portrait { margin: 0 auto; }
  .work-preview-panel { padding: 16px 22px; }
}
@media (max-width: 680px) {
  :root { --control-radius: 23px; --panel-radius: 28px; }
  .page-heading h1 { font-size: 29px; }
  .page-heading { margin-bottom: 24px; }
  .field input, .field select, .field textarea, .query-bar > input { font-size: 16px; }
  .search-field input { font-size: 14px; }
  .btn { min-height: 46px; border-radius: 22px; padding: 12px 17px; }
  .btn.small { border-radius: 17px; min-height: 37px; }
  dialog { border-radius: 32px; max-height: calc(100dvh - 28px); }
  .dialog-header { padding: 23px 23px 19px; }
  .dialog-header h2 { font-size: 24px; }
  .dialog-body { padding: 4px 23px 24px; }
  .dialog-body .field textarea { min-height: 185px; }
  .form-footer { gap: 11px; }
  .work-preview-panel { padding: 14px 16px; }
  .work-preview-panel .work-portrait { padding-top: 13px; }
  .batch-modal-work { padding: 17px; }
  .batch-modal-work strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
.search-field { display: flex; align-items: center; gap: 9px; }
.search-field > svg { display:block; position:static; flex:0 0 16px; width:16px; height:16px; margin:0; align-self:center; transform:none; color:var(--muted); }
.search-field > input { flex: 1; width: 100%; }
.btn, .btn.small, .field input:not([type="file"]), .field select, .query-bar > input, .search-field, .select-trigger { border-radius: 999px; corner-shape: round; }
.field input, .field select, .query-bar > input { min-height: 44px; padding: 12px 17px; font-size: 13px; }
.field textarea { corner-shape: round; font-size: 13px; }
.search-field { min-height: 40px; }
.search-field input { min-height: 38px; font-size: 12px; }
.panel, .table-wrap, .db-card { corner-shape: round; box-shadow: none; }
.badge { padding: 4px 7px; border-radius: 8px; corner-shape: round; font-size: 10px; font-weight: 400; }
.content { max-width: 1320px; padding-top: 25px; }
input[type="checkbox"] { color-scheme:light; accent-color:var(--theme-accent-fill,#a16e56); }
#main:focus { outline:none; }
.code-record-toolbar { display:flex; flex-wrap:nowrap; align-items:center; gap:10px; min-width:0; overflow-x:auto; scrollbar-width:none; padding:2px 0; }
.code-record-toolbar::-webkit-scrollbar { display:none; }
.code-primary-row,.code-search-row { display:contents; }
.code-primary-row>.select-control { flex:0 0 124px; width:124px; max-width:124px; }
.code-search-row>.select-control { flex:0 0 136px; width:136px; max-width:136px; }
.code-record-toolbar .select-trigger { height:40px; min-height:40px; padding:6px 10px 6px 12px; gap:4px; font-size:12px; }
.code-record-toolbar .tabs { flex:0 0 auto; width:max-content; height:40px; min-height:40px; padding:3px; }
.code-record-toolbar .tab { min-width:0; padding:6px 11px; font-size:12px; }
.code-record-toolbar .search-field { flex:1 1 180px; width:auto; min-width:140px; max-width:300px; height:40px; min-height:40px; margin:0; padding:0 12px; }
.code-record-toolbar .search-field input { width:100%; min-width:0; height:100%; min-height:0; margin:0; padding:0; line-height:20px; font-size:12px; }
.code-page-actions { display:flex; align-items:center; flex:0 0 auto; gap:8px; margin-left:auto; }
.code-page-actions>.btn { height:40px; min-height:40px; min-width:96px; padding:8px 14px; line-height:20px; font-size:12px; }
.search-action-toolbar { display:flex; align-items:center; gap:8px; flex:1 1 280px; min-width:0; }
.search-action-toolbar>.search-field { flex:1; min-width:0; }
.toolbar-actions { display:flex; flex:0 0 auto; gap:7px; white-space:nowrap; }
.batch-management { padding:0; overflow:hidden; }
.batch-management-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--line); }
.batch-management-heading h2 { margin:0; font-size:17px; white-space:nowrap; }
.batch-user { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; width:340px; max-width:100%; margin:0; }
.batch-user input { min-width:0; width:100%; min-height:40px; padding:9px 14px; border:1px solid var(--field-border); border-radius:999px; background:var(--field-surface); color:var(--ink); font-size:16px; }
.batch-user input:focus { outline:2px solid var(--theme-focus,#a59782); outline-offset:2px; }
.batch-user .btn { min-width:64px; min-height:40px; }
.batch-user .form-error { grid-column:1/-1; margin:0; }
.batch-management .form-error:empty { display:none; }
.batch-notice { margin:14px 20px; padding:12px 14px; border-radius:12px; background:var(--theme-warning-fill,#fbf4e9); color:var(--theme-warning-text,#a16e56); font-size:13px; line-height:20px; }
.batch-management-tools { padding:0 20px; }
.batch-filter-row { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:10px; align-items:center; margin-bottom:12px; }
.batch-filter-row>.search-field { width:100%; margin:0; }
.batch-filter-row>.select-control { width:100%; max-width:none; }
.batch-management-tools .search-field input { min-height:38px; font-size:14px; }
.batch-selection-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:12px; background:var(--theme-inset,#f2f0e9); }
.batch-select-all { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); cursor:pointer; }
.batch-management input[type="checkbox"] { width:16px; height:16px; min-height:0; margin:0; padding:0; cursor:pointer; }
.batch-selection-bar .btn { min-height:34px; padding:7px 14px; font-size:12px; }
.batch-table-wrap { margin:10px 20px 14px; border:0; border-radius:0; }
.batch-table { min-width:650px; table-layout:auto; }
.batch-table td,.batch-table th { height:46px; padding:10px 13px; border-bottom:1px solid var(--line); font-size:12px; white-space:nowrap; }
.batch-table th { height:34px; background:transparent; color:var(--muted); font-weight:500; }
.batch-table .batch-check-col { width:32px; }
.batch-table-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--theme-inset,#efece3); color:var(--muted); overflow:hidden; }
.batch-table-icon img { width:100%; height:100%; object-fit:cover; }
.batch-management #multi-work-form>.form-error { margin:0 20px 14px; }
.page-actions { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 18px; }
.page-actions:empty { display: none; }
.topbar { border-bottom-color:var(--theme-line,#e6e1d7); }
.breadcrumb { flex: 1; min-width: 0; font-size: 15px; color: var(--theme-text,#60594d); }
.breadcrumb b { display: block; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.topbar .topbar-balance { display: none; }
.topbar .topbar-date { display: block; font: 11px/1.7 var(--sans); color: var(--theme-muted,#a19889); white-space: nowrap; font-variant-numeric: tabular-nums; }
.topbar-right { gap: 20px; }
.brand-name { font-size: 22px; }
.tabs, .toolbar .tabs { min-height: 39px; padding: 4px; gap: 2px; }
.tabs a.tab, .tabs .tab { font-size: 11px; padding: 8px 13px; }
.toolbar { margin-bottom: 18px; align-items: center; }
.toolbar .search-field { width: 220px; }
.quiet-empty { color: var(--theme-muted,#b2a99a); text-align: center; padding: 45px 10px; font-size: 12px; }
.empty { padding: 34px 18px; }
.empty > svg { display: none; }
.empty h3 { font: 14px var(--sans); font-weight: 400; color: var(--theme-muted,#a29888); margin: 0; }
.empty p { font-size: 11px; color: var(--theme-muted,#b1a797); margin: 8px 0 0; }
.records-summary { margin-top: 15px; color: var(--theme-muted,#a69b89); font-size: 10px; }
.work-hero { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 24px; max-width: 100%; border-radius: 21px; }
.work-preview-panel { order: -1; padding: 0; background: transparent; border-radius: 0; corner-shape: round; min-width: 0; align-self: start; }
.work-preview-panel .work-portrait { width: 100%; max-width: 190px; padding: 0; margin: 0; }
.work-preview-panel .content-preview { max-width: 190px; }
.work-preview-panel .bubble-content { padding: 8px; gap: 6px 13px; border-radius: 12px; background: #e4e0d6; }
.work-preview-panel .bubble-art img { width: 72px; max-height: 52px; object-fit: contain; }
.work-preview-panel .bubble-singles { gap: 13px; padding-top: 8px; }
.work-preview-panel .theme-switch { min-height: 26px; padding: 4px 9px; font-size: 9px; color: var(--theme-muted,#a59173); margin-top: 7px; background: none; }
.work-workflow { padding-top: 15px; gap: 8px; }
.work-hero .rejection { margin: 10px 0; padding: 10px 12px; border-radius: 12px; font-size: 11px; }
.section { margin-top: 18px; }
.select-control { position: relative; width: 100%; min-width: 0; }
.select-control > .select-native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.select-trigger { justify-content: space-between; width: 100%; background: var(--theme-surface,#fcfbf8); border: 1px solid var(--theme-line,#ddd7cb); color: var(--theme-text,#655b4b); font: 13px var(--sans); cursor: pointer; text-align: left; }
.select-trigger > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-trigger.placeholder { color: var(--theme-muted,#ada18e); }
.select-trigger:hover, .select-trigger[aria-expanded="true"] { border-color: var(--theme-line,#b5a88f); }
.select-trigger[aria-invalid="true"] { border-color: var(--theme-line,#b46f59); }
.select-arrow { color: var(--theme-muted,#a99a81); transition: transform .15s; }
.select-trigger[aria-expanded="true"] .select-arrow { transform: rotate(180deg); }
.select-menu { display:flex; flex-direction:column; position: fixed; margin: 0; padding: 9px; border: 1px solid var(--theme-line,#e3dbcc); border-radius: 18px; background: var(--theme-surface,#fffefb); color: var(--theme-text,#5d5343); box-shadow: 0 10px 35px #3929141c; box-sizing: border-box; z-index: 80; overflow: hidden; }
.select-menu[hidden] { display: none; }
.select-menu::backdrop { background: transparent; }
.select-menu .select-search { flex:0 0 auto; display: block; width: 100%; min-height: 35px; padding: 8px 13px; margin: 0 0 7px; background: var(--theme-surface,#f3f0e8); border: 1px solid transparent; border-radius: 999px; font: 12px var(--sans); box-sizing: border-box; outline: none; box-shadow: none; }
.select-menu .select-search:focus { border-color: var(--theme-line,#d8cdb9); outline: none; box-shadow: none; }
.select-options { flex:1 1 auto; min-height:0; max-height:218px; overflow:auto; }
.select-option { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; background: none; color: var(--theme-text,#71634f); text-align: left; font: 12px var(--sans); white-space: nowrap; cursor: pointer; }
.select-option:hover, .select-option:focus-visible { background: var(--theme-inset,#f2eee4); outline: none; }
.select-option[aria-selected="true"] { background: var(--theme-inset,#efe8da); color: var(--theme-accent-text,#865e41); }
.select-option-check { color: var(--theme-accent-text,#a17d57); font-size: 12px; }
.select-no-results { text-align: center; padding: 16px 6px; font-size: 11px; color: var(--theme-muted,#b1a18b); }
.batch-modal-work { margin-bottom: 17px; padding: 13px 16px; border-radius: 16px; }
.batch-modal-work strong { font-size: 13px; font-weight: 500; }
.batch-modal-work small { display: none; }
#batch-form textarea { min-height: 260px; }
dialog { corner-shape: round; }
.overview-period { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--theme-muted,#a1937d); margin: 2px 0 17px; }
.overview-period > .link { font-size: 11px; }
.overview-secondary { font-size: 11px; }
.overview-columns { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 18px; }
.overview-columns .section-head h2 { font: 15px var(--sans); font-weight: 500; }
.overview-columns .panel { padding: 22px; }
.overview-columns .sales-chart { margin-top: 10px; }
.sale-row strong { font-size: 12px; }
.sale-row small { font-size: 10px; }
@media (max-width: 1120px) {
  .work-hero { grid-template-columns: 170px minmax(0,1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .work-hero { grid-template-columns: 145px minmax(0,1fr); padding: 21px; gap: 23px; }
  .work-preview-panel .work-portrait { max-width: 145px; }
  .overview-columns { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .topbar-right { gap: 0; flex-shrink: 0; }
  .topbar .topbar-date { display: block; line-height: 1.7; text-align: right; }
  .breadcrumb { font-size: 13px; }
  .content { padding: 20px 16px; }
  .page-actions { margin-bottom: 15px; }
  .page-actions .btn { min-height: 33px; font-size: 11px; padding: 8px 12px; }
  .toolbar { gap: 12px; }
  .toolbar .tabs { width: 100%; min-height: 39px; }
  .tabs a.tab { font-size: 10px; padding: 8px 11px; }
  .toolbar .search-field { width: 100%; }
  .work-hero { grid-template-columns: 100px minmax(0,1fr); gap: 16px; padding: 18px 16px; }
  .work-preview-panel .work-portrait { max-width: 100px; }
  .work-preview-panel .bubble-content { padding: 5px; gap: 3px 7px; border-radius: 9px; }
  .work-preview-panel .bubble-art img { width: 38px; max-height: 30px; }
  .work-preview-panel .bubble-singles { gap: 7px; padding-top: 5px; }
  .work-preview-panel .theme-switch { font-size: 8px; min-height: 22px; padding: 3px 6px; margin-top: 5px; }
  .work-workflow { gap: 6px; padding-top: 12px; }
  .field input, .field select, .query-bar > input { font-size: 14px; min-height: 43px; }
  .field textarea { font-size: 14px; }
  .select-trigger { font-size: 13px; min-height: 43px; }
  .select-menu .select-search { font-size: 14px; }
  .select-option { font-size: 13px; padding: 12px; }
  .overview-secondary { gap: 15px; font-size: 10px; padding: 16px 0 19px; }
  .overview-columns .panel { padding: 20px 17px; }
}
@media (max-width: 350px) {
  .work-hero { grid-template-columns: 80px minmax(0,1fr); gap: 12px; padding: 15px 13px; }
  .topbar .topbar-date { max-width: 153px; font-size: 8px; }
}
.select-validation { display: block; min-height: 0; color: var(--theme-accent-text,#aa6b55); font-size: 11px; margin-top: 5px; }
.select-validation:empty { display: none; }
.select-control { max-width: 440px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { gap: 20px; padding-left: 24px; padding-right: 24px; height: 59px; min-height: 59px; }
.workspace-tabs { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 4px 1px; }
.workspace-tabs::-webkit-scrollbar { display: none; }
.workspace-tab { display: flex; align-items: center; gap: 0; min-height: 33px; max-width: 205px; border: 1px solid var(--theme-line,#e6e0d4); border-radius: 11px; background: var(--theme-inset,#f2efe8); color: var(--theme-muted,#9d927f); flex-shrink: 0; }
.workspace-tab > a { display: flex; align-items: center; gap: 7px; padding: 8px 11px; min-width: 0; font-size: 11px; }
.workspace-tab > a > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.workspace-tab > a > svg { flex-shrink: 0; }
.workspace-tab > button { display: grid; place-items: center; padding: 5px; margin-right: 5px; width: 22px; height: 24px; border: 0; border-radius: 7px; background: none; color: var(--theme-muted,#b1a48f); cursor: pointer; }
.workspace-tab > button:hover { background: var(--theme-inset-strong,#ded3be); color: var(--theme-accent-text,#705c40); }
.workspace-tab.active { background: var(--theme-accent-fill,#a16b50); border-color: var(--theme-success-line,#a16b50); color: #fffaf4; }
.workspace-tab.active > button { color: var(--theme-success-text,#e9d9c8); }
.workspace-tab.active > button:hover { background: var(--theme-accent-fill,#88563e); color: #fff; }
.topbar-right { flex-shrink: 0; }
.preview-mini .bubble-content { display: grid; height: 100%; min-height: 100%; padding: 10px; width: 100%; gap: 8px 10px; border-radius: 0; align-content: center; background: #e5e0d6; box-sizing: border-box; }
.bubble-thumbnail { display:block; width:100%; height:100%; background:#e5e0d6; }
.bubble-thumbnail.dark { background:#272a28; }
.preview-mini .bubble-series { gap: 3px; }
.preview-mini .bubble-singles { gap: 10px; padding-top: 8px; }
.work-summary-panel { display: block; padding: 0; overflow: visible; }
.work-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 22px; border-bottom: 1px solid var(--theme-line,#e9e3d7); }
.work-panel-heading h1 { font: 19px/1.4 var(--sans); font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.work-panel-heading > div { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.work-panel-heading .action-menu > summary { display: flex; align-items: center; gap: 8px; color: var(--theme-accent-text,#9b674e); }
.work-panel-heading .action-menu > summary > svg { transition: transform .15s; }
.work-panel-heading .action-menu[open] > summary > svg { transform: rotate(180deg); }
.work-panel-heading .action-menu > div { min-width: 145px; padding: 6px; border-radius: 17px; }
.work-panel-heading .action-menu > div > a, .work-panel-heading .action-menu > div > button { padding: 11px 13px; border-radius: 11px; font-size: 12px; min-height: 38px; }
.work-summary-body { display: grid; grid-template-columns: 190px minmax(0,1fr); align-items: start; gap: 28px; padding: 23px; }
.work-summary-body .work-preview-panel { order: 0; }
.work-summary-body .work-portrait { position: relative; width: 190px; max-width: 190px; padding: 0; margin: 0; }
.work-summary-body .content-preview, .work-summary-body .portrait-cover { width: 190px; height: 190px; max-height: none; border-radius: 16px; overflow: hidden; object-fit: cover; background: #eae6dc; }
.work-summary-body .bubble-content { width: 100%; height: 100%; min-height: 190px; padding: 15px; border-radius: 0; gap: 7px 15px; box-sizing: border-box; align-content: center; }
.work-summary-body .bubble-art img { width: 100%; max-height: 42px; object-fit: fill; }
.work-summary-body .bubble-series { gap: 3px; }
.work-summary-body .work-full-preview { position: absolute; inset: 0 0 auto; height: 190px; border: 0; background: transparent; border-radius: 16px; cursor: zoom-in; z-index: 2; }
.work-summary-body .theme-switch { position: relative; z-index: 3; margin-top: 8px; }
.work-data { display: grid; grid-template-columns: 69px minmax(0,1fr); align-items: center; gap: 10px 12px; font-size: 12px; margin: 0 0 20px; line-height: 1.5; }
.work-data dt { color: var(--theme-muted,#a19580); }
.work-data dd { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--theme-text,#625849); overflow-wrap: anywhere; min-width: 0; }
.work-data code { color: var(--theme-accent-text,#8f7453); font-size: 12px; }
.work-data .icon-btn { padding: 3px; min-width: 23px; min-height: 23px; }
.work-data dd a { color: var(--theme-accent-text,#95674b); }
.complete-preview { width: 100%; }
.complete-preview .content-preview { width: 100%; border-radius: 0; background: none; }
.complete-preview .bubble-content { min-height: 0; max-width: 375px; border-radius: 15px; padding: 15px; }
.complete-preview .bubble-art img { width: 100%; max-height: none; object-fit: contain; }
.work-category + .work-category { margin-top: 26px; }
.work-category-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 13px; }
.work-category-heading > h2 { font: 15px var(--sans); font-weight: 500; margin: 0; }
.work-category-heading > span { font-size: 10px; color: var(--theme-muted,#b1a28a); }
.select-arrow { font-size: 0; flex-shrink: 0; line-height: 1; transform-origin: center; }
.select-arrow svg { display: block; }
dialog.side-drawer { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 450px; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-left: 1px solid var(--theme-line,#e3dbcc); border-radius: 22px 0 0 22px; overflow: auto; box-shadow: -15px 0 50px #34230f15; }
dialog.side-drawer::backdrop { background: #302a2340; backdrop-filter: blur(3px); }
.side-drawer .dialog-header { padding: 24px; position: static; }
.side-drawer .dialog-body { padding: 0 24px 24px; height: calc(100% - 83px); box-sizing: border-box; }
.side-drawer #export-form { display: flex; flex-direction: column; min-height: 100%; }
.export-options { display: flex; gap: 9px; margin: 4px 0 23px; }
.export-options > label { display: flex; align-items: center; gap: 7px; border-radius: 999px; border: 1px solid var(--theme-line,#ded4c2); padding: 9px 12px; font-size: 11px; color: var(--theme-muted,#9b8668); cursor: pointer; }
.export-options input { width: 12px; height: 12px; min-height: 0; margin: 0; accent-color: #9e704f; }
.export-count { display: flex; align-items: center; justify-content: space-between; color: var(--theme-muted,#a29177); margin-bottom: 14px; font-size: 12px; }
.export-count > strong { font-size: 14px; color: var(--theme-accent-text,#765d40); font-weight: 500; }
.side-drawer #export-preview { border: 1px solid var(--theme-line,#e1d7c5); border-radius: 15px; padding: 15px; width: 100%; box-sizing: border-box; flex: 1; min-height: 230px; resize: none; background: var(--theme-surface,#fbf9f4); font-size: 12px; line-height: 1.9; color: var(--theme-accent-text,#8c7252); }
.side-drawer .form-footer { margin-top: 20px; justify-content: flex-end; }
@media (max-width: 1120px) {
  .work-summary-body { grid-template-columns: 170px minmax(0,1fr); gap: 24px; }
  .work-summary-body .content-preview, .work-summary-body .portrait-cover { width: 170px; max-width: 170px; height: 170px; }
  .work-summary-body .work-full-preview { height: 170px; }
  .work-summary-body .bubble-content { min-height: 170px; }
  .workspace-tab { max-width: 165px; }
  .topbar { gap: 13px; }
}
@media (max-width: 680px) {
  .topbar { height: auto; min-height: 0; flex-wrap: wrap; gap: 0; padding: 0 16px 9px; }
  .topbar .mobile-menu { height: 43px; min-height: 43px; }
  .topbar-right { margin-left: auto; min-height: 43px; display: flex; align-items: center; max-width: none; }
  .topbar .topbar-date { max-width: none; white-space: nowrap; font-size: 9px; }
  .workspace-tabs { order: 3; flex-basis: 100%; width: 100%; padding: 1px 0; gap: 6px; }
  .workspace-tab { min-height: 31px; max-width: 165px; border-radius: 10px; }
  .workspace-tab > a { padding: 7px 10px; font-size: 10px; gap: 6px; }
  .workspace-tab > button { width: 20px; height: 21px; padding: 4px; margin-right: 3px; }
  .work-panel-heading { padding: 15px 16px; gap: 10px; }
  .work-panel-heading h1 { font-size: 16px; }
  .work-panel-heading > div { gap: 7px; }
  .work-panel-heading > div > .badge { font-size: 9px; padding: 4px 6px; }
  .work-panel-heading .btn.small { min-height: 29px; padding: 6px 10px; font-size: 10px; }
  .work-summary-body { grid-template-columns: 114px minmax(0,1fr); gap: 15px; padding: 17px 15px; }
  .work-summary-body .content-preview, .work-summary-body .portrait-cover { width: 114px; max-width: 114px; height: 114px; border-radius: 12px; }
  .work-summary-body .work-full-preview { height: 114px; border-radius: 12px; }
  .work-summary-body .bubble-content { min-height: 114px; padding: 8px; gap: 4px 8px; }
  .work-summary-body .bubble-art img { max-height: 22px; }
  .work-summary-body .theme-switch { font-size: 8px; }
  .work-data { grid-template-columns: 53px minmax(0,1fr); gap: 8px 5px; font-size: 10px; margin-bottom: 15px; }
  .work-data code { font-size: 9px; }
  .work-data dd { gap: 3px; font-size: 10px; }
  .work-data .icon-btn { padding: 2px; min-width: 18px; min-height: 18px; }
  .work-data .icon-btn svg { width: 12px; height: 12px; }
  .work-category-heading { margin-bottom: 11px; }
  .work-category-heading > h2 { font-size: 14px; }
  dialog.side-drawer { width: calc(100vw - 20px); border-radius: 20px 0 0 20px; }
  .side-drawer .dialog-header { padding: 22px; }
  .side-drawer .dialog-body { padding: 0 22px 22px; }
}
@media (max-width: 350px) {
  .work-summary-body { grid-template-columns: 95px minmax(0,1fr); gap: 10px; padding: 15px 12px; }
  .work-summary-body .content-preview, .work-summary-body .portrait-cover { width: 95px; max-width: 95px; height: 95px; }
  .work-summary-body .work-full-preview { height: 95px; }
  .work-summary-body .bubble-content { min-height: 95px; padding: 5px; }
}
@media (max-width: 680px) {
  .work-summary-body .work-identity { display: contents; }
  .work-summary-body .work-preview-panel { grid-column: 1; grid-row: 1; }
  .work-summary-body .work-data { grid-column: 2; grid-row: 1; align-content: start; font-size: 11px; margin-bottom: 0; }
  .work-summary-body .work-data dd { font-size: 11px; }
  .work-summary-body .work-data code { font-size: 10px; }
  .work-summary-body .work-identity > :not(.work-data) { grid-column: 1 / -1; }
  .work-summary-body .detail-description { margin: 0; font-size: 12px; }
  .work-summary-body .work-workflow { margin-top: 0; padding-top: 14px; }
}
.badge.unused { color: var(--theme-success-text,#39845b); background: var(--theme-success-fill,#e9f4eb); border: 1px solid var(--theme-success-line,#d4e8d9); }
.code-page-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 20px; }
.code-filter-panel { border: 1px solid var(--theme-line,#e4dfd3); background: var(--theme-surface,#fffefa); }
.code-selectors { display: grid; grid-template-columns: repeat(2,minmax(0,280px)); }
.code-selectors .field { margin: 0; }
.code-selectors .field > span { color: var(--theme-muted,#9c907d); }
.code-data td { font-size: 12px; }
.code-data .code-value { white-space: nowrap; color: var(--theme-text,#544e41); }
.code-data .subtext { color: var(--theme-muted,#a39886); margin-top: 6px; font-size: 10px; }
.record-time { white-space: nowrap; font-size: 11px; }
.code-action-heading, .code-actions { text-align:left; vertical-align:middle; position: sticky; right: 0; background: var(--theme-surface,#fffefa); }
.code-action-heading { background: var(--theme-inset,#f0ede5); }
.code-actions > div { display:flex; align-items:center; justify-content:flex-start; flex-wrap:nowrap; }
.code-actions .btn.small { gap: 5px; box-shadow: none; white-space: nowrap; }
.btn.send-button { color: var(--theme-success-text,#397b58); border-color: var(--theme-success-line,#d4e6d7); background: var(--theme-success-fill,#eef6ef); }
.btn.send-button:hover { background: var(--theme-success-fill,#e0eee3); }
.btn.danger-soft { color: var(--theme-danger-text,#a75f53); border-color: var(--theme-danger-line,#ead9d2); background: var(--theme-danger-fill,#fcf5f1); }
.btn.danger-solid { background: var(--theme-accent-fill,#ad6556); border-color: var(--theme-danger-line,#ad6556); color: white; }
button.dialog-close { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--theme-muted,#8c8577); cursor: pointer; box-shadow: none; outline: none; flex-shrink: 0; }
button.dialog-close:hover { color: var(--theme-text,#51493c); background: var(--theme-inset,#e4e0d5); }
button.dialog-close:focus-visible { outline: 2px solid var(--theme-focus,#bcb4a5); }
button.dialog-close svg { width: 15px; height: 15px; stroke-width: 1.7; }
dialog:not(.side-drawer) { border-radius: 25px; border: 1px solid var(--theme-line,#e1dbcf); box-shadow: 0 22px 90px #392e2530; background: var(--theme-surface,#fffefa); }
dialog:not(.side-drawer)::backdrop { background: #312c254b; backdrop-filter: blur(4px); }
.dialog-header { border-bottom: 0; }
.dialog-header h2 { font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.compact-confirm .confirmation-message { color: var(--theme-muted,#8a8070); line-height: 1.8; overflow-wrap: anywhere; }
.compact-confirm .form-footer { border: 0; padding-top: 0; margin-top: 0; }
.compact-confirm .form-footer .btn { min-width: 84px; }
.delivery-facts { display: grid; grid-template-columns: 75px minmax(0,1fr); gap: 17px 12px; font-size: 13px; margin: 8px 0 30px; }
.delivery-facts dt { color: var(--theme-muted,#a0927c); }
.delivery-facts dd { margin: 0; overflow-wrap: anywhere; }
#toast { display: flex; align-items: center; gap: 10px; padding: 12px 13px 12px 17px; max-width: min(450px,calc(100vw - 32px)); border: 1px solid var(--theme-line,#e4ddce); border-radius: 999px; color: var(--theme-text,#5e594d); background: var(--theme-surface,#fffefa); box-shadow: 0 5px 25px #2b211b13; font-size: 12px; line-height: 1.5; box-sizing: border-box; }
#toast > span:not(.toast-symbol) { overflow-wrap: anywhere; }
.toast-symbol { color: var(--theme-muted,#9c8d75); display: flex; flex-shrink: 0; }
@media (max-width:680px) {
  .dialog-header h2 { font-size: 18px; }
  .dialog-header { padding: 20px 21px 17px; }
}
.export-options label:has(input[value="unused"]) { color: var(--theme-success-text,#498360); }
.code-page-heading { margin-bottom: 12px; gap: 12px; flex-wrap: nowrap; }
.code-filter-panel { padding: 13px 15px; margin-bottom: 12px; border-radius: 17px; }
.code-selectors { gap: 12px; }
.code-selectors .field > span { font-size: 10px; margin-bottom: 5px; }
.code-selectors .select-trigger { min-height: 34px; padding: 7px 13px; font-size: 11px; }
.code-data { border-radius: 15px; }
.code-data table { min-width: 800px; border-collapse: separate; border-spacing: 0; }
.code-data th, .code-data td { padding: 9px 12px; height: 43px; font-size: 11px; line-height: 1.3; white-space: nowrap; }
.code-data th { height: 35px; font-size: 10px; font-weight: 500; }
.code-data .code-value { font-size: 11px; }
.code-data .code-work-cell { max-width: 170px; text-overflow: ellipsis; overflow: hidden; }
.code-data .code-work-id-cell { white-space: nowrap; }
.code-data .badge { font-size: 10px; padding: 4px 7px; }
.code-data .record-time { font-size: 10px; }
.code-actions > div { gap:8px; }
dialog.compact-dialog { width: 390px; max-width: calc(100vw - 32px); border-radius: 20px; }
.compact-dialog .dialog-header { padding: 18px 20px 14px; background: transparent; }
.compact-dialog .dialog-header h2 { font-size: 16px; }
.compact-dialog .dialog-body { padding: 0 20px 19px; }
.compact-dialog .field { margin-bottom: 14px; gap: 6px; }
.compact-dialog .field > span { margin: 0; font-size: 11px; }
.compact-dialog input { min-height: 36px; height: 36px; padding: 8px 13px; font-size: 12px; }
.compact-dialog .form-footer { padding-top: 10px; margin-top: 9px; border: 0; gap: 8px; }
.compact-dialog .form-footer .btn { min-width: 72px; min-height: 32px; padding: 7px 14px; font-size: 11px; }
.compact-dialog .delivery-facts { margin: 3px 0 20px; font-size: 12px; gap: 13px 10px; grid-template-columns: 64px minmax(0,1fr); }
.compact-dialog .form-error:empty { display: none; }
.compact-dialog .form-error { margin: 5px 0 10px; }
button.dialog-close { width: 26px; height: 26px; min-height: 26px; background: var(--theme-inset,#f0eee7); }
button.dialog-close:focus-visible { outline-width: 1px; outline-offset: 2px; }
.db-card { padding: 12px 15px; min-height: 63px; }
.db-card strong { font-size: 13px; }
.db-card b { font-size: 21px; }
@media (max-width:680px) {
  .code-page-heading { display: flex; margin-bottom: 12px; gap: 8px; }
  .code-filter-panel { padding: 12px; border-radius: 16px; }
  .code-selectors { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .code-selectors > .field:only-child { grid-column: 1 / -1; }
  .code-selectors .select-trigger { padding: 7px 10px; font-size: 10px; min-height: 33px; }
  .code-selectors .select-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .code-selectors .select-arrow { width: 13px; }
  .compact-dialog .form-footer .btn { flex: 0 0 auto; }
}
#navigation a[href="#codes/all"] { color: inherit; }
#navigation a[href="#codes/all"].active { color: var(--theme-success-text,#746550); background: var(--theme-success-fill,#e9e3d7); }
.code-data .badge.unused { color: var(--theme-success-text,#39845b); background: var(--theme-success-fill,#e9f4eb); border-color: var(--theme-success-line,#d4e8d9); }
.code-data .badge.used { color: var(--theme-danger-text,#b06352); background: var(--theme-danger-fill,#faece7); border: 1px solid var(--theme-danger-line,#efd6cc); }
.compact-confirm .confirmation-message { margin: 2px 0 20px; font-size: 12px; }
#toast.top-toast { margin:0; right:auto; position: fixed; top: 18px; bottom: auto; left: 50%; transform: translate(-50%,-18px); max-width: calc(100vw - 32px); width: max-content; min-width: 130px; padding: 12px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s ease,transform .22s ease; font-size: 13px; gap: 9px; justify-content: center; }
#toast.top-toast.visible { opacity: 1; transform: translate(-50%,0); }
#toast.top-toast.success { color: var(--theme-success-text,#4b9561); background: var(--theme-success-fill,#f0f7ed); border-color: var(--theme-success-line,#d5e8cd); }
#toast.top-toast.success .toast-symbol { color: white; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--theme-accent-fill,#6da955); }
#toast.top-toast.success .toast-symbol svg { width: 12px; height: 12px; stroke-width: 2; }
.db-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.db-grid .db-card { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 14px; width: auto; min-width: 108px; min-height: 0; height: 37px; padding: 8px 12px; border-radius: 999px; box-shadow: none; }
.db-grid .db-card strong { font: 500 11px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif; }
.db-grid .db-card b { font: 500 13px -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif; margin: 0; }
@media(max-width:680px) {
  .page-heading:has(+.db-grid) { margin-bottom: 10px; }
  .db-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0 0 12px; }
  .db-grid .db-card { width: 100%; min-width: 0; height: 32px; gap: 3px; padding: 5px 7px; }
  .db-grid .db-card strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .db-grid .db-card b { font-size: 11px; flex-shrink: 0; }
  #toast.top-toast { top: 13px; }
}
.action-menu { display:inline-flex; position:relative; }
.action-menu .action-menu-trigger { display:inline-flex; align-items:center; gap:6px; min-height:32px; padding:5px 12px; line-height:20px; white-space:nowrap; }
.action-chevron { display:block; flex:none; transition:transform .16s ease; }
.action-menu-trigger[aria-expanded="true"] .action-chevron { transform:rotate(180deg); }
.action-menu-popup { position:fixed; inset:auto; margin:0; box-sizing:border-box; min-width:132px; width:max-content; max-width:calc(100vw - 16px); padding:6px; border:1px solid var(--line,var(--theme-line,#e1dcd0)); border-radius:16px; background:var(--surface,var(--theme-surface,#fffefa)); color:var(--ink,var(--theme-text,#2d2c28)); box-shadow:0 10px 32px #29251a24; overflow:auto; z-index:100; }
.action-menu-popup[hidden] { display:none!important; }
.action-menu-popup:popover-open { display:block; }
.action-menu-popup>button, .action-menu-popup>a { display:flex; align-items:center; width:100%; min-height:36px; padding:8px 12px; border:0; border-radius:10px; background:transparent; font-size:13px; line-height:20px; text-align:left; text-decoration:none; white-space:nowrap; cursor:pointer; }
.action-menu-popup>button:hover, .action-menu-popup>a:hover { background:var(--theme-inset,#efede6); }
.license-table { padding-bottom:0!important; margin-bottom:0!important; }
@media(max-width:640px) {
  .action-menu .action-menu-trigger { min-height:34px; }
  .action-menu-popup>button, .action-menu-popup>a { min-height:40px; }
}
.catalog-grid { grid-template-columns:repeat(auto-fill,minmax(190px,220px)); gap:16px; align-items:start; }
.work-card.catalog-card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--theme-line,#e2ddd2); border-radius:20px; overflow:hidden; background:var(--theme-surface,#fffefa); box-shadow:none; }
.work-card.catalog-card:hover { transform:none; border-color:var(--theme-line,#c4b69f); box-shadow:0 5px 18px #443a2510; }
.catalog-visual { position:relative; aspect-ratio:3/2; background:var(--theme-inset,#ebe7de); overflow:hidden; }
.catalog-card .catalog-preview { width:100%; height:100%; padding:0; background:transparent; }
.catalog-preview .content-preview, .catalog-preview img.cover { width:100%!important; height:100%!important; max-height:none; object-fit:contain; }
.catalog-visual>.badge { position:absolute; right:10px; top:10px; z-index:2; font-size:10px; padding:4px 7px; border:1px solid var(--theme-line,#fff9); box-shadow:0 2px 7px #332a1210; pointer-events:none; }
.catalog-copy { padding:13px 14px 14px; min-width:0; }
.catalog-title { min-width:0; }
.catalog-title>a { display:block; font-size:14px; font-weight:550; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catalog-copy>p { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:7px 0; color:var(--theme-muted,#928774); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.catalog-copy>p>span { flex-shrink:0; }
.catalog-id { display:block; font-size:11px; letter-spacing:.2px; color:var(--theme-muted,#9a8c76); margin:0 0 11px; }
.catalog-counts { display:flex; justify-content:space-between; gap:10px; padding-top:10px; border-top:1px solid var(--theme-line,#eee9df); font-size:11px; color:var(--theme-muted,#9a8e7b); }
.catalog-counts b { font-weight:500; color:var(--theme-text,#554d40); margin-left:5px; font-variant-numeric:tabular-nums; }
.catalog-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:11px; }
.catalog-actions>.btn { min-width:0; min-height:33px; padding:7px 8px; font-size:11px; line-height:17px; border-radius:999px; background:var(--theme-surface,#f5f2eb); border-color:transparent; justify-content:center; }
.catalog-actions>.btn:last-child { color:var(--theme-accent-text,#94664f); background:var(--theme-inset,#f2e8e0); }
.nav-folder-toggle .nav-chevron { display:grid; place-items:center; width:16px; height:16px; flex:0 0 16px; margin-left:auto; }
.nav-chevron>svg { display:block; width:16px; height:16px; }
.monthly-line-chart:focus-visible { outline:2px solid var(--theme-focus,#cabda8); border-radius:12px; }
.overview-columns .monthly-line-chart { margin-top:10px; }
@media(max-width:680px) {
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .catalog-copy { padding:11px; }
  .catalog-title>a { font-size:13px; }
  .catalog-copy>p { font-size:10px; gap:4px; }
  .catalog-actions { gap:6px; }
  .catalog-visual>.badge { top:8px; right:8px; font-size:9px; }
}
@media(max-width:350px) {
  .catalog-copy { padding:9px; }
  .catalog-actions>.btn { padding:7px 5px; font-size:10px; }
  .catalog-counts { font-size:10px; }
}
@media(max-width:680px) {
  .monthly-line-chart .sales-trend-line { stroke-width:2.5; }
}
:root { --control-radius:999px; --panel-radius:20px; --soft-shadow:0 2px 10px #3e342308; --field-surface:#fdfcf9; --field-border:#e0d9ce; --motion:.18s; --ease:cubic-bezier(.2,.75,.3,1); }
body { -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
button, input, select, textarea { font:inherit; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:9px 16px; line-height:20px; font-size:12px; font-weight:500; border-radius:999px; corner-shape:round; box-shadow:none; transition:background var(--motion),border-color var(--motion),box-shadow var(--motion),transform var(--motion) var(--ease); }
.btn.small { min-height:34px; padding:6px 12px; font-size:11px; border-radius:999px; }
@media(min-width:681px){.table-wrap .btn.small { flex:none; min-width:76px; height:34px; min-height:34px; padding:6px 18px; font-size:12px; line-height:20px; border-radius:999px; corner-shape:round; white-space:nowrap; }}
.btn.primary { background:var(--theme-accent-fill,#a16e56); border-color:var(--theme-line,#a16e56); box-shadow:0 2px 5px #8c5c4212; }
.btn.primary:hover { background:var(--theme-accent-fill,#916049); border-color:var(--theme-line,#916049); box-shadow:0 3px 8px #8c5c4220; }
.btn:active:not(:disabled) { transform:translateY(1px) scale(.985); }
.btn:disabled { cursor:not-allowed; transform:none; box-shadow:none; }
.btn:focus-visible, .icon-btn:focus-visible, .balance-recharge:focus-visible { outline:2px solid var(--theme-focus,#a59782); outline-offset:3px; }
.panel, .table-wrap { border-color:var(--theme-line,#e4ded3); box-shadow:0 2px 10px #3e342305; }
.panel { border-radius:20px; }
.section-head { align-items:center; gap:12px; min-height:30px; }
.section-head h2 { line-height:1.5; font-weight:550; }
.overview-secondary { display:flex; align-items:center; gap:12px 24px; padding:17px 2px 23px; line-height:22px; }
.overview-secondary>span { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.overview-secondary strong { margin:0; font-variant-numeric:tabular-nums; }
.metric-label { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:25px; }
.metric-label>span { font-size:12px; color:var(--muted); white-space:nowrap; }
.balance-recharge { white-space:nowrap; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; min-height:26px; padding:3px 11px; border:1px solid var(--theme-line,#e4d8ca); border-radius:999px; background:var(--theme-surface,#f7f1e9); color:var(--theme-accent-text,#94674e); font-size:11px; line-height:18px; cursor:pointer; transition:background var(--motion),border-color var(--motion); }
.balance-recharge:hover { background:var(--theme-inset,#eee2d5); border-color:var(--theme-line,#d8c7b5); }
.field { margin-bottom:18px; }
.field>span { font-size:12px; line-height:18px; margin-bottom:8px; color:var(--theme-text,#746b5c); }
.field input, .field select, .field textarea, .query-bar>input { min-height:44px; padding:11px 15px; line-height:20px; font-size:13px; border-radius:999px; corner-shape:round; box-shadow:none; transition:border-color var(--motion),background var(--motion),box-shadow var(--motion); }
.field textarea { border-radius:18px; min-height:120px; line-height:1.7; }
.field input:focus, .field select:focus, .field textarea:focus, .query-bar>input:focus { border-color:var(--theme-line,#baad98); box-shadow:0 0 0 3px #a99c8110; outline:none; }
input[type=number] { appearance:textfield; -moz-appearance:textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.search-field { min-height:39px; transition:border-color var(--motion),box-shadow var(--motion); }
.search-field input { min-height:37px; font-size:12px; }
.select-trigger { display:flex; align-items:center; min-height:42px; padding:10px 14px; line-height:20px; gap:10px; border-radius:999px; font-size:12px; transition:border-color var(--motion),background var(--motion),box-shadow var(--motion); }
.select-trigger>span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.select-arrow { display:grid; place-items:center; flex:0 0 16px; width:16px; height:16px; }
.select-menu, .action-menu-popup { border-color:var(--theme-line,#e3dace); border-radius:16px; box-shadow:0 6px 24px #40321b15; }
.select-menu:popover-open, .action-menu-popup:popover-open { animation:menu-arrive .14s var(--ease) both; }
.select-option { border-radius:10px; transition:background .12s; }
.nav-item, .nav-child { transition:none; }
.nav-item:hover, .nav-child:hover { background:var(--theme-inset,#e9e5db); }
.catalog-card { transition:border-color var(--motion),box-shadow var(--motion); }
.catalog-preview img.cover { transition:opacity .2s; }
.assistant-shell .table-wrap tbody tr.selected>td { background:var(--theme-inset,#f0ede5); }
@media(hover:hover) and (pointer:fine) {
 .assistant-shell .table-wrap:not(.balance-table):not(.redemption-table) tbody tr:hover>td { background:var(--theme-inset,#f0ede5); }
}
.dialog-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 22px 15px; background:transparent; }
.dialog-header h2 { font:550 18px/1.45 var(--sans); margin:0; }
.dialog-body { padding:0 22px 22px; }
dialog { width:min(460px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); border-radius:24px; box-shadow:0 20px 70px #33291c25; }
dialog.wide { width:min(860px,calc(100vw - 32px)); }
dialog::backdrop { background:#302b2348; backdrop-filter:blur(5px); }
dialog.dialog-enter { animation:dialog-arrive .2s var(--ease) backwards; }
dialog.side-drawer.dialog-enter { animation:drawer-arrive .24s var(--ease) backwards; }
.dialog-close { display:grid; place-items:center; flex:0 0 28px; min-width:28px; min-height:28px; width:28px; height:28px; padding:5px; background:var(--theme-inset,#efede7); border:0; border-radius:50%; color:var(--theme-muted,#958b7b); box-shadow:none; transition:background var(--motion),color var(--motion); }
.dialog-close>svg { width:15px; height:15px; }
.dialog-close:hover { color:var(--theme-text,#534939); background:var(--theme-inset,#e6dfd3); }
#codes-form>.field,#license-user-form>.field,#blacklist-form>.field { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:12px; }
#codes-form>.field>span,#license-user-form>.field>span,#blacklist-form>.field>span { margin:0; white-space:nowrap; }
#codes-form>.field>input,#codes-form>.field>.select-control,#license-user-form>.field>input,#blacklist-form>.field>input { min-width:0; width:100%; }
#license-user-form input[readonly] { color:var(--muted); background:var(--theme-inset,#efede7); }
.form-footer { display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-top:20px; padding-top:18px; border-top:1px solid var(--theme-line,#eee8dc); }
.work-workflow>.btn.small { min-width:80px; min-height:34px; padding:6px 18px; font-size:12px; line-height:20px; }
.form-footer>.btn { min-width:86px; flex:0 0 auto; }
.form-footer>.btn[data-action=close] { background:var(--field-surface); border:1px solid var(--field-border); box-shadow:none; color:var(--ink); }
.form-footer>.btn[data-action=close]:hover { background:var(--theme-inset,#f1ede5); color:var(--ink); }
.recharge-recipient { display:grid; grid-template-columns:1fr auto; gap:4px 12px; align-items:center; padding:13px 15px; border:1px solid var(--theme-line,#e7e0d3); background:var(--theme-surface,#f7f4ed); border-radius:16px; margin-bottom:19px; }
.recharge-recipient>strong { font:550 14px/1.5 var(--sans); }
.recharge-recipient>span { grid-column:1; font-size:11px; color:var(--theme-muted,#9a8c78); }
.recharge-recipient>small { grid-column:2; grid-row:1/3; align-self:center; font-size:11px; color:var(--theme-text,#8b7a61); }
.recharge-recipient>b { grid-column:1/-1; font:25px var(--serif); color:var(--accent); padding-top:8px; }
.amount-presets { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:-6px 0 19px; }
.amount-presets>.btn { min-width:0; padding:7px 5px; min-height:34px; font-size:12px; background:var(--theme-surface,#f8f5ee); border-color:var(--theme-line,#e8dfd0); }
.amount-presets>.btn[aria-pressed=true] { background:var(--theme-inset,#efe0d2); color:var(--theme-accent-text,#875a40); border-color:var(--theme-line,#cfb69c); }
.daily-sales { position:relative; min-width:0; margin:10px 0 0; }
.overview-columns .monthly-line-chart { display:block; width:100%; height:auto; max-height:none; margin:0; overflow:visible; touch-action:pan-y; outline-offset:4px; }
.sales-grid-line { stroke:var(--theme-line,#eee9df); stroke-width:1; stroke-dasharray:2 5; fill:none; }
.sales-axis { fill:var(--theme-muted,#a79c89); font-size:11px; font-variant-numeric:tabular-nums; }
.sales-trend-line { fill:none; stroke:#ca8059; stroke-width:2.8; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.sales-guide { stroke:var(--theme-focus,#cdb79e); stroke-width:1; stroke-dasharray:3 4; fill:none; }
.sales-single-dot { fill:#ca8059; }
.sales-active-dot { fill:var(--theme-surface,#fffefa); stroke:#c57c55; stroke-width:2.5; }
.sales-tooltip { position:absolute; z-index:3; width:176px; padding:11px 13px; border:1px solid var(--theme-line,#e7ded0); border-radius:13px; background:var(--theme-tooltip,#fffefaf5); box-shadow:0 5px 18px #48351b16; pointer-events:none; color:var(--theme-muted,#8f816c); font-size:11px; line-height:1.6; }
.sales-tooltip[hidden] { display:none; }
.sales-tooltip>strong { display:block; color:var(--theme-text,#5b5040); font-size:11px; font-weight:500; margin-bottom:4px; }
.sales-tooltip>div { display:flex; justify-content:space-between; gap:12px; font-variant-numeric:tabular-nums; }
.sales-tooltip b { font-weight:550; color:var(--theme-accent-text,#805b41); }
.sales-panel .chart-foot { padding-top:15px; margin-top:3px; border-top:1px solid var(--theme-line,#ede7db); align-items:center; font-size:11px; }
.toast { font-size:12px; line-height:20px; border-radius:13px; box-shadow:0 6px 22px #392c1920; }
@keyframes dialog-arrive {from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes drawer-arrive {from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes menu-arrive {from{opacity:0;translate:0 -3px}to{opacity:1;translate:0 0}}
@media(max-width:680px) {
  .content { padding:24px 16px; }
  .metric-label { gap:4px; min-height:25px; }
  .metric-label>span { font-size:10px; }
  .balance-recharge { font-size:10px; min-height:24px; padding:2px 8px; }
  .overview-secondary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px 10px; padding:15px 2px 21px; font-size:11px; }
  .monthly-line-chart .sales-axis { font-size:16px; }
  .sales-panel { padding:18px 16px; }
  .section-head h2 { font-size:14px; }
  .sales-panel .chart-foot { font-size:10px; padding-top:12px; }
  dialog { width:calc(100vw - 28px); max-height:calc(100dvh - 28px); border-radius:22px; }
  .dialog-header { padding:19px 18px 14px; }
  .dialog-body { padding:0 18px 20px; }
  .form-footer { gap:8px; }
  .form-footer>.btn { min-width:76px; min-height:40px; }
  .field input, .field textarea { font-size:16px; }
  .recharge-recipient { padding:12px; }
  .recharge-recipient>small { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
}

@media(max-width:360px){.overview-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.balance-recharge{font-size:9px;min-height:22px;padding:1px 5px}}

.overview-secondary.admin-overview-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:0; padding:21px 0 25px; }
.admin-overview-stats>span { display:flex; flex-direction:column; align-items:flex-start; gap:7px; padding:0 18px; border-right:1px solid var(--theme-line,#e5dfd3); white-space:normal; min-width:0; }
.admin-overview-stats>span:first-child { padding-left:2px; }
.admin-overview-stats>span:last-child { border-right:0; }
.admin-overview-stats>span>span { color:var(--theme-muted,#928774); font-size:12px; line-height:18px; }
.admin-overview-stats strong { font-size:22px; line-height:29px; font-weight:500; overflow-wrap:anywhere; }
.overview-columns>.panel { min-width:0; }
.recent-redemptions h2 { font:500 16px var(--sans); }
.recent-redemptions .table-wrap { padding:0; border:0; border-radius:0; box-shadow:none; }
.recent-redemptions table { min-width:680px; margin:0; }
.recent-redemptions th,.recent-redemptions td { white-space:nowrap; }
.recent-work-name { display:block; max-width:280px; overflow:hidden; text-overflow:ellipsis; }
.sales-panel,.recent-sales { display:flex; flex-direction:column; }
.sales-panel .chart-foot { margin-top:auto; }
.recent-sales>.quiet-empty { display:flex; flex:1; align-items:center; justify-content:center; min-height:120px; padding:24px 10px; }
.dashboard-ledger>.section-head { margin-bottom:14px; }
.dashboard-ledger h2 { font-size:16px; }
.dashboard-ledger { display:flex; flex-direction:column; min-height:440px; }
.dashboard-ledger-actions>.btn,.wallet-overview .section-head>.btn { min-width:88px; min-height:34px; padding:6px 20px; }
.dashboard-ledger-actions { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.dashboard-ledger .quiet-empty { display:grid; place-items:center; min-height:160px; flex:1; }
@media(max-width:680px) {
 .dashboard-ledger-actions { gap:9px; }
}

.balance-table { padding:0; }
.balance-table table { min-width:770px; margin:0; }
.balance-table th,.balance-table td { padding:13px 16px; white-space:nowrap; }
.balance-table td { font-size:12px; font-variant-numeric:tabular-nums; }
.balance-table td>strong { font-weight:500; }
.balance-table .subtext { font-size:10px; }
.balance-table td.credit,.balance-table td.debit { font-weight:550; }
.dashboard-ledger .balance-table { min-width:0; max-height:510px; overflow:auto; border:0; border-radius:0; box-shadow:none; }
.dashboard-ledger .balance-table th,.dashboard-ledger .balance-table td { padding:13px 10px; }
.ledger-content>span { display:block; white-space:nowrap; }
.ledger-type { display:inline-flex; align-items:center; padding:3px 8px; border-radius:8px; font-size:10px; line-height:17px; white-space:nowrap; }
.ledger-type.income { color:var(--ledger-credit,#268653); background:var(--theme-success-fill,#eaf4eb); }
.ledger-type.expense { color:var(--ledger-debit,#cf4b42); background:var(--theme-danger-fill,#faeee9); }
@media(max-width:680px){
 .overview-secondary.admin-overview-stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 0; padding:20px 0 24px; }
 .admin-overview-stats>span { padding:0 10px; gap:5px; }
 .admin-overview-stats>span:nth-child(3n) { border-right:0; }
 .admin-overview-stats>span:nth-child(3n+1) { padding-left:2px; }
 .admin-overview-stats>span>span { font-size:11px; }
 .admin-overview-stats strong { font-size:18px; line-height:24px; }
 .balance-table th,.balance-table td { padding:11px 13px; white-space:nowrap; }
 .dashboard-ledger h2 { font-size:14px; }
}

.account-panel { width:100%; border:1px solid var(--line); background:var(--paper); border-radius:18px; overflow:hidden; }
.account-profile { display:flex; align-items:center; gap:8px; padding:10px; }
.account-emblem { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--theme-inset,#e8e4d9); color:var(--theme-text,#79715f); flex-shrink:0; }
.account-identity { min-width:0; flex:1; }
.account-identity strong { display:block; font-size:12px; line-height:18px; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-identity>span { display:block; margin-top:2px; color:var(--theme-muted,#9a907f); font-size:10px; line-height:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-role { flex-shrink:0; color:var(--theme-muted,#8a7e6b); background:var(--theme-inset,#ede9df); border-radius:999px; font-size:9px; line-height:16px; padding:1px 6px; }
.account-registration { display:flex; flex-wrap:wrap; gap:0 3px; padding:0 10px 10px; color:var(--muted); font-size:10px; line-height:16px; }
.account-registration time { white-space:nowrap; font-variant-numeric:tabular-nums; }
.account-actions { display:grid; grid-template-columns:1fr 1fr; padding:5px 3px; gap:2px; border-top:1px solid var(--line); }
.account-actions button { min-height:33px; border:0; border-radius:10px; background:transparent; color:var(--theme-text,#8a7c69); font:11px var(--sans); transition:color .16s ease,background .16s ease; }
.account-actions button:hover { color:var(--theme-text,#51483b); background:var(--theme-inset,#ece7dc); }
.account-actions button:focus-visible { outline:2px solid var(--theme-focus,#b8a68b); outline-offset:-2px; }
.sale-creator { display:block; font-size:11px; line-height:18px; margin-top:4px; color:var(--theme-text,#897b65); }
.work-owner-filter { max-width:280px; margin-bottom:18px; }
.work-owner-filter .field { margin:0; }
@media(max-width:700px) {
 .work-owner-filter { max-width:none; margin-bottom:12px; }
}

.creator-ranking { display:flex; flex-direction:column; min-width:0; }
.ranking-list { list-style:none; margin:5px 0 12px; padding:0; flex:1; }
.ranking-list li { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--theme-line,#eee9e0); }
.ranking-list li:last-child { border-bottom:0; }
.ranking-position { font:20px var(--serif); color:var(--theme-muted,#b1a894); min-width:25px; }
.ranking-position.leading { color:var(--theme-accent-text,#a47459); }
.ranking-creator { flex:1; min-width:0; }
.ranking-creator strong { display:block; font-size:13px; font-weight:550; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ranking-creator small { display:block; font-size:10px; color:var(--theme-muted,#a49784); margin-top:4px; }
.ranking-track { display:block; height:3px; background:var(--theme-inset,#f0ece3); border-radius:999px; margin-top:8px; max-width:180px; overflow:hidden; }
.ranking-track>span { display:block; height:100%; border-radius:inherit; background:var(--theme-accent-fill,#c5a88f); }
.ranking-sales { display:flex; align-items:baseline; gap:5px; color:var(--theme-text,#625744); }
.ranking-sales strong { font-size:19px; font-weight:500; font-variant-numeric:tabular-nums; }
.ranking-sales>span { font-size:10px; color:var(--theme-muted,#a0917b); }
.ranking-footer { display:block; text-align:center; padding-top:12px; border-top:1px solid var(--theme-line,#e8e1d6); font-size:11px; color:var(--theme-accent-text,#9c765c); }
.creator-ranking .quiet-empty { flex:1; min-height:180px; display:grid; place-items:center; }
.login-form .form-error:empty { margin:0; }
.login-form .form-error:not(:empty) { padding:10px 14px; margin:-6px 0 20px; border-radius:12px; color:var(--theme-danger-text,#ac5b4a); background:var(--theme-danger-fill,#f7eae5); font-size:12px; }
.login-form input[aria-invalid="true"] { border-color:var(--theme-line,#c79a8a); }
@media(max-width:700px){.ranking-list li{padding:11px 0}.creator-ranking .quiet-empty{min-height:100px}}

@media(prefers-color-scheme:dark){
:root {
 color-scheme:dark; --paper:#202020; --panel:#292929; --sidebar:#242424; --ink:#dddcd8; --muted:#aaa7a2; --line:#414141; --accent:#c6a693; --green:#a7b9aa; --soft:#3d3530; --field-surface:#252525; --field-border:#484848; --soft-shadow:0 2px 10px #0003; --theme-tooltip:#292929f5;
 --theme-surface:#292929; --theme-inset:#303030; --theme-inset-strong:#393939;
 --theme-text:#dddcd8; --theme-muted:#b7b3ac; --theme-muted-soft:#a19e98; --theme-line:#414141; --theme-focus:#aa9a8b;
 --theme-accent-text:#c9ad9a; --theme-accent-fill:#896a56;
 --theme-success-fill:#29372e; --theme-success-text:#a6cfb0; --theme-success-line:#425748;
 --theme-danger-fill:#3c2e2b; --theme-danger-text:#d4a39b; --theme-danger-line:#654841;
 --theme-warning-fill:#39352c; --theme-warning-text:#c9b78d; --theme-warning-line:#5e5542; --ledger-credit:#78cda1; --ledger-debit:#f19a91;
}
}
.login-form-side { position:relative; }

.topbar-right { gap:12px; }
.topbar-refresh.btn.small { flex:0 0 auto; min-width:66px; min-height:32px; padding:5px 16px; color:var(--ink); background:var(--field-surface); border:1px solid var(--field-border); }
.topbar-right .topbar-date { min-width:0; overflow:hidden; text-overflow:ellipsis; }

@media(prefers-color-scheme:dark){
:root .btn.primary { background:#896a56; border-color:#a08470; color:#fff9ef; }
:root .art-card { color:#302e2a; }
:root .brand-mark { background:#d8d3c4; color:#252721; }
:root .original-warning { border-color:#68463e; }
:root input[type="color"] { background:#303030; }
:root .catalog-visual { background:#303030; }

}

@media(max-width:700px){

 .topbar-right { gap:8px; }
}

.work-summary-body.html-work-summary { grid-template-columns:minmax(260px,360px) minmax(0,1fr); }
.html-work-summary .work-preview-panel,.html-work-summary .work-portrait { width:100%; max-width:360px; height:auto; }
.html-work-summary .content-preview { width:100%; max-width:none; height:auto; max-height:none; border-radius:12px; background:#f1eee7; }
.html-work-summary .content-preview.dark { background:#262626; }
.html-work-summary .work-full-preview { inset:0; width:100%; height:100%; border-radius:12px; }
.complete-preview [data-kind="html"] { background:#f1eee7; }
.complete-preview [data-kind="html"].dark { background:#262626; }
.wallet-metrics { display:flex; padding:16px 0 4px; }
.wallet-metrics>div { flex:1; display:flex; flex-direction:column; min-width:0; gap:9px; padding:0 22px; border-right:1px solid var(--line); }
.wallet-metrics>div:first-child { padding-left:0; }
.wallet-metrics>div:last-child { border:0; }
.wallet-metrics span { color:var(--muted); font-size:12px; }
.wallet-metrics strong { font-size:27px; font-weight:500; line-height:1.4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.wallet-metrics>div:first-child strong { color:var(--accent); }
.wallet-owner { max-width:280px; margin:0 0 12px; }
.wallet-owner .field { margin:0; }
#upload-form .palette-grid { margin:0 0 20px; }
@media(max-width:760px){
 .work-summary-body.html-work-summary { grid-template-columns:minmax(0,1fr); gap:20px; }
 .html-work-summary .work-identity { display:block; }
 .html-work-summary .work-data,.html-work-summary .work-preview-panel { grid-column:auto; grid-row:auto; }
 .html-work-summary .work-preview-panel,.html-work-summary .work-portrait { max-width:375px; }
 .wallet-overview { padding:18px 16px; }
 .wallet-metrics>div { padding:0 10px; }
 .wallet-metrics span { font-size:10px; }
 .wallet-metrics strong { font-size:20px; }
 .wallet-owner { max-width:none; }
}

.upload-editor { width:100%; max-width:1040px; margin:0 auto; }
.upload-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.upload-heading h1 { font:550 23px var(--sans); letter-spacing:0; margin:0; }
.upload-heading>div>a { display:block; margin-top:7px; font-size:12px; color:var(--muted); }
.upload-warning.original-warning { padding:11px 14px; margin-bottom:15px; border-radius:14px; border-left-width:1px; font-size:11px; line-height:1.75; }
.upload-warning strong { display:inline; font-size:11px; }
.upload-warning p { display:inline; margin:0 0 0 6px; }
.upload-card { padding:20px; border-radius:20px; }
.resource-drop { display:flex; align-items:center; gap:12px; padding:14px; border:1px dashed var(--field-border); border-radius:15px; background:var(--field-surface); margin-bottom:20px; transition:border-color .16s,background .16s; }
.resource-drop.drag { border-color:var(--accent); background:var(--theme-inset,#eeeae0); }
.resource-drop.has-resource { border-style:solid; }
.resource-symbol { display:grid; place-items:center; flex-shrink:0; width:38px; height:42px; border-radius:12px; background:var(--theme-inset,#ece7dd); color:var(--muted); }
.resource-copy { flex:1; min-width:0; }
.resource-copy strong { display:block; font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.resource-copy small { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
.resource-drop .file-select { flex-shrink:0; min-height:34px; padding:7px 13px; font-size:12px; }
.upload-fields-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 20px; }
.upload-fields-grid>.field { display:grid; grid-template-columns:64px minmax(0,1fr); align-items:center; gap:10px; margin:0; }
.upload-fields-grid>.field>span { margin:0; font-size:13px; color:var(--muted); white-space:nowrap; }
.upload-fields-grid .field input { height:38px; min-height:38px; padding:7px 14px; font-size:13px; font-weight:400; border-radius:12px; }
.upload-fields-grid .field input[readonly] { background:var(--theme-inset,#f0ede6); color:var(--muted); border-color:transparent; box-shadow:none; cursor:default; }
.upload-fields-grid .palette-editor { grid-column:1/-1; margin-top:6px; }
.upload-card .form-footer { margin-top:4px; padding-top:16px; }
.upload-card .form-footer .btn { min-height:37px; padding:9px 18px; font-size:12px; }
.upload-package-guide { margin-top:16px; padding:0 4px; font-size:12px; color:var(--muted); }
.upload-package-guide>summary { cursor:pointer; width:fit-content; padding:5px 0; }
.upload-package-guide .guide { max-width:600px; font-size:12px; }
.upload-package-guide .guide pre { font-size:12px; padding:12px 15px; line-height:1.9; }
.color-picker { position:fixed; inset:auto; margin:0; width:252px; max-width:calc(100vw - 20px); padding:12px; border:1px solid var(--line); border-radius:17px; color:var(--ink); background:var(--panel); box-shadow:0 10px 36px #0003; overflow:visible; }
.color-picker:popover-open { animation:picker-in .12s ease-out; }
.color-picker::backdrop { background:transparent; }
.picker-sv { position:relative; height:150px; border-radius:10px; background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),var(--picker-hue); cursor:crosshair; touch-action:none; }
.picker-sv:focus-visible { outline:2px solid var(--theme-focus,#aa9a8b); outline-offset:3px; }
.picker-cursor { position:absolute; width:12px; height:12px; border:2px solid white; box-shadow:0 0 0 1px #0006; border-radius:50%; transform:translate(-50%,-50%); pointer-events:none; }
.picker-range { display:grid; grid-template-columns:38px minmax(0,1fr); align-items:center; gap:8px; font-size:10px; color:var(--muted); margin-top:13px; }
.color-picker input[type=range] { appearance:none; -webkit-appearance:none; width:100%; height:10px; min-height:0; padding:0; border:0; border-radius:999px; box-shadow:none; cursor:pointer; accent-color:var(--accent); }
.color-picker .picker-hue { background:linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); }
.color-picker .picker-alpha { background:linear-gradient(to right,transparent,var(--ink)),repeating-conic-gradient(#9996 0 25%,transparent 0 50%) 0/8px 8px; }
.color-picker input[type=range]::-webkit-slider-thumb { appearance:none; width:15px; height:15px; border:2px solid var(--panel); border-radius:50%; background:var(--ink); box-shadow:0 0 0 1px #0004; }
.color-picker input[type=range]::-moz-range-thumb { width:12px; height:12px; border:2px solid var(--panel); border-radius:50%; background:var(--ink); }
.picker-footer { display:flex; align-items:center; gap:8px; margin-top:15px; }
.picker-footer .picker-hex { flex:1; min-width:0; width:100%; min-height:33px; padding:7px 10px; border:1px solid var(--field-border); border-radius:999px; background:var(--field-surface); color:var(--ink); font:12px ui-monospace,SFMono-Regular,monospace; }
.picker-footer .btn { min-height:33px; padding:7px 12px; font-size:11px; }
@keyframes picker-in { from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)} }
@media(max-width:680px){
 .upload-heading { margin-bottom:14px; }
 .upload-heading h1 { font-size:20px; }
 .upload-card { padding:16px; }
 .upload-warning.original-warning { font-size:12px; line-height:1.65; padding:11px 14px; }
 .upload-warning strong { font-size:12px; }
 .resource-drop { padding:12px 14px; gap:12px; margin-bottom:16px; }
 .resource-symbol { width:36px; height:40px; }
 .resource-copy strong { font-size:14px; }
 .resource-copy small { font-size:12px; }
 .resource-drop .file-select { font-size:13px; padding:6px 14px; min-height:34px; }
 .upload-fields-grid { grid-template-columns:1fr; gap:10px; }
 .upload-fields-grid>.field { grid-template-columns:64px minmax(0,1fr); gap:10px; }
 .upload-fields-grid>.field>span { font-size:14px; color:var(--ink); }
 .upload-fields-grid .field input { height:38px; min-height:38px; padding:6px 12px; font-weight:400; border-radius:12px; }
}
@media(prefers-reduced-motion:reduce){.color-picker:popover-open{animation:none}}

.palette-fold { border:1px solid var(--line); border-radius:14px; background:var(--field-surface); margin-bottom:12px; overflow:hidden; }
.palette-fold-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; border:0; padding:12px 14px; background:transparent; text-align:left; cursor:pointer; user-select:none; outline:none; box-shadow:none; }
.palette-fold-summary:focus,.palette-fold-summary:focus-visible,.palette-fold-summary:active { outline:none; box-shadow:none; background:transparent; }
.palette-fold-title { font-size:13px; font-weight:550; color:var(--ink); }
.palette-fold-meta { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.palette-fold-meta svg { transition:transform .26s cubic-bezier(.22,1,.36,1); }
.palette-fold.is-open .palette-fold-meta svg { transform:rotate(180deg); }
.fold-collapse { display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .26s cubic-bezier(.22,1,.36,1),opacity .2s ease; }
.fold-collapse-inner { overflow:hidden; min-height:0; }
.palette-fold.is-open>.fold-collapse,.bubble-crop.is-open>.fold-collapse { grid-template-rows:1fr; opacity:1; }
.palette-fold-body { padding:0 14px 14px; border-top:1px solid var(--line); }
.palette-fold-body .palette-heading { margin:12px 0 10px; }
.palette-mode-label { font-size:12px; color:var(--muted); }
.palette-fold-body .palette-grid { margin-bottom:0; background:var(--panel); }
.palette-row strong { line-height:1.6; }
.palette-modes { display:flex; gap:6px; }
.palette-modes .btn { min-height:29px; padding:5px 11px; font-size:11px; box-shadow:none; outline:none; }
.palette-modes .btn:focus,.palette-modes .btn:focus-visible,.color-trigger:focus,.color-trigger:focus-visible { outline:none; box-shadow:none; }
.bubble-spacing { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:11px 14px; margin:0 0 12px; border:1px solid var(--line); border-radius:14px; background:var(--field-surface); }
.bubble-spacing-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.bubble-spacing-copy>label { color:var(--ink); font-size:13px; font-weight:550; }
.bubble-spacing-copy>small { font-size:11px; line-height:1.5; color:var(--muted); }
.bubble-spacing input { flex:0 0 88px; width:88px; min-width:0; height:36px; min-height:36px; padding:6px 10px; text-align:center; font:13px var(--sans); border:1px solid var(--field-border); border-radius:10px; background:var(--panel); color:var(--ink); box-shadow:none; appearance:textfield; -moz-appearance:textfield; }
.bubble-spacing input::-webkit-inner-spin-button,.bubble-spacing input::-webkit-outer-spin-button { appearance:none; margin:0; }
.bubble-spacing input:focus-visible { border-color:var(--accent); outline:none; box-shadow:none; }
.bubble-crop { padding:11px 14px; margin:0 0 14px; border:1px solid var(--line); border-radius:14px; background:var(--field-surface); overflow:hidden; }
.bubble-crop-head { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.bubble-crop-switch { position:relative; display:inline-flex; flex:0 0 auto; align-items:center; width:44px; height:26px; cursor:pointer; user-select:none; outline:none; }
.bubble-crop-switch input { position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; outline:none; box-shadow:none; }
.bubble-crop-switch input:focus,.bubble-crop-switch input:focus-visible { outline:none; box-shadow:none; }
.bubble-crop-track { position:relative; width:44px; height:26px; border-radius:999px; background:var(--theme-inset-strong,#d9d2c5); transition:background .22s ease; }
.bubble-crop-track::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--panel); box-shadow:0 1px 3px #0003; transition:transform .24s cubic-bezier(.22,1,.36,1); }
.bubble-crop-switch input:checked+.bubble-crop-track { background:var(--theme-accent-fill,#a16e56); }
.bubble-crop-switch input:checked+.bubble-crop-track::after { transform:translateX(18px); }
.bubble-crop-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.bubble-crop-item { display:flex; flex-direction:column; gap:5px; min-width:0; }
.bubble-crop-item>span { font-size:12px; color:var(--muted); }
.bubble-crop-item>input { width:100%; min-width:0; height:36px; min-height:36px; padding:6px 10px; text-align:center; font:13px var(--sans); border:1px solid var(--field-border); border-radius:10px; background:var(--panel); color:var(--ink); box-shadow:none; appearance:textfield; -moz-appearance:textfield; }
.bubble-crop-item>input::-webkit-inner-spin-button,.bubble-crop-item>input::-webkit-outer-spin-button { appearance:none; margin:0; }
.bubble-crop-item>input:focus-visible { border-color:var(--accent); outline:none; box-shadow:none; }
.batch-file-list { list-style:none; margin:-10px 0 16px; padding:0; border:1px solid var(--line); border-radius:14px; background:var(--field-surface); max-height:240px; overflow-y:auto; }
.batch-file-list>li { display:flex; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid var(--line); font-size:12px; }
.batch-file-list>li:last-child { border-bottom:0; }
.batch-file-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink); }
.batch-file-list small { color:var(--muted); font-size:11px; flex-shrink:0; }
.batch-file-status { font-size:11px; color:var(--muted); flex-shrink:0; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.batch-file-list>li.is-done .batch-file-status { color:var(--theme-success-text,#39845b); }
.batch-file-list>li.is-error .batch-file-status { color:var(--theme-danger-text,#a14135); }
.batch-upload-remove { width:24px; height:24px; min-width:24px; min-height:24px; padding:0; border-radius:6px; color:var(--muted); }
.code-page-title { font:550 19px var(--sans); margin:0; }
.code-data .code-select-cell { width:34px; min-width:34px; padding-right:0; }
.code-select-cell input { width:14px; height:14px; min-height:0; accent-color:var(--accent); cursor:pointer; vertical-align:middle; }
.code-select-cell input:disabled { cursor:default; opacity:.25; }
@media(max-width:680px){
 .palette-fold-summary { padding:12px 14px; }
 .palette-fold-title { font-size:14px; }
 .palette-fold-meta { font-size:12px; }
 .palette-fold-body { padding:0 12px 12px; }
 .palette-heading { align-items:center; flex-wrap:wrap; gap:10px; margin:10px 0; }
 .palette-mode-label { font-size:13px; }
 .palette-modes .btn { min-height:32px; padding:5px 12px; font-size:12px; }
 .palette-labels { font-size:12px; }
 .palette-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; padding:10px 12px; }
 .palette-row>strong { grid-column:1/-1; color:var(--ink); font-size:13px; }
 .palette-labels>span:first-child { display:none; }
 .palette-control input[data-palette-value] { height:36px; min-height:36px; padding:4px 10px; border-radius:10px; }
 .color-trigger { width:26px; height:26px; border-radius:7px; }
 .bubble-spacing { padding:12px 14px; gap:12px; }
 .bubble-spacing-copy>label { font-size:14px; }
 .bubble-spacing-copy>small { font-size:12px; }
 .bubble-spacing input { flex:0 0 84px; width:84px; height:38px; min-height:38px; border-radius:10px; }
 .bubble-crop { padding:12px 14px; }
 .bubble-crop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; margin-top:10px; padding-top:10px; }
 .bubble-crop-item>span { font-size:12px; }
 .bubble-crop-item>input { height:38px; min-height:38px; border-radius:10px; }
 .assistant-shell .code-data .code-select-cell { width:26px; min-width:26px; padding-right:0; }
}

.plugin-users-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:20px; flex-wrap:wrap; }
.plugin-users-heading h1 { margin:0; font:550 21px var(--sans); }
.plugin-user-counts { display:flex; align-items:center; gap:22px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.plugin-user-counts b { margin-left:7px; font-size:17px; font-weight:550; font-variant-numeric:tabular-nums; color:var(--ink); }
.plugin-user-table table { min-width:470px; }
@media(max-width:600px){
 .plugin-users-heading { gap:12px; }
 .plugin-user-counts { gap:17px; font-size:11px; }
 .plugin-user-counts b { font-size:15px; }
 .plugin-user-table table { min-width:0; table-layout:fixed; }
 .plugin-user-table th,.plugin-user-table td { padding:10px; white-space:normal; overflow-wrap:anywhere; font-size:10px; }
 .plugin-user-table th:nth-child(1),.plugin-user-table th:nth-child(3) { width:40%; }
 .plugin-user-table th:nth-child(2) { width:20%; }
}

/* Touch layouts: one set of column widths and controls, without fixed-column overlays. */
:root { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.tabs a.tab,.tabs .tab { display:inline-flex; align-items:center; justify-content:center; text-align:center; min-width:64px; min-height:32px; padding:6px 18px; line-height:20px; }

.action-menu-backdrop { position:fixed; inset:0; width:100%; height:100%; margin:0; padding:0; border:0; border-radius:0; background:transparent; z-index:99; cursor:default; }
.work-summary-body .work-portrait { width:100%; height:auto; }
@media(max-width:680px) {
 .content { padding:22px 16px; }
 .topbar { display:grid; grid-template-columns:38px minmax(0,1fr); gap:0 8px; padding:0 16px 10px; }
 .topbar .mobile-menu { grid-column:1; grid-row:1; width:38px; height:44px; padding:8px; }
 .topbar-right { grid-column:2; grid-row:1; width:100%; min-width:0; min-height:44px; justify-content:flex-end; gap:8px; }
 .topbar .topbar-date { display:block; max-width:none; font-size:10.5px; line-height:1.5; white-space:nowrap; }
 .workspace-tabs { grid-column:1/-1; grid-row:2; width:100%; min-width:0; padding:2px 0; }
 .workspace-tab { min-height:34px; }
 .workspace-tab>a { min-height:32px; font-size:12px; line-height:18px; padding:7px 10px; }
 .action-menu-popup { min-width:140px; border-radius:16px; }
 .action-menu-popup>a,.action-menu-popup>button { min-height:42px; font-size:14px; padding:10px 12px; }
 .btn { font-size:13px; min-height:40px; line-height:20px; padding:9px 14px; }
 .btn.small { font-size:12px; min-height:34px; padding:6px 11px; }
 .tab,.tabs a.tab,.tabs .tab { min-width:64px; min-height:34px; font-size:12px; line-height:20px; padding:7px 18px; }
 .toolbar { gap:12px; align-items:stretch; }
 .toolbar .tabs { width:max-content; max-width:100%; min-width:0; margin:0; justify-content:flex-start; }
 .toolbar .search-field { width:100%; margin:0; }
 .search-field { min-height:40px; }
 .search-field input { font-size:14px; min-height:38px; }
 .overview-period { font-size:13px; align-items:center; }
 .overview-secondary { font-size:13px; }
 .section-head h2 { font-size:17px; }
 .table-wrap td { font-size:13px; line-height:1.5; }
 .table-wrap th { font-size:12px; line-height:1.5; }
 .table-wrap .mono { font-size:12px; }
 .work-panel-heading { padding:14px; gap:10px; }
 .work-panel-heading h1 { font-size:18px; line-height:1.5; }
 .work-panel-heading>div { gap:7px; }
 .work-panel-heading>div>.badge { font-size:11px; padding:4px 7px; }
 .work-panel-heading .btn.small { min-height:34px; font-size:12px; padding:6px 10px; }
 .work-summary-body { grid-template-columns:100px minmax(0,1fr); gap:16px 14px; padding:16px 14px; }
 .work-summary-body .work-preview-panel { width:100%; padding:0; }
 .work-summary-body .work-portrait { display:grid; justify-items:center; gap:6px; width:100%; max-width:100%; height:auto; margin:0; padding:0; }
 .work-summary-body .content-preview,.work-summary-body .portrait-cover { width:100%; max-width:100%; height:100px; margin:0; border-radius:12px; }
 .work-summary-body .work-full-preview { height:100px; width:100%; }
 .work-summary-body .bubble-content { min-height:100px; }
 .work-summary-body .theme-switch { position:relative; min-height:32px; width:100%; margin:0; padding:6px 4px; font-size:12px; line-height:20px; }
 .work-summary-body .work-data { grid-template-columns:56px minmax(0,1fr); gap:7px 6px; align-content:start; font-size:12px; line-height:1.5; }
 .work-summary-body .work-data dd { font-size:12px; line-height:1.5; flex-wrap:wrap; overflow-wrap:anywhere; }
 .work-summary-body .work-data code { font-size:11px; }
 .work-summary-body.html-work-summary { grid-template-columns:minmax(0,1fr); }
 .work-summary-body.html-work-summary .work-identity { display:block; }
 .html-work-summary .work-preview-panel,.html-work-summary .work-portrait { max-width:375px; margin-inline:auto; }
 .html-work-summary .content-preview,.html-work-summary .portrait-cover { height:auto; }
 .html-work-summary .work-full-preview { height:calc(100% - 38px); }
 .html-work-summary .theme-switch { width:auto; min-width:100px; }
 .code-page-heading { flex-wrap:wrap; gap:12px; }
 .code-page-title { font-size:18px; }
 .code-filter-panel { padding:12px; }
 .assistant-shell .code-data { overflow-x:auto; overflow-y:hidden; border:1px solid var(--line); border-radius:16px; background:var(--panel); -webkit-overflow-scrolling:touch; }
 .assistant-shell .code-data table { display:table; table-layout:auto; min-width:980px; width:100%; }
 .assistant-shell .code-data thead { display:table-header-group; }
 .assistant-shell .code-data tbody { display:table-row-group; }
 .assistant-shell .code-data tbody tr { display:table-row; }
 .assistant-shell .code-data th,.assistant-shell .code-data td { display:table-cell; position:static; width:auto; min-width:0; padding:10px; height:54px; font-size:13px; line-height:20px; white-space:nowrap; border-bottom:1px solid var(--line); }
 .assistant-shell .code-data th { height:42px; font-size:12px; }
 .assistant-shell .code-data .code-select-cell { min-width:32px; width:32px; padding:10px 4px 10px 10px; }
 .assistant-shell .code-data .code-value,.assistant-shell .code-data .code-value-heading { min-width:170px; font-size:13px; }
 .assistant-shell .code-data .code-work-cell { min-width:110px; max-width:160px; overflow:hidden; text-overflow:ellipsis; }
 .assistant-shell .code-data .code-work-id-cell { min-width:100px; }
 .assistant-shell .code-data .code-status-cell { min-width:84px; }
 .assistant-shell .code-data .code-user-cell { min-width:140px; }
 .assistant-shell .code-data .record-time { min-width:156px; font-size:12px; overflow:visible; text-overflow:clip; }
 .assistant-shell .code-data .code-creator-cell { display:none; }
 .assistant-shell .code-data .code-actions,.assistant-shell .code-data .code-action-heading { position:static; min-width:190px; box-shadow:none; }
 .assistant-shell .code-data .code-actions>div { display:flex; flex-wrap:nowrap; justify-content:flex-start; gap:6px; }
 .assistant-shell .code-data .code-actions .btn.small { flex:none; min-height:34px; min-width:60px; padding:6px 9px; font-size:12px; line-height:20px; }
 .assistant-shell .code-data .badge { font-size:12px; padding:4px 8px; line-height:18px; }
.work-summary-body .work-primary-actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.work-primary-actions>.btn { min-height:36px; padding:8px 1px; gap:3px; line-height:18px; font-size:clamp(10px,3vw,12px); }
.work-primary-actions>.btn>svg { width:clamp(11px,3.5vw,14px); height:clamp(11px,3.5vw,14px); }
.html-work-summary .work-primary-actions { margin-top:16px; }
.subpackage-panel { padding:14px; margin-top:18px; }
.subpackage-panel .section-head { margin-bottom:10px; }
.subpackage-panel h2 { font-size:17px; }
.subpackage-panel .section-head>.btn { min-width:104px; font-size:12px; }
.subpackage-actions { gap:6px; }
.subpackage-actions>.btn.small { min-width:64px; min-height:32px; padding:5px 14px; font-size:12px; }
:not(.work-primary-actions)>.btn:not(.action-menu-trigger):not(.subpackage-upload)>svg { display:none; }
.toolbar>.search-action-toolbar { flex:0 0 100%; width:100%; }
.toolbar:has(>.search-action-toolbar) .tabs { width:100%; min-width:0; justify-content:flex-start; }
.toolbar:has(>.search-action-toolbar) .tabs .tab { flex:1 0 auto; min-width:0; padding:7px 10px; font-size:12px; line-height:20px; }
.search-action-toolbar { flex-wrap:nowrap; align-items:center; gap:8px; width:100%; }
.search-action-toolbar>.search-field { flex:1 1 0; width:auto; min-width:0; }
.toolbar-actions>.btn { min-height:40px; padding:8px 14px; font-size:12px; }
.batch-management-heading { flex-wrap:wrap; gap:12px; padding:14px; }
.batch-management-heading h2 { font-size:16px; }
.batch-user { flex:1; min-width:180px; width:auto; }
.batch-notice { margin:12px 14px; }
.batch-management-tools { padding:0 14px; }
.batch-filter-row { grid-template-columns:1fr; gap:8px; }
#customer-form { grid-template-columns:1fr; gap:8px; }
.batch-table-wrap { margin:10px 14px 14px; }
.batch-management #multi-work-form>.form-error { margin:0 14px 14px; }
.code-record-toolbar { display:grid; grid-template-columns:1fr; gap:10px; overflow:visible; padding:0; }
.code-primary-row,.code-search-row { display:flex; align-items:center; gap:8px; min-width:0; width:100%; }
.code-primary-row>.select-control { flex:0 0 114px; width:114px; max-width:114px; }
.code-search-row>.select-control { flex:0 0 112px; width:112px; max-width:112px; }
.code-record-toolbar .select-trigger { height:38px; min-height:38px; padding:6px 8px 6px 10px; gap:4px; font-size:12px; }
.code-primary-row>.tabs { flex:1 1 0; width:auto; min-width:0; height:38px; min-height:38px; justify-content:center; }
.code-record-toolbar .tabs .tab { flex:1; min-width:0; min-height:32px; padding:6px 4px; font-size:11px; line-height:18px; }
.code-search-row>.search-field { flex:1 1 0; width:auto; max-width:none; min-width:0; margin:0; height:40px; min-height:40px; }
.code-record-toolbar .search-field input { font-size:16px; }
.code-page-actions { width:100%; margin-left:0; }
.code-page-actions>.btn { flex:1; min-width:0; padding:9px 8px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([readonly]), textarea, select { font-size:16px!important; }
#upload-form .upload-fields-grid .field input, #upload-form .bubble-spacing input, #upload-form .bubble-crop-item>input { font-size:13px!important; font-weight:400; }
#upload-form .palette-control input[data-palette-value] { font-size:12px!important; font-weight:400; }
}

.overview-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.overview-cards>.metric { min-width:0; padding:18px 20px; border:1px solid var(--line); border-radius:18px; background:var(--panel); }
.overview-cards>.metric>span { display:block; font-size:12px; line-height:18px; }
.overview-cards>.metric>strong { margin:10px 0 0; font-size:31px; line-height:1.3; }
@media(max-width:700px) {
 .overview-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 .overview-cards>.metric { padding:16px; }
 .overview-cards>.metric>strong { font-size:28px; }
}

.selection-motion { position:relative; isolation:isolate; }
.selection-motion>.selection-indicator { position:absolute; display:block; pointer-events:none; z-index:0; transform-origin:top left; }
.selection-motion>:not(.selection-indicator) { position:relative; z-index:1; }
.selection-motion [data-motion-active] { background:transparent!important; box-shadow:none!important; }
.tab,.palette-modes .btn { transition:color .18s ease,border-color .18s ease; }
.btn:active:not(:disabled) { transform:scale(.97); }

.list-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top:16px; color:var(--muted); font-size:13px; }
.page-total { white-space:nowrap; }
.page-controls { display:flex; align-items:center; gap:5px; }
.page-button { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border:0; border-radius:9px; background:transparent; color:var(--ink); cursor:pointer; font:inherit; text-decoration:none; transition:background var(--motion),color var(--motion); }
.page-button:hover:not(:disabled) { background:var(--theme-inset,#efede7); }
.page-button.active { color:var(--theme-accent-fill,#a16e56); font-weight:600; background:var(--theme-inset,#efede7); }
.page-button:disabled { opacity:.35; cursor:default; }
.page-button:focus-visible { outline:2px solid var(--theme-accent-fill,#a16e56); outline-offset:2px; }
.page-ellipsis { padding:0 3px; }
@media(max-width:680px){.list-pagination{font-size:12px;gap:6px}.page-controls{gap:2px;margin-left:auto}.page-button{width:25px;height:30px}.page-ellipsis{padding:0 1px}}
#main { transition:opacity .12s ease; }
#main.is-loading { opacity:.58; pointer-events:none; }
