:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --ink: #151513;
  --muted: #696962;
  --line: #deded7;
  --soft: #f0f0eb;
  --accent: #1d5a43;
  --accent-strong: #144531;
  --danger: #a33131;
  --shadow: 0 18px 50px rgba(25, 31, 25, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 72px; }
.brand-row { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 28px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -0.05em; line-height: 0.98; }
h2 { margin-bottom: 8px; font-size: 1.28rem; letter-spacing: -0.02em; }
.lede { color: var(--muted); max-width: 680px; font-size: 1.03rem; line-height: 1.55; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-weight: 750; letter-spacing: .14em; font-size: .72rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
.auth-card { width: min(470px, 100%); }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.stack { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #353530; font-size: .9rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #cfcfc6; border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 90, 67, .12); }
textarea { resize: vertical; min-height: 92px; }
button { border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: white; padding: 11px 15px; font-weight: 750; }
button:hover { background: var(--accent-strong); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button.secondary:hover { background: var(--soft); }
button.danger { color: var(--danger); border-color: #e4c2c2; background: #fff; }
button.danger:hover { background: #fff4f4; }
.link-button { border: 0; background: transparent; color: var(--accent); padding: 12px 0 0; }
.link-button:hover { background: transparent; text-decoration: underline; }
.grid { display: grid; gap: 22px; }
.two-col { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); }
.two-col.compact { grid-template-columns: 1fr 1fr; gap: 12px; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 18px; }
.toolbar { align-items: center; }
.optional { color: var(--muted); font-weight: 500; font-size: .82rem; }
.check-row { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.check-row input { width: 18px; height: 18px; }
.help { margin: -2px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.stats-card { align-self: start; }
.stats { display: grid; gap: 8px; margin: 4px 0 24px; }
.stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.stats strong { font-size: 2rem; letter-spacing: -.04em; }
.stats span { color: var(--muted); text-align: right; }
.security-note { background: #eef6f1; border-radius: 12px; padding: 16px; color: #244435; }
.security-note p { margin: 6px 0 0; line-height: 1.5; font-size: .88rem; }
.list-card { margin-top: 22px; }
.offer-list { display: grid; gap: 12px; }
.offer { border: 1px solid var(--line); border-radius: 14px; padding: 17px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.offer h3 { margin: 0 0 5px; font-size: 1.03rem; }
.offer-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: .83rem; }
.offer-note { margin: 10px 0 0; color: #474740; line-height: 1.45; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.actions button { padding: 8px 10px; font-size: .82rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: .74rem; font-weight: 750; background: var(--soft); color: #4f4f49; }
.badge.active { background: #e6f4eb; color: #1d643f; }
.badge.expired { background: #f4e9e9; color: #893333; }
.notice { margin-bottom: 18px; border: 1px solid #bdd4c6; background: #eef6f1; color: #214835; border-radius: 12px; padding: 12px 14px; }
.notice.error { border-color: #e0bcbc; background: #fff1f1; color: #7e2929; }
.empty { color: var(--muted); text-align: center; padding: 32px 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.hidden { display: none !important; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .brand-row { flex-direction: column; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 28px; }
  .card { padding: 18px; border-radius: 14px; }
  .two-col.compact { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .actions { justify-content: start; }
}
