:root {
  --ink: #0F1B24;
  --ink-2: #1B2B35;
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --line: #E3DED3;
  --muted: #3A4A52;
  --quiet: #5A6A72;
  --teal: #2BB3AA;
  --teal-dark: #0E6B66;
  --coral: #E8735A;
  --danger: #A8321D;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; line-height: 1.5; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0; }
a { color: var(--teal-dark); }
.topbar { background: var(--ink); color: var(--paper); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 22px; }
.badge { font-family: Inter, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; background: var(--teal); color: var(--ink); padding: 3px 8px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h2 { font-size: 24px; margin-bottom: 6px; }
.sub { color: var(--muted); margin: 0 0 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
button, .btn { font: inherit; font-weight: 600; border: 0; border-radius: 10px; padding: 12px 18px; min-height: 44px; cursor: pointer; background: var(--teal); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
button.secondary { background: transparent; border: 1.5px solid var(--ink); }
button.small { padding: 8px 12px; min-height: 36px; font-size: 14px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.topbar button.secondary { color: var(--paper); border-color: #4A5B64; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
input, select { font: inherit; padding: 10px 12px; min-height: 44px; border: 1px solid #C9C3B6; border-radius: 10px; background: #fff; color: var(--ink); }
input[type="checkbox"] { min-height: 0; width: 20px; height: 20px; accent-color: var(--teal-dark); }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 2px; }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 13px; color: var(--quiet); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
td input[type="number"] { width: 90px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #DCEFEC; color: #0A4F4B; }
.pill.pending { background: #FBE3DC; color: #7A2A16; }
.pill.shipped, .pill.ordered { background: #DCEFEC; color: #0A4F4B; }
.pill.expired, .pill.canceled { background: #ECEAE4; color: #4A4A44; }
.calc { font-size: 13px; color: var(--quiet); }
.calc.warn { color: var(--danger); font-weight: 600; }
.msg { padding: 12px 14px; border-radius: 10px; background: #DCEFEC; color: #0A4F4B; }
.msg.error { background: #FBE3DC; color: #7A2A16; }
.hidden { display: none !important; }
.center { text-align: center; }
.hero { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 32px; }
.hero p { color: #BFD0D6; }
.empty { color: var(--quiet); padding: 12px 0; }
