/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f5f1ec;
  --panel: #ffffff;
  --ink: #201914;
  --muted: #756c64;
  --line: #e5d8cc;
  --primary: #f47f45;
  --primary-dark: #c95f2c;
  --brand-soft: #fff3ec;
  --available: #2f9b63;
  --partial: #d99b2b;
  --booked: #c94d43;
  --reserved: #8e8780;
  --selected: #ffbf63;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-heading img {
  width: 74px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.brand-heading > div {
  min-width: 0;
}

.brand-heading h1 {
  overflow-wrap: anywhere;
}

.top-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.top-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.user-logout {
  min-width: 104px;
  border-color: rgba(244, 127, 69, 0.35);
  background: #fffaf6;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 25, 20, 0.06);
}

.user-logout:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stats span {
  min-width: 96px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--muted);
  font-size: 12px;
}

.stats strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.map-stats {
  justify-content: flex-end;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 0;
  background: var(--bg);
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  background: #fffaf6;
  color: var(--primary);
  font-weight: 800;
}

.admin-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.master-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 14px;
}

.master-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.master-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.compact-select {
  width: min(360px, 100%);
}

.master-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.master-actions .inline-action {
  flex: 0 0 auto;
}

.search-input {
  width: min(380px, 100%);
}

.master-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.master-form-grid .split-actions {
  grid-column: span 1;
}

.user-master-table {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.pagination-bar > div {
  display: flex;
  gap: 8px;
}

.user-master-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 88px;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
}

.user-master-row.inactive {
  opacity: 0.7;
}

.user-master-row > div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.user-master-row strong,
.user-master-row span,
.user-master-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-master-row span,
.user-master-row small {
  color: var(--muted);
  font-size: 12px;
}

.parking-name-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-top: 14px;
}

.booking-table {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.booking-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 1fr) minmax(140px, 0.8fr) minmax(150px, 0.9fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
}

.booking-row > div {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
}

.booking-row strong,
.booking-row span,
.booking-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-row strong {
  color: var(--ink);
  font-size: 18px;
}

.booking-row span {
  color: var(--ink);
  font-weight: 700;
}

.booking-row small {
  color: var(--muted);
  font-size: 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.report-card {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  align-content: space-between;
  min-height: 172px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
}

.report-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 18px;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  grid-gap: 14px;
  gap: 14px;
  padding: 14px;
}

.admin-layout {
  grid-template-columns: clamp(260px, 18vw, 300px) minmax(0, 1fr) clamp(330px, 22vw, 380px);
  gap: 10px;
  padding: 10px;
}

.sidebar,
.map-card,
.booking-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar,
.booking-panel {
  align-self: start;
  padding: 16px;
}

.sidebar section + section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

select,
input {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.map-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.map-item {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--ink);
  text-align: left;
}

.map-item.active {
  border-color: var(--primary);
  background: var(--brand-soft);
}

.map-item span {
  font-weight: 700;
}

.map-item em {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-item small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.hidden-badge {
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4dfd8;
  color: #9c2f14;
  font-size: 11px;
  font-weight: 800;
}

.map-settings {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  grid-gap: 10px;
  gap: 10px;
  align-items: end;
  min-width: min(520px, 100%);
}

.map-visible-check {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  white-space: nowrap;
}

.note,
.empty {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.import-box {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.master-box {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}

.compact-master {
  margin-bottom: 10px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
}

.inline-check input {
  width: 16px;
  min-height: 16px;
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 82px;
  grid-gap: 8px;
  gap: 8px;
}

.split-actions .secondary,
.split-actions .ghost {
  margin-top: 0;
}

.user-master-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 12px;
}

.user-master-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  grid-gap: 8px;
  gap: 8px;
  align-items: stretch;
}

.user-master-item > button:first-child {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--ink);
  text-align: left;
}

.user-master-item.inactive > button:first-child {
  opacity: 0.7;
}

.user-master-item strong,
.user-master-item span,
.user-master-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-master-item span,
.user-master-item small {
  color: var(--muted);
  font-size: 12px;
}

.user-master-item .compact-action {
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 0 8px;
}

.level-checkboxes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
}

.level-check {
  display: grid;
  justify-items: center;
  align-items: center;
  grid-gap: 4px;
  gap: 4px;
  min-height: 50px;
  margin-top: 0;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--ink);
}

.level-check input {
  width: 16px;
  min-height: 16px;
}

