:root {
  color-scheme: light;
  --blue-950: #0a3358;
  --blue-900: #0d466f;
  --blue-700: #176da9;
  --blue-600: #2583c2;
  --blue-100: #e5f3fd;
  --ink: #182333;
  --muted: #687589;
  --line: #dfe7ef;
  --surface: #ffffff;
  --canvas: #f2f6f9;
  --cyan: #c8f0f5;
  --yellow: #fff3b0;
  --gold: #f6c94f;
  --masked: #dce5ee;
  --danger: #c44545;
  --shadow: 0 18px 55px rgba(23, 66, 99, 0.11);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(214, 226, 236, .9);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; font-size: 19px; font-weight: 800; background: linear-gradient(145deg, var(--blue-600), var(--blue-900)); border-radius: 13px; box-shadow: 0 8px 22px rgba(23, 109, 169, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }

.main-nav { display: flex; gap: 5px; padding: 5px; background: #edf3f7; border-radius: 12px; }
.nav-item { padding: 9px 17px; color: #5d6c7e; background: transparent; border: 0; border-radius: 9px; }
.nav-item:hover, .nav-item.is-active { color: var(--blue-900); background: #fff; box-shadow: 0 4px 13px rgba(30, 67, 96, .08); }

.account-button { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; color: #415166; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.role-dot { width: 9px; height: 9px; background: #9ba7b4; border-radius: 50%; }
.role-dot.viewer { background: #20a47c; }
.role-dot.admin { background: #277fc0; }

.view { display: none; min-height: calc(100vh - 72px); }
.view.is-visible { display: block; }
.content-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.hero-shell { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 430px; padding: 70px max(40px, calc((100vw - 1180px) / 2)); overflow: hidden; color: #fff; background: radial-gradient(circle at 77% 44%, rgba(112, 195, 239, .25), transparent 27%), linear-gradient(120deg, #0c426c, #176a9f 60%, #1a79ac); }
.hero-copy { align-self: center; }
.eyebrow, .section-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { color: #9bd5f4; }
.hero-copy h1 { margin: 0; font-size: clamp(38px, 5.2vw, 66px); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy h1 span { color: #aaddf7; }
.hero-description { max-width: 630px; margin: 24px 0 0; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.8; }
.hero-actions, .panel-actions, .dialog-actions, .room-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { min-height: 43px; padding: 0 20px; color: var(--blue-900); font-weight: 700; background: #eaf5fb; border: 1px solid transparent; border-radius: 11px; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(10, 51, 88, .14); }
.button.primary { color: #fff; background: var(--blue-700); }
.hero-actions .button.primary { color: var(--blue-950); background: #fff; }
.button.ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.38); }
.button.ghost.dark { color: var(--blue-900); border-color: #b9ccda; }
.button.danger { color: var(--danger); background: #fff1f1; border-color: #f0c7c7; }
.button.compact { min-height: 36px; padding: 0 14px; }
.button.full { width: 100%; margin-top: 22px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.mini-floor { display: grid; grid-template-columns: repeat(3, 78px); gap: 15px; padding: 34px; transform: perspective(700px) rotateX(54deg) rotateZ(-28deg); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 28px; box-shadow: 30px 45px 70px rgba(5, 33, 55, .25); }
.mini-seat { width: 78px; height: 58px; border: 1px solid rgba(8, 48, 75, .22); border-radius: 12px; box-shadow: 0 12px 24px rgba(5, 39, 63, .18); }
.mini-seat.cyan { background: var(--cyan); }.mini-seat.yellow { background: var(--yellow); }.mini-seat.gold { background: var(--gold); }.mini-seat.empty { background: #f4f8fb; }.mini-seat.masked { background: var(--masked); }
.visual-badge { position: absolute; right: 9%; bottom: 14%; display: flex; align-items: baseline; gap: 8px; padding: 13px 18px; color: var(--blue-950); background: #fff; border-radius: 13px; box-shadow: var(--shadow); }
.visual-badge strong { font-size: 27px; }.visual-badge span { color: var(--muted); font-size: 13px; }

.overlap-shell { margin-top: -38px; padding-bottom: 70px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.summary-card { display: flex; align-items: center; gap: 15px; min-height: 104px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(23, 66, 99, .08); }
.summary-icon { display: grid; place-items: center; flex: 0 0 45px; height: 45px; font-weight: 800; border-radius: 13px; }
.summary-icon.blue { color: #176da9; background: #e4f2fc; }.summary-icon.green { color: #1e8269; background: #e0f5ef; }.summary-icon.amber { color: #a86a18; background: #fff0d6; }.summary-icon.violet { color: #7652b5; background: #eee7fa; }
.summary-card strong, .summary-card span { display: block; }.summary-card strong { font-size: 26px; }.summary-card div > span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.section-block { margin-top: 40px; }
.section-heading, .room-title-row, .floor-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-kicker { color: var(--blue-600); }
.section-heading h2, .room-title-row h1, .info-hero h1, .dialog-card h2, .panel-heading h2 { margin: 0; }
.section-heading h2 { font-size: 30px; }
.section-tools { display: flex; gap: 10px; }
.select-control { display: flex; align-items: center; gap: 8px; padding: 8px 11px 8px 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.select-control select { min-width: 120px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.status-banner { margin: 20px 0; padding: 13px 16px; color: #8a5a00; background: #fff7df; border: 1px solid #ecd18a; border-radius: 10px; }

.room-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.room-card { position: relative; min-height: 190px; padding: 23px; overflow: hidden; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 9px 24px rgba(28, 64, 91, .05); transition: transform .18s, box-shadow .18s, border-color .18s; }
.room-card::after { position: absolute; right: -20px; bottom: -35px; width: 100px; height: 100px; content: ""; background: #e9f5fc; border-radius: 50%; }
.room-card:hover { transform: translateY(-4px); border-color: #9fc9e4; box-shadow: var(--shadow); }
.room-card-head { position: relative; z-index: 1; display: flex; justify-content: space-between; }
.room-number { color: var(--blue-700); font-size: 40px; font-weight: 850; letter-spacing: -.04em; }
.room-arrow { color: #8ea0af; font-size: 28px; }
.room-meta { position: relative; z-index: 1; margin-top: 15px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.room-stats { position: relative; z-index: 1; display: flex; gap: 12px; margin-top: 18px; color: #536477; font-size: 12px; }
.stat-pill { display: inline-flex; align-items: center; gap: 5px; }.tiny-swatch, .legend-swatch { display: inline-block; border: 1px solid rgba(15, 54, 80, .12); border-radius: 4px; }.tiny-swatch { width: 12px; height: 12px; }

.legend-panel { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 34px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.legend-panel > div strong, .legend-panel > div span { display: block; }.legend-panel > div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.legend-list { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; color: #536477; font-size: 13px; }.legend-list li { display: flex; align-items: center; gap: 7px; }.legend-swatch { width: 17px; height: 17px; }

.room-page { padding: 38px 0 80px; }
.back-button { margin-bottom: 27px; padding: 0; color: var(--blue-700); font-weight: 700; background: transparent; border: 0; }
.room-title-row h1 { font-size: clamp(34px, 5vw, 54px); }
.muted-copy { margin: 10px 0 0; color: var(--muted); }
.search-bar { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 0 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.search-bar input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; }.search-bar button { color: var(--muted); font-size: 22px; background: transparent; border: 0; }
.permission-note { margin-top: 16px; padding: 13px 16px; color: #315a78; background: #eaf5fb; border-radius: 10px; }
.floor-panel { margin-top: 22px; padding: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(23, 66, 99, .06); }
.floor-heading { padding-bottom: 18px; border-bottom: 1px solid #e9eef3; }.floor-heading span { color: var(--muted); font-size: 13px; }
.floor-layout { display: grid; grid-template-columns: 70px minmax(0, 1fr) 55px; align-items: stretch; gap: 15px; margin-top: 22px; }
.direction-side { display: flex; align-items: center; justify-content: space-between; flex-direction: column; padding: 22px 0; color: var(--blue-900); background: #eef6fb; border-radius: 12px; }.direction-side span { font-size: 11px; writing-mode: vertical-rl; }.direction-side.end { color: #8896a6; background: #f5f7f9; }
.seat-grid { display: grid; gap: 12px; min-width: 540px; overflow-x: auto; padding: 4px; }
.seat-card { min-width: 115px; min-height: 102px; padding: 12px; text-align: left; color: var(--ink); border: 1px solid rgba(15, 54, 80, .12); border-radius: 12px; transition: transform .14s, filter .14s; }
.seat-card:hover { transform: translateY(-2px); }.seat-card.is-dimmed { filter: grayscale(.8); opacity: .27; }.seat-card.empty { background: #f6f8fa; }.seat-card.masked { background: var(--masked); }.seat-card.cyan { background: var(--cyan); }.seat-card.yellow { background: var(--yellow); }.seat-card.gold { background: var(--gold); }
.seat-id { color: rgba(24,35,51,.6); font-size: 11px; font-weight: 700; }.seat-name { margin-top: 8px; overflow: hidden; font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.seat-meta { margin-top: 5px; color: rgba(24,35,51,.65); font-size: 11px; line-height: 1.4; }
.seat-placeholder { min-width: 115px; min-height: 102px; border: 1px dashed #d8e0e7; border-radius: 12px; }

.info-page { padding-bottom: 80px; }.info-hero { padding: 70px max(20px, calc((100vw - 1180px) / 2)); color: #fff; background: linear-gradient(120deg, #114f79, #1c7aab); }.info-hero.privacy { background: linear-gradient(120deg, #145c59, #218476); }.info-hero.account { background: linear-gradient(120deg, #3d5270, #617792); }.info-hero h1 { font-size: clamp(36px, 5vw, 58px); }.info-hero > p:last-child { max-width: 650px; margin: 16px 0 0; color: rgba(255,255,255,.78); font-size: 17px; }
.info-grid, .privacy-layout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }.info-card, .privacy-card, .account-panel { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 9px 28px rgba(23,66,99,.05); }.info-card > span { color: var(--blue-600); font-size: 12px; font-weight: 850; letter-spacing: .15em; }.info-card h2, .privacy-card h2 { margin: 12px 0 9px; font-size: 21px; }.info-card p, .privacy-card p { margin: 0; color: var(--muted); line-height: 1.8; }.privacy-card a { color: var(--blue-700); }
.account-layout { display: grid; gap: 18px; margin-top: 30px; }.panel-heading h2 { font-size: 22px; }.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }.role-badge { padding: 7px 12px; color: #5f6c7c; font-size: 12px; font-weight: 800; background: #edf1f5; border-radius: 999px; }.role-badge.viewer { color: #19745b; background: #dff4ec; }.role-badge.admin { color: #17639b; background: #e2f1fc; }
.account-details { margin: 24px 0 0; }.account-details div { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-top: 1px solid #e9eef3; }.account-details dt { color: var(--muted); }.account-details dd { margin: 0; font-weight: 700; }
.user-list { display: grid; gap: 10px; margin-top: 22px; }.user-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 14px 16px; background: #f7f9fb; border-radius: 11px; }.user-row strong, .user-row small { display: block; }.user-row small { margin-top: 3px; color: var(--muted); }.user-row button { color: var(--blue-700); background: transparent; border: 0; }

.dialog-card { width: min(440px, calc(100% - 28px)); padding: 0; color: var(--ink); background: transparent; border: 0; }.dialog-card::backdrop { background: rgba(8, 28, 44, .55); backdrop-filter: blur(4px); }.dialog-card > form { position: relative; padding: 30px; background: #fff; border-radius: 20px; box-shadow: 0 25px 80px rgba(5,31,51,.3); }.dialog-card.wide { width: min(600px, calc(100% - 28px)); }.dialog-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 34px; height: 34px; color: var(--muted); font-size: 22px; background: #f1f4f7; border: 0; border-radius: 50%; }.dialog-description { margin: 10px 0 22px; color: var(--muted); line-height: 1.65; }.field { display: grid; gap: 7px; margin-top: 15px; }.field span { font-size: 13px; font-weight: 750; }.field input, .field select { width: 100%; height: 45px; padding: 0 13px; color: var(--ink); background: #f8fafb; border: 1px solid #d9e2ea; border-radius: 9px; outline: 0; }.field input:focus, .field select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,131,194,.12); }.field small { color: var(--muted); font-size: 11px; }.check-field { display: flex; align-items: center; gap: 9px; margin-top: 16px; }.form-error { padding: 10px 12px; color: #a52e2e; background: #fff0f0; border-radius: 8px; }.readonly-details { display: grid; gap: 1px; overflow: hidden; background: #e5ebf0; border: 1px solid #e5ebf0; border-radius: 11px; }.readonly-row { display: grid; grid-template-columns: 100px 1fr; padding: 13px; background: #fff; }.readonly-row span { color: var(--muted); }.readonly-row strong { text-align: right; }.dialog-actions { justify-content: flex-end; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px max(20px, calc((100vw - 1180px) / 2)); color: #728092; font-size: 12px; background: #e9eff4; border-top: 1px solid #dbe4eb; }.site-footer a { color: var(--blue-700); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; padding: 11px 16px; transform: translate(-50%, 20px); color: #fff; font-size: 13px; background: rgba(18,35,49,.94); border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.cyan { background: var(--cyan); }.yellow { background: var(--yellow); }.gold { background: var(--gold); }.empty { background: #f6f8fa; }.masked { background: var(--masked); }

@media (max-width: 920px) {
  .site-header { grid-template-columns: 1fr auto; }.main-nav { position: fixed; z-index: 30; right: 12px; bottom: 12px; left: 12px; justify-content: space-around; box-shadow: 0 10px 35px rgba(22,55,80,.2); }.nav-item { flex: 1; padding-inline: 8px; }.hero-shell { grid-template-columns: 1fr; padding-block: 55px 90px; }.hero-visual { display: none; }.summary-grid { grid-template-columns: repeat(2, 1fr); }.room-grid { grid-template-columns: repeat(2, 1fr); }.site-footer { padding-bottom: 90px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding-inline: 16px; }.brand small { display: none; }.account-button { padding: 9px 12px; }.hero-shell { min-height: 390px; padding: 46px 20px 80px; }.hero-description { font-size: 15px; }.content-shell { width: min(100% - 24px, 1180px); }.overlap-shell { margin-top: -30px; }.summary-grid { gap: 9px; }.summary-card { min-height: 91px; padding: 14px; }.summary-icon { flex-basis: 38px; height: 38px; }.summary-card strong { font-size: 21px; }.section-heading, .room-title-row, .legend-panel, .panel-heading { align-items: flex-start; flex-direction: column; }.section-tools, .select-control { width: 100%; }.select-control select { flex: 1; }.room-grid { grid-template-columns: 1fr; }.room-card { min-height: 165px; }.legend-list { gap: 11px; }.floor-panel { padding: 14px; }.floor-layout { grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 8px; overflow-x: auto; }.direction-side { min-height: 360px; }.seat-grid { min-width: 500px; }.info-grid, .privacy-layout { grid-template-columns: 1fr; }.info-hero { padding: 50px 20px; }.account-details div { grid-template-columns: 90px 1fr; }.user-row { grid-template-columns: 1fr auto; }.user-row .role-badge { grid-row: 2; }.dialog-card > form { padding: 26px 20px; }.site-footer { align-items: flex-start; flex-direction: column; }
}

@media print {
  .site-header, .site-footer, .back-button, .room-actions, .search-bar, .permission-note { display: none !important; }
  body { background: #fff; }.view { display: none !important; }.room-page { width: 100%; padding: 0; }.floor-panel { box-shadow: none; }.seat-grid { overflow: visible; }
}
