* { box-sizing: border-box; }
:root { color-scheme: light; font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #18232a; background: #f1f4f5; }
body { margin: 0; }
a { color: #944015; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border: 1px solid #ccd3d8; border-radius: 7px; background: #fff; color: #233038; padding: 8px 14px; text-decoration: none; font-weight: 650; cursor: pointer; }
button:hover, .button:hover { border-color: #a15a2e; background: #faf4ee; }
button.primary, .button.primary { color: #1d1209; background: #ff913e; border-color: #ff913e; }
button.primary:hover, .button.primary:hover { background: #ffab6c; }
button.ghost { background: transparent; }
button.danger { color: #993932; }
:focus-visible { outline: 3px solid #c4550a; outline-offset: 3px; }
h1 { font-size: clamp(25px, 4vw, 34px); line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 19px; margin: 0 0 14px; }
h3 { font-size: 16px; }
p { line-height: 1.6; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 25px; background: #141a1d; color: #f5f6f7; position: sticky; top: 0; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #f5f6f7; font-size: 23px; letter-spacing: .02em; }
.logo strong span { color: #ff913e; }
.brand-note { border-left: 1px solid #596267; padding-left: 14px; font-size: 14px; color: #cfd8db; }
.top form { display: flex; align-items: center; gap: 12px; }
.top button { color: #eee; border-color: #5e676b; min-height: 35px; }
.top button:hover { background: #333f46; }
.side { position: fixed; top: 64px; left: 0; bottom: 0; width: 190px; padding: 25px 14px; background: #1b2327; display: flex; flex-direction: column; gap: 5px; }
.side a { color: #e4e9eb; padding: 12px 14px; border-radius: 6px; text-decoration: none; border-left: 3px solid transparent; white-space: nowrap; font-weight: 550; }
.side a:hover { background: #313b40; }
.side .selected { background: #30383b; border-left-color: #ff913e; color: #ffad72; }
main { margin: 0 0 0 190px; padding: 32px clamp(18px, 4vw, 48px); max-width: 1740px; }
main.login-page { margin: 0; max-width: none; }
.login-card { max-width: 420px; margin: 8vh auto; }
.card { background: #fff; border: 1px solid #dce2e5; border-radius: 10px; padding: clamp(15px, 2.3vw, 24px); margin: 0 0 18px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats strong { display: block; margin-top: 8px; font-size: 32px; font-variant-numeric: tabular-nums; color: #252e35; }
.stats span, small, .muted, .helptext { color: #53636e; }
small, .helptext { display: block; margin-top: 4px; }
.mono { font-family: "IBM Plex Mono", Consolas, monospace; overflow-wrap: anywhere; }
.toolbar, .actions, .search { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.toolbar { margin: 14px 0; justify-content: space-between; }
.toolbar h2 { margin: 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
td, th { padding: 12px 10px; border-bottom: 1px solid #e5eaed; vertical-align: top; overflow-wrap: anywhere; }
th { white-space: nowrap; color: #475960; background: #f5f7f8; }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; }
.tag { display: inline-block; background: #ecf0f2; color: #3a4c55; padding: 4px 8px; border-radius: 5px; font-size: 12px; }
.crumb { display: inline-block; margin-bottom: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 18px; border-bottom: 1px solid #cdd6dc; margin: 10px 0 18px; }
.tabs.compact { margin: 0; }
.tabs a { padding: 10px 3px; color: #4c5b64; border-bottom: 3px solid transparent; text-decoration: none; }
.tabs a.active { border-color: #ce631c; color: #934014; font-weight: 750; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; }
.wide { grid-column: 1 / -1; }
label { display: block; font-size: 14px; font-weight: 650; margin: 0 0 6px; }
input:not([type=hidden]), textarea, select { border: 1px solid #adbcc4; border-radius: 6px; background: #fff; color: #18232a; padding: 9px 10px; min-height: 40px; max-width: 100%; }
.field input:not([type=hidden]), .field textarea, .field select, .login-card input:not([type=hidden]) { width: 100%; }
textarea { resize: vertical; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.errorlist { padding: 0 0 0 20px; color: #9e281d; margin: 6px 0; font-size: 14px; }
.notice { border: 1px solid #e5cfb5; background: #fff4e5; padding: 12px 14px; border-radius: 6px; margin: 0 0 14px; overflow-wrap: anywhere; }
.notice.success { background: #eaf6ee; border-color: #c4dfcc; }
.notice.error { background: #fff0ed; border-color: #e9c0b9; color: #8d251c; }
.review-layout, .preview-layout { display: grid; grid-template-columns: minmax(250px, 31%) minmax(0, 1fr); gap: 18px; align-items: start; }
.preview-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, 31%); }
.source { overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); gap: 9px 10px; font-size: 14px; }
.facts dt { color: #56666f; }
.facts dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.review-actions { margin-top: 18px; }
.release-buttons { display: grid; gap: 9px; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows > li { padding: 10px 0; border-top: 1px solid #e5eaed; }
summary { cursor: pointer; font-weight: 650; }
.mapping { margin: 18px 0; padding: 12px; border: 1px solid #dce2e5; border-radius: 6px; }
.product-preview h2 { margin-top: 20px; }
.product-preview h2:first-child { margin-top: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
  .side { width: 150px; }
  main { margin-left: 150px; }
}
@media (max-width: 780px) {
  .top { position: static; padding: 0 14px; }
  .side { position: static; width: auto; flex-direction: row; overflow: auto; padding: 6px; }
  .side a { padding: 9px 8px; }
  main { margin: 0; padding: 20px 12px; }
  .review-layout, .preview-layout { grid-template-columns: 1fr; }
  .stats strong { font-size: 25px; }
}
@media (max-width: 470px) {
  .field-grid { grid-template-columns: 1fr; }
  .brand-note { display: none; }
  .stats { gap: 5px; }
  .stats .card { padding: 9px; }
  .stats span { font-size: 12px; }
}
