:root {
  color-scheme: light;
  --ink: #25182f;
  --muted: #706778;
  --paper: #fffafc;
  --card: #ffffff;
  --line: #f0dce9;
  --berry: #9f2770;
  --berry-dark: #672052;
  --mint: #d8f5e9;
  --mint-ink: #14543b;
  --gold: #f0b94c;
  --rose: #fff0f6;
  --shadow: 0 12px 36px rgba(70, 25, 66, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 5% 0%, rgba(255, 206, 226, .72), transparent 35rem),
    radial-gradient(ellipse at 95% 15%, rgba(255, 238, 180, .65), transparent 27rem),
    var(--paper);
}
a { color: var(--berry-dark); }
button, input, select, textarea { font: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(159, 39, 112, .12);
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 15px 15px 15px 5px;
  color: white; font-weight: 900; font-size: 22px;
  background: linear-gradient(145deg, #d84c9d, #7d286e);
  box-shadow: 0 5px 14px rgba(159, 39, 112, .25);
}
.brand strong { display: block; font-family: Georgia, serif; font-size: 21px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.header-badge { color: var(--berry); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-align: right; }
.page-shell { width: min(1120px, calc(100% - 28px)); margin: 28px auto 54px; }
.hero {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #f1c9df;
  border-radius: 28px;
  background: linear-gradient(125deg, #fff 0%, #fff5fa 52%, #fff8e8 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: "✦";
  position: absolute; right: 28px; top: 12px;
  color: rgba(221, 156, 52, .3); font-size: clamp(70px, 16vw, 150px); line-height: 1;
}
.eyebrow { margin: 0 0 9px; color: var(--berry); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 12px; font-family: Georgia, serif; font-size: clamp(34px, 7vw, 60px); line-height: 1.02; }
h2 { font-family: Georgia, serif; font-size: clamp(22px, 4vw, 30px); }
h3 { font-size: 16px; }
.lead { max-width: 640px; color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); line-height: 1.6; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button, button.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 11px 18px;
  color: white; background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  font-weight: 800; text-decoration: none; cursor: pointer;
  box-shadow: 0 7px 16px rgba(126, 35, 102, .18);
}
.button.secondary { border: 1px solid var(--line); color: var(--berry-dark); background: white; box-shadow: none; }
.button.warning { color: #673d00; background: #ffe9ad; box-shadow: none; }
.button:disabled { opacity: .55; cursor: not-allowed; }
.section { margin-top: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 26px 0 14px; }
.section-heading h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.card { grid-column: span 12; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.card h2, .card h3 { margin-bottom: 10px; }
.card.half { grid-column: span 6; }
.card.third { grid-column: span 4; }
.stat-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.stat-card small { display: block; color: var(--muted); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 8px; font-size: 28px; }
.pill { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 10px; border-radius: 999px; background: #f1e7ef; color: var(--berry-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.pill.ok { background: var(--mint); color: var(--mint-ink); }
.pill.off { background: #f3eff4; color: #5b5360; }
.notice { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #edc2d9; border-radius: 14px; background: #fff1f7; color: #63204d; font-weight: 700; }
.notice-success { border-color: #b9e3ca; background: #effcf4; color: #16563b; }
.notice-error { border-color: #f1c1bf; background: #fff1f0; color: #7f2420; }
.notice-info { border-color: #e6d3a7; background: #fff9e8; color: #644900; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span { color: #473a4e; font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 45px; padding: 11px 12px;
  border: 1px solid #e5d7e1; border-radius: 12px; color: var(--ink); background: white;
}
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(200, 94, 157, .18); border-color: #c85e9d; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); font-size: 13px; font-weight: 700; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--berry); }
.request-list { display: grid; gap: 12px; }
.request-item { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.request-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.request-code { color: var(--berry-dark); font: 800 13px ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.request-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 14px 0; color: var(--muted); font-size: 13px; }
.request-meta strong { display: block; margin-top: 3px; color: var(--ink); overflow-wrap: anywhere; }
.address-box { padding: 12px; border-radius: 12px; background: #fcf4f9; color: #45253d; font: 700 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.callout { padding: 14px 16px; border: 1px solid #ecd8aa; border-radius: 14px; background: #fff9e9; color: #634b17; font-size: 13px; line-height: 1.55; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
th { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer { padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state { padding: 24px; border: 1px dashed #decbd9; border-radius: 16px; color: var(--muted); text-align: center; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }
.tabs a { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--berry-dark); background: white; font-size: 13px; font-weight: 800; text-decoration: none; }
.tabs a.active { color: white; border-color: var(--berry); background: var(--berry); }
.danger-text { color: #912c2c; }
@media (max-width: 760px) {
  .site-header { padding: 13px 15px; }
  .header-badge { max-width: 120px; line-height: 1.4; }
  .page-shell { width: min(100% - 20px, 650px); margin-top: 16px; }
  .card.half, .card.third { grid-column: span 12; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .request-meta { grid-template-columns: 1fr; }
  .hero { border-radius: 22px; }
}
