﻿:root {
  color-scheme: light;
  --font-apple-bold: "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Noto Sans KR", sans-serif;
  --font-weight-apple-bold: 600;
  --nav-height: 76px;
  --bg-main: #f5f5f7;
  --bg-strong: #ececef;
  --bg-tint: #e2e2e6;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --surface-soft: rgba(248, 248, 249, 0.84);
  --ink: #0f0f10;
  --muted: #55565b;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #111111;
  --accent-strong: #000000;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --danger: #1a1a1a;
  --danger-soft: rgba(0, 0, 0, 0.1);
  --warm: #232323;
  --hero-start: rgba(255, 255, 255, 0.76);
  --hero-end: rgba(230, 230, 233, 0.92);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 12px 26px rgba(0, 0, 0, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-main: #040404;
  --bg-strong: #0e0e10;
  --bg-tint: #17181b;
  --surface: rgba(23, 23, 24, 0.74);
  --surface-strong: rgba(28, 28, 30, 0.9);
  --surface-soft: rgba(18, 18, 19, 0.9);
  --ink: #f5f5f7;
  --muted: #b0b1b6;
  --line: rgba(255, 255, 255, 0.18);
  --accent: #f5f5f7;
  --accent-strong: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.14);
  --danger: #ffffff;
  --danger-soft: rgba(255, 255, 255, 0.16);
  --warm: #f0f0f0;
  --hero-start: rgba(28, 28, 30, 0.84);
  --hero-end: rgba(17, 17, 18, 0.92);
  --shadow-lg: 0 26px 58px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 14px 30px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-apple-bold);
  font-weight: var(--font-weight-apple-bold);
  font-synthesis: none;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -12%, rgba(255, 255, 255, 0.56), transparent 34%),
    radial-gradient(circle at 86% 4%, rgba(0, 0, 0, 0.08), transparent 26%),
    linear-gradient(155deg, var(--bg-main), var(--bg-strong));
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(36px);
}

body::before {
  width: 360px;
  height: 360px;
  top: -120px;
  left: -90px;
  background: rgba(255, 255, 255, 0.34);
}

body::after {
  width: 440px;
  height: 440px;
  right: -150px;
  bottom: -170px;
  background: rgba(0, 0, 0, 0.18);
}

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

button {
  cursor: pointer;
  border: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

textarea,
input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--ink);
  outline: none;
}

textarea:focus,
input:focus,
select:focus {
  border-color: rgba(0, 0, 0, 0.36);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.92rem;
  color: var(--muted);
}

.app-shell {
  width: min(1280px, calc(100% - 30px));
  margin: calc(var(--nav-height) + 14px) auto 22px;
}

.top-nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 250, 0.66);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

html[data-theme="dark"] .top-nav-shell {
  background: rgba(12, 12, 13, 0.74);
}

.top-nav-wrap {
  width: min(1280px, calc(100% - 30px));
  margin: 0 auto;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: var(--nav-height);
  padding: 10px 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.top-nav-center {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  font-weight: 550;
  font-size: 0.86rem;
  transition: color 0.26s ease, transform 0.26s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.75;
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.24s ease;
}

.nav-link.is-active {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

html[data-theme="dark"] .nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
}

.theme-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
}

.theme-switch-track {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition: background-color 0.2s ease;
}

.theme-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-strong);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.theme-toggle-input:checked + .theme-switch-track {
  background: rgba(255, 255, 255, 0.3);
}

.theme-toggle-input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(19px);
}

