:root {
  --ink: #102521;
  --ink-strong: #071f1b;
  --muted: #60716c;
  --brand: #08745b;
  --brand-strong: #045443;
  --brand-soft: #e1f3ec;
  --brand-pale: #f0f8f5;
  --nav: #073f34;
  --surface: #ffffff;
  --canvas: #f3f7f5;
  --line: #d8e4df;
  --line-strong: #bdcec7;
  --warning: #d98b0b;
  --warning-soft: #fff3d6;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow-1: 0 1px 2px rgba(5, 45, 36, 0.05), 0 8px 24px rgba(5, 45, 36, 0.06);
  --shadow-2: 0 16px 48px rgba(5, 45, 36, 0.11);
  --radius-control: 10px;
  --radius-panel: 16px;
  --radius-feature: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--canvas);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(52, 156, 124, 0.08), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(16, 160, 120, 0.3);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 63, 52, 0.97);
  box-shadow: 0 8px 28px rgba(4, 48, 39, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark svg,
#menu svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-name strong {
  font-weight: 900;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

nav a {
  position: relative;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

nav a.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: #72ddb9;
}

nav .btn {
  min-height: 42px;
  margin-left: 8px;
  border-color: rgba(255, 255, 255, 0.42);
  background: #fff;
  color: var(--nav);
}

#menu {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

main {
  width: min(1240px, calc(100% - 32px));
  min-height: 72vh;
  margin: 38px auto 80px;
  animation: page-in 420ms var(--ease) both;
}

main > * {
  animation: content-in 420ms var(--ease) both;
}

footer {
  padding: 32px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  font-weight: 850;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.12;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  color: var(--brand);
  font-weight: 800;
}

.muted,
.meta {
  color: var(--muted);
}

.hero {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  align-items: stretch;
  gap: 24px;
}

.hero-copy {
  padding: clamp(38px, 6vw, 76px) clamp(10px, 3vw, 36px) clamp(38px, 6vw, 70px) 0;
}

.hero-copy h1 {
  max-width: 720px;
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-feature);
  background: var(--nav);
  box-shadow: var(--shadow-2);
  color: #fff;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(118, 225, 188, 0.22);
  border-radius: 50%;
}

.hero-card::before {
  width: 300px;
  height: 300px;
  top: -170px;
  right: -120px;
}

