:root {
  --ink: #eef6ff;
  --muted: #9fb2c8;
  --panel: #102236;
  --panel-2: #0a1624;
  --panel-3: #132b43;
  --line: #244661;
  --field: #d9e5f1;
  --field-ink: #07111d;
  --cyan: #21c7d9;
  --green: #36b36a;
  --red: #b73a46;
  --amber: #e09d29;
  --purple: #7562d8;
  --blue: #2e7ecb;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 44px;
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #07111d url("assets/background25.jpg") center / cover fixed;
}

body.light-theme {
  --ink: #1d1d1f;
  --muted: #58585d;
  --panel: #e3e3e7;
  --panel-2: #d7d7dc;
  --panel-3: #ececf0;
  --line: #b5b5bd;
  --field: #f4f4f6;
  --field-ink: #1d1d1f;
  --cyan: #0aa6bd;
  --green: #1f9d5a;
  --red: #c13f54;
  --amber: #c98a16;
  --purple: #6d5bd7;
  --blue: #176fc5;
  --shadow: 0 18px 50px rgba(0, 0, 0, .16);
  background:
    linear-gradient(135deg, rgba(10, 166, 189, .10), transparent 30%),
    linear-gradient(225deg, rgba(109, 91, 215, .12), transparent 34%),
    linear-gradient(180deg, #d4d4d9 0%, #c7c7cd 48%, #dadade 100%);
}

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

button {
  border: 0;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.site-copyright {
  position: fixed;
  left: 50%;
  bottom: 10px;
  z-index: 35;
  width: min(520px, calc(100vw - 32px));
  padding: 7px 14px;
  color: rgba(238, 246, 255, .9);
  background: rgba(7, 17, 29, .76);
  border: 1px solid rgba(120, 180, 210, .22);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .26);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.site-copyright a {
  color: #83f1ff;
  text-decoration: none;
}

.site-copyright a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-signature {
  position: fixed;
  right: 18px;
  bottom: 10px;
  z-index: 30;
  color: rgba(238, 246, 255, .74);
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .2px;
  pointer-events: none;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .48);
}

body.light-theme .app-shell {
  background: rgba(208, 208, 214, .96);
}

body.light-theme .sidebar {
  background:
    linear-gradient(180deg, rgba(235, 238, 243, .94), rgba(218, 224, 232, .94)),
    linear-gradient(135deg, rgba(10, 166, 189, .16), rgba(109, 91, 215, .10));
  border-right-color: #b5b5bd;
  box-shadow: 18px 0 44px rgba(0, 0, 0, .10);
  backdrop-filter: blur(18px);
}

body.light-theme .sidebar-toggle,
body.light-theme .nav-item:hover,
body.light-theme .nav-item.active {
  color: #0f2f46;
  background: linear-gradient(135deg, rgba(10, 166, 189, .22), rgba(23, 111, 197, .16));
  box-shadow: inset 3px 0 0 rgba(10, 166, 189, .85);
}

body.light-theme .sidebar-brand img,
body.light-theme .sidebar-logo-mark {
  background: #d8d8de;
}

body.light-theme .sidebar-user {
  background: linear-gradient(135deg, rgba(10, 166, 189, .15), rgba(31, 157, 90, .10));
  border-color: rgba(10, 166, 189, .35);
}

body.light-theme .sidebar-user strong,
body.light-theme .topbar h2,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3 {
  color: #1d1d1f;
}

body.light-theme .site-copyright {
  color: rgba(29, 29, 31, .82);
  background: rgba(231, 231, 235, .84);
  border-color: rgba(0, 0, 0, .12);
}

body.light-theme .site-copyright a {
  color: #0066cc;
}

body.light-theme .site-signature {
  color: rgba(29, 29, 31, .56);
  text-shadow: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(5, 13, 22, .72);
}

.login-card {
  width: min(940px, 100%);
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  background: rgba(10, 22, 36, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(16, 34, 54, .96), rgba(13, 50, 67, .9)),
    radial-gradient(circle at 18% 12%, rgba(33, 199, 217, .22), transparent 28%);
}

.brand-logo {
  width: 210px;
  height: 148px;
  object-fit: contain;
  margin-bottom: 14px;
  background: rgba(4, 10, 17, .34);
}

.brand-wordmark {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 30px;
  color: #06111d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .44)),
    linear-gradient(135deg, var(--cyan), var(--green));
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 22px 48px rgba(33, 199, 217, .28);
  font-size: 42px;
  font-weight: 1000;
  letter-spacing: 0;
}

.brand-wordmark span {
  transform: translateY(-2px);
}

.brand-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: #e6c455;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 700;
}

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

h1 {
  max-width: 460px;
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.brand-copy {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 17px;
}

.brand-panel > .brand-copy:not(.brand-slogan),
.brand-panel .brand-highlights {
  display: none;
}

.brand-slogan {
  max-width: 520px;
  color: #f3fbff;
  font-size: 19px;
  font-weight: 650;
}

.brand-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.brand-highlights span {
  padding: 7px 10px;
  border: 1px solid rgba(33, 199, 217, .34);
  border-radius: 4px;
  color: #ddf7ff;
  background: rgba(33, 199, 217, .1);
  font-size: 13px;
  font-weight: 800;
}

.login-form {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px;
  background: rgba(7, 17, 29, .2);
}

.login-form-heading {
  margin-bottom: 2px;
}

.login-form-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #c9d6e4;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #6c8298;
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--field-ink);
  background: var(--field);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(33, 199, 217, .2);
}

.license-picker input[type="file"] {
  display: block;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(217, 229, 241, .13);
  border-color: rgba(33, 199, 217, .42);
}

.license-picker input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  color: #06111d;
  background: var(--cyan);
  font-weight: 800;
  cursor: pointer;
}