.theme-switch-text {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.86), rgba(233, 233, 236, 0.9));
  font-weight: 600;
  font-size: 0.84rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.flash-stack {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.page-content {
  min-height: calc(100vh - (var(--nav-height) + 36px));
}

.page-content.is-leaving {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.page-content.is-entering {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
}

.page-content.is-enter-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s ease;
}

.page-script-slot {
  display: none;
}

body.is-global-loading {
  overflow: hidden;
}

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.2), transparent 34%),
    radial-gradient(circle at 78% 80%, rgba(0, 0, 0, 0.18), transparent 28%),
    rgba(14, 14, 16, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.global-loading-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.board-fullscreen-loading {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 140;
}

.board-panel:fullscreen .board-fullscreen-loading,
.board-panel.is-fullscreen .board-fullscreen-loading {
  border-radius: 0;
}

.global-loading-panel {
  width: min(420px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  display: grid;
  justify-items: center;
  gap: 12px;
}

.global-loading-orbit {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.16);
  border-top-color: var(--ink);
  border-right-color: rgba(0, 0, 0, 0.52);
  animation: global-orbit-spin 0.95s linear infinite;
}

.global-loading-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.global-loading-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.site-footer {
  width: min(1280px, calc(100% - 30px));
  margin: 0 auto 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.footer-left {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
  font-size: 0.84rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-right a {
  color: var(--ink);
  font-size: 0.84rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-right a:hover {
  border-bottom-color: currentColor;
}

.flash-message {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.flash-message.error {
  color: var(--danger);
  background: var(--danger-soft);
}

.flash-message.success {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.content-shell {
  margin-top: 16px;
}

.page-card,
.auth-card,
.notice-editor {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(1.16rem, 1.8vw, 1.56rem);
}

.notice-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  padding: 12px;
}

.notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-card h2 {
  margin: 6px 0 8px;
  font-size: 0.98rem;
}

.notice-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.notice-body {
  margin: 0;
  line-height: 1.46;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.notice-status {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink);
}

.notice-category {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

.notice-detail-card {
  padding: 16px;
}

.notice-body-full {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.62;
}

.notice-admin-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-admin-actions form,
.notice-card-actions form {
  margin: 0;
}

.notice-category-emergency {
  color: #ffffff;
  background: #121212;
}

.notice-category-maintenance {
  color: #2b2b2b;
  background: rgba(0, 0, 0, 0.18);
}

.notice-category-update {
  color: #1f1f1f;
  background: rgba(0, 0, 0, 0.12);
}

.notice-category-general {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.08);
}

.form-grid {
  display: grid;
  gap: 10px;
}

.hidden-field {
  display: none;
}

.action-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inline-link {
  color: var(--accent-strong);
}

.notice-inline-link {
  margin-top: 8px;
  display: inline-flex;
  font-size: 0.82rem;
}

.doc-copy {
  display: grid;
  gap: 12px;
  line-height: 1.58;
  color: var(--ink);
}

.doc-copy p {
  margin: 0;
}

.doc-copy h2 {
  margin: 14px 0 0;
  font-size: 1rem;
}

.support-page {
  max-width: 880px;
}

.support-copy {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.56;
}

.support-ticket-form {
  max-width: 720px;
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
}

.notice-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.notice-popup.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.notice-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.notice-popup-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(84vh, 860px);
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.notice-popup.is-visible .notice-popup-backdrop {
  opacity: 1;
}

.notice-popup.is-visible .notice-popup-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notice-popup.is-closing .notice-popup-backdrop {
  opacity: 0;
}

.notice-popup.is-closing .notice-popup-card {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
}

.notice-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notice-popup-header h2 {
  margin: 0;
  font-size: 1.02rem;
}

.notice-popup-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.notice-popup-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
}

.notice-popup-item h3 {
  margin: 8px 0 6px;
  font-size: 0.92rem;
}

.notice-popup-item p {
  margin: 0;
  line-height: 1.44;
  white-space: pre-wrap;
  font-size: 0.86rem;
}

.notice-popup-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.popup-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

html[data-theme="dark"] .popup-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f2f2f2;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.download-hero h2 {
  margin: 6px 0 10px;
}

.download-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.download-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 14px;
}

.download-card h3 {
  margin: 0 0 8px;
}

.download-page {
  display: grid;
  gap: 14px;
}

.clean-download-hero {
  align-items: center;
  border-radius: 22px;
}

.download-hero-copy p {
  margin: 0;
  line-height: 1.56;
}

.download-hero-copy h2 {
  margin: 8px 0 10px;
}

.download-hero-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.download-hero-actions .primary-btn[disabled] {
  opacity: 0.64;
  cursor: not-allowed;
}

.download-subtext {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.clean-download-grid .download-card {
  border-radius: 18px;
  padding: 16px;
}

.download-note-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-strong);
}

.download-note-box .card-note {
  margin: 0;
}

.hero {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 26%),
    linear-gradient(128deg, var(--hero-start), var(--hero-end));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.86;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.58rem, 2.6vw, 2.56rem);
  line-height: 1.05;
}

