:root {
  --bg: #f6f5f2;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #5f5f5a;
  --line: #d9d7d0;
  --brand: #2f6b3a;        /* Wildflower green */
  --brand-dark: #234f2b;
  --brand-soft: #e7f1e8;
  --danger: #a12a1f;
  --danger-soft: #fbeceb;
  --warn-soft: #fff6dc;
  --focus: #1f5fbf;
  --radius: 12px;
  font-size: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.4;
}
[hidden] { display: none !important; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: var(--brand); color: #fff;
}
.brand { font-weight: 700; font-size: 1.1rem; }
.who { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .link { color: #fff; }

main { max-width: 760px; margin: 0 auto; padding: 16px 16px 96px; }
h1 { font-size: 1.5rem; margin: 8px 0 4px; }
h2 { font-size: 1.25rem; margin: 0; }
h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 0.85rem; }

button, .button {
  font: inherit; cursor: pointer; border-radius: 10px; border: 2px solid transparent;
  padding: 12px 18px; min-height: 52px; font-weight: 600;
}
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.primary { background: var(--brand); color: #fff; }
.primary:hover { background: var(--brand-dark); }
.secondary { background: var(--card); color: var(--brand-dark); border-color: var(--brand); }
.danger { background: var(--danger); color: #fff; }
.danger-outline { background: var(--card); color: var(--danger); border-color: var(--danger); }
.link { background: none; border: none; padding: 4px; min-height: 0; text-decoration: underline; color: var(--brand-dark); font-weight: 600; }
.block { display: block; width: 100%; }
button[disabled] { opacity: 0.55; cursor: not-allowed; }

.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }

.signin { max-width: 420px; margin: 48px auto; background: var(--card); border-radius: var(--radius); padding: 28px 22px; border: 1px solid var(--line); }
.google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1d1d1b; border: 2px solid #747775; }
.google svg { width: 22px; height: 22px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 8px 0 16px; }
.toolbar select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); min-height: 52px; max-width: 100%; }

.suites { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.suite {
  display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-weight: 400;
}
.suite:hover { border-color: var(--brand); }
.suite .num { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand-soft); border-radius: 8px; color: var(--brand-dark); }
.suite .num small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.suite .num b { font-size: 1.5rem; line-height: 1.1; }
.suite .info { flex: 1; min-width: 0; }
.suite .name { font-weight: 700; font-size: 1.05rem; }
.suite .contact { color: var(--muted); font-size: 0.9rem; }
.suite.empty { background: transparent; border-style: dashed; }
.suite.empty .num { background: #ecebe6; color: var(--muted); }
.suite.empty .name { color: var(--muted); font-weight: 600; }

.sheet { position: fixed; inset: 0; background: rgba(20, 20, 18, 0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-panel { background: var(--card); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px 16px 28px; }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-panel { border-radius: 16px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.close { background: none; border: none; font-size: 1.4rem; min-height: 44px; min-width: 44px; padding: 0; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.contact-card .role { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-dark); }
.contact-line { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.contact-line a { color: var(--brand-dark); font-weight: 600; }

label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea {
  font: inherit; width: 100%; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; min-height: 52px;
}
input[aria-invalid="true"] { border-color: var(--danger); }
.field + .field { margin-top: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

.notice { border-radius: 10px; padding: 12px 14px; }
.notice.info { background: var(--brand-soft); }
.notice.warn { background: var(--warn-soft); }
.notice.error { background: var(--danger-soft); color: var(--danger); font-weight: 600; }

.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.choice { background: var(--card); border: 2px solid var(--line); color: var(--text); }
.choice[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.confirm { font-size: 1.1rem; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.actions > button { flex: 1 1 160px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30;
  background: #1d1d1b; color: #fff; padding: 14px 20px; border-radius: 12px; max-width: calc(100% - 32px); font-weight: 600;
}