.license-status {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.license-status.good {
  color: #8ef0b3;
}

.license-status.bad {
  color: #ffb4bd;
}

input[readonly] {
  cursor: not-allowed;
  color: #4f6070;
  background: #b9c8d6;
  border-color: #7b8fa3;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #ff8c8c;
  font-weight: 700;
}

.login-actions,
.form-actions,
.topbar-actions,
.quick-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.theme-switch {
  width: auto;
  min-height: 38px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  color: var(--ink);
  background: rgba(29, 56, 81, .78);
  border: 1px solid #315a7a;
  border-radius: 999px;
  user-select: none;
}

.theme-switch span {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-slider {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  border-radius: 999px;
  background: #07111d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.theme-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #21c7d9;
  transition: transform .18s ease, background .18s ease;
}

.theme-switch input:checked + .theme-slider::after {
  transform: translateX(20px);
  background: #ffffff;
}

#openBadgeSettings {
  display: none !important;
}

.primary-button,
.ghost-button,
.tool-button,
.danger-button,
.print-button,
.logout-button,
.chip,
.report-card {
  min-height: 38px;
  border-radius: 4px;
  padding: 9px 15px;
  font-weight: 800;
  color: #fff;
}

.primary-button {
  background: var(--cyan);
  color: #06111d;
}

.ghost-button,
.tool-button,
.chip {
  background: #1d3851;
  color: var(--ink);
  border: 1px solid #315a7a;
}

.danger-button {
  background: var(--red);
}

.print-button {
  background: var(--amber);
  color: #111;
}

.print-button.purple {
  background: var(--purple);
  color: #fff;
}

.logout-button {
  width: 100%;
  margin-top: auto;
  background: #78252d;
}

.login-hint {
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: rgba(6, 14, 23, .84);
  transition: grid-template-columns .22s ease;
}

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

.sidebar {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  background: rgba(8, 18, 29, .97);
  border-right: 1px solid var(--line);
  transition: padding .22s ease, gap .22s ease;
}

.sidebar-toggle {
  position: absolute;
  top: 14px;
  right: -15px;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #eff9ff;
  background: #173654;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  font-size: 22px;
  line-height: 1;
}

.sidebar-toggle:hover {
  background: #215177;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 74px;
}

.sidebar-brand img {
  width: 62px;
  height: 52px;
  object-fit: contain;
  background: #0a1624;
}

.sidebar-logo-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #06111d;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .45)),
    linear-gradient(135deg, var(--cyan), var(--green));
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 14px 32px rgba(33, 199, 217, .22);
  font-size: 18px;
  font-weight: 1000;
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sidebar-user {
  padding: 12px;
  border: 1px solid rgba(33, 199, 217, .28);
  background: rgba(23, 54, 84, .55);
}

.sidebar-user span,
.sidebar-user strong {
  display: block;
}

.sidebar-user span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user strong {
  margin-top: 4px;
  color: #eff9ff;
  font-size: 15px;
}

.main-nav {
  display: grid;
  gap: 8px;
}

.nav-item,
.logout-button {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 4px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-item:hover,
.nav-item.active {
  background: #173654;
}

.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item[data-view="hallEntry"] > .nav-icon {
  display: none;
}

.nav-item[data-view="hallEntry"]::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h5a2 2 0 0 1 2 2v14'/%3E%3Cpath d='M13 20V4L5 6v14z'/%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M10 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 4h5a2 2 0 0 1 2 2v14'/%3E%3Cpath d='M13 20V4L5 6v14z'/%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M10 12h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-button {
  margin-top: 8px;
  color: #ffdce1;
  border-color: rgba(209, 58, 78, .45);
  background: rgba(209, 58, 78, .12);
}

.logout-button:hover {
  background: rgba(209, 58, 78, .24);
  border-color: rgba(209, 58, 78, .7);
}

.app-shell.sidebar-collapsed .sidebar {
  gap: 16px;
  padding: 16px 10px;
  align-items: center;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  right: -15px;
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .sidebar-brand {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: auto;
}

.app-shell.sidebar-collapsed .sidebar-brand img,
.app-shell.sidebar-collapsed .sidebar-logo-mark {
  width: 50px;
  height: 50px;
}

.app-shell.sidebar-collapsed .sidebar-brand div,
.app-shell.sidebar-collapsed .sidebar-user {
  display: none;
}

.app-shell.sidebar-collapsed .main-nav {
  width: 100%;
}

.app-shell.sidebar-collapsed .nav-item,
.app-shell.sidebar-collapsed .logout-button {
  min-height: 46px;
  padding: 8px 6px;
  justify-content: center;
}

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

.workspace {
  min-width: 0;
  padding: 20px;
}

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

.topbar h2 {
  margin: 0;
  font-size: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 34, 54, .92);
}

.stat span {
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 32px;
}

.stat-green {
  border-top: 4px solid var(--green);
}

.stat-red {
  border-top: 4px solid var(--red);
}

.stat-blue {
  border-top: 4px solid var(--blue);
}

.stat-amber {
  border-top: 4px solid var(--amber);
}

.stat-purple {
  border-top: 4px solid var(--purple);
}

.content-view {
  display: none;
}

.active-view {
  display: block;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 430px;
  gap: 16px;
  align-items: start;
}

.list-panel,
.detail-panel,
.module-view,
.report-output,
.definitions-grid section {
  background: rgba(10, 22, 36, .95);
  border: 1px solid var(--line);
}

.list-panel,
.detail-panel {
  min-height: 640px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 18px;
}

.settings-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
}

.settings-card h3 {
  margin-bottom: 8px;
}

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

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: 16px;
  padding: 18px;
}

.home-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 34, 54, .88);
}

.home-wide-card {
  min-height: 420px;
}

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

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

.home-card-header h3 {
  margin: 0;
}

.home-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.home-legend i {
  width: 20px;
  height: 10px;
  border-radius: 999px;
}

.legend-total {
  background: var(--blue);
}

.legend-checked {
  background: var(--green);
}

.legend-full {
  background: var(--amber);
}

.home-bar-chart {
  display: grid;
  gap: 13px;
}

.home-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
}

.home-bar-label strong,
.home-bar-label span,
.home-bar-values strong,
.home-bar-values span {
  display: block;
}

.home-bar-label strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-bar-label span,
.home-bar-values span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-bar-track {
  position: relative;
  height: 28px;
  overflow: hidden;
  background: rgba(217, 229, 241, .10);
  border: 1px solid rgba(127, 164, 190, .20);
}

.home-bar-total,
.home-bar-checked {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: 0 4px 4px 0;
}

.home-bar-total {
  background: linear-gradient(90deg, rgba(46, 126, 203, .88), rgba(117, 98, 216, .82));
}

.home-bar-checked {
  height: 10px;
  top: 9px;
  background: linear-gradient(90deg, rgba(54, 179, 106, .95), rgba(33, 199, 217, .82));
}

.home-bar-values {
  text-align: right;
}

.home-summary-table {
  overflow: auto;
}

.home-compact-table {
  min-width: 0;
}

.home-compact-table th,
.home-compact-table td {
  padding: 13px 12px;
}

.home-compact-table tfoot td {
  color: var(--ink);
  font-weight: 900;
  border-top: 1px solid var(--line);
}

.hotel-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.hotel-block-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(127, 164, 190, .24);
  background: rgba(10, 22, 36, .55);
}

.hotel-block-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  color: var(--ink);
}

.hotel-block-card header strong {
  font-size: 18px;
}

.hotel-block-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hotel-block-bars {
  display: grid;
  gap: 12px;
}

.hotel-metric {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 54px;
  gap: 10px;
  align-items: center;
}

.hotel-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hotel-metric strong {
  text-align: right;
}

.hotel-metric-track {
  height: 12px;
  overflow: hidden;
  background: rgba(217, 229, 241, .12);
  border-radius: 999px;
}