.level-check span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.map-card {
  min-width: 0;
  overflow: hidden;
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.map-toolbar > .message {
  flex: 1 1 100%;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend .available {
  background: var(--available);
}

.legend .booked {
  background: var(--booked);
}

.legend .partial {
  background: var(--partial);
}

.legend .reserved {
  background: var(--reserved);
}

.legend .selected {
  background: var(--selected);
}

.map-stage {
  position: relative;
  height: min(72vh, 760px);
  min-height: 560px;
  background: #202724;
  overflow: auto;
}

.admin-layout .map-stage {
  height: calc(100vh - 214px);
  min-height: 680px;
}

.admin-layout .map-frame {
  min-width: 900px;
}

.admin-layout .map-frame iframe {
  height: calc(100vh - 214px);
  min-height: 680px;
}

.map-frame {
  position: relative;
  width: 100%;
  min-width: 720px;
  background: #fff;
}

.map-frame iframe {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 560px;
  border: 0;
  background: #202724;
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.slot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
  opacity: 0.9;
  overflow: hidden;
  padding: 2px;
}

.slot.available {
  background: color-mix(in srgb, var(--available) 78%, transparent);
}

.slot.booked {
  background: color-mix(in srgb, var(--booked) 82%, transparent);
}

.slot.partial {
  background: color-mix(in srgb, var(--partial) 84%, transparent);
  color: #1f241f;
}

.slot.reserved {
  background: color-mix(in srgb, var(--reserved) 80%, transparent);
}

.slot.is-selected {
  background: color-mix(in srgb, var(--selected) 88%, transparent);
  color: #1f241f;
  outline: 4px solid rgba(255, 255, 255, 0.9);
}

.slot.is-draft {
  border-style: dashed;
  color: #1f241f;
}

.slot.is-stack {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  opacity: 0.96;
}

.slot.is-stack.reserved,
.slot.is-stack.maintenance {
  background: color-mix(in srgb, var(--reserved) 80%, transparent);
  color: #fff;
}

.slot-number {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-flags {
  display: grid;
  width: 100%;
  height: 100%;
  grid-gap: 2px;
  gap: 2px;
}

.stack-flag {
  display: grid;
  min-height: 0;
  align-items: center;
  padding: 0 3px;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.stack-flag.available {
  background: color-mix(in srgb, var(--available) 86%, #fff);
}

.stack-flag.booked {
  background: color-mix(in srgb, var(--booked) 88%, #000);
}

.stack-flag.reserved,
.stack-flag.maintenance {
  background: color-mix(in srgb, var(--reserved) 86%, #333);
}

.floating-position {
  position: -webkit-sticky;
  position: sticky;
  left: 12px;
  top: 12px;
  z-index: 6;
  display: grid;
  width: min(430px, calc(100% - 24px));
  grid-gap: 10px;
  gap: 10px;
  margin: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(21, 32, 28, 0.16);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.floating-position strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-position small {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.floating-position-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 7px;
  gap: 7px;
}

.floating-position-grid label {
  gap: 4px;
  margin-top: 0;
  font-size: 11px;
}

.floating-position-grid input {
  min-height: 34px;
  padding: 6px 7px;
}

.compact-action {
  min-height: 34px;
  margin-top: 0;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.empty-map {
  display: grid;
  min-height: 520px;
  place-items: center;
  color: var(--muted);
}

.details {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 16px 0;
}

.details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.level-bookings {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.level-booking {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 86px;
  grid-gap: 4px 10px;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.level-booking strong {
  color: var(--ink);
}

.level-booking span,
.level-booking small {
  overflow-wrap: anywhere;
}

.level-booking small {
  grid-column: 2;
}

.level-booking .compact-action {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: auto;
  min-height: 32px;
  padding: 0 10px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.primary,
.secondary,
.ghost {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.primary {
  margin-top: 16px;
  background: var(--primary);
  color: #fff;
}

.secondary {
  background: var(--brand-soft);
  color: var(--primary);
}

.ghost {
  border: 1px solid var(--line);
  background: #fffaf6;
  color: var(--muted);
}

.message {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.message.compact {
  max-width: 360px;
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  max-width: min(420px, calc(100vw - 36px));
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(21, 32, 28, 0.18);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.toast.success {
  border-color: #b6dcc9;
  background: #eef9f3;
  color: #176044;
}

.toast.error {
  border-color: #efc0bd;
  background: #fff1f0;
  color: #a12a25;
}

.toast button {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 32, 28, 0.48);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.confirm-modal {
  width: min(460px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.disclaimer-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.disclaimer-modal h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.disclaimer-modal p {
  color: var(--muted);
  line-height: 1.5;
}

.disclaimer-modal ul {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  margin: 14px 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.45;
}

.confirm-modal h2 {
  margin-bottom: 12px;
  font-size: 26px;
}

.login-alert-modal {
  width: min(390px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.login-alert-modal h2 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.login-alert-modal p:not(.section-label) {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-details {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 0;
}

.confirm-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.confirm-details dd {
  max-width: 60%;
  overflow-wrap: anywhere;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions .primary,
.modal-actions .ghost {
  margin-top: 0;
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(22, 17, 13, 0.74), rgba(22, 17, 13, 0.2)),
    url("/brand/shreeji-plaza-building-bg.jpeg") center / cover no-repeat;
}

.auth-card {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.auth-card a {
  color: var(--primary);
  font-weight: 700;
}

.auth-logo {
  display: block;
  width: min(230px, 82%);
  height: auto;
  margin: 0 0 18px;
  border-radius: 8px;
}

.demo-otp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--primary);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--muted);
}

.demo-otp strong {
  color: var(--ink);
  font-size: 24px;
  letter-spacing: 0;
}

.inline-action {
  width: auto;
  min-width: 88px;
  margin-top: 0;
  padding: 0 12px;
}

.level-shell {
  background:
    linear-gradient(180deg, rgba(245, 241, 236, 0.96), rgba(245, 241, 236, 0.98)),
    url("/brand/shreeji-plaza-building-bg.jpeg") center / cover fixed;
}

.level-selector {
  display: grid;
  min-height: calc(100vh - 78px);
  place-items: center;
  padding: 24px;
}

.level-card {
  width: min(980px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(21, 32, 28, 0.08);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
}

.level-button {
  display: grid;
  min-height: 184px;
  align-content: start;
  grid-gap: 8px;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
  color: var(--ink);
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.level-button:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(31, 115, 88, 0.14);
  transform: translateY(-1px);
}

.level-button span {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.level-button small {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.level-button em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.level-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 6px;
  gap: 6px;
  margin: 8px 0 0;
}

.simple-availability {
  gap: 8px;
}

.level-stats div {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.level-stats dt {
  font-size: 11px;
  text-align: left;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.level-stats dd {
  color: var(--ink);
  font-size: 22px;
  text-align: left;
}

.user-map-shell {
  height: 100vh;
  overflow: hidden;
  background: #17201d;
}

.map-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.map-topbar h1 {
  font-size: 22px;
}

.user-map-view {
  position: relative;
  height: 100vh;
  padding-top: 72px;
}

.user-stage {
  height: calc(100vh - 72px);
  min-height: 0;
}

.user-stage .map-frame {
  min-width: min(1080px, 100vw);
}

.user-stage .map-frame iframe {
  height: calc(100vh - 72px);
  min-height: 0;
}

.slot-popup-backdrop {
  position: fixed;
  inset: 72px 0 0;
  z-index: 20;
  pointer-events: none;
}

.slot-popup {
  position: absolute;
  right: 18px;
  top: 18px;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
}

.slot-popup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.slot-popup h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.icon-close {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf6;
  color: var(--muted);
  font-weight: 800;
}

.tier-picker {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 12px;
}

.tier-option {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.tier-option.available {
  border-color: #b6dcc9;
}

.tier-option.booked {
  border-color: #efc0bd;
  background: #fff7f6;
}

.tier-option.active {
  outline: 3px solid color-mix(in srgb, var(--selected) 70%, transparent);
}

.tier-option span,
.tier-option small {
  color: var(--muted);
  font-size: 12px;
}

.floating-levels,
.floating-maps {
  position: fixed;
  z-index: 11;
  display: flex;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.floating-levels {
  left: 18px;
  bottom: 18px;
}

.floating-maps {
  left: 18px;
  top: 194px;
  max-width: min(560px, calc(100vw - 36px));
  overflow-x: auto;
}

.floating-levels button,
.floating-maps button {
  min-height: 34px;
  min-width: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
  color: var(--primary);
  font-weight: 800;
}

.floating-levels button.active,
.floating-maps button.active {
  background: var(--primary);
  color: #fff;
}

.danger-text {
  color: #b83232;
}

.field-note {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 6px;
}

@media (max-width: 1120px) {
  .topbar,
  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .admin-layout {
    padding: 12px;
  }

  .admin-layout .map-stage,
  .admin-layout .map-frame iframe {
    height: min(78vh, 820px);
    min-height: 560px;
  }

  .admin-layout .map-frame {
    min-width: 720px;
  }

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

  .master-card-head {
    flex-direction: column;
  }

  .master-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .compact-select {
    width: 100%;
  }

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

  .user-master-row {
    grid-template-columns: 1fr;
  }

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

  .user-map-shell {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .map-topbar {
    position: -webkit-sticky;
    position: sticky;
  }

  .user-map-view {
    height: auto;
    min-height: calc(100vh - 72px);
  }

  .floating-levels,
  .floating-maps {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 12px;
  }

  .floating-maps {
    overflow-x: auto;
  }

  .user-stage,
  .user-stage .map-frame iframe {
    height: min(70vh, 720px);
  }

  .slot-popup-backdrop {
    position: static;
    pointer-events: auto;
  }

  .slot-popup {
    position: static;
    width: auto;
    max-height: none;
    margin: 12px;
  }
}