.hero-card::after {
  width: 180px;
  height: 180px;
  right: 30px;
  bottom: -100px;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card .big {
  margin-top: 2px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.btn {
  appearance: none;
  min-height: 48px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-control);
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(3, 58, 46, 0.14);
  transition: transform 160ms var(--ease), background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  box-shadow: 0 8px 18px rgba(5, 116, 91, 0.16);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.secondary {
  border-color: #93cbb8;
  background: #fff;
  color: var(--brand-strong);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--brand);
  background: var(--brand-pale);
}

.btn.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.btn.ghost:hover {
  border-color: var(--line-strong);
  background: var(--brand-pale);
}

.btn.danger {
  border-color: #efb4ae;
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: none;
}

.btn.danger:hover {
  border-color: var(--danger);
  background: #ffe6e3;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.hero-card {
  border: 1px solid var(--line);
}

.card {
  position: relative;
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.room {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 220ms var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.room:hover {
  border-color: #a9cfc1;
  box-shadow: 0 18px 40px rgba(5, 63, 50, 0.11);
  transform: translateY(-4px);
}

.room-icon {
  height: 126px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent),
    var(--brand-soft);
  color: var(--brand);
}

.room-icon svg {
  width: 54px;
  height: 54px;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.room .btn {
  width: 100%;
  margin-top: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #cae5db;
  border-radius: 999px;
  background: var(--brand-pale);
  color: #315c50;
  font-size: 0.82rem;
}

.page-head {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-head h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.form {
  display: grid;
  gap: 18px;
}

.form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #243d36;
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #8eb3a7;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 116, 91, 0.12);
}

input:disabled {
  border-color: var(--line);
  background: #eff4f2;
  color: #64766f;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.auth {
  width: min(560px, 100%);
  margin: 52px auto;
  padding: clamp(24px, 5vw, 40px);
}

.tabs {
  display: flex;
  gap: 6px;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #edf3f0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.tabs .btn {
  flex: 1 0 auto;
  min-height: 44px;
  border-color: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.notice {
  padding: 13px 15px;
  border: 1px solid #b9d9e8;
  border-radius: 10px;
  background: #eef8fc;
  color: #285b73;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.pending,
.needs_info {
  background: var(--warning-soft);
  color: #805700;
}

.approved,
.completed {
  background: #dcf4e9;
  color: #075d49;
}

.rejected,
.cancelled {
  background: var(--danger-soft);
  color: #982018;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.booking:hover {
  border-color: #b9d2c9;
}

.stack {
  display: grid;
  gap: 14px;
}

.empty {
  padding: 56px 24px;
  color: var(--muted);
  text-align: center;
  box-shadow: none;
}

.guide-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  box-shadow: none;
}

.num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--nav);
  color: #fff;
  font-weight: 900;
}

details {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

details:last-child {
  border-bottom: 0;
}

summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dashboard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

.side {
  display: grid;
  align-content: start;
  gap: 7px;
}

.side button {
  justify-content: flex-start;
  text-align: left;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kpi {
  padding: 22px;
}

.kpi b {
  display: block;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.loading {
  padding: 100px 20px;
  color: var(--muted);
  text-align: center;
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: var(--ink-strong);
  box-shadow: var(--shadow-2);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 200ms ease, transform 260ms var(--ease);
}

#toast.show {
  opacity: 1;
  transform: none;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(3, 31, 26, 0.58);
  backdrop-filter: blur(5px);
  animation: modal-backdrop-in 180ms ease both;
}

.modal-layer[hidden] {
  display: none;
}

.modal-open {
  overflow: hidden;
}

.app-modal {
  width: min(480px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow-y: auto;
  padding: clamp(24px, 5vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(2, 34, 28, 0.28);
  text-align: center;
  animation: modal-content-in 240ms var(--ease) both;
}

.app-modal h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.modal-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
}

.modal-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-icon.loading {
  width: 38px;
  height: 38px;
  margin: 1px 0 0;
  border: 4px solid #dcefe8;
  border-top-color: var(--brand);
  border-radius: 50%;
  background: transparent;
  animation: modal-spin 720ms linear infinite;
}

.modal-layer.is-loading {
  padding: 20px;
  place-items: center;
  background: rgba(3, 31, 26, 0.2);
  backdrop-filter: blur(3px);
}

.app-modal.loading-state {
  position: relative;
  width: min(360px,100%);
  min-height: 92px;
  padding: 19px 20px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  border-color: rgba(7,84,67,.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(3,31,26,.22);
  text-align: left;
}

.app-modal.loading-state .modal-icon { grid-row: 1 / 3; grid-column: 1; }
.app-modal.loading-state h2 { grid-row: 1; grid-column: 2; margin: 0; color: var(--ink-strong); font-size: 1rem; letter-spacing: -.01em; }
.app-modal.loading-state .modal-body { grid-row: 2; grid-column: 2; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.app-modal.loading-state .modal-body p { margin: 2px 0 0; }
.app-modal.loading-state #modalField,
.app-modal.loading-state .modal-actions { display: none; }

@keyframes loading-rail {
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.modal-body {
  color: var(--muted);
  line-height: 1.7;
  text-align: left;
}

.modal-body.center {
  text-align: center;
}

.app-modal:has(.booking-detail) { width: min(780px, 100%); }
.booking-detail { display: grid; gap: 16px; color: var(--ink); }
.booking-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.booking-detail-hero h3 { margin: 9px 0 2px; color: var(--ink-strong); font-size: 1.25rem; }
.booking-detail-hero p,.booking-detail-hero small { margin: 0; color: var(--muted); }
.booking-detail-hero > small { max-width: 220px; text-align: right; overflow-wrap: anywhere; }
.booking-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.booking-detail-grid section,.booking-detail-section { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfc; }
.booking-detail-grid section > span,.booking-detail-grid section > small { display: block; color: var(--muted); font-size: .8rem; }
.booking-detail-grid section > b { display: block; margin-top: 3px; color: var(--ink-strong); overflow-wrap: anywhere; }
.booking-detail-wide { grid-column: 1 / -1; }
.booking-detail-section h4,.booking-detail-section p { margin: 0; }
.booking-detail-section h4 { margin-bottom: 8px; color: var(--ink-strong); font-size: .92rem; }
.booking-detail-equipment { display: flex; flex-wrap: wrap; gap: 7px; }
.booking-detail-equipment > span { padding: 5px 10px; border: 1px solid #a9d9c8; border-radius: 999px; background: #e1f4ed; color: #075d49; font-size: .84rem; font-weight: 700; }
.booking-detail-equipment > .equipment-empty { border-color: var(--line); background: #f4f7f6; color: var(--muted); font-weight: 700; }
.equipment-request { border-color: #b7dacf; background: #f5fbf8; }
.booking-history { margin: 0; padding: 0; list-style: none; }
.booking-history li { display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 10px; padding: 6px 0; }
.booking-history li > span { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.booking-history b,.booking-history small { display: block; }
.booking-history small { color: var(--muted); font-size: .78rem; }
.booking-history p { margin: 5px 0 0; }

#modalField {
  margin-top: 18px;
  text-align: left;
}

#modalField:empty {
  display: none;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions:empty {
  display: none;
}

.modal-actions .btn {
  min-width: 112px;
}

body[aria-busy="true"] main,
body[aria-busy="true"] .site-header {
  pointer-events: none;
  user-select: none;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.check-grid label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.check-grid input {
  width: 20px;
  min-height: auto;
}

@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-content-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1120px) {
  .header-inner {
    width: min(100% - 24px, 1240px);
  }

  nav a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }
}

@media (max-width: 900px) {
  :root {
    font-size: 16px;
  }

  .header-inner {
    min-height: 68px;
  }

  #menu {
    display: grid;
  }

  nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    max-height: calc(100vh - 68px);
    padding: 12px 16px 18px;
    display: none;
    align-items: stretch;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--nav);
    box-shadow: var(--shadow-2);
  }

  nav.open {
    display: flex;
    flex-direction: column;
    animation: content-in 180ms var(--ease) both;
  }

  nav a {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
    font-size: 1rem;
  }

  nav .btn {
    margin: 6px 0 0;
  }

  .hero,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px 4px 12px;
  }

  .hero-card {
    min-height: 250px;
  }

  .grid,
  .kpis {
    grid-template-columns: 1fr;
  }

  .form.two {
    grid-template-columns: 1fr;
  }

  .full {
    grid-column: auto;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1240px);
    margin-top: 24px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .card,
  .hero-card {
    padding: 18px;
    border-radius: 14px;
  }

  .actions .btn {
    width: 100%;
  }

  .tabs {
    overflow-x: auto;
  }

  .modal-layer {
    align-items: end;
    padding: 10px;
  }

  .app-modal {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 20px 20px 14px 14px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .booking-detail-hero { display: grid; }
  .booking-detail-hero > small { text-align: left; }
  .booking-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile app navigation and task-based help */
.mobile-app-nav { display:none; }
.guide-hero { padding:clamp(28px,6vw,58px); border-radius:24px; background:linear-gradient(145deg,var(--nav),#0b6a56); color:#fff; }
.guide-hero h1 { max-width:720px; margin:8px 0 10px; color:#fff; }
.guide-hero p { max-width:650px; margin:0; color:rgba(255,255,255,.8); font-size:1.06rem; }
.eyebrow { color:var(--brand); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.guide-hero .eyebrow { color:#8ce2c4; }
.guide-jump { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.guide-jump a { min-height:42px; padding:9px 14px; display:inline-flex; align-items:center; border:1px solid rgba(255,255,255,.24); border-radius:999px; background:rgba(255,255,255,.08); color:#fff; font-weight:700; text-decoration:none; }
.guide-section { margin-top:20px; }
.guide-section-head { max-width:760px; }
.guide-section-head > span { color:var(--brand); font-size:.82rem; font-weight:750; }
.guide-section h2 { margin:5px 0 8px; }
.guide-checklist { padding:0; margin:22px 0; display:grid; gap:0; list-style:none; counter-reset:guide-step; }
.guide-checklist li { position:relative; min-height:72px; padding:10px 0 14px 54px; counter-increment:guide-step; border-bottom:1px solid var(--line); }
.guide-checklist li:last-child { border-bottom:0; }
.guide-checklist li::before { content:counter(guide-step); position:absolute; top:8px; left:0; width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:var(--brand-pale); color:var(--brand); font-weight:850; }
.guide-checklist p { margin:4px 0 0; color:var(--muted); line-height:1.55; }
.guide-role-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.guide-role-label { width:max-content; padding:6px 10px; border-radius:999px; background:var(--brand-pale); color:var(--brand); font-size:.78rem; font-weight:800; }
.guide-role-label.staff { background:var(--warning-soft); color:#8a5700; }
.guide-role-label.admin { background:#e9e7f7; color:#50449a; }
.guide-help { margin-top:20px; }
.guide-help-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.guide-help-grid > div { padding:14px; border:1px solid var(--line); border-radius:12px; background:#fbfdfc; }
.guide-help-grid p { margin:5px 0 0; color:var(--muted); }
.more-menu-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.more-menu-card { min-height:104px; padding:18px; display:flex; flex-direction:column; justify-content:center; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--ink); text-decoration:none; box-shadow:var(--shadow-1); transition:transform 160ms ease,border-color 160ms ease; }
.more-menu-card:hover { border-color:#99cbbb; transform:translateY(-1px); }
.more-menu-card b { font-size:1.02rem; }
.more-menu-card span { margin-top:5px; color:var(--muted); }
.more-menu-card.danger-link b { color:var(--danger); }

@media (max-width:900px) {
  .site-header #nav,.site-header #menu { display:none; }
  body { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  footer { margin-bottom:10px; }
  .mobile-app-nav {
    position:fixed;
    inset:auto 10px max(10px,env(safe-area-inset-bottom));
    z-index:35;
    min-height:64px;
    padding:6px;
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    border:1px solid rgba(255,255,255,.16);
    border-radius:19px;
    background:rgba(7,63,52,.96);
    box-shadow:0 16px 46px rgba(3,38,31,.28);
    backdrop-filter:blur(18px);
  }
  .mobile-app-nav a { position:relative; width:auto; min-width:0; min-height:52px; padding:5px 2px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; border-radius:13px; color:rgba(255,255,255,.68); font-size:.68rem; font-weight:700; text-decoration:none; }
  .mobile-app-nav a.active { background:rgba(255,255,255,.12); color:#fff; }
  .mobile-app-nav a.active::after { display:none; }
  .mobile-app-nav svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .mobile-app-nav i { position:absolute; top:3px; left:calc(50% + 7px); min-width:17px; height:17px; padding:0 4px; display:grid; place-items:center; border:2px solid var(--nav); border-radius:999px; background:#f5a623; color:#382200; font-size:.61rem; font-style:normal; }
  .guide-role-grid { grid-template-columns:1fr; }
}

@media (max-width:560px) {
  .header-inner { min-height:60px; }
  .brand-name { font-size:1.06rem; }
  .more-menu-grid,.guide-help-grid { grid-template-columns:1fr; }
  .guide-hero { padding:26px 20px; border-radius:18px; }
  .guide-jump { display:grid; grid-template-columns:1fr 1fr; }
  .guide-jump a { justify-content:center; }
  .guide-section { padding:18px; }
  .guide-checklist li { padding-left:48px; }
}
.language-switch{display:flex;align-items:center;gap:4px;flex:0 0 auto;padding:4px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.82);font-size:.75rem}.language-switch button{border:0;border-radius:999px;background:transparent;color:var(--muted);padding:6px 8px;font:inherit;font-weight:800;cursor:pointer}.language-switch button.active{background:var(--brand);color:#fff}@media(max-width:760px){.language-switch{margin-left:auto}.language-switch button{padding:5px 7px}}
.turnstile-box{min-height:65px;display:flex;justify-content:center;align-items:center}