.hotel-metric-bar {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.metric-total {
  background: var(--blue);
}

.metric-checked {
  background: var(--green);
}

.metric-full {
  background: var(--amber);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 170px;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.search-input-wrap {
  position: relative;
  display: block;
}

.search-input-wrap input {
  width: 100%;
  padding-right: 82px;
}

.clear-search-button {
  position: absolute;
  right: 7px;
  top: 50%;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(38, 199, 221, .42);
  background: rgba(7, 17, 29, .72);
  color: #d7e7f7;
  font-size: 12px;
  font-weight: 800;
  transform: translateY(-50%);
}

.clear-search-button:hover {
  color: #06111d;
  background: var(--cyan);
}

.quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.participant-export-button {
  margin-left: auto;
}

.chip.active {
  background: var(--cyan);
  color: #06111d;
  border-color: var(--cyan);
}

.table-wrap {
  overflow: auto;
  max-height: 520px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(74, 114, 147, .42);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #17314b;
  color: #cfe4f9;
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr {
  background: rgba(17, 39, 60, .44);
}

tbody tr:hover,
tbody tr.selected-row {
  background: rgba(33, 199, 217, .18);
}

body.light-theme label span {
  color: #515154;
}

body.light-theme .theme-switch,
body.light-theme .ghost-button,
body.light-theme .tool-button,
body.light-theme .chip {
  color: #1d1d1f;
  background: #eeeef1;
  border-color: #b5b5bd;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

body.light-theme .theme-slider {
  background: #b5b5bd;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

body.light-theme .list-panel,
body.light-theme .detail-panel,
body.light-theme .module-view,
body.light-theme .report-output,
body.light-theme .definitions-grid section,
body.light-theme .stat,
body.light-theme .modal-panel {
  color: #1d1d1f;
  background:
    linear-gradient(180deg, rgba(242, 243, 247, .94), rgba(226, 229, 235, .94)),
    linear-gradient(135deg, rgba(10, 166, 189, .08), rgba(109, 91, 215, .06));
  border-color: #b5b5bd;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

body.light-theme .highlight-card {
  border-color: rgba(10, 166, 189, .38) !important;
  background:
    linear-gradient(180deg, rgba(239, 247, 249, .96), rgba(221, 231, 239, .96)),
    linear-gradient(135deg, rgba(10, 166, 189, .16), rgba(201, 138, 22, .12));
}

body.light-theme th {
  color: #0f2f46;
  background: linear-gradient(180deg, #d7eef3, #c8dce7);
}

body.light-theme td {
  color: #1d1d1f;
  border-bottom-color: rgba(0, 0, 0, .08);
}

body.light-theme tbody tr {
  background: rgba(245, 247, 250, .74);
}

body.light-theme tbody tr:hover,
body.light-theme tbody tr.selected-row {
  background: rgba(0, 102, 204, .14);
}

body.light-theme .filter-row,
body.light-theme .quick-filters,
body.light-theme .modal-header {
  border-color: #b5b5bd;
}

body.light-theme .home-card {
  background:
    linear-gradient(180deg, rgba(242, 245, 250, .96), rgba(224, 230, 238, .96)),
    linear-gradient(135deg, rgba(10, 166, 189, .12), rgba(109, 91, 215, .08));
  border-color: rgba(94, 111, 130, .32);
}

body.light-theme .home-bar-track,
body.light-theme .hotel-metric-track {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(0, 0, 0, .08);
}

body.light-theme .hotel-block-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(231, 236, 243, .72)),
    linear-gradient(135deg, rgba(23, 111, 197, .10), rgba(31, 157, 90, .08));
  border-color: rgba(94, 111, 130, .26);
}

body.light-theme .quick-filters {
  background: rgba(218, 228, 237, .58);
}

body.light-theme .chip.active,
body.light-theme .primary-button {
  background: linear-gradient(135deg, #17bfd3, #0aa6bd);
  color: #06111d;
}

body.light-theme .stat-green {
  background: linear-gradient(180deg, rgba(229, 244, 235, .94), rgba(213, 232, 221, .94));
}

body.light-theme .stat-red {
  background: linear-gradient(180deg, rgba(249, 231, 234, .94), rgba(236, 215, 220, .94));
}

body.light-theme .stat-blue {
  background: linear-gradient(180deg, rgba(228, 238, 250, .94), rgba(211, 225, 242, .94));
}

body.light-theme .stat-amber {
  background: linear-gradient(180deg, rgba(250, 241, 222, .94), rgba(238, 225, 200, .94));
}

body.light-theme .stat-purple {
  background: linear-gradient(180deg, rgba(237, 234, 252, .94), rgba(222, 218, 243, .94));
}

.status {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.status.good {
  color: #dffff0;
  background: rgba(54, 179, 106, .35);
}

.status.bad {
  color: #ffe8e8;
  background: rgba(183, 58, 70, .36);
}

.status.wait {
  color: #fff3d6;
  background: rgba(224, 157, 41, .36);
}

.status.status-pulse {
  transform-origin: center;
  animation: qrBreath 1.9s ease-in-out infinite;
}

.status.bad.status-pulse {
  color: #fff7f7;
  background: rgba(214, 61, 78, .58);
  box-shadow: 0 0 0 1px rgba(255, 130, 144, .32), 0 0 18px rgba(214, 61, 78, .34);
}

.status.good.status-pulse {
  color: #edfff4;
  background: rgba(54, 179, 106, .62);
  box-shadow: 0 0 0 1px rgba(115, 244, 166, .34), 0 0 18px rgba(54, 179, 106, .36);
}

.status.wait.status-pulse {
  color: #110d04;
  background: #ffd84d;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, .42), 0 0 18px rgba(255, 216, 77, .34);
}

.row-button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 3px;
  background: #254967;
  color: #fff;
  font-weight: 700;
}

.row-button.danger-mini {
  background: #73313a;
}

.row-button.accent-mini {
  background: #5c4ec4;
}

.row-button[data-in-house-hotel-report] {
  color: #fff;
  opacity: 1;
}

.row-button[data-sponsor-detail] {
  color: #fff;
  opacity: 1;
}

.row-button[data-in-house-hotel-report] .button-icon,
.row-button[data-in-house-hotel-report] span,
.row-button[data-sponsor-detail] .button-icon,
.row-button[data-sponsor-detail] span {
  color: #fff;
  opacity: 1;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.list-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  color: #cfe4f9;
  border-top: 1px solid var(--line);
}

.detail-panel {
  padding: 14px;
}

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

.panel-title-row h3 {
  margin: 0;
}

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

.danger-action {
  color: #fff4f4;
  background: rgba(185, 52, 68, .88);
  border-color: rgba(255, 137, 148, .48);
}

.danger-action:hover {
  background: rgba(213, 64, 82, .94);
}

.transfer-card {
  gap: 12px;
}

.transfer-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.transfer-side {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  background: rgba(12, 29, 47, .72);
  border: 1px solid rgba(68, 133, 173, .36);
}

.transfer-side strong {
  color: #9fe8f4;
}

.empty-transfer-side {
  color: #b8c7d8;
  background: rgba(69, 82, 100, .32);
  border-style: dashed;
}

.transfer-entry-form {
  align-content: start;
  min-width: min(100%, 760px);
}

#transferView .module-grid {
  grid-template-columns: minmax(280px, .7fr) minmax(720px, 1.3fr);
  align-items: start;
}

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

.transfer-form-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(66, 134, 176, .42);
  background: rgba(12, 29, 47, .62);
}

.transfer-form-side legend {
  padding: 0 6px;
  color: #9fe8f4;
  font-weight: 900;
}

.transfer-form-side.is-passive {
  opacity: .55;
  background: rgba(47, 57, 72, .36);
  border-style: dashed;
}

.transfer-connection-button {
  justify-self: start;
}

.transfer-connection-badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 4px;
  color: #050505;
  background: #ffd84d;
  font-weight: 900;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, .42), 0 0 18px rgba(255, 216, 77, .38);
  transform-origin: center;
  animation: qrBreath 1.9s ease-in-out infinite;
}

.transfer-connection-view {
  width: fit-content;
}

.transfer-connection-panel {
  max-width: min(980px, 94vw);
}

.transfer-connection-layout {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: start;
}

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

.transfer-connection-item {
  border-left: 3px solid #48d2e8;
}

@media (max-width: 760px) {
  .transfer-side-grid,
  .transfer-form-grid,
  .transfer-connection-layout {
    grid-template-columns: 1fr;
  }

  .transfer-form-side,
  .transfer-connection-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  #transferView .module-grid {
    grid-template-columns: 1fr;
  }

  .transfer-entry-form {
    min-width: 0;
  }
}

.toggle-label,
.check-row label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #d7e7f7;
  font-size: 13px;
  font-weight: 700;
}

