:root {
  --pnu-blue: #0d67b5;
  --pnu-blue-deep: #084a87;
  --pnu-green: #0ca678;
  --pnu-green-soft: #dff6ee;
  --ink-900: #112133;
  --ink-700: #425466;
  --ink-500: #6b7a8c;
  --line: #d6e0ea;
  --panel: rgba(255, 255, 255, 0.88);
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(8, 33, 67, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SUIT Variable", "Pretendard Variable", "Noto Sans KR", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at top left, rgba(13, 103, 181, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(12, 166, 120, 0.15), transparent 24%),
    linear-gradient(180deg, #edf5fb 0%, #f9fcff 45%, #eef7f3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 28px 22px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 74, 135, 0.96), rgba(13, 103, 181, 0.92)),
    linear-gradient(160deg, rgba(12, 166, 120, 0.18), transparent 40%);
}

.app-shell.sidebar-collapsed .sidebar {
  width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-sidebar {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 4px 2px;
  width: 100%;
}

.brand:hover {
  opacity: 0.96;
}

.brand-copy {
  min-width: 0;
}

.brand-copy-sidebar {
  width: 100%;
}

.brand-copy-sidebar h1 {
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  word-break: keep-all;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  padding: 4px;
}

.brand-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 82px;
  padding: 20px 16px;
  border-radius: 69px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 32px rgba(7, 30, 64, 0.2);
}

.brand-logo-sidebar {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 0;
  background: transparent;
  padding: 0;
  object-fit: contain;
}

.ring,
.book {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ring {
  border: 4px solid rgba(255, 255, 255, 0.85);
}

.book {
  inset: 14px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, transparent 42%, var(--pnu-green) 42%, var(--pnu-green) 52%, transparent 52%),
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.95) 47%, rgba(255, 255, 255, 0.95) 53%, transparent 53%);
  border: 3px solid rgba(255, 255, 255, 0.92);
}

.brand-kicker,
.eyebrow,
.panel-label {
  margin: 0 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-meta-text {
  font-size: 12pt;
  font-weight: 700;
  color: var(--ink-700);
}

.is-warning-text {
  color: #b54708;
}

.brand h1,
.topbar h2,
.hero-card h3,
.panel h3 {
  margin: 0;
  line-height: 1.25;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.sidebar-admin-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.94);
}

.sidebar-admin-card span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.sidebar-footer-btn {
  width: 100%;
}

.sidebar-collapse-btn {
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.14);
}

.side-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-shell.sidebar-collapsed .brand-copy {
  display: none;
}

.app-shell.sidebar-collapsed .side-nav a {
  display: none;
}

.sidebar-floating-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-blue-deep));
  box-shadow: 0 16px 28px rgba(8, 74, 135, 0.24);
  z-index: 40;
}

.sidebar-floating-toggle.visible {
  display: inline-flex;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  transform: translateX(2px);
}

.sidebar-panel {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-panel p,
.sidebar-panel strong {
  color: rgba(255, 255, 255, 0.92);
}

.main-content {
  padding: 30px;
  container-type: inline-size;
  container-name: app-main;
}

.topbar,
.metric-grid,
.content-grid,
.room-tabs {
  margin-bottom: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.topbar-description {
  margin: 10px 0 0;
  color: var(--ink-700);
}

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

.lock-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #8a5a00;
  background: #ffefc2;
  border: 1px solid #f3d98a;
}

.readonly-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  background: #edf1f5;
  font-weight: 700;
}

.room-tabs a {
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 103, 181, 0.12);
}

.room-tabs a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-blue-deep));
  box-shadow: 0 14px 28px rgba(13, 103, 181, 0.28);
}

.topbar-actions,
.hero-actions,
.panel-actions,
.inline-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.panel,
.metric-card,
.mini-card,
.alert-card,
.rank-row,
.verify-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.metric-card p,
.activity-list p,
.verify-card p,
.alert-card p,
.rank-row p {
  margin: 0;
  color: var(--ink-700);
}

.summary-card p,
.metric-card p,
.mini-card,
.verify-card {
  padding: 20px;
  border-radius: var(--radius-md);
}

.metric-card strong,
.mini-card span {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.8rem;
}

.metric-card-round {
  min-height: 188px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 252, 0.92));
}

.metric-card-round p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.metric-card.metric-card-round p {
  padding: 0;
  display: inline-block;
  align-self: flex-start;
}

.metric-card-round .metric-copy {
  color: var(--ink-700);
  line-height: 1.5;
}

.metric-card-round strong {
  margin: 10px 0 8px;
  line-height: 1;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.status-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.inline-text-filters,
.inline-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-filter {
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.text-filter.active {
  color: var(--pnu-blue-deep);
}

.room-filter-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.date-filter-group input[type="date"] {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.room-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(13, 103, 181, 0.08);
}

.room-filter-chip.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
  box-shadow: 0 12px 24px rgba(13, 103, 181, 0.22);
}

.room-dashboard-list {
  display: grid;
  gap: 12px;
}

.room-dashboard-list .pagination-bar {
  margin-top: 18px;
}

.empty-list-message {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--ink-700);
  background: rgba(13, 103, 181, 0.06);
  border: 1px dashed rgba(13, 103, 181, 0.18);
  font-weight: 700;
}

.room-list-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(8, 33, 67, 0.1);
}

.room-list-item strong,
.activity-link strong {
  display: block;
  margin-bottom: 6px;
}

.room-list-item p,
.activity-link p {
  margin: 0;
  color: var(--ink-700);
}

.room-list-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.metric-grid,
.card-grid,
.verify-grid {
  display: grid;
  gap: 16px;
}

.metric-grid,
.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  margin-bottom: 24px;
}

.wizard-panel {
  overflow: hidden;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.wizard-step {
  padding: 14px 12px;
  border-radius: 18px;
  color: var(--ink-700);
  background: rgba(13, 103, 181, 0.08);
  text-align: center;
}

.wizard-step.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
  box-shadow: 0 14px 28px rgba(12, 166, 120, 0.22);
}

.wizard-section {
  display: none;
}

.wizard-section.active {
  display: block;
}

.step-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-copy {
  max-width: 38ch;
  margin: 0;
  color: var(--ink-700);
  line-height: 1.7;
}

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

.field {
  display: grid;
  gap: 8px;
}

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

#sectionList .field span {
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: var(--ink-900);
}

.field-wide {
  grid-column: 1 / -1;
}

.option-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.option-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 103, 181, 0.08);
  color: var(--ink-900);
  font-weight: 700;
}

.option-check input {
  margin: 0;
}

