:root {
  color-scheme: light;
  --ink: #18201c;
  --muted: #5f6861;
  --line: #d7ddd7;
  --panel: #ffffff;
  --bg: #f5f7f4;
  --accent: #0d6b5f;
  --accent-2: #b83f22;
  --soft: #e8f2ed;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button, .secondary { border: 1px solid var(--accent); background: var(--accent); color: white; min-height: 44px; padding: 10px 14px; border-radius: 6px; font-weight: 700; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
.secondary { background: white; color: var(--accent); }
.link-button { border: 0; background: transparent; color: var(--accent); min-height: 0; padding: 0; text-decoration: underline; text-align: left; }
.danger { background: var(--accent-2); border-color: var(--accent-2); }
.home-shell, .app-shell, .policy-shell { width: min(1120px, calc(100% - 28px)); margin: 0 auto; }
.policy-shell { max-width: 760px; padding: 36px 0; }
.home-shell { padding: 34px 0; }
.intro { padding: 22px 0 16px; max-width: 760px; }
.mark { width: 78px; height: 78px; border: 3px solid var(--ink); display: grid; place-items: center; position: relative; margin-bottom: 18px; background: var(--soft); }
.mark span { font-weight: 900; font-size: 30px; }
.mark i, .small-mark:after { content: ""; position: absolute; width: 16px; height: 16px; right: -8px; bottom: 12px; background: var(--accent-2); }
.small-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 2px solid currentColor; margin-right: 8px; position: relative; font-weight: 900; }
.eyebrow { text-transform: uppercase; letter-spacing: 0; font-size: 12px; font-weight: 800; color: var(--accent-2); }
h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1; margin: 0 0 16px; letter-spacing: 0; }
h2 { font-size: 22px; margin: 0 0 14px; }
h3 { margin: 0 0 4px; font-size: 16px; }
.lede { font-size: 19px; line-height: 1.5; color: #2e3832; }
.note, .hint, .status { color: var(--muted); line-height: 1.45; }
.auth-grid, .workspace, .admin-grid, .settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.panel, .review, .product, .roster-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
label { display: grid; gap: 6px; margin: 10px 0; font-weight: 700; font-size: 14px; }
input, select { width: 100%; border: 1px solid #c5cec7; border-radius: 6px; min-height: 42px; padding: 9px 10px; background: white; color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 110px; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check input { width: 18px; min-height: 18px; margin-top: 2px; }
.topbar { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(14px, calc((100vw - 1120px) / 2)); background: white; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-weight: 900; display: flex; align-items: center; }
.campaign-head { padding: 26px 0 18px; }
.campaign-head h1 { font-size: clamp(30px, 5vw, 52px); }
.product-list { display: grid; gap: 10px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) 96px 92px 190px; gap: 12px; align-items: center; }
.product p { margin: 0; color: var(--muted); font-size: 13px; }
.product .product-alert { margin-top: 8px; color: var(--accent-2); font-weight: 800; line-height: 1.4; }
.inactive-product { border-color: rgba(217, 119, 6, 0.65); background: #fff8ed; }
.product strong { white-space: nowrap; }
.product-options { display: grid; gap: 6px; }
.review { position: sticky; top: 82px; }
.summary { display: grid; gap: 8px; margin-bottom: 12px; }
.summary div, .stats div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.summary .total { font-size: 18px; color: var(--accent); border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.stats div { display: grid; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.stats span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--line); }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 9px; font-size: 14px; }
.filters { display: flex; gap: 10px; }
.roster-card { margin-bottom: 10px; }
.roster-card p { margin: 6px 0; color: var(--muted); }
.profile-area { padding: 28px 0 48px; }
.campaign-policy { margin-bottom: 20px; line-height: 1.5; }
.campaign-policy h2:not(:first-child) { margin-top: 22px; }
.campaign-policy li { margin: 7px 0; }
.modal { position: fixed; inset: 0; background: rgba(24,32,28,.62); display: grid; place-items: center; padding: 18px; z-index: 10; }
.modal[hidden] { display: none; }
.modal-panel { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: white; border-radius: 8px; border: 1px solid var(--line); padding: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.24); }
.small-modal { width: min(420px, 100%); position: relative; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; min-height: 36px; padding: 0; }
.warning { color: var(--accent-2); font-weight: 900; line-height: 1.45; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .auth-grid, .workspace, .admin-grid, .settings-grid, .stats { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr 84px; }
  .review { position: static; }
  .row { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
}