.toggle-label input,
.check-row input {
  width: auto;
  min-height: auto;
}

#participantForm label:has(input[name="checkedIn"]) {
  display: none !important;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.button-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qr-card-toggle {
  min-height: 34px;
  padding: 2px 0;
  color: #d7e7f7;
  background: transparent;
}

.qr-card-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.qr-card-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.qr-card-toggle:has(input:checked) {
  color: var(--cyan);
  animation: qrBreath 1.9s ease-in-out infinite;
}

@keyframes qrBreath {
  0%, 100% {
    opacity: .72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

#participantRows tr[data-participant-row] {
  cursor: pointer;
}

#participantRows tr[data-participant-row]:hover {
  background: rgba(38, 199, 221, .1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.check-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 13px 0;
}

.wide-label {
  display: block;
}

.form-actions {
  margin-top: 13px;
}

.secondary-actions {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.module-view {
  padding: 18px;
}

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

.accommodation-view {
  background:
    linear-gradient(135deg, rgba(33, 199, 217, .08), transparent 38%),
    linear-gradient(315deg, rgba(54, 179, 106, .08), transparent 34%),
    rgba(10, 22, 36, .95);
}

.accommodation-grid {
  grid-template-columns: minmax(360px, .95fr) minmax(430px, .8fr);
  align-items: start;
  max-width: 1180px;
}

.accommodation-grid > section {
  padding: 14px;
  background: rgba(7, 17, 29, .34);
  border: 1px solid rgba(33, 199, 217, .22);
}

.accommodation-grid h3 {
  margin-bottom: 12px;
  color: #e4f7ff;
}

.module-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(19, 43, 67, .8);
  border: 1px solid var(--line);
}

.accommodation-form {
  gap: 10px 12px;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  background: rgba(11, 35, 52, .94);
  border-color: rgba(33, 199, 217, .38);
  box-shadow: inset 4px 0 0 rgba(33, 199, 217, .85);
}

.accommodation-form label {
  display: block;
}

.accommodation-form .wide-label,
.accommodation-form .form-actions {
  grid-column: 1 / -1;
}

.accommodation-form label:has([name="checkIn"]),
.accommodation-form label:has([name="checkOut"]),
.accommodation-form label:has([name="days"]) {
  padding: 10px;
  background: rgba(33, 199, 217, .08);
  border: 1px solid rgba(33, 199, 217, .18);
}

.accommodation-form label:has([name="amount"]),
.accommodation-form label:has([name="currency"]) {
  padding: 10px;
  background: rgba(224, 157, 41, .09);
  border: 1px solid rgba(224, 157, 41, .2);
}

.accommodation-form input[readonly] {
  font-weight: 800;
  color: #102236;
  background: #d9eef4;
}

.course-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .7fr);
}

.admin-grid {
  grid-template-columns: minmax(0, 1fr) 380px 360px;
  align-items: start;
}

#userForm {
  grid-auto-rows: max-content;
  align-content: start;
  gap: 14px;
}

#userForm label {
  display: block;
}

#userForm .form-actions {
  margin-top: 4px;
}

.admin-bulk-card {
  grid-column: 1 / -1;
}

.excel-import-card {
  grid-column: 1 / -1;
  border-color: rgba(54, 179, 106, .38);
  background: linear-gradient(135deg, rgba(16, 34, 54, .96), rgba(13, 47, 47, .88));
}

.excel-file-picker input[type="file"] {
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(217, 229, 241, .13);
  border-color: rgba(54, 179, 106, .42);
}

.excel-file-picker input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  color: #06111d;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.excel-import-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.excel-import-stats span {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 17, 29, .42);
  font-weight: 800;
}

.excel-import-stats .ready,
.excel-row-hazir .excel-status,
.excel-row-kaydedildi .excel-status,
.excel-row-state-ready td,
.excel-row-state-ready .excel-status,
.excel-import-stats .saved {
  color: #7ef0a4;
}

.excel-import-stats .error,
.excel-row-hatali .excel-status,
.excel-row-hata .excel-status,
.excel-row-state-error td,
.excel-row-state-error .excel-status {
  color: #ff9aa6;
}

.excel-import-stats .existing,
.excel-row-mevcut-kayit .excel-status,
.excel-row-state-existing td,
.excel-row-state-existing .excel-status {
  color: #f7c968;
}

.excel-row-state-ready {
  background: rgba(54, 179, 106, .09);
}

.excel-row-state-error {
  background: rgba(183, 58, 70, .12);
}

.excel-row-state-existing {
  background: rgba(224, 157, 41, .1);
}

.excel-import-table-wrap {
  max-height: 360px;
  margin-top: 10px;
  overflow: auto;
}

.excel-import-table-wrap table {
  min-width: max-content;
}

.excel-import-table-wrap th,
.excel-import-table-wrap td {
  white-space: nowrap;
}

.bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.course-toolbar {
  display: grid;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(33, 199, 217, .08);
  border: 1px solid rgba(33, 199, 217, .3);
}

.permission-box {
  min-width: 0;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid rgba(33, 199, 217, .28);
  background: rgba(33, 199, 217, .07);
}

.permission-box legend {
  padding: 0 6px;
  color: #dbeafe;
  font-weight: 800;
}

.permission-list {
  display: grid;
  gap: 6px;
  max-height: 245px;
  overflow: auto;
}

.permission-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  background: rgba(10, 22, 36, .72);
  border: 1px solid rgba(74, 114, 147, .38);
}

.permission-check input {
  width: auto;
  min-height: auto;
}

.permission-check span {
  margin: 0;
  color: #d7e7f7;
  font-size: 13px;
  font-weight: 700;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.mini-item {
  padding: 12px;
  background: rgba(19, 43, 67, .8);
  border: 1px solid var(--line);
}

.mini-item.accent-left-blue {
  border-left: 4px solid var(--cyan);
}

.mini-item.accent-left-muted {
  border-left: 4px solid #60788f;
}

.mini-item strong {
  display: block;
}

.mini-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.capacity-open {
  color: #bdf8d8 !important;
  font-weight: 800;
}

.capacity-full {
  color: #ffd0d0 !important;
  font-weight: 900;
}

.capacity-muted {
  color: #b8c7d6 !important;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 14, .72);
}

.modal-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #0a1624;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quick-action-panel {
  width: min(560px, 94vw);
}

.notes-alert-panel {
  width: min(440px, 94vw);
  border-color: rgba(224, 157, 41, .72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .42), 0 0 0 1px rgba(224, 157, 41, .18);
}

.notes-alert-body {
  margin: 0 16px 16px;
  padding: 14px;
  color: #fff7df;
  line-height: 1.45;
  white-space: pre-wrap;
  background: rgba(224, 157, 41, .14);
  border: 1px solid rgba(224, 157, 41, .44);
}

.kvkk-notice-panel {
  width: min(680px, 94vw);
  border-color: rgba(35, 203, 223, .45);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .46), 0 0 0 1px rgba(35, 203, 223, .12);
}

.kvkk-notice-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  color: #e8f3fb;
  line-height: 1.5;
}

.kvkk-notice-body p,
.kvkk-notice-body ul {
  margin: 0;
}

.kvkk-notice-body ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.kvkk-confirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  background: rgba(35, 203, 223, .10);
  border: 1px solid rgba(35, 203, 223, .34);
}