.upload-dropzone,
.summary-box {
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed rgba(13, 103, 181, 0.28);
  background: linear-gradient(180deg, rgba(13, 103, 181, 0.05), rgba(12, 166, 120, 0.06));
}

.upload-dropzone strong {
  display: block;
  margin-bottom: 8px;
}

.file-picked {
  margin: 14px 0 0;
  color: var(--ink-500);
}

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

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.inline-chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--pnu-blue-deep);
  background: rgba(13, 103, 181, 0.1);
  font-weight: 700;
}

.dynamic-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.dynamic-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.draggable-row {
  align-items: center;
}

.draggable-row.dragging {
  opacity: 0.55;
}

.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 44px;
  border-radius: 12px;
  color: var(--ink-500);
  background: #eef4f8;
  cursor: grab;
  user-select: none;
}

.dynamic-row-grid,
.judge-grid {
  display: grid;
  gap: 16px;
  flex: 1;
}

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

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

.bottom-gap {
  margin-bottom: 12px;
}

.summary-box {
  display: grid;
  gap: 14px;
}

.summary-box div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(214, 224, 234, 0.9);
}

.summary-box div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-box strong {
  flex: 0 0 150px;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 16px;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.members-plain-panel {
  padding: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.members-plain-panel .panel-head {
  margin-bottom: 14px;
  padding: 0;
}

.members-plain-table-wrap {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  background: #ffffff;
}

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

.inline-meta,
.progress-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-700);
  background: #eef4f8;
}

.progress-strip {
  margin-top: 18px;
}

.progress-strip div {
  flex: 1 1 120px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 103, 181, 0.08), rgba(12, 166, 120, 0.06));
}

.progress-strip strong,
.progress-strip span {
  display: block;
}

.progress-strip span {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 800;
}

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

.check-item {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
}

.check-item.done {
  color: #0b5f4c;
  background: var(--pnu-green-soft);
}

.check-item.warn {
  color: #905700;
  background: #fff1cf;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.sheet-panel {
  overflow: hidden;
}

.sheet-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid #b8c7d8;
  background: #ffffff;
}

.result-sheet {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.95rem;
}

.result-sheet th,
.result-sheet td {
  padding: 10px 12px;
  border: 1px solid #8fa5ba;
  text-align: center;
  white-space: nowrap;
}

.result-sheet .sheet-head {
  background: #d7eef9;
  font-weight: 800;
}

.result-sheet .sheet-grade {
  background: #fff36e;
  font-weight: 800;
}

.result-sheet .sheet-highlight {
  background: #14f000;
  font-weight: 800;
}

.result-sheet .sheet-muted {
  background: #f5f7fa;
}

.result-sheet .sheet-left {
  text-align: left;
}

.result-sheet .sheet-total {
  background: #ececec;
  font-weight: 800;
}

.result-sheet .sheet-empty {
  border: 0;
  background: transparent;
}

.top-gap {
  margin-top: 12px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
}

th,
td {
  padding: 4px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink-700);
  background: #eef5fb;
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: 0;
}

.table-total-row td {
  font-weight: 800;
  color: var(--ink-900);
  background: rgba(13, 103, 181, 0.06);
}

.activity-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.activity-list-scroll {
  max-height: 492px;
  overflow-y: auto;
  padding-right: 8px;
}

.activity-list-scroll::-webkit-scrollbar {
  width: 12px;
}

.activity-list-scroll::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(13, 103, 181, 0.08), rgba(12, 166, 120, 0.08));
  border-radius: 999px;
}

.activity-list-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pnu-blue), var(--pnu-green));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.activity-list-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--pnu-blue-deep), var(--pnu-green));
}

.activity-list-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--pnu-blue) rgba(13, 103, 181, 0.08);
}

.dashboard-log-scroll .activity-link {
  min-height: 106px;
}

.activity-list li {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.activity-link {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.activity-list strong,
.rank-row strong,
.alert-card strong,
.verify-card strong,
.mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.activity-list span {
  display: inline-block;
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.adjustment-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
}

.alert-card,
.rank-row {
  padding: 20px;
  border-radius: 22px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  border-left: 6px solid var(--pnu-blue);
}

.rank-row.pending {
  border-left-color: #f0a300;
  background: linear-gradient(180deg, #fff9ea, #ffffff);
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-live {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
}

.status-ready {
  color: #0b5f4c;
  background: var(--pnu-green-soft);
}

.status-wait {
  color: #8a5a00;
  background: #ffefc2;
}

.status-neutral {
  color: var(--ink-700);
  background: #edf1f5;
}

.ghost-btn,
.primary-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ghost-btn {
  color: #fff;
  background: rgba(13, 103, 181, 0.09);
  border: 1px solid #fff !important;
  border-radius: 50px;
}

.muted-btn {
  color: #52606d;
  background: #edf1f5;
}

.danger-btn {
  color: #9d2f2f;
  background: #ffe7e7;
}

.single-column-form .danger-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 1.25rem;
}

.inline-count-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(13, 103, 181, 0.08);
  font-weight: 700;
}

.is-disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

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

.inline-delete-form {
  display: inline-flex;
}

.feedback-banner {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 700;
}

.success-banner {
  background: rgba(202, 244, 231, 0.9);
  color: #0d6b58;
}

.error-banner {
  background: rgba(255, 229, 229, 0.96);
  color: #a03333;
}

.narrow-panel {
  max-width: 860px;
}

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

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

.detail-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(13, 103, 181, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-card-wide {
  grid-column: span 2;
}

.detail-label {
  font-size: 0.88rem;
  color: var(--pnu-muted);
}

.inline-toggle-form {
  display: inline-flex;
}

.wide-action-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
}

.toggle-on {
  color: #0f7d4d;
  background: rgba(202, 244, 231, 0.95);
}

.toggle-off {
  color: #9c5a11;
  background: rgba(255, 237, 189, 0.95);
}

.member-room-links-cell {
  max-width: 260px;
}

.member-room-links {
  display: grid;
  gap: 6px;
}

.member-room-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--pnu-blue-deep);
  text-decoration: none;
}

.member-room-link:hover {
  text-decoration: underline;
}

.member-room-search-wrap {
  min-width: 280px;
}

.member-room-search-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.member-room-col-link {
  width: 140px;
  white-space: nowrap;
}

.password-field {
  position: relative;
}

.password-input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--pnu-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-slash {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.password-toggle.active {
  color: var(--pnu-blue-deep);
}

.password-toggle.active .password-toggle-slash {
  opacity: 1;
}

.member-active-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 118px;
  min-height: 46px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 103, 181, 0.12);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.member-active-switch:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(13, 103, 181, 0.12);
}

.member-active-switch-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #cdd7e2;
  transition: background-color 0.18s ease;
}

