:root {
  --ink: #10212b;
  --ink-soft: #40535d;
  --muted: #728088;
  --line: #dbe1e4;
  --paper: #f6f8f8;
  --white: #fff;
  --blue: #0284c7;
  --blue-soft: #e0f2fe;
  --gold: #f59e0b;
  --gold-soft: #fff4d6;
  --green: #16805a;
  --green-soft: #e9f7f0;
  --red: #c2413d;
  --red-soft: #fff0ef;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--paper); }
body, button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.admin-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.admin-header { background: var(--ink); color: #fff; }
.admin-nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; }
.admin-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.admin-brand strong { font-size: 14px; }
.admin-brand small { color: #a9bbc1; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.admin-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 7px; background: #f7e8c2; color: var(--ink); font-size: 18px; font-weight: 800; }
.back-link { color: #d6e1e4; font-size: 12px; text-decoration: none; }
.back-link:hover { color: #f7e8c2; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; }
h1 { margin-bottom: 14px; font-size: clamp(38px, 6vw, 58px); line-height: 1; }
h2 { margin-bottom: 4px; font-size: 24px; }
h3 { margin-bottom: 4px; font-size: 17px; }
.login-panel { width: min(620px, 100%); margin: 80px auto; padding: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 12px 32px rgb(16 33 43 / 0.07); }
.login-panel > p:not(.eyebrow) { max-width: 480px; margin-bottom: 30px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.login-form label { display: block; margin-bottom: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.token-row { display: flex; gap: 10px; }
.token-row input { min-width: 0; flex: 1; height: 46px; padding: 10px 12px; border: 1px solid #b9c6ca; border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; }
.token-row input:focus { border-color: var(--blue); outline: 3px solid rgb(2 132 199 / 0.12); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 15px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; transition: border-color 150ms ease-out, background 150ms ease-out, color 150ms ease-out; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #075985; }
.button-light { border-color: var(--line); background: #fff; color: var(--ink-soft); }
.button-light:hover { border-color: var(--blue); color: var(--blue); }
.feedback { min-height: 19px; margin: 12px 0 0; color: var(--red); font-size: 12px; line-height: 1.45; }
.dashboard { padding: 62px 0 90px; }
.dashboard[hidden], .login-panel[hidden] { display: none; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.dashboard-heading h1 { margin-bottom: 7px; }
.dashboard-heading p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.dashboard-actions { display: flex; gap: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 44px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin: 8px 0 4px; font-size: 38px; letter-spacing: -0.06em; }
.stat-card:first-child strong { color: var(--gold); }
.stat-card:nth-child(2) strong { color: var(--green); }
.stat-card:nth-child(3) strong { color: var(--ink-soft); }
.integration-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 38px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.integration-card h2 { margin-bottom: 5px; font-size: 20px; }
.integration-card p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.integration-card p[data-tone="success"] { color: var(--green); }
.integration-card p[data-tone="warning"] { color: #9a6105; }
.integration-card p[data-tone="error"] { color: var(--red); }
.list-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.list-toolbar h2 { margin-bottom: 3px; }
.list-toolbar p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.list-toolbar label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.list-toolbar select { height: 36px; padding: 0 28px 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-soft); font-size: 12px; }
.reservations-list { display: grid; gap: 10px; }
.empty-state { padding: 44px 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.reservation-row { display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(180px, 0.85fr) minmax(210px, 0.9fr); gap: 22px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.reservation-main h3 { font-size: 18px; }
.reservation-main p, .reservation-contact p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.reservation-contact strong { display: block; margin-bottom: 4px; font-size: 13px; }
.reservation-contact span { display: block; color: var(--muted); font-size: 12px; }
.status-line { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.status-chip { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.status-chip.pending { background: var(--gold-soft); color: #9a6105; }
.status-chip.confirmed { background: var(--green-soft); color: var(--green); }
.status-chip.rejected { background: var(--red-soft); color: var(--red); }
.reservation-date { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.reservation-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.action-button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.action-button:hover { border-color: var(--blue); color: var(--blue); }
.action-button.confirm { border-color: #a8d7c1; background: var(--green-soft); color: var(--green); }
.action-button.confirm:hover { border-color: var(--green); }
.action-button.reject { border-color: #edc0bd; background: var(--red-soft); color: var(--red); }
.action-button.reject:hover { border-color: var(--red); }
.note-line { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 820px) {
  .reservation-row { grid-template-columns: 1fr 1fr; }
  .reservation-actions { justify-content: start; }
  .note-line { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .admin-shell { width: min(100% - 28px, 1080px); }
  .admin-nav { min-height: 66px; }
  .login-panel { margin: 42px auto; padding: 26px 20px; }
  .token-row { align-items: stretch; flex-direction: column; }
  .dashboard { padding: 42px 0 64px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions .button { flex: 1; }
  .integration-card { align-items: flex-start; flex-direction: column; }
  .integration-card .button { width: 100%; }
  .stats-grid { gap: 7px; margin-bottom: 34px; }
  .stat-card { padding: 13px 11px; }
  .stat-card strong { font-size: 28px; }
  .stat-card span, .stat-card small { font-size: 10px; }
  .list-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .list-toolbar label { width: 100%; justify-content: space-between; }
  .list-toolbar select { flex: 1; }
  .reservation-row { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .reservation-actions { justify-content: start; }
  .note-line { grid-column: auto; }
}