.kvkk-confirm input {
  margin-top: 4px;
}

.kvkk-confirm.has-error {
  border-color: rgba(239, 91, 91, .9);
  background: rgba(239, 91, 91, .12);
  box-shadow: 0 0 0 1px rgba(239, 91, 91, .22);
}

.kvkk-warning {
  margin: -4px 0 0;
  color: #ff7b7b;
  font-weight: 800;
}

.kvkk-notice-actions {
  padding: 0 18px 18px;
}

.room-type-modal-panel {
  width: min(920px, 96vw);
}

.room-type-modal-card {
  margin: 16px;
}

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

.quick-action-card {
  min-height: 98px;
  border-radius: 6px;
  padding: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, .16);
}

.accent-green {
  background: linear-gradient(135deg, #1f7d50, #36b36a);
}

.accent-blue {
  background: linear-gradient(135deg, #1c5c97, #2e7ecb);
}

.accent-purple {
  background: linear-gradient(135deg, #5443b7, #7562d8);
}

.highlight-card {
  border-color: rgba(224, 157, 41, .64) !important;
  background: linear-gradient(180deg, rgba(19, 43, 67, .95), rgba(20, 33, 51, .95));
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
}

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

.share-modal-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.share-summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  background: rgba(19, 43, 67, .72);
  border: 1px solid var(--line);
}

.share-summary strong,
.share-summary span {
  display: block;
}

.share-filter-row {
  grid-template-columns: minmax(220px, 1fr) auto;
  padding: 0;
  border-bottom: 0;
}

.row-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.badge-settings-form {
  display: grid;
  gap: 12px;
  align-content: start;
}

.badge-profile-tools {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(38, 199, 221, .08);
  border: 1px solid rgba(38, 199, 221, .28);
}

.badge-default-profile {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #d7e7f7;
  font-weight: 800;
}

.badge-default-profile input {
  width: auto;
  min-height: auto;
}

.badge-profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.badge-profile-list-wrap {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.badge-profile-list-wrap > strong {
  color: #fff;
  font-size: 13px;
}

.badge-profile-list {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow: auto;
}

.badge-profile-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 9px 10px;
  color: #d7e7f7;
  text-align: left;
  background: rgba(7, 17, 29, .5);
  border: 1px solid rgba(74, 114, 147, .48);
}

.badge-profile-item.active {
  color: #06111d;
  background: var(--cyan);
  border-color: var(--cyan);
}

.badge-profile-item span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.badge-profile-item em {
  padding: 2px 7px;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  background: rgba(31, 125, 80, .9);
}

.badge-profile-item small {
  color: inherit;
  opacity: .82;
}

.badge-preview-wrap {
  display: grid;
  place-items: center;
  min-height: 560px;
  background: rgba(19, 43, 67, .58);
  border: 1px solid var(--line);
}

.badge-preview {
  position: relative;
  width: min(397px, 88vw);
  aspect-ratio: 397 / 510;
  overflow: hidden;
  color: #07111d;
  background: #fff;
  text-align: center;
}

.badge-preview img {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 136px;
  height: 82px;
  object-fit: contain;
  transform: translateX(-50%);
}

.badge-preview-name,
.badge-preview-type,
.badge-preview-note,
.badge-preview-qr {
  position: absolute;
  left: 20px;
  right: 20px;
}

.badge-preview-name {
  top: var(--badge-name-top, 32%);
  font-size: var(--badge-font-size, 24px);
  line-height: 1.08;
  font-weight: 800;
}

.badge-preview-type {
  top: var(--badge-type-top, 46%);
  color: #315a7a;
  font-size: 19px;
  font-weight: 800;
}

.badge-preview-note {
  top: var(--badge-note-top, 53%);
  font-size: 15px;
}

.badge-preview-qr {
  left: 50%;
  right: auto;
  top: var(--badge-qr-top, 66%);
  width: var(--badge-qr-width, 90px);
  height: var(--badge-qr-height, 90px);
  display: grid;
  place-items: center;
  transform: translateX(-50%);
}

.badge-preview-qr img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

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

.definition-layout {
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
  align-items: start;
  margin-top: 16px;
}

.definition-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(7, 17, 29, .5);
  border: 1px solid rgba(33, 199, 217, .25);
}

.definition-tab {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(110, 146, 180, .45);
  border-radius: 4px;
  background: #173654;
  color: #dcecff;
  font-weight: 800;
}

.definition-tab.active {
  background: var(--cyan);
  color: #06111d;
  border-color: var(--cyan);
}

.definition-card[data-definition-panel] {
  display: none;
}

.definition-card[data-definition-panel].active-definition-panel {
  display: block;
}

.report-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  text-align: left;
  background: #173654;
  border: 1px solid var(--line);
}

.report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(10, 22, 36, .95);
  border: 1px solid var(--line);
}

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

.report-search-label {
  width: min(320px, 42vw);
  margin: 0;
}

.report-search-label span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-output {
  display: block;
  min-height: 280px;
  margin: 16px 0 0;
  padding: 16px;
  white-space: pre-wrap;
  color: #dcecff;
  overflow: auto;
}

.report-table-wrap {
  max-height: 560px;
}

.transfer-report-filter {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(7, 17, 29, .46);
  border: 1px solid rgba(120, 180, 210, .22);
  border-radius: 6px;
}

.transfer-report-filter label span {
  color: #d9e8f7;
}

.accommodation-report-filter {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
}

.report-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(120, 180, 210, .22);
}

.report-section h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
}

.flight-status-badge {
  display: inline-flex;
  min-width: 112px;
  justify-content: center;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.flight-status-in-flight,
.flight-status-critical {
  color: #fff7f7;
  background: rgba(214, 61, 78, .74);
  box-shadow: 0 0 0 1px rgba(255, 130, 144, .38), 0 0 18px rgba(214, 61, 78, .4);
  animation: qrBreath 1.5s ease-in-out infinite;
}

.flight-status-soon,
.flight-status-upcoming {
  color: #120e04;
  background: #ffd84d;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, .42), 0 0 16px rgba(255, 216, 77, .3);
  animation: qrBreath 1.9s ease-in-out infinite;
}

.flight-status-today {
  color: #e8fbff;
  background: rgba(33, 199, 217, .28);
  box-shadow: 0 0 0 1px rgba(33, 199, 217, .24);
}

.flight-status-planned {
  color: #dcecff;
  background: rgba(46, 126, 203, .24);
}

.flight-status-passed {
  color: #c8d3df;
  background: rgba(120, 138, 156, .22);
}

.transfer-report-connection-badge {
  min-width: 128px;
  color: #050505;
  background: #ffd84d;
  box-shadow: 0 0 0 1px rgba(255, 216, 77, .45), 0 0 20px rgba(255, 216, 77, .38);
  animation: qrBreath 1.7s ease-in-out infinite;
}

.sponsor-detail-panel {
  width: min(1180px, 96vw);
  max-height: 92vh;
}

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

.sponsor-detail-tabs {
  margin: 12px 0;
}

.sponsor-detail-output {
  min-height: 360px;
  overflow: auto;
}

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

.sponsor-summary-card {
  padding: 14px;
  background: rgba(19, 43, 67, .86);
  border: 1px solid rgba(33, 199, 217, .28);
}

.sponsor-summary-card span,
.sponsor-summary-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.sponsor-summary-card strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 22px;
}