.member-active-switch-thumb {
  position: absolute;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(17, 33, 51, 0.18);
  transition: transform 0.18s ease;
}

.member-active-switch-text {
  color: var(--ink-700);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
}

.member-active-switch.is-on {
  background: rgba(12, 166, 120, 0.08);
}

.member-active-switch.is-on .member-active-switch-track {
  background: linear-gradient(135deg, var(--pnu-green), #59d6af);
}

.member-active-switch.is-on .member-active-switch-thumb {
  transform: translateX(20px);
}

.member-active-switch.is-off {
  background: rgba(107, 122, 140, 0.08);
}

.member-active-switch.is-off .member-active-switch-track {
  background: #d3dce6;
}

.static-value {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f8fbfe;
  color: var(--ink-700);
  font-weight: 700;
}

.primary-btn,
.link-btn.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
  box-shadow: 0 14px 28px rgba(12, 166, 120, 0.22);
}

.ghost-btn:hover,
.primary-btn:hover,
.link-btn:hover {
  transform: translateY(-1px);
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(13, 103, 181, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(12, 166, 120, 0.18), transparent 26%),
    linear-gradient(180deg, #eef6fb 0%, #f7fcff 50%, #eef8f2 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(320px, 5fr);
  gap: 32px;
  align-items: stretch;
  padding: 28px;
}

.admin-login-shell {
  width: min(1920px, 100%);
  min-height: auto;
  align-items: center;
}

.login-hero,
.login-card {
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.login-hero {
  padding: 34px 38px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 74, 135, 0.96), rgba(13, 103, 181, 0.92)),
    linear-gradient(160deg, rgba(12, 166, 120, 0.2), transparent 40%);
}

.admin-login-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 468px;
}

.admin-login-hero-copy {
  max-width: 70ch;
  flex: 1 1 auto;
}

.admin-login-copy {
  max-width: 26ch;
  word-break: keep-all;
}

.admin-login-hero-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 200px;
}

.admin-login-hero-logo {
  width: 158px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.16));
  opacity: 0.92;
}

.judge-login-body {
  background:
    radial-gradient(circle at top left, rgba(17, 108, 76, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(132, 177, 57, 0.18), transparent 26%),
    linear-gradient(180deg, #eef7f0 0%, #f7fcf8 50%, #edf8f1 100%);
}

.judge-login-hero {
  background:
    linear-gradient(180deg, rgba(17, 96, 69, 0.96), rgba(28, 132, 88, 0.92)),
    linear-gradient(160deg, rgba(164, 199, 79, 0.24), transparent 42%);
}

.judge-login-title {
  max-width: 11ch;
  line-height: 1.15;
  word-break: keep-all;
}

.judge-login-title span {
  display: block;
}

.judge-login-copy {
  display: block;
  max-width: 28ch;
  text-wrap: balance;
}

.judge-login-copy span {
  display: block;
}

.judge-login-hero-logo {
  opacity: 0.96;
}

.login-hero h1,
.login-card h2 {
  margin: 0;
  line-height: 1.2;
}

.login-kicker {
  color: rgba(255, 255, 255, 0.8);
}

.login-copy {
  margin: 16px 0 0;
  max-width: 34ch;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  word-break: keep-all;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.login-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.login-card {
  min-height: 340px;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-login-shell .login-card {
  min-height: 468px;
}

.login-head {
  margin-bottom: 22px;
}

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

.login-actions {
  margin-top: 20px;
}

.login-submit {
  min-width: 140px;
}

.landing-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.landing-card {
  width: min(720px, 100%);
  padding: 56px 44px;
  border-radius: 36px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.landing-logo-shell {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.landing-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
}

.landing-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.24;
}

.landing-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.landing-link {
  min-width: 280px;
}

.error-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.error-card {
  width: min(560px, 100%);
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.error-card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.error-message {
  margin: 0 0 10px;
  color: var(--ink-700);
  line-height: 1.7;
}

.error-dev-note {
  margin: 0 0 22px;
  color: var(--ink-500);
  font-size: 0.82rem;
  line-height: 1.5;
}

.judge-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 103, 181, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(12, 166, 120, 0.12), transparent 24%),
    linear-gradient(180deg, #f3f9fc 0%, #f7fbff 48%, #eef7f3 100%);
}

.judge-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 18px 36px;
}

.judge-brand-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.judge-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.judge-brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  padding: 4px;
}

.judge-brand-header h1 {
  margin: 0;
  line-height: 1.2;
}

.judge-room-title-bar {
  margin-bottom: 20px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.judge-room-title-bar h2 {
  margin: 0;
  line-height: 1.2;
}

.judge-name-pill {
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 103, 181, 0.12);
  font-weight: 700;
}

.judge-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.judge-notice-banner {
  margin: 18px 0 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff6cf;
}

.judge-notice-banner strong {
  display: block;
  margin-bottom: 8px;
}

.judge-notice-banner p {
  margin: 0;
  color: #5f4a00;
  line-height: 1.75;
}

.judge-sub-note {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.judge-info-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.judge-info-card p {
  margin: 8px 0 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.judge-page-actions {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
}

.judge-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.judge-topbar h1,
.judge-panel h2,
.judge-room-card h2,
.judge-complete-card h1 {
  margin: 0;
  line-height: 1.2;
}

.judge-description,
.judge-room-meta,
.judge-notice p,
.judge-eval-copy p,
.judge-eval-copy span {
  margin: 8px 0 0;
  color: var(--ink-700);
}

.judge-list-grid,
.judge-section-list,
.judge-eval-list {
  display: grid;
  gap: 16px;
}

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

.judge-room-card,
.judge-panel,
.judge-complete-card,
.judge-section-card,
.judge-eval-card,
.judge-notice {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.judge-room-card,
.judge-panel,
.judge-complete-card {
  border-radius: 28px;
  padding: 24px;
}

.judge-room-head,
.judge-panel-head,
.judge-section-card,
.judge-eval-card,
.judge-bottom-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.judge-notice {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
}

.judge-section-card,
.judge-eval-card {
  padding: 18px 20px;
  border-radius: 22px;
}

.judge-form-block {
  display: grid;
  gap: 14px;
  min-width: 360px;
}

.judge-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 16px;
  border-radius: 999px;
  background: #edf1f5;
  cursor: pointer;
}

.judge-checkbox-row.active {
  background: linear-gradient(135deg, rgba(13, 103, 181, 0.12), rgba(12, 166, 120, 0.12));
}

.judge-recommend-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.judge-checkbox-ui {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(13, 103, 181, 0.35);
  background: var(--white);
}

.judge-checkbox-row.active .judge-checkbox-ui {
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
  border-color: transparent;
}

.judge-checkbox-row.active .judge-checkbox-ui::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.judge-checkbox-label {
  font-weight: 700;
}

.judge-recommend-state {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
}

.judge-checkbox-row.active .judge-recommend-state {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
}

.judge-table-wrap {
  overflow-x: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.judge-eval-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.95);
  table-layout: fixed;
}

.judge-eval-table th,
.judge-eval-table td {
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

.judge-eval-table th {
  background: #dfe8f1;
  color: var(--ink-900);
  font-weight: 800;
  white-space: nowrap;
}

.judge-eval-table tr:last-child td {
  border-bottom: 0;
}

.judge-table-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.judge-table-note {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.45;
}

.judge-table-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf1f5;
  cursor: pointer;
  white-space: nowrap;
}

.judge-table-check.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.judge-table-check.active {
  background: linear-gradient(135deg, rgba(13, 103, 181, 0.12), rgba(12, 166, 120, 0.12));
}

.judge-table-check.active .judge-recommend-state {
  color: var(--white);
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
}

.judge-table-input,
.judge-table-textarea {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: var(--ink-900);
}

.judge-table-input {
  max-width: 62px;
  min-width: 62px;
  text-align: center;
}

.judge-table-input:disabled,
.judge-table-textarea:disabled {
  background: #f3f5f7;
  color: #8a97a6;
}

.judge-table-textarea {
  min-width: 0;
  resize: vertical;
  line-height: 1.45;
}

.judge-eval-table th:nth-child(1),
.judge-eval-table td:nth-child(1) {
  width: 54px;
  text-align: center;
}

.judge-eval-table th:nth-child(2),
.judge-eval-table td:nth-child(2) {
  width: 31%;
}

.judge-eval-table th:nth-child(3),
.judge-eval-table td:nth-child(3) {
  width: 10%;
}

.judge-eval-table th:nth-child(4),
.judge-eval-table td:nth-child(4) {
  width: 11%;
}

.judge-eval-table.eval-mode-3 th:nth-child(5),
.judge-eval-table.eval-mode-3 td:nth-child(5) {
  width: 13%;
}

.judge-eval-table.eval-mode-3 th:nth-child(6),
.judge-eval-table.eval-mode-3 td:nth-child(6) {
  width: 7%;
}

.judge-eval-table.eval-mode-3 th:nth-child(7),
.judge-eval-table.eval-mode-3 td:nth-child(7) {
  width: 29%;
}

.judge-eval-table.eval-mode-2 th:nth-child(5),
.judge-eval-table.eval-mode-2 td:nth-child(5) {
  width: 13%;
}

.judge-eval-table.eval-mode-2 th:nth-child(6),
.judge-eval-table.eval-mode-2 td:nth-child(6) {
  width: 35%;
}

.judge-eval-table.eval-mode-1 th:nth-child(5),
.judge-eval-table.eval-mode-1 td:nth-child(5) {
  width: 26%;
}

.is-exempt-row {
  background: #fafcfe;
}

.judge-optional-fields {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
}

.judge-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.judge-bottom-actions {
  margin-top: 24px;
}

.judge-complete-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.judge-complete-card {
  max-width: 520px;
  text-align: center;
}

.settings-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.9);
  border: 1px solid rgba(13, 103, 181, 0.12);
}

.compact-head {
  margin-bottom: 18px;
}

.inline-field {
  min-width: 110px;
}

.inline-field input {
  min-width: 64px;
  max-width: 84px;
  text-align: center;
}

.settings-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.settings-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  table-layout: fixed;
}