.hero-copy {
  max-width: 760px;
  margin: 10px 0 0;
  line-height: 1.5;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 12px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.control-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.card,
.board-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card {
  padding: 16px;
}

.board-panel {
  min-height: 680px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.compact-card {
  display: grid;
  gap: 12px;
}

.section-title h2,
.board-header h2 {
  margin: 0;
  font-size: 1.12rem;
}

.section-title p,
.board-header p,
.card-note {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

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

.field-grid {
  margin: 18px 0 14px;
}

.action-grid {
  margin-top: 18px;
}

.tool-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.group-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 14px;
}

.group-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.group-label {
  font-size: 0.96rem;
}

.group-color-input {
  height: 42px;
  padding: 4px;
  border-radius: 12px;
}

.group-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.group-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.board-actions .primary-btn[disabled] {
  opacity: 0.68;
  cursor: not-allowed;
}

.seat-board {
  margin-top: 14px;
  padding: 14px;
  flex: 1;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), var(--surface-soft));
  background-size: 28px 28px, 28px 28px, auto;
}

.board-loading {
  min-height: 260px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px;
}

.board-loading-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.14);
  border-top-color: var(--ink);
  animation: board-spin 0.9s linear infinite;
}

.board-loading-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.board-loading-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.seat-row {
  display: grid;
  gap: 10px;
}

.seat-card {
  --seat-outline: rgba(0, 0, 0, 0.3);
  --group-color: #2f2f2f;
  --group-color-soft: rgba(47, 47, 47, 0.28);
  --group-color-fill-start: rgba(47, 47, 47, 0.34);
  --group-color-fill-end: rgba(47, 47, 47, 0.2);
  min-height: 92px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(232, 232, 235, 0.78));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 10px;
}

.seat-card:hover {
  border-color: rgba(0, 0, 0, 0.34);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
}

.seat-card.blocked {
  background: linear-gradient(180deg, rgba(230, 230, 232, 0.88), rgba(205, 205, 208, 0.86));
  border-color: rgba(0, 0, 0, 0.26);
}

.seat-card.grouped {
  background: linear-gradient(180deg, var(--group-color-fill-start), var(--group-color-fill-end));
  border-color: var(--group-color-soft);
}

html[data-theme="dark"] .seat-board {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 18, 19, 0.94), rgba(10, 10, 11, 0.92));
  background-size: 28px 28px, 28px 28px, auto;
}

html[data-theme="dark"] .seat-card {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, rgba(35, 35, 37, 0.92), rgba(20, 20, 22, 0.94));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .seat-card.blocked {
  background: linear-gradient(180deg, rgba(70, 70, 73, 0.9), rgba(48, 48, 50, 0.92));
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .seat-card.grouped {
  background: linear-gradient(180deg, var(--group-color-fill-start), var(--group-color-fill-end));
  border-color: var(--group-color-soft);
}

html[data-theme="dark"] .seat-meta {
  color: #c9c9cf;
}

html[data-theme="dark"] .seat-group-badge {
  color: #f2f2f4;
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .seat-group-badge.group-badge {
  color: var(--group-color);
  background: var(--group-color-soft);
}

.seat-card.active-tool {
  outline: 3px solid var(--seat-outline);
}

.seat-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.83rem;
}

.seat-student {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.24;
  word-break: keep-all;
}

.seat-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent-strong);
  background: rgba(0, 0, 0, 0.08);
}

.seat-group-badge.group-badge {
  color: var(--group-color);
  background: var(--group-color-soft);
}

.seat-group-badge.blocked-badge {
  color: var(--danger);
  background: var(--danger-soft);
}

.legend {
  margin-top: 16px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-chip {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.legend-chip.normal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(229, 229, 232, 0.82));
}

.legend-chip.blocked {
  background: linear-gradient(180deg, rgba(220, 220, 223, 0.86), rgba(198, 198, 201, 0.82));
}

.legend-chip.grouped {
  background: linear-gradient(180deg, rgba(210, 210, 213, 0.84), rgba(185, 185, 188, 0.8));
}

.group-color-legend {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.group-color-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.group-color-item span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-color-item small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.group-color-chip {
  border-radius: 999px;
  flex-shrink: 0;
}

.summary-box,
.message-box {
  padding: 11px 12px;
  border-radius: 12px;
  line-height: 1.48;
  font-size: 0.9rem;
}

.summary-box {
  background: rgba(0, 0, 0, 0.06);
}

.message-box {
  min-height: 62px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--warm);
}

