:root {
  --ui-primary: #173553;
  --ui-primary-hover: #0b263f;
  --ui-navigation: #102b46;
  --ui-accent: #d6a13a;
  --ui-danger: #9f1239;
  --ui-success: #14663a;
  --ui-warning: #8a5a08;
  --ui-background: #f4f7fa;
  --ui-surface: #fff;
  --ui-text: #182c40;
  --ui-muted: #65788c;
  --ui-border: #d7e1e9;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ui-text);
  background: var(--ui-background);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { min-height: 40px; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ui-accent); outline-offset: 2px; }
.mobile-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(16px,calc((100vw - 1240px)/2)); background: var(--ui-navigation); color: #fff; }
.mobile-brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 700; }
.mobile-brand img { width: 74px; height: auto; filter: brightness(0) invert(1); }
.mobile-main { width: min(1240px,100%); margin: 0 auto; padding: 28px 24px 56px; }
.mobile-footer { padding: 20px 16px; border-top: 1px solid var(--ui-border); color: var(--ui-muted); text-align: center; font-size: 12px; }
.mobile-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr); gap: 20px; align-items: start; }
.mobile-stack { display: grid; gap: 18px; }
.mobile-panel { min-width: 0; padding: 24px; border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-surface); box-shadow: 0 3px 14px rgba(16,43,70,.05); }
.mobile-panel h1 { margin: 4px 0 10px; color: var(--ui-navigation); font-size: clamp(26px,4vw,34px); }
.mobile-panel h2 { margin: 0 0 12px; color: var(--ui-navigation); font-size: 20px; }
.mobile-panel h3 { margin: 0 0 8px; color: var(--ui-navigation); font-size: 16px; }
.mobile-eyebrow { color: var(--ui-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mobile-copy { color: var(--ui-muted); line-height: 1.55; }
.mobile-form { display: grid; gap: 15px; }
.mobile-field { display: grid; gap: 6px; }
.mobile-field label { color: var(--ui-navigation); font-size: 13px; font-weight: 700; }
.mobile-field input,.mobile-field select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #bbcbd8; border-radius: 5px; background: #fff; color: var(--ui-text); }
.mobile-help { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.45; }
.mobile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mobile-primary,.mobile-secondary,.mobile-quiet { padding: 9px 15px; border-radius: 6px; font-weight: 700; }
.mobile-primary { border: 1px solid var(--ui-primary); background: var(--ui-primary); color: #fff; }
.mobile-primary:hover { background: var(--ui-primary-hover); }
.mobile-secondary { border: 1px solid var(--ui-border); background: #fff; color: var(--ui-primary); }
.mobile-quiet { min-height: 36px; border: 0; background: transparent; color: var(--ui-primary); text-decoration: underline; }
.mobile-notice { margin: 14px 0; padding: 13px 15px; border-left: 4px solid #8da2b4; background: #f0f4f7; line-height: 1.5; }
.mobile-notice.success { border-color: var(--ui-success); background: #eff8f2; }
.mobile-notice.warning { border-color: var(--ui-warning); background: #fff8eb; }
.mobile-notice.error { border-color: var(--ui-danger); background: #fff1f2; }
.mobile-booking-list { display: grid; gap: 8px; }
.mobile-booking-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--ui-border); border-radius: 6px; background: #fff; }
.mobile-booking-row strong,.mobile-booking-row small { display: block; }
.mobile-booking-row small { margin-top: 4px; color: var(--ui-muted); }
.mobile-person { padding: 16px 0; border-top: 1px solid var(--ui-border); }
.mobile-person:nth-child(3n) { background: #f0f5fa; }
.mobile-status { display: inline-block; padding: 4px 8px; border-radius: 4px; background: #fff0d9; color: #704b0a; font-size: 12px; font-weight: 700; }
.mobile-status.ready { background: #e3f3e9; color: var(--ui-success); }
.mobile-status.blocked { background: #fae6e4; color: var(--ui-danger); }
.mobile-empty { padding: 24px 12px; color: var(--ui-muted); text-align: center; }
.mobile-details { margin-top: 18px; }
.mobile-details summary { cursor: pointer; color: var(--ui-primary); font-weight: 700; }
.mobile-details pre { max-height: 360px; overflow: auto; padding: 14px; background: #142638; color: #e8f0f7; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mobile-link { color: var(--ui-primary); font-weight: 700; }
.mobile-loading { padding: 70px 16px; color: var(--ui-muted); text-align: center; }

@media (max-width: 760px) {
  .mobile-main { padding: 16px 14px 38px; }
  .mobile-grid { grid-template-columns: 1fr; }
  .mobile-panel { padding: 18px; }
  .mobile-header { padding-inline: 14px; }
}

@media (max-width: 420px) {
  .mobile-brand { gap: 9px; font-size: 13px; }
  .mobile-brand img { width: 58px; }
  .mobile-booking-row { align-items: flex-start; flex-direction: column; }
  .mobile-actions > button { flex: 1 1 140px; }
}