.settings-table th,
.settings-table td {
  padding: 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.settings-table th {
  background: #dfe8f1;
  font-size: 0.92rem;
  white-space: nowrap;
}

.settings-table tr:last-child td {
  border-bottom: 0;
}

.settings-table input {
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
}

.settings-table input[name="bandStart"],
.settings-table input[name="bandEnd"] {
  max-width: 72px;
  text-align: center;
}

.settings-table input[name="criteriaWeight"] {
  max-width: 72px;
  text-align: center;
}

#bandConfigList td:nth-child(1),
#bandConfigList td:nth-child(2),
#bandConfigList th:nth-child(1),
#bandConfigList th:nth-child(2),
.settings-table:has(#bandConfigList) thead th:nth-child(1),
.settings-table:has(#bandConfigList) thead th:nth-child(2) {
  width: 88px;
}

#bandConfigList td:last-child,
#criteriaConfigList td:last-child {
  width: 56px;
}

#criteriaConfigList td:nth-child(3),
.criteria-table thead th:nth-child(3) {
  width: 84px;
}

.criteria-table td:nth-child(1),
.criteria-table th:nth-child(1) {
  width: 35%;
}

.criteria-table td:nth-child(2),
.criteria-table th:nth-child(2) {
  width: 47%;
}

.criteria-table td:nth-child(3),
.criteria-table th:nth-child(3) {
  width: 80px;
}

.criteria-table td:nth-child(4),
.criteria-table th:nth-child(4) {
  width: 56px;
}

.criteria-table input,
#bandConfigList input {
  min-width: 0;
}

.settings-table-wrap {
  overflow-x: hidden;
}

.quota-ratio-row td {
  color: #0d67b5;
  background: rgba(13, 103, 181, 0.08);
  font-weight: 700;
}

.section-quota-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.section-quota-field .section-quota-input {
  min-width: 0;
  max-width: 90px;
  text-align: center;
}

.section-cell-ratio {
  display: inline-block;
  min-width: 34px;
  color: #c24a00;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 103, 181, 0.08);
  font-weight: 700;
}

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

.switch-field {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(13, 103, 181, 0.08);
  font-weight: 700;
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
}

.switch-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch-slider {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d8e2ec;
  transition: background-color 0.2s ease;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 33, 51, 0.15);
  transition: transform 0.2s ease;
}

.switch-control input:checked + .switch-slider {
  background: linear-gradient(135deg, var(--pnu-blue), var(--pnu-green));
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(22px);
}

.is-disabled-field input:disabled {
  background: #eef1f4;
  color: #90a0af;
}

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

.settings-grid-laptop-stack {
  grid-template-columns: repeat(auto-fit, minmax(900px, 1fr));
}

.settings-grid-single {
  grid-template-columns: 1fr;
}

.settings-panel-tight {
  margin-top: 18px;
  padding: 18px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.judge-shell-wide {
  max-width: 1520px;
}

.judge-shell-compact {
  padding: 18px 14px 20px;
}

.judge-evaluation-panel {
  overflow: hidden;
}

.judge-evaluation-panel-compact {
  padding: 18px;
}

.judge-room-title-bar-compact {
  margin-bottom: 14px;
  padding: 16px 20px;
}

.judge-panel-head-compact {
  margin-bottom: 10px;
}

.judge-section-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.judge-workspace {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 18px;
  min-height: 760px;
}

.judge-workspace-split {
  gap: 14px;
  min-height: 0;
}

.judge-candidate-panel,
.judge-review-panel {
  min-width: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 103, 181, 0.12);
}