.sponsor-summary-total {
  background: rgba(30, 110, 86, .72);
  border-color: rgba(99, 245, 177, .46);
}

.sponsor-detail-table-title {
  margin-bottom: 10px;
  color: #fff;
  font-weight: 900;
}

.sponsor-detail-table-wrap {
  max-height: 62vh;
}

.course-participants-panel {
  width: min(820px, 94vw);
}

.course-participants-list {
  max-height: 62vh;
  overflow: auto;
}

.definitions-grid section,
.definition-card {
  min-height: 140px;
  padding: 18px;
  background: rgba(10, 22, 36, .95);
  border: 1px solid var(--line);
}

.compact-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(19, 43, 67, .72);
  border: 1px solid var(--line);
}

.definitions-grid p,
.module-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.hall-entry-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.hall-entry-control,
.hall-entry-live {
  min-width: 0;
  padding: 18px;
  background: rgba(16, 34, 54, .88);
  border: 1px solid var(--line);
}

.hall-entry-filters {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.barcode-label input {
  min-height: 64px;
  border-color: rgba(33, 199, 217, .72);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.hall-entry-message {
  margin-top: 14px;
  padding: 16px;
  min-height: 74px;
  display: grid;
  place-items: center;
  color: #dbe9f7;
  background: rgba(9, 20, 33, .78);
  border: 1px solid rgba(120, 180, 210, .24);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.hall-entry-message.good {
  color: #ecfff2;
  background: rgba(27, 112, 65, .86);
  border-color: rgba(115, 244, 166, .55);
}

.hall-entry-message.repeat {
  color: #231a04;
  background: #f0c24a;
  border-color: #ffe58a;
  animation: qrBreath 1.9s ease-in-out infinite;
}

.hall-entry-message.bad {
  color: #fff1f1;
  background: rgba(132, 34, 45, .9);
  border-color: rgba(255, 144, 144, .56);
  animation: qrBreath 1.9s ease-in-out infinite;
}

.hall-entry-total {
  margin-bottom: 14px;
}

.hall-entry-total strong {
  font-size: 42px;
}

.hall-entry-table-wrap {
  max-height: calc(100vh - 320px);
}

.kiosk-view {
  min-height: calc(100vh - 140px);
}

.kiosk-shell {
  position: relative;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 160px));
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 8%, rgba(33, 199, 217, .16), transparent 32%),
    rgba(7, 17, 29, .36);
}

.kiosk-shell::before,
.kiosk-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kiosk-shell::before {
  opacity: .55;
}

.kiosk-shell::after {
  opacity: .28;
}

.weather-sunny .kiosk-shell::before {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 217, 93, .75), rgba(255, 217, 93, .16) 12%, transparent 22%),
    linear-gradient(115deg, rgba(255, 183, 77, .12), transparent 58%);
  animation: kioskSunGlow 5s ease-in-out infinite;
}

.weather-cloudy .kiosk-shell::before,
.weather-windy .kiosk-shell::before {
  background:
    radial-gradient(ellipse at 20% 22%, rgba(190, 220, 240, .18), transparent 24%),
    radial-gradient(ellipse at 72% 30%, rgba(190, 220, 240, .14), transparent 28%),
    linear-gradient(100deg, transparent 0%, rgba(210, 232, 244, .08) 45%, transparent 70%);
  background-size: 120% 100%;
  animation: kioskCloudDrift 11s linear infinite;
}

.weather-rainy .kiosk-shell::after {
  background-image: repeating-linear-gradient(105deg, rgba(120, 210, 255, .34) 0 2px, transparent 2px 15px);
  background-size: 42px 42px;
  animation: kioskRain 650ms linear infinite;
}

.weather-snowy .kiosk-shell::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .72) 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(255, 255, 255, .46) 0 1.5px, transparent 2px);
  background-size: 42px 42px, 64px 64px;
  animation: kioskSnow 7s linear infinite;
}

.weather-stormy .kiosk-shell::before {
  background:
    linear-gradient(110deg, transparent 0 46%, rgba(255, 241, 138, .72) 47%, transparent 50%),
    radial-gradient(circle at 50% 0%, rgba(95, 120, 180, .28), transparent 45%);
  animation: kioskStorm 2.4s steps(1, end) infinite;
}

.weather-stormy .kiosk-shell::after {
  background-image: repeating-linear-gradient(105deg, rgba(144, 211, 255, .32) 0 2px, transparent 2px 13px);
  background-size: 38px 38px;
  animation: kioskRain 520ms linear infinite;
}

.weather-windy .kiosk-shell::after {
  background-image: repeating-linear-gradient(0deg, transparent 0 28px, rgba(210, 232, 244, .12) 29px 31px, transparent 32px 62px);
  background-size: 100% 96px;
  animation: kioskWind 3.8s linear infinite;
}

.kiosk-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 54px);
  text-align: center;
  background: rgba(10, 22, 36, .92);
  border: 1px solid rgba(33, 199, 217, .28);
  box-shadow: var(--shadow);
}

@keyframes kioskSunGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: .45;
  }

  50% {
    transform: scale(1.05);
    opacity: .72;
  }
}

@keyframes kioskCloudDrift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 120% 0;
  }
}

@keyframes kioskRain {
  from {
    background-position: 0 0;
  }

  to {
    background-position: -42px 42px;
  }
}

@keyframes kioskSnow {
  from {
    background-position: 0 -80px, 20px -120px;
  }

  to {
    background-position: 0 220px, 20px 180px;
  }
}

@keyframes kioskStorm {
  0%,
  82%,
  100% {
    opacity: .12;
  }

  84%,
  88% {
    opacity: .75;
  }
}

@keyframes kioskWind {
  from {
    background-position: -80px 0;
  }

  to {
    background-position: 160px 0;
  }
}

.kiosk-info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  text-align: left;
}

.kiosk-info-panel > div {
  min-width: 0;
  padding: 16px;
  background: rgba(7, 17, 29, .62);
  border: 1px solid rgba(120, 180, 210, .24);
}

.kiosk-info-panel span,
.kiosk-info-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kiosk-info-panel strong {
  display: block;
  margin-top: 7px;
  color: #f4fbff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.22;
}

.kiosk-info-panel .kiosk-weather-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.kiosk-weather-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: #07111d;
  background: #f8d44c;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(248, 212, 76, .36);
}

.kiosk-weather-icon[data-weather-mode="cloudy"],
.kiosk-weather-icon[data-weather-mode="windy"] {
  color: #e8f6ff;
  background: rgba(111, 169, 204, .32);
  box-shadow: 0 0 18px rgba(111, 169, 204, .24);
}

.kiosk-weather-icon[data-weather-mode="rainy"],
.kiosk-weather-icon[data-weather-mode="snowy"] {
  color: #eaf8ff;
  background: rgba(52, 128, 176, .52);
  box-shadow: 0 0 18px rgba(52, 128, 176, .32);
}

.kiosk-weather-icon[data-weather-mode="stormy"] {
  color: #1b1500;
  background: #f8c646;
  box-shadow: 0 0 24px rgba(248, 198, 70, .48);
}

.kiosk-info-panel small {
  margin-top: 6px;
}

.kiosk-view:fullscreen {
  padding: 0;
  background: #07111d;
  overflow: auto;
}

.kiosk-view:fullscreen .kiosk-shell {
  min-height: 100vh;
}

.kiosk-view:fullscreen .kiosk-topbar {
  display: none;
}

.kiosk-view:fullscreen .kiosk-card {
  box-shadow: none;
}