.message-box.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.message-box.success {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn {
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.primary-btn {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.96), rgba(235, 235, 238, 0.92));
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .primary-btn,
html[data-theme="dark"] .download-btn {
  color: #f5f5f7;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .secondary-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

.secondary-btn {
  background: rgba(0, 0, 0, 0.06);
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.26);
  color: inherit;
  border: 1px solid var(--line);
}

.board-panel .ghost-btn {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line);
  color: var(--accent-strong);
}

.text-btn {
  padding: 2px 4px;
  border-radius: 8px;
  background: transparent;
  color: var(--warm);
}

.danger-btn {
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: #181818;
  color: #f8f8f8;
  font-size: 0.82rem;
  font-weight: 600;
}

html[data-theme="dark"] .danger-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #f2f2f2;
  color: #111;
}

.notice-form-actions {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-delete-form {
  margin-top: 10px;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
}

.desktop-admin-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.desktop-status-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.desktop-status-box p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.86rem;
}

.desktop-status-box p + p {
  margin-top: 6px;
}

.desktop-admin-form,
.desktop-upload-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.desktop-release-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.desktop-release-actions form {
  margin: 0;
}

.admin-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: var(--surface-strong);
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-notice-list,
.ticket-list {
  display: grid;
  gap: 10px;
}

.admin-notice-card h3,
.ticket-card h3 {
  margin: 7px 0 8px;
  font-size: 0.92rem;
}

.ticket-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ticket-category,
.ticket-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid var(--line);
}

.ticket-category {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.06);
}

.ticket-status {
  font-weight: 700;
}

.ticket-status-received {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.ticket-status-progress {
  background: rgba(0, 0, 0, 0.14);
  color: var(--ink);
}

.ticket-status-done {
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.ticket-requester {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.ticket-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-actions form {
  margin: 0;
}

.ticket-status-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.ticket-status-form select {
  min-width: 130px;
}

.ticket-updated {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.board-panel:fullscreen,
.board-panel.is-fullscreen {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 28px;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 20%),
    linear-gradient(145deg, var(--bg-main), var(--bg-strong));
}

.board-panel:fullscreen .seat-board,
.board-panel.is-fullscreen .seat-board {
  height: 100%;
  grid-auto-rows: 1fr;
}

.board-panel:fullscreen .seat-card,
.board-panel.is-fullscreen .seat-card {
  min-height: 0;
  height: 100%;
  padding: 18px;
}

.board-panel:fullscreen .seat-student,
.board-panel.is-fullscreen .seat-student {
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
}



@media (max-width: 1320px) {
  .top-nav-wrap {
    width: min(100% - 22px, 1520px);
  }

  .top-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 8px 0;
  }

  .top-nav-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer {
    width: min(100% - 22px, 1520px);
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .board-panel {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 16px, 1520px);
    margin: calc(var(--nav-height) + 10px) auto 16px;
  }

  .site-footer {
    width: min(100% - 16px, 1520px);
    padding: 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    width: 100%;
  }

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

  .hero,
  .board-header {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .board-actions {
    justify-content: stretch;
  }

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

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

  .download-hero-actions {
    justify-items: stretch;
  }

  .download-hero-actions .primary-btn {
    width: 100%;
  }

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

  .seat-board {
    padding: 10px;
  }

  .top-nav-center {
    justify-content: flex-start;
  }

  .nav-link,
  .download-btn {
    width: 100%;
    justify-content: center;
  }

  .notice-card-actions,
  .notice-admin-actions,
  .notice-form-actions,
  .notice-popup-actions,
  .support-actions,
  .ticket-actions,
  .admin-header-actions,
  .notice-header-actions {
    width: 100%;
  }

  .notice-card-actions .primary-btn,
  .notice-popup-actions .ghost-btn,
  .notice-popup-actions .secondary-btn,
  .notice-form-actions .primary-btn,
  .notice-form-actions .secondary-btn,
  .notice-admin-actions .ghost-btn,
  .notice-admin-actions .danger-btn,
  .notice-delete-form .danger-btn,
  .support-actions .primary-btn,
  .support-actions .secondary-btn,
  .ticket-actions .secondary-btn,
  .ticket-actions .danger-btn,
  .admin-header-actions .secondary-btn,
  .admin-header-actions .ghost-btn,
  .notice-header-actions .secondary-btn,
  .notice-header-actions .ghost-btn {
    width: 100%;
    justify-content: center;
  }

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

  .global-loading-panel {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