.judge-candidate-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.judge-candidate-panel-table,
.judge-review-panel-compact {
  border-radius: 20px;
}

.judge-candidate-panel-head,
.judge-review-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px 16px;
}

.judge-candidate-panel-head-compact,
.judge-review-head-compact {
  padding: 14px 16px 10px;
}

.judge-candidate-panel-head h3,
.judge-review-head h3 {
  margin: 0;
  line-height: 1.25;
}

.judge-candidate-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-700);
  background: rgba(13, 103, 181, 0.08);
  font-weight: 700;
}

.judge-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--ink-700);
}

.judge-candidate-complete {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0a7d5a;
  background: rgba(12, 166, 120, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}

.judge-target-table-wrap {
  flex: 1;
  overflow: auto;
  padding: 0 14px 14px;
}

.judge-target-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
  table-layout: fixed;
}

.judge-target-table th,
.judge-target-table td {
  padding: 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}

.judge-target-table th {
  position: sticky;
  top: 0;
  background: #dfe8f1;
  z-index: 1;
  font-size: 0.88rem;
}

.judge-target-table th:nth-child(1),
.judge-target-table td:nth-child(1) {
  width: 44px;
}

.judge-target-table th:nth-child(2),
.judge-target-table td:nth-child(2) {
  width: 58%;
}

.judge-target-table th:nth-child(3),
.judge-target-table td:nth-child(3) {
  width: 12%;
}

.judge-target-table th:nth-child(4),
.judge-target-table td:nth-child(4) {
  width: 14%;
  white-space: nowrap;
}

.judge-target-table th:nth-child(5),
.judge-target-table td:nth-child(5) {
  width: 96px;
  white-space: nowrap;
}

.judge-target-row {
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.judge-target-row:hover {
  background: rgba(13, 103, 181, 0.05);
}

.judge-target-row.active {
  background: linear-gradient(135deg, rgba(13, 103, 181, 0.08), rgba(12, 166, 120, 0.08));
}

.judge-target-row.completed {
  background-color: rgba(12, 166, 120, 0.05);
}

.judge-target-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.judge-target-item strong {
  line-height: 1.45;
}

.judge-target-table p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.4;
  word-break: keep-all;
}

.judge-candidate-panel-inline {
  overflow: visible;
}

.judge-target-table-wrap-inline {
  overflow: visible;
}

.judge-inline-detail-row td {
  padding: 0;
  background: rgba(13, 103, 181, 0.03);
}

.judge-inline-editor {
  padding: 0;
}

.judge-inline-editor-card {
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(13, 103, 181, 0.12);
}

.judge-inline-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.judge-inline-editor-head h3 {
  margin: 0;
  line-height: 1.35;
}

.judge-list-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.judge-list-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.judge-list-badge-complete {
  color: #0a7d5a;
  background: rgba(12, 166, 120, 0.14);
}

.judge-list-badge-bonus {
  color: #2f7d32;
  background: rgba(122, 191, 74, 0.18);
}

.judge-list-badge-recommend {
  color: #8a6400;
  background: rgba(241, 185, 27, 0.18);
}

.judge-list-badge-band {
  color: var(--pnu-blue-deep);
  background: rgba(13, 103, 181, 0.1);
}

.judge-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--pnu-blue-deep);
  background: rgba(13, 103, 181, 0.1);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.judge-review-panel {
  padding: 0 22px 22px;
}

.judge-review-panel-compact {
  padding: 0 16px 14px;
}

.judge-review-head-side {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 100%;
}

.judge-selected-note {
  margin: 0 0 16px;
  color: var(--ink-700);
  line-height: 1.65;
}

.judge-selected-note-compact {
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.judge-selected-note.is-exempt-note {
  color: #8a5a00;
}

.judge-exempt-banner {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #8a5a00;
  background: #fff0c4;
}

.judge-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.judge-summary-strip-compact {
  gap: 10px;
  margin-bottom: 10px;
}

.judge-summary-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(13, 103, 181, 0.06);
}

.judge-score-summary-card {
  background: linear-gradient(180deg, rgba(12, 166, 120, 0.16), rgba(13, 103, 181, 0.08));
}

.judge-summary-strip-compact .judge-summary-card {
  padding: 12px 14px;
}

.judge-summary-card span {
  display: block;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.judge-summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.12rem;
}

.judge-inline-recommend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  min-height: 60px;
  white-space: normal;
}

.judge-inline-recommend input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.judge-inline-recommend.active {
  border-color: rgba(122, 191, 74, 0.45);
  background: rgba(122, 191, 74, 0.16);
}

.judge-inline-recommend.disabled {
  opacity: 0.6;
}

.judge-inline-recommend-icon {
  color: #bcc7d3;
  font-size: 1.08rem;
}

.judge-inline-recommend.active .judge-inline-recommend-icon {
  color: #f1b91b;
}

.judge-rubric-wrap {
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.judge-rubric-wrap-compact {
  margin-bottom: 10px;
}

.judge-rubric-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.96);
}

.judge-rubric-table-compact th,
.judge-rubric-table-compact td {
  padding: 4px;
  font-size: 0.9rem;
}

.result-sheet th,
.result-sheet td {
  padding: 4px;
}

.policy-grid-compact {
  grid-template-columns: 220px 140px;
}

.policy-grid-inline {
  grid-template-columns: 220px 110px auto auto auto;
  align-items: center;
}

.bonus-point-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field-unit {
  font-style: normal;
  font-weight: 700;
  color: var(--ink-700);
}

.option-checks-compact {
  gap: 10px;
  flex-wrap: nowrap;
}

.judge-target-summary {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.judge-autosave-hint {
  color: var(--ink-500);
  font-size: 0.88rem;
  white-space: nowrap;
}

.judge-review-subline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
  color: var(--ink-700);
  font-size: 0.95rem;
}

.judge-inline-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  min-height: 60px;
  white-space: normal;
}

.judge-inline-icon {
  color: #f0a300;
  font-weight: 800;
}

.judge-inline-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.judge-inline-toggle strong {
  color: var(--ink-700);
}

.judge-inline-toggle.active {
  border-color: rgba(122, 191, 74, 0.45);
  background: rgba(122, 191, 74, 0.16);
}

.judge-inline-toggle.active .judge-inline-icon,
.judge-inline-toggle.active strong {
  color: #2f7d32;
}