.kiosk-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
  text-align: left;
}

.kiosk-topbar label {
  margin: 0;
}

.kiosk-orientation {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(120, 180, 210, .24);
  background: rgba(7, 17, 29, .58);
}

.kiosk-orientation button,
.kiosk-fullscreen {
  min-height: 42px;
  border: 1px solid rgba(120, 180, 210, .28);
  border-radius: 8px;
  color: #edf8ff;
  background: rgba(20, 52, 78, .88);
  font-weight: 900;
  cursor: pointer;
}

.kiosk-orientation button {
  min-width: 82px;
  padding: 0 14px;
}

.kiosk-fullscreen {
  padding: 0 18px;
}

.kiosk-orientation button.is-active,
.kiosk-fullscreen:hover,
.kiosk-orientation button:hover {
  color: #04131d;
  background: var(--cyan);
  border-color: rgba(33, 199, 217, .82);
}

.kiosk-landscape .kiosk-card {
  display: grid;
  grid-template-columns: minmax(230px, 285px) minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
  width: min(1120px, 100%);
}

.kiosk-landscape .kiosk-topbar {
  grid-column: 1 / -1;
}

.kiosk-landscape .kiosk-info-panel {
  grid-column: 1;
  grid-row: 2 / span 4;
  grid-template-columns: 1fr;
  width: auto;
  margin-right: 0;
  margin-bottom: 0;
}

.kiosk-landscape .kiosk-card > h3,
.kiosk-landscape .kiosk-card > .kiosk-copy,
.kiosk-landscape .kiosk-card > .kiosk-form,
.kiosk-landscape .kiosk-card > .kiosk-message {
  grid-column: 2;
}

.kiosk-landscape .kiosk-form {
  grid-template-columns: minmax(330px, .9fr) minmax(360px, 1fr);
  align-items: stretch;
}

.kiosk-landscape .kiosk-form > label {
  align-self: start;
}

.kiosk-landscape .kiosk-keypad {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.kiosk-landscape .kiosk-form .primary-button {
  align-self: end;
}

.kiosk-card h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 54px);
}

.kiosk-copy {
  max-width: 560px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

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

.kiosk-form label {
  text-align: left;
}

.kiosk-form input {
  min-height: 70px;
  border-color: rgba(33, 199, 217, .72);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

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

.kiosk-keypad button {
  min-height: 70px;
  border: 1px solid rgba(120, 180, 210, .28);
  border-radius: 8px;
  color: #f4fbff;
  background: rgba(20, 52, 78, .9);
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.kiosk-keypad button:hover,
.kiosk-keypad button:focus-visible {
  border-color: rgba(33, 199, 217, .7);
  background: rgba(26, 72, 104, .96);
  outline: none;
}

.kiosk-keypad button:active {
  transform: translateY(1px);
  background: rgba(33, 199, 217, .34);
}

.kiosk-keypad-action {
  font-size: 20px !important;
  background: rgba(55, 84, 112, .86) !important;
}

.kiosk-form .primary-button {
  min-height: 78px;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  animation: kioskButtonPulse 1.45s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(33, 199, 217, .48), var(--shadow);
}

@keyframes kioskButtonPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(33, 199, 217, .44), var(--shadow);
  }

  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 12px rgba(33, 199, 217, 0), var(--shadow);
  }
}

.kiosk-message {
  min-height: 86px;
  margin-top: 20px;
  padding: 18px;
  display: grid;
  place-items: center;
  color: #dcecff;
  background: rgba(7, 17, 29, .62);
  border: 1px solid rgba(120, 180, 210, .24);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.kiosk-message.good {
  color: #ecfff2;
  background: rgba(27, 112, 65, .86);
  border-color: rgba(115, 244, 166, .55);
  animation: qrBreath 1.9s ease-in-out infinite;
}

.kiosk-message.bad {
  color: #fff1f1;
  background: rgba(132, 34, 45, .9);
  border-color: rgba(255, 144, 144, .56);
  animation: qrBreath 1.9s ease-in-out infinite;
}

.kiosk-message.wait {
  color: #120e04;
  background: #ffd84d;
  border-color: rgba(255, 216, 77, .55);
  animation: qrBreath 1.9s ease-in-out infinite;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 58px;
  z-index: 80;
  max-width: 360px;
  padding: 12px 14px;
  background: #143f2a;
  color: #effff6;
  border: 1px solid rgba(108, 232, 160, .42);
  box-shadow: var(--shadow);
  transform: translateY(120px);
  opacity: 0;
  transition: .18s ease;
}

.toast.error {
  background: #52202a;
  border-color: rgba(255, 144, 144, .52);
  color: #fff1f1;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media print {
  body {
    background: #fff;
  }

  body > *:not(.print-area) {
    display: none !important;
  }
}

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

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    overflow: auto;
  }

  .sidebar-toggle {
    position: static;
    flex: 0 0 auto;
    transform: none !important;
  }

  .app-shell.sidebar-collapsed .sidebar {
    align-items: center;
    padding: 12px;
  }

  .app-shell.sidebar-collapsed .sidebar-brand { display: grid; }
  .app-shell.sidebar-collapsed .sidebar-brand div { display: block; }
  .app-shell.sidebar-collapsed .sidebar-user { display: block; }
  .app-shell.sidebar-collapsed .logout-button { display: inline-flex; }

  .app-shell.sidebar-collapsed .nav-item {
    font-size: inherit;
  }

  .app-shell.sidebar-collapsed .nav-item::after {
    content: none;
  }

  .main-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow: auto;
  }

  .logout-button {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
  }

  .split-layout,
  .module-grid,
  .definition-layout,
  .badge-settings-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .login-shell,
  .workspace {
    padding: 12px;
  }

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

  .brand-panel,
  .login-form {
    padding: 24px;
  }

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

  .topbar,
  .list-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .filter-row,
  .form-grid,
  .check-row,
  .quick-action-grid {
    grid-template-columns: 1fr;
  }

  .badge-preview-wrap {
    min-height: 420px;
  }

  .sidebar-brand {
    min-width: 210px;
  }
}

