@charset "UTF-8";
:root { color-scheme: light; --bg:#f5f6f8; --panel:#fff; --ink:#252a32; --muted:#626b78; --line:#dfe3eb; --primary:#5267e8; --primary-hover:#4054c8; --soft-blue:#edf0ff; --success:#176443; --success-bg:#eaf6ef; --warning:#825115; --warning-bg:#fff7e8; --error:#a52b32; --error-bg:#fff0f1; --radius:12px; }
* { box-sizing:border-box; }
html { scroll-padding:24px; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Malgun Gothic",sans-serif; overflow-wrap:anywhere; }
body:has(dialog[open]) { overflow:hidden; }
button,input,textarea,select { font:inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; color:inherit; }
button:disabled { cursor:not-allowed; opacity:.55; }
a { color:var(--primary-hover); text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:3px; }
svg { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin:0; }
h1 { font-size:30px; line-height:1.3; letter-spacing:-1px; }
h2 { font-size:22px; line-height:1.4; letter-spacing:-.5px; }
h3 { font-size:16px; }
[hidden] { display:none!important; }
:focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
::selection { color:#26357b; background:#dce3ff; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-90px; left:16px; z-index:10; padding:12px 18px; border-radius:8px; color:white; background:var(--primary); }
.skip-link:focus { top:12px; }
.muted { color:var(--muted); }
.small { font-size:13px; }
.eyebrow { margin-bottom:8px; color:var(--primary-hover); font-size:11px; font-weight:750; letter-spacing:1.4px; }
.site-header { background:var(--panel); border-bottom:1px solid var(--line); }
.header-inner { min-height:56px; margin:auto; padding:6px 24px; display:flex; align-items:center; gap:16px; }
.brand { color:var(--ink); font-size:25px; line-height:1; font-weight:800; letter-spacing:-1.3px; white-space:nowrap; }
.brand:hover { text-decoration:none; }
.brand span { color:var(--primary); }
.header-divider { width:1px; height:22px; background:var(--line); }
.header-label { color:var(--muted); font-size:14px; white-space:nowrap; }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:24px; margin-left:auto; min-width:0; }
.store-link { font-size:13px; white-space:nowrap; }
#account-button { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.button { min-height:44px; border:1px solid transparent; border-radius:8px; padding:10px 16px; display:inline-flex; justify-content:center; align-items:center; gap:8px; font-size:14px; font-weight:650; line-height:1.5; transition:background .16s,border-color .16s,color .16s; }
.button.primary { color:#fff; background:var(--primary); }
.button.primary:hover:not(:disabled) { background:var(--primary-hover); }
.button.secondary { border-color:var(--line); background:var(--panel); }
.button.secondary:hover:not(:disabled) { background:#f4f5fa; border-color:#bcc4d4; }
.button.quiet { color:var(--muted); background:transparent; }
.button.quiet:hover:not(:disabled) { color:var(--ink); background:#f0f2f7; }
.button.danger { background:var(--error); color:#fff; }
.full-width { width:100%; }
.icon-button { flex:none; width:44px; height:44px; border:1px solid var(--line); background:var(--panel); border-radius:8px; font-size:26px; line-height:1; }
.icon-button:hover { background:var(--bg); }
.icon-button svg { width:20px; height:20px; vertical-align:middle; }
.admin-shell { padding:12px 24px 24px; margin:0 auto; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px; }
.page-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.page-heading h1 { font-size:22px; letter-spacing:-.6px; }
.workspace-panel { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; box-shadow:0 2px 4px #23305404; }
.draft-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.badge { display:inline-flex; width:fit-content; align-items:center; border-radius:5px; padding:3px 8px; font-size:12px; font-weight:650; white-space:nowrap; }
.badge.neutral { color:#525c6e; background:#edf0f4; }
.badge.success { color:var(--success); background:var(--success-bg); }
.badge.warning { color:var(--warning); background:var(--warning-bg); }
.badge.blue { color:var(--primary-hover); background:var(--soft-blue); }
.section-navigation { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:48px; padding:0 12px 0 16px; border-bottom:1px solid var(--line); }
.section-navigation > .button { flex:none; padding:8px 14px; }
.tabs { display:flex; gap:24px; min-width:0; }
.tabs > button { min-height:48px; padding:8px 2px; border:0; border-bottom:3px solid transparent; background:transparent; display:flex; align-items:center; gap:8px; color:var(--muted); font-size:14px; font-weight:650; }
.tabs > button[aria-selected="true"] { color:var(--primary-hover); border-bottom-color:var(--primary); }
.tab-count { min-width:24px; padding:1px 6px; border-radius:5px; background:#edf0f4; font-size:12px; font-variant-numeric:tabular-nums; }
[aria-selected="true"] .tab-count { background:var(--soft-blue); }
.list-toolbar { padding:4px 12px; display:flex; gap:8px; align-items:center; }
.search-control { min-width:180px; flex:1; position:relative; }
.search-control svg { width:19px; height:19px; position:absolute; top:13px; left:14px; color:var(--muted); pointer-events:none; }
.search-control input { padding-left:42px; }
.list-toolbar > div:not(.search-control) { flex:0 1 180px; min-width:0; }
.list-toolbar > #status-filter-wrap { flex-basis:128px; }
.list-toolbar > .button { flex:none; padding-inline:12px; }
.list-toolbar select { font-size:13px; }
input,select,textarea { width:100%; min-height:44px; border:1px solid #cbd2de; border-radius:8px; color:var(--ink); background:#fff; padding:10px 12px; line-height:1.5; scroll-margin-block:110px; }
input::placeholder,textarea::placeholder { color:#78818f; }
input[readonly],select:disabled { background:#f4f5f8; color:var(--muted); }
input[type="checkbox"] { width:18px; height:18px; min-height:18px; padding:0; accent-color:var(--primary); flex:none; }
textarea { min-height:104px; resize:vertical; }
select { cursor:pointer; padding-right:28px; }
.list-meta { display:flex; align-items:center; gap:12px; padding:0 12px; min-height:44px; }
.result-count { flex:1; min-width:0; font-variant-numeric:tabular-nums; }
.page-size-control { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; white-space:nowrap; }
.page-size-control select { width:82px; padding:8px; font-size:13px; }
.pagination { display:flex; align-items:center; gap:8px; }
.pagination select { width:90px; padding:8px; font-size:13px; font-variant-numeric:tabular-nums; }
.pagination .icon-button { border-color:transparent; }
.list-footer { padding:8px 12px; display:flex; justify-content:space-between; align-items:center; gap:12px; border-top:1px solid var(--line); }
.list-footer > p { min-width:0; }
.list-footer .pagination { flex:none; }
.list-footer .button { min-width:56px; }
table { width:100%; border-collapse:collapse; table-layout:fixed; text-align:left; }
th { color:var(--muted); background:#f8f9fc; font-size:12px; font-weight:650; padding:8px 12px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
td { padding:6px 12px; border-bottom:1px solid #edf0f5; font-size:13px; line-height:1.4; vertical-align:middle; }
th:first-child,td:first-child { padding-left:16px; width:44%; }
th:last-child,td:last-child { padding-right:12px; text-align:right; width:80px; }
th.numeric,td.numeric { text-align:right; }
td.numeric { white-space:nowrap; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fafbff; }
.item-identity { display:flex; align-items:center; gap:10px; min-width:0; }
.item-identity > div { min-width:0; }
.item-thumb { width:40px; height:40px; flex:none; object-fit:cover; border-radius:6px; border:1px solid var(--line); background:#eceef3; }
.item-thumb.placeholder { display:flex; align-items:center; justify-content:center; color:#6a7486; font-size:16px; font-weight:750; }
.item-title { color:var(--ink); font-size:14px; font-weight:650; }
.item-id { font-size:12px; color:var(--muted); font-family:ui-monospace,Consolas,monospace; margin-top:2px; }
.item-title,.item-id { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-numbers .small { font-size:12px; }
.numeric { font-variant-numeric:tabular-nums; }
.table-edit { min-height:44px; min-width:56px; border:1px solid var(--line); border-radius:7px; color:var(--primary-hover); background:var(--panel); font-weight:650; }
.table-edit:hover { background:var(--soft-blue); border-color:#cbd3ff; }
.workspace-footnote { margin-top:12px; display:flex; flex-direction:column; gap:4px; padding:0 2px; }
.notice { padding:10px 14px; margin-bottom:8px; border:1px solid #cdd6fd; border-radius:8px; background:var(--soft-blue); color:#334688; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:13px; }
.feedback-notice { padding:0 4px 0 12px; min-height:44px; }
.feedback-notice .icon-button { border:0; background:transparent; color:inherit; }
.notice p + p,.notice strong + p { margin-top:4px; }
.notice > .button { flex:none; }
.notice-warning { background:var(--warning-bg); color:var(--warning); border-color:#eed9b6; }
.notice-error { background:var(--error-bg); color:var(--error); border-color:#ecc8ca; }
.notice-success { background:var(--success-bg); color:var(--success); border-color:#b9dcc8; }
.empty-state { padding:64px 24px; text-align:center; }
.empty-state h2 { font-size:19px; margin-bottom:6px; }
.empty-state .button { margin-top:20px; }
.access-panel { max-width:520px; margin:80px auto; text-align:center; padding:40px 32px; background:var(--panel); border:1px solid var(--line); border-radius:16px; }
.access-mark { font-size:38px; font-weight:800; margin:0 auto 24px; width:78px; height:78px; border:1px solid #dce2fc; border-radius:20px; display:flex; align-items:center; justify-content:center; background:var(--soft-blue); }
.access-mark span { color:var(--primary); }
.access-panel h1 { font-size:26px; margin:8px 0 14px; }
.access-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin-top:24px; }
.access-note { margin-top:24px; font-size:12px; color:var(--muted); }
dialog { padding:0; border:1px solid var(--line); border-radius:16px; background:var(--panel); color:var(--ink); box-shadow:0 24px 100px #1c244d30; max-height:calc(100dvh - 48px); max-width:calc(100vw - 40px); }
dialog::backdrop { background:#19233b70; }
.editor-dialog { width:1000px; }
.dialog-heading { display:flex; align-items:flex-start; gap:20px; justify-content:space-between; padding:24px 28px; border-bottom:1px solid var(--line); }
.dialog-heading h2 + p { margin-top:6px; }
.dialog-heading .eyebrow { margin-bottom:4px; }
.editor-fields { padding:24px 28px; display:grid; gap:24px; }
.form-section { padding-bottom:24px; border-bottom:1px solid var(--line); }
.form-section:last-child { padding-bottom:0; border-bottom:0; }
.section-heading { margin-bottom:16px; }
.section-heading h3 { margin-bottom:4px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px 20px; }
.field { min-width:0; }
.field.wide { grid-column:1/-1; }
.field label { display:block; font-weight:600; font-size:13px; margin-bottom:6px; }
.field small { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"] { border-color:var(--error); }
.field-error { margin-top:4px; color:var(--error); font-size:12px; }
.checkbox-line { min-height:44px; display:flex; align-items:center; gap:10px; font-size:13px; }
.choice-group { display:flex; flex-wrap:wrap; gap:6px 24px; }
.spec-dimensions { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.locale-block { border:1px solid var(--line); border-radius:9px; padding:16px; margin-top:12px; }
.locale-block summary { min-height:28px; font-size:13px; font-weight:650; cursor:pointer; }
.locale-block[open] summary { margin-bottom:16px; }
.translation-note { margin-top:12px; }
.view-list { display:grid; gap:14px; }
.view-card { padding:14px; border:1px solid var(--line); border-radius:9px; display:grid; grid-template-columns:112px 1fr auto; gap:16px; align-items:start; }
.view-card img { width:112px; aspect-ratio:1; object-fit:cover; background:#eceef3; border-radius:7px; }
.view-fields { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.view-translations { grid-column:1/-1; border-top:1px solid var(--line); }
.view-translations summary { min-height:44px; padding:10px 0; font-size:13px; cursor:pointer; }
.view-translations[open] > .form-grid { padding:4px 0 12px; }
.view-card .button { min-width:44px; padding:8px; }
.view-card .view-note { grid-column:1/-1; }
.upload-control { margin-top:16px; padding:16px; border:1px dashed #bfc9dd; border-radius:9px; background:#fafbfe; }
.upload-control label { display:block; font-weight:650; font-size:13px; margin-bottom:8px; }
.upload-control input[type="file"] { max-width:100%; padding:8px; font-size:12px; background:white; }
.upload-control input::file-selector-button { padding:6px 10px; border:1px solid var(--line); border-radius:5px; margin-right:10px; color:var(--ink); background:var(--bg); cursor:pointer; }
.upload-control p { margin-top:8px; }
.upload-status { min-height:21px; }
.file-current { padding:12px 14px; border:1px solid var(--line); border-radius:8px; margin-bottom:12px; }
.file-current strong { display:block; font-size:13px; }
.member-tools { margin:12px 0; display:flex; gap:12px; align-items:center; }
.member-tools input { min-width:0; flex:1; }
.member-tools span { white-space:nowrap; }
.member-list { max-height:320px; overflow:auto; border:1px solid var(--line); border-radius:9px; padding:4px 12px; }
.member-choice { min-height:56px; display:flex; gap:12px; align-items:center; border-bottom:1px solid #edf0f5; cursor:pointer; padding:8px 2px; }
.member-choice:last-child { border-bottom:0; }
.member-choice span { flex:1; min-width:0; }
.member-choice strong { display:block; font-size:13px; font-weight:600; }
.member-choice small { display:block; color:var(--muted); font-size:11px; }
.cover-preview { width:100%; max-height:240px; object-fit:contain; aspect-ratio:16/9; background:#eceef3; border-radius:9px; margin-top:12px; }
.dialog-footer { position:sticky; bottom:0; padding:18px 28px; display:flex; align-items:center; justify-content:space-between; gap:20px; background:#fff; border-top:1px solid var(--line); z-index:1; }
.footer-actions { display:flex; gap:8px; flex:none; }
#editor-error { margin:20px 28px 0; display:block; }
#editor-error ul { margin:8px 0 0; padding-left:20px; }
#editor-error a { color:inherit; text-decoration:underline; }
.auth-dialog { width:440px; }
.auth-body { padding:24px 28px; }
.auth-body > p:first-child { margin-bottom:20px; }
.auth-body form label { display:block; font-size:13px; font-weight:650; margin-bottom:6px; }
.auth-body form input + label,.auth-body form p + label { margin-top:16px; }
.auth-body form input + p { margin-top:6px; }
.auth-body form .button { margin-top:14px; }
#auth-username,#setup-username { font-size:14px; }
.auth-status { margin-top:16px; color:var(--muted); min-height:22px; }
.auth-status.error { color:var(--error); }
#logout-button { margin-top:12px; }
#turnstile-container:not(:empty) { margin-top:16px; min-height:65px; }
.confirm-dialog { width:480px; }
.confirm-description { padding:24px 28px; white-space:pre-line; }
.confirm-dialog .dialog-footer { justify-content:flex-end; }
.history-dialog { width:640px; }
.history-note { padding:20px 28px 0; }
.history-list { margin:0; padding:8px 28px 24px; list-style:none; }
.history-list li { padding:16px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.history-list li:last-child { border-bottom:0; }
.history-list code { font-size:12px; overflow-wrap:anywhere; }
.history-list p { margin-top:4px; }
.noscript { margin:24px; padding:24px; background:white; text-align:center; }
@media (max-width:1000px) {
  .header-inner { padding-inline:16px; }
  .admin-shell { padding:12px 16px 24px; }
  .page-heading { align-items:flex-start; }
  .page-title { gap:4px 8px; }
  .draft-actions { flex:none; gap:8px; }
  .draft-actions .button { padding-inline:10px; }
  .list-toolbar > div:not(.search-control) { flex-basis:150px; }
  th:first-child,td:first-child { width:39%; }
}
@media (max-width:760px) {
  .header-inner { gap:12px; }
  .header-actions { gap:12px; }
  .header-label,.header-divider { display:none; }
  #account-button { max-width:180px; }
  .admin-shell { padding:12px; }
  .page-heading { flex-direction:column; gap:8px; }
  .page-heading h1 { font-size:20px; }
  .draft-actions { width:100%; justify-content:flex-start; }
  .draft-actions .button { flex:1; padding-inline:8px; font-size:13px; }
  .section-navigation { padding:0 8px 0 12px; gap:8px; }
  .tabs { gap:16px; }
  .tabs > button { gap:6px; }
  .list-toolbar { flex-wrap:wrap; padding:8px; }
  .search-control { flex-basis:100%; }
  .list-toolbar > div:not(.search-control),.list-toolbar > #status-filter-wrap { flex:1 1 0; }
  .list-toolbar > .button { margin-left:auto; }
  .list-meta { flex-wrap:wrap; gap:4px 8px; padding:0 8px 8px; }
  .result-count { flex-basis:100%; }
  .page-size-control { margin-right:auto; }
  .notice { align-items:flex-start; flex-direction:column; }
  .notice .button { align-self:flex-start; }
  .feedback-notice { align-items:center; flex-direction:row; }
  table,tbody,tr,td { display:block; width:100%; }
  thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  tbody tr { padding:8px 12px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 72px; gap:6px 8px; border-top:1px solid var(--line); }
  td { padding:0; border:0; font-size:12px; }
  td:first-child { grid-column:1/3; width:100%; padding:0; }
  td:nth-child(2) { grid-column:1; grid-row:2; }
  td:nth-child(3) { grid-column:2; grid-row:2; }
  td:nth-child(4) { grid-column:3; grid-row:2; }
  td:last-child { width:auto; padding:0; text-align:right; grid-column:3; grid-row:1; }
  td[data-label]::before { content:attr(data-label) " "; color:var(--muted); margin-right:4px; }
  td.numeric { text-align:left; white-space:normal; }
  td.status-cell::before { content:none; }
  td.language-cell { grid-column:1/-1; grid-row:3; display:flex; align-items:center; gap:4px; }
  .language-cell > div { display:flex; gap:8px; }
  .model-numbers { display:inline-block; vertical-align:top; }
  .item-identity { gap:8px; }
  .item-title { font-size:13px; }
  dialog { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:12px; }
  .dialog-heading { padding:20px; }
  .editor-fields { padding:20px; }
  .dialog-footer { padding:16px 20px; }
  .view-card { grid-template-columns:80px 1fr; gap:12px; }
  .view-card img { width:80px; }
  .view-card > .button { grid-column:2; justify-self:end; }
  .view-fields { grid-template-columns:1fr; }
  .view-card .view-note { grid-column:1; }
  .form-grid { gap:16px; }
  #editor-error { margin:16px 20px 0; }
}
@media (max-width:480px) {
  .header-inner { padding:6px 12px; }
  .brand { font-size:23px; }
  .store-link { display:none; }
  #account-button { max-width:190px; font-size:12px; }
  .admin-shell { padding:8px; }
  .page-heading { padding:0 4px; }
  .page-title .badge { font-size:11px; }
  .draft-actions .button { font-size:12px; padding-inline:4px; }
  .tabs { gap:10px; }
  .tabs > button { gap:4px; font-size:13px; }
  .tab-count { min-width:20px; padding-inline:4px; }
  .section-navigation { gap:6px; }
  .section-navigation > .button { padding-inline:8px; font-size:12px; }
  .list-toolbar select { padding-left:8px; padding-right:20px; font-size:12px; }
  .page-size-control { gap:6px; }
  .pagination { gap:8px; }
  .pagination select { width:76px; }
  .form-grid { grid-template-columns:1fr; }
  .form-section { padding-bottom:20px; }
  .spec-dimensions { gap:8px; }
  .locale-block { padding:12px; }
  .dialog-footer { align-items:stretch; flex-direction:column; gap:10px; padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  .footer-actions .button { flex:1; }
  .confirm-dialog .dialog-footer { flex-direction:row; }
  .view-card { grid-template-columns:1fr; }
  .view-card img { width:100%; max-height:180px; object-fit:contain; }
  .view-card > .button { grid-column:1; }
  .view-fields { grid-template-columns:1fr 1fr; }
  .auth-body { padding:20px; }
  .access-panel { margin:40px 16px; padding:32px 24px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; scroll-behavior:auto!important; } }