.create-room-btn {
  font-weight: 800;
}

.room-filter-row-bottom {
  margin-bottom: 6px;
}

.room-table tbody tr:hover,
.judge-admin-table tbody tr:hover,
.judge-target-table tbody tr:hover {
  background: rgba(13, 103, 181, 0.05);
}

.table-actions-separated .detail-btn {
  color: var(--pnu-blue-deep);
  background: rgba(13, 103, 181, 0.09);
}

.table-actions-separated .edit-btn {
  box-shadow: none;
  background: linear-gradient(135deg, #0ca678, #0d67b5);
}

.judge-filter-row {
  margin-bottom: 14px;
}

.chair-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8a5a00;
  background: #fff0c4;
  font-size: 0.8rem;
  font-weight: 700;
}

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

.section-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  align-self: stretch;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 170px;
}

.move-up-btn,
.move-down-btn {
  font-weight: 800;
}

.judge-rubric-table th,
.judge-rubric-table td {
  padding: 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.judge-rubric-table th {
  background: #dfe8f1;
  text-align: left;
  font-size: 0.94rem;
}

.judge-rubric-table th:nth-child(1),
.judge-rubric-table td:nth-child(1) {
  width: 20%;
  white-space: nowrap;
}

.judge-rubric-table th:nth-child(2),
.judge-rubric-table td:nth-child(2) {
  width: 56%;
}

.judge-rubric-table th:nth-child(3),
.judge-rubric-table td:nth-child(3) {
  width: 24%;
  white-space: nowrap;
}

.judge-rubric-table tr:last-child td {
  border-bottom: 0;
}

.judge-rubric-weight {
  width: 80px;
  font-weight: 700;
  white-space: nowrap;
}

.judge-rubric-score-cell {
  white-space: nowrap;
  font-weight: 700;
  min-width: 148px;
}

.judge-rubric-score-cell span {
  color: var(--ink-500);
}

.judge-rubric-input {
  width: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
  text-align: center;
}

.judge-target-item strong {
  display: block;
  line-height: 1.45;
  word-break: keep-all;
}

@media (max-width: 1100px) {
  .judge-review-head-side {
    width: 100%;
    justify-content: flex-start;
  }

  .judge-inline-editor-head {
    flex-direction: column;
    align-items: stretch;
  }

  .judge-inline-toggle,
  .judge-inline-recommend,
  .judge-row-action,
  .ghost-btn,
  .primary-btn {
    min-height: 44px;
  }
}

#judgeBandSummary.band-tone-excellent {
  color: #0a6b61;
}

#judgeBandSummary.band-tone-best {
  color: #0d67b5;
}

#judgeBandSummary.band-tone-good {
  color: #19723c;
}

#judgeBandSummary.band-tone-normal {
  color: #8a5a00;
}

#judgeBandSummary.band-tone-low {
  color: #9d2f2f;
}

.judge-summary-card.band-tone-excellent {
  background: rgba(12, 166, 120, 0.12);
}

.judge-summary-card.band-tone-best {
  background: rgba(13, 103, 181, 0.12);
}

.judge-summary-card.band-tone-good {
  background: rgba(137, 191, 74, 0.16);
}

.judge-summary-card.band-tone-normal {
  background: rgba(255, 193, 7, 0.18);
}

.judge-summary-card.band-tone-low {
  background: rgba(220, 53, 69, 0.12);
}

.judge-bonus-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.judge-bonus-na {
  color: var(--ink-500);
}

.judge-review-field {
  margin-top: 4px;
}

.judge-review-field-compact textarea {
  padding: 10px 12px;
}

.judge-bottom-actions-end {
  justify-content: flex-end;
}

.judge-bottom-actions-compact {
  margin-top: 12px;
}

.judge-notice-banner-compact {
  margin: 10px 0 14px;
  padding: 12px 14px;
}

.judge-notice-banner-compact p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.judge-meta-text {
  color: var(--ink-700);
  font-weight: 700;
}

.judge-meta-status {
  color: var(--pnu-blue-deep);
}

.judge-target-summary {
  justify-content: flex-end;
}

#judgeApplicantNote {
  padding-left: 2px;
}

@media (max-width: 1220px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .content-grid,
  .adjustment-grid,
  .verify-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .dashboard-metrics,
  .card-grid,
  .form-grid,
  .wizard-steps,
  .mini-info-grid,
  .judge-grid,
  .judge-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .judge-shell {
    max-width: 100%;
    padding: 18px 14px 28px;
  }

  .judge-workspace {
    grid-template-columns: 1fr;
  }

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

  .section-builder-grid {
    grid-template-columns: 1fr;
  }

  .judge-candidate-panel {
    max-height: 420px;
  }

  .judge-page-actions {
    top: 14px;
    right: 14px;
  }

  .judge-eval-table {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .main-content {
    padding: 18px;
  }

  .topbar,
  .panel-head,
  .step-header,
  .wizard-footer,
  .judge-brand-header,
  .judge-topbar,
  .judge-room-head,
  .judge-panel-head,
  .judge-section-card,
  .judge-eval-card,
  .judge-bottom-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid,
  .dashboard-metrics,
  .card-grid,
  .checklist,
  .form-grid,
  .wizard-steps,
  .mini-info-grid,
  .dynamic-row-grid,
  .judge-grid,
  .judge-list-grid,
  .judge-summary-strip {
    grid-template-columns: 1fr;
  }

  .dynamic-row {
    flex-direction: column;
    align-items: stretch;
  }

  .judge-form-block,
  .judge-optional-fields,
  .judge-home-grid {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .panel,
  .metric-card {
    padding: 20px;
  }

.login-shell {
  padding: 20px;
  }
}

.section-row-grid {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  flex: 1 1 auto;
}

.section-name-field {
  width: 100%;
  min-width: 0;
}

.section-name-field input {
  min-width: 0;
  width: 100%;
}

.arrow-btn {
  min-width: 56px;
  height: 46px;
  padding: 0 14px;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.dynamic-row.section-list-row {
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
  width: 100%;
}

.section-list-row .icon-btn,
.section-list-row .arrow-btn {
  flex: 0 0 auto;
}

.quota-ratio-text,
.section-cell-ratio {
  display: inline-block;
  min-width: 42px;
  text-align: right;
}

.section-cell-ratio {
  font-weight: 700;
}

.quota-input,
.section-quota-input {
  appearance: textfield;
}

.quota-input::-webkit-outer-spin-button,
.quota-input::-webkit-inner-spin-button,
.section-quota-input::-webkit-outer-spin-button,
.section-quota-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.dynamic-row.section-list-row {
  align-items: stretch;
}

.dynamic-row.section-list-row .field {
  margin-bottom: 0;
}

.ghost-btn,
.primary-btn,
.link-btn {
  min-height: 46px;
}

.settings-table .empty-cell {
  text-align: center;
  padding: 18px 14px;
  color: var(--ink-500);
}

.pagination-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pagination-label {
  color: var(--ink-600);
  font-weight: 700;
}

.admin-entry-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.92);
}

.admin-bulk-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.hidden-file-input {
  display: none;
}

.upload-trigger {
  position: relative;
  overflow: hidden;
}

.admin-edit-table input[type="text"],
.admin-edit-table input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
}