@media (max-width: 760px), (pointer: coarse) and (max-width: 900px) {
  #printBadge,
  #printVoucher {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .nav-item[data-view="kiosk"],
  #kioskView {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  body {
    overflow-x: hidden;
    background-attachment: scroll;
  }

  .workspace,
  .content-view,
  .list-panel,
  .detail-panel,
  .module-view,
  .module-grid,
  .accommodation-grid,
  .definition-layout,
  .definition-card,
  .modal-panel {
    min-width: 0;
  }

  .sidebar {
    gap: 12px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-user {
    min-width: 170px;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .list-panel,
  .detail-panel {
    min-height: auto;
  }

  .accommodation-grid {
    max-width: none;
  }

  .admin-grid,
  .course-grid,
  .hall-entry-shell,
  .accommodation-grid {
    grid-template-columns: 1fr;
  }

  .admin-bulk-card {
    grid-column: auto;
  }

  .badge-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .home-dashboard {
    grid-template-columns: 1fr;
  }

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

  .home-bar-values {
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

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

  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .transfer-report-filter,
  .accommodation-report-filter {
    grid-template-columns: 1fr;
  }

  .report-actions {
    justify-content: stretch;
  }

  .report-search-label {
    width: 100%;
    flex: 1 1 240px;
  }

  .report-actions .tool-button {
    flex: 1 1 150px;
  }

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

  .hall-entry-filters {
    grid-template-columns: 1fr;
  }

  .hall-entry-table-wrap {
    max-height: none;
  }

  .kiosk-shell {
    min-height: auto;
    padding: 12px;
  }

  .kiosk-card {
    padding: 22px;
  }

  .kiosk-topbar {
    grid-template-columns: 1fr;
  }

  .kiosk-info-panel,
  .kiosk-landscape .kiosk-info-panel {
    width: auto;
    float: none;
    grid-template-columns: 1fr;
    margin-right: 0;
  }

  .kiosk-orientation {
    justify-content: stretch;
  }

  .kiosk-orientation button,
  .kiosk-fullscreen {
    flex: 1 1 0;
    width: 100%;
  }

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

  .kiosk-landscape .kiosk-keypad {
    grid-column: auto;
    grid-row: auto;
  }

  .kiosk-form input {
    min-height: 58px;
    font-size: 26px;
  }

  .kiosk-keypad {
    gap: 8px;
  }

  .kiosk-keypad button {
    min-height: 58px;
    font-size: 24px;
  }

  .kiosk-message {
    min-height: 72px;
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 76px;
  }

  .site-copyright {
    bottom: 8px;
    width: min(360px, calc(100vw - 20px));
    padding: 6px 10px;
    font-size: 11px;
  }

  .site-signature {
    right: 12px;
    bottom: 42px;
    font-size: 17px;
  }

  .login-shell,
  .workspace {
    padding: 10px;
  }

  .login-card {
    min-height: auto;
    border-radius: 0;
  }

  .brand-panel,
  .login-form {
    padding: 18px;
  }

  .brand-logo {
    width: 150px;
    height: 96px;
  }

  .brand-wordmark {
    width: 110px;
    height: 110px;
    font-size: 34px;
  }

  h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  .brand-copy {
    font-size: 15px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-height: 48vh;
    overflow: auto;
  }

  .sidebar-brand {
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: auto;
  }

  .sidebar-brand img,
  .sidebar-logo-mark {
    width: 48px;
    height: 40px;
  }

  .sidebar-brand strong,
  .sidebar-user strong,
  .nav-item,
  button {
    overflow-wrap: anywhere;
  }

  .sidebar-user {
    min-width: 0;
    padding: 9px 10px;
  }

  .main-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .nav-item {
    width: auto;
    min-width: max-content;
    min-height: 38px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .logout-button {
    width: 100%;
  }

  .topbar {
    gap: 12px;
  }

  .topbar h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .topbar-actions,
  .quick-filters,
  .form-actions,
  .bulk-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .topbar-actions button,
  .quick-filters button,
  .form-actions button,
  .bulk-actions button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

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

  .stat {
    min-height: 70px;
    padding: 10px;
  }

  .stat strong {
    font-size: 25px;
  }

  .split-layout,
  .module-grid,
  .accommodation-grid,
  .definition-layout,
  .badge-settings-grid,
  .filter-row,
  .form-grid,
  .check-row,
  .accommodation-form,
  .share-filter-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .list-panel,
  .detail-panel,
  .module-view,
  .report-output,
  .definitions-grid section,
  .definition-card {
    border-left: 0;
    border-right: 0;
  }

  .filter-row,
  .quick-filters,
  .detail-panel,
  .module-view,
  .module-form,
  .definition-card,
  .compact-form,
  .report-output,
  .report-toolbar,
  .share-modal-body,
  .badge-settings-grid {
    padding: 12px;
  }

  .table-wrap,
  .report-table-wrap {
    max-height: 58vh;
    -webkit-overflow-scrolling: touch;
  }

  #participantsView table,
  #participantsView thead,
  #participantsView tbody,
  #participantsView tr,
  #participantsView td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  #participantsView table {
    border-collapse: separate;
    border-spacing: 0;
  }

  #participantsView thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  #participantsView tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  #participantsView tbody tr {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid rgba(74, 114, 147, .42);
    background: rgba(17, 39, 60, .72);
  }

  #participantsView tbody tr.selected-row {
    border-color: rgba(33, 199, 217, .74);
    background: rgba(33, 199, 217, .17);
  }

  #participantsView td {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 28px;
    padding: 0;
    border-bottom: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #participantsView td::before {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  #participantsView td:nth-child(1)::before { content: "TC Kimlik"; }
  #participantsView td:nth-child(2)::before { content: "Ad Soyad"; }
  #participantsView td:nth-child(3)::before { content: "Kurum"; }
  #participantsView td:nth-child(4)::before { content: "Kayıt Tipi"; }
  #participantsView td:nth-child(5)::before { content: "Ödeme"; }
  #participantsView td:nth-child(6)::before { content: "Giriş"; }
  #participantsView td:nth-child(7)::before { content: "Giriş Zamanı"; }
  #participantsView td:nth-child(8)::before { content: "Kurs"; }
  #participantsView td:nth-child(9)::before { content: "İşlem"; }

  #participantsView td:nth-child(1)::before { content: "Ad Soyad"; }
  #participantsView td:nth-child(2)::before { content: "TC Kimlik"; }
  #participantsView td:nth-child(3)::before { content: "Kay\0131t Tipi"; }
  #participantsView td:nth-child(4)::before { content: "\00d6deme"; }
  #participantsView td:nth-child(5)::before { content: "Giri\015f"; }
  #participantsView td:nth-child(6)::before { content: "Giri\015f Zaman\0131"; }
  #participantsView td:nth-child(7)::before { content: "Kurs"; }
  #participantsView td:nth-child(8)::before { content: "\0130\015flem"; }
  #participantsView td:nth-child(9) { display: none; }

  #participantsView .table-wrap {
    overflow-x: hidden;
  }

  .report-output table {
    min-width: 680px;
  }

  th,
  td {
    padding: 9px 10px;
    font-size: 13px;
  }

  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .row-button {
    width: 100%;
    min-width: 72px;
  }

  .panel-title-row,
  .modal-header,
  .share-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-backdrop {
    align-items: stretch;
    justify-items: stretch;
    padding: 8px;
  }

  .modal-panel {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .quick-action-card {
    min-height: 74px;
    font-size: 16px;
  }

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

  .report-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .report-card {
    min-height: 58px;
  }

  .definition-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
  }

  .definition-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .permission-list {
    max-height: 38vh;
  }

  .mini-item {
    padding: 10px;
  }

  .mini-item-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .badge-preview-wrap {
    min-height: auto;
    padding: 12px;
  }

  .badge-preview {
    width: min(280px, 78vw);
  }

  .toast {
    right: 10px;
    bottom: 84px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .login-shell,
  .workspace {
    padding: 8px;
  }

  .brand-panel,
  .login-form,
  .filter-row,
  .detail-panel,
  .module-view,
  .module-form,
  .definition-card,
  .compact-form,
  .report-toolbar,
  .report-output {
    padding: 10px;
  }

  .topbar-actions,
  .quick-filters,
  .form-actions,
  .bulk-actions,
  .mini-item-actions {
    grid-template-columns: 1fr;
  }

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

  .stat {
    min-height: 58px;
  }

  .stat strong {
    font-size: 22px;
  }

  input,
  select,
  textarea,
  .primary-button,
  .ghost-button,
  .tool-button,
  .danger-button,
  .print-button,
  .logout-button,
  .chip,
  .report-card {
    min-height: 42px;
  }

  .badge-preview {
    width: min(240px, 82vw);
  }
}
