:root { color-scheme: light; --ink:#202326; --muted:#596167; --line:#d9dddf; --paper:#f5f6f4; --panel:#fff; --accent:#245e58; --accent-soft:#e8f0ee; --focus:#176d61; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--paper); font:14px/1.45 Inter,system-ui,-apple-system,sans-serif; }
button,input,select { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.v2-login { min-height:100vh; display:grid; place-items:center; padding:24px; }
.v2-login-card { width:min(420px,100%); background:var(--panel); border:1px solid var(--line); padding:36px; box-shadow:0 12px 40px #1c28250d; }
.v2-login-card h1,.v2-heading h1,.v2-drawer h2 { margin:0; font-weight:650; letter-spacing:-.025em; }
.v2-login-card h1 { font-size:28px; }
.v2-kicker { margin:0 0 8px; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.12em; }
.v2-muted { color:var(--muted); }
.v2-form { display:grid; gap:8px; margin:28px 0 18px; }
.v2-form label { margin-top:6px; font-size:12px; font-weight:600; }
.v2-form input,.v2-toolbar input,.v2-toolbar select { min-height:38px; border:1px solid var(--line); background:#fff; color:var(--ink); padding:7px 10px; border-radius:3px; outline:none; }
input:focus,select:focus,button:focus-visible,a:focus-visible { outline:3px solid var(--focus); outline-offset:2px; }
.v2-button { min-height:36px; border:1px solid transparent; border-radius:3px; padding:7px 13px; cursor:pointer; font-weight:600; white-space:nowrap; }
.v2-button-primary { background:var(--accent); color:#fff; }
.v2-button-quiet { background:transparent; border-color:var(--line); color:var(--ink); }
.v2-button-danger { background:#fff5f3; border-color:#e1b9b1; color:#8e3131; }
.v2-button:disabled { cursor:not-allowed; opacity:.55; }
.v2-link { color:var(--accent); text-decoration:none; }
.v2-status { min-height:20px; margin:8px 0; color:var(--muted); }
.v2-topbar { height:58px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 28px; background:#fff; border-bottom:1px solid var(--line); }
.v2-brand { color:var(--ink); font-weight:750; text-decoration:none; letter-spacing:.02em; }
.v2-brand span { color:var(--muted); margin:0 7px; }
.v2-topbar-actions { display:flex; align-items:center; gap:18px; }
.v2-main { width:min(1500px,100%); margin:0 auto; padding:30px 28px 70px; }
.v2-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.v2-heading h1 { font-size:27px; }
.v2-count { color:var(--muted); font-size:14px; font-weight:500; }
.v2-toolbar { position:sticky; top:0; z-index:1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:12px; background:#fff; border:1px solid var(--line); box-shadow:0 5px 14px #18201c12; }
.v2-search { flex:1 1 320px; }
.v2-search input { width:100%; }
.v2-toolbar select,.v2-toolbar > input { min-width:150px; }
.v2-filter-summary { min-height:18px; margin:8px 2px 12px; color:var(--muted); font-size:12px; }
.v2-status:empty { display:none; }
.v2-table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); }
.v2-table { width:100%; min-width:720px; border-collapse:collapse; }
.v2-table th { position:sticky; top:0; z-index:1; background:#f1f3f2; color:var(--muted); font-size:11px; letter-spacing:.06em; text-align:left; text-transform:uppercase; }
.v2-table th,.v2-table td { padding:11px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.v2-table th:first-child,.v2-table td:first-child { width:38%; }
.v2-table tbody tr:hover { background:var(--accent-soft); }
.v2-record-button { display:block; width:100%; margin:-11px -14px; padding:11px 14px; border:0; background:transparent; color:inherit; cursor:pointer; text-align:left; }
.v2-record-button:hover { background:var(--accent-soft); }
.v2-primary { font-weight:650; }
.v2-record-button .v2-secondary { display:block; margin-top:4px; }
.v2-language-entry { display:block; }
.v2-language-entry .v2-secondary { display:block; margin-top:4px; }
.v2-language-entry + .v2-language-entry { margin-top:8px; }
.v2-secondary { margin-top:2px; color:var(--muted); font-size:12px; }
.v2-tag { display:inline-block; margin:0 4px 3px 0; padding:2px 6px; background:#f0f2f1; border-radius:3px; font-size:12px; }
.v2-load-more-sentinel { height:1px; }
.v2-modal-backdrop { position:fixed; z-index:4; inset:0; background:#14201c52; }
.v2-modal { position:fixed; z-index:5; inset:16px; display:flex; width:min(980px,calc(100% - 32px)); max-height:calc(100vh - 32px); margin:auto; flex-direction:column; overflow:hidden; background:#fff; border:1px solid var(--line); box-shadow:0 18px 50px #18201c33; }
.v2-modal-head { display:flex; flex:0 0 auto; align-items:start; justify-content:space-between; gap:18px; padding:22px 26px; background:#fff; border-bottom:1px solid var(--line); box-shadow:0 3px 10px #18201c0d; }
.v2-modal-head h2 { margin:0; font-size:23px; font-weight:650; letter-spacing:-.025em; }
.v2-modal-head p:not(.v2-kicker) { max-width:680px; margin:5px 0 0; color:var(--muted); font-size:12px; }
.v2-modal-body { min-height:0; flex:1 1 auto; overflow:auto; padding:22px 26px; }
.v2-filter-group { margin:0 0 14px; border:1px solid var(--line); background:#fafbfa; }
.v2-filter-group summary { padding:13px 14px; color:var(--ink); cursor:pointer; font-weight:700; list-style-position:inside; }
.v2-filter-group[open] summary { border-bottom:1px solid var(--line); }
.v2-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; padding:14px; }
.v2-filter-grid label { display:grid; align-self:start; align-content:start; gap:5px; min-width:0; color:var(--muted); font-size:12px; }
.v2-filter-grid input,.v2-filter-grid select,.v2-filter-grid textarea { width:100%; min-width:0; border:1px solid var(--line); border-radius:3px; background:#fff; color:var(--ink); padding:7px 8px; outline:none; }
.v2-filter-grid input,.v2-filter-grid select { min-height:36px; }
.v2-filter-grid textarea { min-height:72px; resize:vertical; }
.v2-filter-grid select[multiple] { min-height:128px; padding:4px; }
.v2-filter-grid small { color:var(--muted); font-size:11px; }
.v2-filter-wide { grid-column:1 / -1; }
.v2-modal-actions { display:flex; flex:0 0 auto; align-items:center; gap:8px; padding:14px 26px; background:#fff; border-top:1px solid var(--line); box-shadow:0 -5px 14px #18201c0d; }
.v2-modal-actions-spacer { flex:1; }
.v2-drawer-backdrop { position:fixed; z-index:2; inset:0; background:#14201c42; }
.v2-drawer { position:fixed; z-index:3; inset:0 0 0 auto; width:min(860px,100%); overflow:auto; background:#fff; border-left:1px solid var(--line); box-shadow:-10px 0 35px #18201c1a; }
.v2-drawer-head { position:sticky; top:0; z-index:1; display:flex; justify-content:space-between; gap:16px; padding:24px 28px; background:#fff; border-bottom:1px solid var(--line); }
.v2-drawer-head h2 { font-size:23px; }
.v2-icon-button { width:34px; height:34px; border:1px solid var(--line); background:#fff; font-size:25px; line-height:1; cursor:pointer; }
.v2-drawer-body { padding:24px 28px 60px; }
.v2-section { padding:0 0 24px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.v2-section h3 { margin:0 0 14px; font-size:13px; text-transform:uppercase; letter-spacing:.06em; }
.v2-section-head { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.v2-section-head h3 { margin:0; }
.v2-section-head p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.v2-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 22px; }
.v2-fact-wide { grid-column:1 / -1; }
.v2-fact dt { color:var(--muted); font-size:12px; }
.v2-fact dd { margin:2px 0 0; overflow-wrap:anywhere; }
.v2-copy { padding:10px 0; border-top:1px solid var(--line); }
.v2-copy:first-child { border-top:0; }
.v2-copy-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.v2-copy-edit { min-height:30px; padding:4px 8px; font-size:12px; }
.v2-component { margin:10px 0 0; padding:12px; border:1px solid var(--line); border-radius:4px; }
.v2-component .v2-component { margin-left:12px; background:#fafbfa; }
.v2-component-title { font-weight:700; }
.v2-components-editor-list { display:grid; gap:10px; margin-bottom:10px; }
.v2-component-editor-row { padding:12px; border:1px solid var(--line); border-radius:4px; background:#fafbfa; }
.v2-component-editor-book { margin:10px 0 0 14px; background:#fff; }
.v2-component-editor-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.v2-component-editor-actions { display:flex; flex-wrap:wrap; gap:5px; }
.v2-component-editor-actions .v2-button { min-height:30px; padding:4px 8px; font-size:12px; }
.v2-component-editor-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.v2-component-editor-fields label { display:grid; gap:4px; color:var(--muted); font-size:12px; }
.v2-component-editor-fields input,.v2-component-editor-fields select { min-width:0; min-height:34px; border:1px solid var(--line); border-radius:3px; background:#fff; color:var(--ink); padding:6px 8px; }
.v2-component-editor-books { margin-top:10px; }
.v2-component-copy-lock { margin:10px 0 0; color:#8e3131; font-size:12px; }
.v2-copy-history-actions { margin-top:14px; }
.v2-copy-history { margin-top:10px; padding:10px 12px; border:1px solid var(--line); background:#fafbfa; }
.v2-copy-history-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.v2-copy-history-list li { padding-bottom:9px; border-bottom:1px solid var(--line); }
.v2-copy-history-list li:last-child { padding-bottom:0; border-bottom:0; }
.v2-isbn-row { display:flex; gap:8px; }
.v2-isbn-row input { flex:1 1 auto; min-width:0; min-height:38px; border:1px solid var(--line); background:#fff; color:var(--ink); padding:7px 10px; border-radius:3px; outline:none; }
.v2-isbn-entry { display:flex; align-items:flex-start; gap:8px; }
.v2-isbn-entry > .v2-chips { flex:1 1 auto; min-width:0; }
.v2-isbn-entry > .v2-button { min-height:38px; }
.v2-isbn-values { padding:9px 10px; border:1px solid var(--line); background:#fafbfa; overflow-wrap:anywhere; }
.v2-work-picker { position:relative; margin-bottom:14px; }
.v2-work-picker-input { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.v2-work-picker-input input { min-height:36px; border:1px solid var(--line); border-radius:3px; padding:7px 8px; color:var(--ink); }
.v2-work-picker-selected { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px; border:1px solid var(--accent); background:var(--accent-soft); }
.v2-work-picker-selected span { display:grid; gap:2px; }
.v2-work-picker-selected small,.v2-work-picker-results small { color:var(--muted); }
.v2-work-picker-results { position:absolute; z-index:2; right:0; left:0; max-height:240px; overflow:auto; border:1px solid var(--line); background:#fff; box-shadow:0 8px 20px #18201c1a; }
.v2-work-picker-results button { display:grid; width:100%; gap:2px; border:0; border-bottom:1px solid var(--line); padding:8px 10px; background:#fff; color:var(--ink); cursor:pointer; text-align:left; }
.v2-work-picker-results button:hover,.v2-work-picker-results button:focus-visible { background:var(--accent-soft); }
.v2-work-picker-results p { margin:0; padding:8px 10px; }
.v2-editor { display:grid; gap:18px; }
.v2-editor-actions { display:flex; flex-wrap:wrap; gap:8px; }
.v2-form-actions { align-items:center; padding-top:2px; }
.v2-editor-list { display:grid; gap:10px; }
.v2-editor-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.v2-editor-grid label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.v2-editor-wide { grid-column:1 / -1; display:grid; gap:5px; }
.v2-editor-label { color:var(--muted); font-size:12px; }
.v2-editor-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.v2-editor-grid select,.v2-editor-grid textarea { min-width:0; border:1px solid var(--line); border-radius:3px; background:#fff; color:var(--ink); padding:7px 8px; }
.v2-editor-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.v2-editor-grid select { min-height:36px; }
.v2-editor-grid textarea { min-height:82px; resize:vertical; }
.v2-editor-grid .v2-editor-checkbox { display:flex; align-items:center; align-self:end; min-height:36px; color:var(--ink); }
.v2-choice-field { min-width:0; margin:0; padding:10px 12px 11px; border:1px solid var(--line); border-radius:3px; }
.v2-choice-field legend { padding:0 4px; color:var(--muted); font-size:12px; font-weight:600; }
.v2-choice-row { display:flex; flex-wrap:wrap; gap:8px 18px; }
.v2-choice-row label { display:flex; align-items:center; gap:6px; margin:0; color:var(--ink); font-size:13px; font-weight:500; cursor:pointer; }
.v2-choice-row input { accent-color:var(--accent); }
.v2-editor-note,.v2-input-hint { margin:7px 0 0; color:var(--muted); font-size:12px; font-weight:400; }
.v2-input-hint code { padding:1px 4px; background:#f0f2f1; border-radius:2px; }
.v2-coming-soon { align-self:start; padding:3px 6px; border:1px solid #d6c99d; border-radius:3px; color:#76631e; background:#fbf7e8; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.v2-interface-section { background:#fcfcf8; padding:14px 12px 24px; border:1px dashed #d6c99d; }
.v2-interface-section .v2-section-head { margin-bottom:12px; }
.v2-editor-grid [disabled] { cursor:not-allowed; background:#f1f3f2; color:#899196; }
.v2-chips { position:relative; }
.v2-chips-box { display:flex; flex-wrap:wrap; align-items:center; gap:5px; min-height:38px; padding:4px; border:1px solid var(--line); border-radius:3px; background:#fff; }
.v2-chips-box:focus-within { outline:3px solid var(--focus); outline-offset:2px; }
.v2-chips-disabled { opacity:.7; background:#f1f3f2; }
.v2-chips-list { display:flex; flex-wrap:wrap; gap:4px; }
.v2-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 6px; border-radius:3px; background:var(--accent-soft); color:var(--ink); font-size:12px; }
.v2-chip small { color:var(--muted); font-size:11px; }
.v2-chip em { color:var(--muted); font-size:11px; }
.v2-chip-remove { border:0; padding:0; background:transparent; color:var(--muted); cursor:pointer; font-size:16px; line-height:1; }
.v2-chips-input { flex:1 1 140px; min-width:0; min-height:27px; border:0; outline:0; padding:2px; background:transparent; color:var(--ink); }
.v2-chips-input:focus { outline:0; }
.v2-chips-drop { position:absolute; z-index:2; top:calc(100% + 4px); right:0; left:0; max-height:220px; overflow:auto; border:1px solid var(--line); border-radius:3px; background:#fff; box-shadow:0 8px 20px #18201c1a; }
.v2-chips-option { display:flex; width:100%; align-items:baseline; gap:8px; border:0; border-bottom:1px solid var(--line); padding:8px 10px; background:#fff; color:var(--ink); cursor:pointer; text-align:left; }
.v2-chips-option:hover,.v2-chips-option:focus-visible { background:var(--accent-soft); }
.v2-chips-option small { margin-left:auto; color:var(--muted); }
.v2-chips-option-new { color:var(--accent); font-weight:650; }
.v2-editor-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 110px auto; gap:8px; align-items:start; padding:10px; border:1px solid var(--line); background:#fafbfa; }
.v2-editor-row-description { grid-template-columns:100px minmax(0,1fr) minmax(0,1fr) auto; }
.v2-editor-row textarea { grid-column:1 / -1; min-height:90px; resize:vertical; border:1px solid var(--line); border-radius:3px; padding:8px; }
.v2-editor-row label { display:grid; gap:4px; color:var(--muted); font-size:12px; }
.v2-editor-row select,.v2-editor-row input { min-height:36px; border:1px solid var(--line); border-radius:3px; background:#fff; padding:6px 8px; color:var(--ink); }
.v2-editor-row .v2-editor-primary { display:flex; align-items:center; gap:5px; min-height:36px; color:var(--ink); }
.v2-remove { align-self:center; border:0; background:transparent; color:#8e3131; cursor:pointer; text-decoration:underline; }
.v2-description-card { padding:12px 14px; border:1px solid var(--line); background:#fafbfa; }
.v2-description-meta { color:var(--muted); font-size:12px; }
.v2-description-body { margin:6px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.v2-cover-placeholder,.v2-empty-card { display:grid; gap:4px; min-height:96px; place-content:center; padding:18px; border:1px dashed var(--line); color:var(--muted); text-align:center; }
.v2-cover-placeholder strong,.v2-empty-card strong { color:var(--ink); }
.v2-cover-editor { display:grid; grid-template-columns:minmax(180px,240px) minmax(0,1fr); gap:14px; align-items:stretch; }
.v2-cover-drop { display:grid; min-height:190px; place-content:center; gap:5px; padding:18px; border:1px dashed var(--accent); border-radius:3px; color:var(--accent); background:var(--accent-soft); text-align:center; cursor:pointer; }
.v2-cover-drop input { position:absolute; width:1px; height:1px; opacity:0; }
.v2-cover-drop span { font-weight:700; }
.v2-cover-drop small { color:var(--muted); }
.v2-cover-preview { display:grid; min-height:190px; place-content:center; gap:8px; padding:12px; border:1px solid var(--line); color:var(--muted); text-align:center; }
.v2-cover-preview img { display:block; max-width:100%; max-height:190px; margin:auto; object-fit:contain; }
.v2-cover-preview span { overflow-wrap:anywhere; }
.v2-attachment-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin-bottom:12px; }
.v2-attachment-toolbar label { display:grid; gap:5px; color:var(--muted); font-size:12px; }
.v2-attachment-toolbar select { min-height:36px; min-width:190px; border:1px solid var(--line); border-radius:3px; background:#fff; color:var(--ink); padding:7px 8px; }
.v2-file-button { min-height:36px; justify-content:center; padding:8px 12px; border:1px solid var(--line); border-radius:3px; color:var(--ink) !important; font-weight:600; cursor:pointer; }
.v2-file-button input { position:absolute; width:1px; height:1px; opacity:0; }
.v2-asset-list { display:grid; gap:7px; }
.v2-asset-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,220px) auto; gap:8px; align-items:center; padding:8px 10px; border:1px solid var(--line); background:#fafbfa; }
.v2-asset-name { min-width:0; overflow-wrap:anywhere; }
.v2-asset-row select { min-height:32px; border:1px solid var(--line); border-radius:3px; background:#fff; color:var(--ink); padding:5px 7px; }
.v2-history-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.v2-history-list li { padding-bottom:9px; border-bottom:1px solid var(--line); }
.v2-history-list li:last-child { padding-bottom:0; border-bottom:0; }
.v2-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; }
@media (max-width:720px) {
  .v2-topbar { height:auto; align-items:flex-start; padding:16px; }
  .v2-topbar-actions { flex-wrap:wrap; justify-content:flex-end; gap:8px 12px; }
  .v2-main { padding:22px 12px 50px; }
  .v2-heading { align-items:flex-start; flex-direction:column; }
  .v2-heading .v2-button { width:100%; }
  .v2-toolbar > * { flex:1 1 100%; width:100%; }
  .v2-toolbar .v2-button { width:100%; }
  .v2-modal { inset:8px; width:calc(100% - 16px); max-height:calc(100vh - 16px); }
  .v2-modal-head,.v2-modal-body { padding-left:16px; padding-right:16px; }
  .v2-filter-grid { grid-template-columns:1fr; }
  .v2-filter-wide { grid-column:auto; }
  .v2-modal-actions { align-items:stretch; flex-wrap:wrap; padding:12px 16px 14px; }
  .v2-modal-actions-spacer { display:none; }
  .v2-modal-actions .v2-button { flex:1 1 calc(50% - 4px); }
  .v2-drawer-head,.v2-drawer-body { padding-left:18px; padding-right:18px; }
  .v2-facts { grid-template-columns:1fr; }
  .v2-editor-row,.v2-editor-row-description,.v2-editor-grid,.v2-component-editor-fields { grid-template-columns:1fr; }
  .v2-editor-row textarea { grid-column:auto; }
  .v2-fact-wide { grid-column:auto; }
  .v2-cover-editor { grid-template-columns:1fr; }
  .v2-asset-row { grid-template-columns:1fr; }
  .v2-component .v2-component,.v2-component-editor-book { margin-left:0; }
  .v2-component-editor-head { align-items:flex-start; flex-direction:column; }
}
@media (max-width:480px) {
  .v2-modal-head { padding-top:16px; padding-bottom:16px; }
  .v2-modal-head h2 { font-size:20px; }
  .v2-isbn-entry { flex-direction:column; }
  .v2-isbn-entry > .v2-chips,.v2-isbn-entry > .v2-button { width:100%; }
}