.centered-cell {
  text-align: center;
}

.centered-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.applicant-entry-head {
  align-items: flex-start;
}

.applicant-entry-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.applicant-entry-metrics {
  gap: 10px;
}

.applicant-entry-metrics span {
  background: rgba(226, 235, 246, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.applicant-entry-table .applicant-col-type {
  width: 88px;
}

.applicant-entry-table .applicant-col-item {
  width: 42%;
}

.applicant-entry-table .applicant-col-owner {
  width: 140px;
}

.applicant-entry-table .applicant-col-code {
  width: 140px;
}

.applicant-entry-table .applicant-col-flag,
.applicant-entry-table .applicant-col-delete {
  width: 62px;
}

.applicant-input-type {
  max-width: 72px;
}

.applicant-input-item {
  min-width: 340px;
}

.applicant-input-owner {
  max-width: 132px;
}

.applicant-input-code {
  max-width: 132px;
}

.applicant-row-exempt td {
  background: #eef9df;
}

.judge-admin-table tbody tr.applicant-row-exempt td {
  background: #fff7cc;
}

.judge-admin-table tbody tr.applicant-row-bonus td {
  background: #eef9df;
}

.content-grid-single {
  grid-template-columns: 1fr;
}

.panel-head-tight {
  margin-bottom: 14px;
}

.panel-head-tight h3 {
  margin-bottom: 0;
}

.realtime-result-grid {
  gap: 18px;
}

.realtime-result-grid .table-wrap {
  background: rgba(255, 255, 255, 0.78);
  padding: 18px;
}

.results-final-table-wrap {
  padding: 18px;
}

.compact-log-wrap {
  padding: 8px 14px;
}

.compact-log-wrap table th,
.compact-log-wrap table td {
  padding-top: 12px;
  padding-bottom: 12px;
}

.compact-log-time {
  white-space: nowrap;
  width: 110px;
}

.compact-log-title {
  white-space: nowrap;
  width: 120px;
  font-weight: 700;
}

.compact-log-detail {
  line-height: 1.45;
}

.judge-floating-quick-menu {
  position: fixed;
  right: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
}

.judge-quick-btn {
  min-width: 132px;
  box-shadow: 0 16px 34px rgba(13, 103, 181, 0.18);
}

.table-link-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pnu-blue-deep);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.layer-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.layer-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 23, 43, 0.38);
}

.layer-modal-dialog {
  position: relative;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: auto;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(13, 23, 43, 0.24);
}

.layer-modal-wide {
  width: min(1240px, calc(100vw - 48px));
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .judge-floating-quick-menu {
    right: 16px;
    bottom: 18px;
  }

  .judge-quick-btn {
    min-width: 112px;
  }
}

.results-final-table-wrap {
  padding: 24px 24px 20px;
}

.results-final-table-wrap .panel-head {
  padding: 0 4px;
}

.realtime-result-grid .table-wrap {
  padding: 20px 22px;
}

.judge-detail-codes-cell {
  width: 50%;
  min-width: 320px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.6;
}

.realtime-count-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.realtime-count-cell.is-same {
  color: #11845b;
}

.realtime-count-cell.is-over {
  color: #d23d3d;
}

.realtime-count-cell.is-under {
  color: #2166d1;
}

.realtime-count-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.section-detail-swal {
  width: min(1180px, calc(100vw - 24px)) !important;
  padding: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 26px 70px rgba(13, 23, 43, 0.22) !important;
}

.section-detail-swal .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  text-align: left !important;
  overflow: visible !important;
}

.section-detail-swal .swal2-close {
  margin: 18px 18px 0 0;
  color: var(--ink-700);
}

.section-detail-swal__body {
  padding: 18px 20px 20px;
}

.section-detail-swal__title {
  font-size: 1.14rem;
  font-weight: 900;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.section-detail-swal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 14px;
}

.section-detail-swal__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid #dbe5f1;
  border-radius: 999px;
  background: #f5f8fd;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 700;
}

.section-detail-swal__table-shell {
  overflow-x: auto;
  border: 1px solid #d8e2ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(13, 23, 43, 0.06);
}

.section-detail-swal__table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.section-detail-swal__table thead th {
  padding: 11px 12px;
  border-bottom: 1px solid #d8e2ef;
  background: linear-gradient(180deg, #eef5ff 0%, #e6f0fb 100%);
  color: #173b63;
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.section-detail-swal__table tbody td {
  padding: 11px 12px;
  border-top: 1px solid #e4ebf3;
  color: var(--ink-800);
  font-size: 0.93rem;
  vertical-align: top;
}

.section-detail-swal__table tbody tr:nth-child(even) td {
  background: #fcfdff;
}

.section-detail-swal__group-cell {
  width: 110px;
  background: #f7f9fc;
  color: #16395f;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.section-detail-swal__row--accepted .section-detail-swal__group-cell {
  background: #eaf8ef;
}

.section-detail-swal__row--reserve .section-detail-swal__group-cell {
  background: #edf4ff;
}

.section-detail-swal__row--exempt .section-detail-swal__group-cell {
  background: #fff4d9;
}

.section-detail-swal__row--fail .section-detail-swal__group-cell {
  background: #fdecee;
}

.section-detail-swal__codes {
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

.section-detail-swal__summary {
  display: grid;
  gap: 8px;
  margin: 14px 2px 12px;
}

.section-detail-swal__summary-line {
  padding: 11px 14px;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.section-detail-swal__summary-line strong {
  color: var(--ink-900);
}

.section-detail-swal__verify-title {
  margin: 16px 2px 10px;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 900;
}

.section-detail-swal__verify-shell {
  margin-top: 0;
}

.section-detail-swal__verify-table {
  min-width: 700px;
}

.section-detail-swal__empty {
  padding: 18px 12px;
  color: #64748b;
  font-weight: 700;
  text-align: center;
}

.section-detail-swal .realtime-count-cell {
  font-size: 0.92rem;
}

#judgeRealtimeBandTable th:nth-child(1),
#judgeRealtimeBandTable td:nth-child(1) {
  width: 14%;
}

#judgeRealtimeBandTable th:nth-child(2),
#judgeRealtimeBandTable td:nth-child(2) {
  width: 18%;
  white-space: nowrap;
}

#judgeRealtimeBandTable th:nth-child(4),
#judgeRealtimeBandTable td:nth-child(4) {
  width: 90px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .section-detail-swal {
    width: calc(100vw - 12px) !important;
  }

  .section-detail-swal__body {
    padding: 14px;
  }

  .section-detail-swal__table {
    min-width: 760px;
  }

  .section-detail-swal__verify-table {
    min-width: 640px;
  }
}

.final-close-btn {
  background: linear-gradient(135deg, #e24a1b 0%, #ef7d1a 48%, #f4c430 100%);
  box-shadow: 0 16px 28px rgba(219, 91, 22, 0.28);
}

.judge-row-action {
  min-width: 86px;
  font-weight: 800;
}

.judge-row-action-evaluate {
  color: #ffffff;
  background: linear-gradient(135deg, #0d67b5, #1d8fe0);
  box-shadow: 0 10px 22px rgba(13, 103, 181, 0.18);
}

.judge-row-action-edit {
  color: #0f5132;
  background: linear-gradient(135deg, #d7f7e5, #b9f0d2);
}

.judge-row-action-exempt {
  color: #8a5a00;
  background: linear-gradient(135deg, #fff1c9, #ffe29d);
}

.judge-row-action-toggle,
.judge-row-action-readonly {
  color: var(--ink-700);
  background: linear-gradient(135deg, #e8eef4, #dbe7f0);
}

.compact-log-wrap {
  padding: 0;
}

.compact-log-wrap table {
  min-width: 0;
}

.compact-log-wrap table th,
.compact-log-wrap table td {
  padding: 9px 12px;
}

.compact-log-title {
  width: 92px;
}

.compact-log-time {
  width: 84px;
}

.compact-log-detail {
  font-size: 0.94rem;
}

.room-overview-meta {
  margin-bottom: 16px;
}

.room-overview-metrics {
  margin-top: 16px;
}

.room-overview-summary-panel {
  margin-top: 18px;
}

.room-overview-log-wrap {
  margin-top: 8px;
}

.room-overview-log-wrap table {
  min-width: 0;
}

.room-overview-log-wrap .compact-log-title {
  width: 120px;
  white-space: nowrap;
  font-weight: 800;
}

.room-overview-log-wrap .compact-log-time {
  width: 96px;
  white-space: nowrap;
}

.room-overview-log-wrap .compact-log-detail {
  line-height: 1.5;
}

.room-overview-log-wrap .pagination-bar {
  padding: 14px 14px 0;
}

button,
.ghost-btn,
.primary-btn,
.danger-btn,
.muted-btn,
.link-btn,
.status-badge {
  line-height: 1;
}

.ghost-btn {
  color: var(--pnu-blue-deep);
  background: rgba(13, 103, 181, 0.08);
  border: 1px solid rgba(13, 103, 181, 0.16) !important;
  border-radius: 50px;
  font-weight: 700;
}

.sidebar .ghost-btn,
.login-card .ghost-btn,
.judge-shell .ghost-btn,
.error-card .ghost-btn {
  color: #ffffff;
  background: rgba(13, 103, 181, 0.09);
  border: 1px solid #ffffff !important;
}

.ghost-btn,
.primary-btn,
.danger-btn,
.muted-btn,
.link-btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-btn,
.link-btn.primary-btn {
  color: #ffffff;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  border-radius: 16px;
  font-weight: 700;
}

.muted-btn {
  color: var(--ink-700);
  background: #edf2f7;
  border: 1px solid rgba(156, 173, 191, 0.38);
}

.pagination-bar {
  gap: 12px;
}

.pagination-label {
  color: var(--ink-900);
  font-weight: 800;
  font-size: 0.98rem;
}

.pagination-bar .ghost-btn,
.pagination-bar .primary-btn,
.pagination-bar .muted-btn,
.pagination-bar .danger-btn,
.pagination-bar .link-btn {
  min-width: 74px;
  min-height: 42px;
  padding: 10px 18px;
}

button:disabled,
.is-disabled {
  opacity: 1;
  color: #9ca8b6 !important;
  background: #edf3f8 !important;
  border-color: #dce5ee !important;
  box-shadow: none !important;
}

.room-filter-toolbar strong,
.inline-filter-group strong,
.filter-title-row h3,
.panel-head .eyebrow,
.pagination-label,
.panel-meta-text {
  color: var(--ink-900);
}

.room-filter-toolbar span,
.topbar-description,
.metric-copy,
.room-list-item p,
.activity-link p,
.activity-list span {
  color: var(--ink-700);
}

.room-table td:last-child,
.room-table th:last-child {
  min-width: 230px;
}

.table-actions {
  align-items: center;
}

.table-actions-separated {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
}

.table-actions-separated > a,
.table-actions-separated > form,
.table-actions-separated > button {
  flex: 0 0 auto;
}

.table-actions-separated .detail-btn,
.table-actions-separated .edit-btn,
.table-actions-separated .danger-btn,
.table-actions-separated .inline-delete-form .danger-btn {
  min-width: 58px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.94rem;
  font-weight: 800;
}

.table-actions-separated .detail-btn {
  color: var(--pnu-blue-deep);
  background: rgba(13, 103, 181, 0.08);
  border: 1px solid rgba(13, 103, 181, 0.14) !important;
}

.table-actions-separated .edit-btn {
  color: #ffffff;
  background: linear-gradient(135deg, #0ca678, #0d67b5);
  box-shadow: 0 12px 24px rgba(12, 166, 120, 0.18);
}

.table-actions-separated .danger-btn,
.table-actions-separated .inline-delete-form .danger-btn {
  color: #c24141;
  background: #ffe7e7;
  border: 1px solid #ffcaca !important;
}

.status-badge {
  min-height: 38px;
  justify-content: center;
  min-width: 58px;
  white-space: nowrap;
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 22px !important;
}

.sortable-header::after {
  content: "⇅";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca8b6;
  font-size: 0.8rem;
}

.sortable-header.sort-asc::after {
  content: "▲";
  color: var(--pnu-blue-deep);
}

.sortable-header.sort-desc::after {
  content: "▼";
  color: var(--pnu-blue-deep);
}

th {
  text-align: center;
}

td {
  text-align: center;
}

.empty-state-panel {
  margin-top: 16px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid rgba(13, 103, 181, 0.12);
  background: linear-gradient(180deg, rgba(240, 248, 255, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.empty-state-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-900);
  font-size: 1.02rem;
  font-weight: 800;
}

.empty-state-panel p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.7;
}
