:root {
  color-scheme: light;
  --primary: #0B2B4C;
  --action: #0B6F98;
  --accent: #F4A100;
  --bg-start: #DBEEF8;
  --bg-end: #F8FBFD;
  --card: #ffffff;
  --text: #102033;
  --muted: #667789;
  --line: #D8E5EE;
  --field: #F7FBFE;
  --success: #16794c;
  --danger: #c03221;
  --shadow: 0 18px 44px rgba(11, 43, 76, 0.12);
  --soft-shadow: 0 10px 28px rgba(11, 43, 76, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 161, 0, 0.18), transparent 210px),
    linear-gradient(180deg, var(--bg-start), var(--bg-end));
  color: var(--text);
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell,
.stats-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 22px 14px 34px;
}

.form-shell {
  max-width: 540px;
}

.event-hero {
  position: relative;
  padding: 12px 4px 20px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(11, 43, 76, 0.18);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--action);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy {
  margin: 0;
  color: #4d6174;
  font-size: 15px;
  line-height: 1.72;
}

.form-panel,
.filter-section,
.table-section,
.top-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.form-panel {
  padding: 20px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

label,
.field-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

label span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field-hint {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.hint-star {
  margin-right: 3px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.radio-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.radio-label span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea,
.search-select-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--text);
  outline: none;
  padding: 11px 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input,
.input-with-icon textarea {
  padding-left: 44px;
}

.field-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #7890a6;
  flex: 0 0 auto;
}

.field-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.input-with-icon > .field-icon {
  position: absolute;
  top: 13px;
  left: 14px;
  z-index: 1;
}

.textarea-icon > .field-icon {
  top: 14px;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.demand-card {
  display: grid;
  gap: 2px;
  margin: 6px 0 16px;
  border: 1px solid rgba(11, 43, 76, 0.08);
  border-radius: 18px;
  background: rgba(219, 238, 248, 0.32);
  padding: 14px;
}

.demand-card .field-group:last-child {
  margin-bottom: 0;
}

.radio-group {
  display: flex;
  gap: 10px;
}

.radio-group input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  min-height: 0;
}

.radio-option {
  position: relative;
  flex: 1 1 0;
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.radio-option:has(input:checked) {
  border-color: var(--action);
  background: rgba(11, 111, 152, 0.08);
  color: var(--action);
  box-shadow: 0 0 0 4px rgba(11, 111, 152, 0.08);
}

.radio-option:has(input:focus-visible) {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus,
.search-select.is-open .search-select-control {
  border-color: var(--action);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(11, 111, 152, 0.12);
}

.primary-button,
.ghost-button,
.top-card button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  width: 100%;
  background: linear-gradient(135deg, var(--action), #085a7d);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(11, 111, 152, 0.26);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.ghost-button {
  border: 1px solid rgba(11, 43, 76, 0.12);
  background: #ffffff;
  color: var(--primary);
  padding: 0 16px;
}

.form-message {
  min-height: 22px;
  margin: 2px 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.optional-tag {
  color: var(--muted);
  font-weight: 500;
}

.event-constraints {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.remaining-quota {
  margin-left: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.participants-container {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

.participant-card h4 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.participant-fields {
  display: grid;
  gap: 10px;
}

.participant-fields .field-group {
  margin-bottom: 0;
}

.form-closed {
  padding: 32px 24px;
  text-align: center;
}

.form-closed h2 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 20px;
}

.form-closed p {
  color: var(--muted);
  line-height: 1.6;
}

.fee-info {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--field);
}

.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
}

.fee-label {
  color: var(--muted);
}

.fee-value {
  color: var(--primary);
  font-weight: 700;
}

.fee-total .fee-value {
  color: var(--accent);
  font-size: 16px;
}

.bank-info {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.bank-info p {
  margin: 0;
}

.bank-title {
  color: var(--primary);
  font-weight: 700;
}

.payment-qr {
  display: block;
  width: 100%;
  margin: 12px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
}

.bank-info .invoice-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11, 43, 76, 0.45);
}

.modal-card {
  width: min(100%, 400px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 20px;
}

.modal-desc {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.qr-image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
}

.modal-note {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.modal-tip {
  display: inline-block;
  margin: 0 auto 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(244, 161, 0, 0.14);
  border: 1px solid rgba(244, 161, 0, 0.4);
  color: #b96f00;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-card .primary-button {
  width: 100%;
}

.search-select {
  position: relative;
}

.search-select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.search-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-select-value.is-placeholder {
  color: #7b8b9c;
  font-weight: 500;
}

.search-select-chevron {
  color: var(--primary);
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.search-select-chevron svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.search-select-clear {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-top: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 111, 152, 0.09);
  color: var(--action);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px;
}

.search-select-clear[hidden] {
  display: none !important;
}

.search-select-clear.is-disabled {
  display: none !important;
}

.search-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  display: none;
  border: 1px solid rgba(11, 43, 76, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(11, 43, 76, 0.16);
  padding: 10px;
}

.search-select.is-open .search-select-panel {
  display: block;
}

.sheet-header {
  display: none;
}

.search-select-input {
  margin-bottom: 8px;
}

.search-select-list {
  max-height: 432px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.search-select-option,
.search-select-direct,
.search-select-empty {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.35;
}

.search-select-empty.is-static {
  cursor: default;
}

.search-select-option:hover,
.search-select-direct:hover {
  background: #EEF7FB;
}

.search-select-option[aria-selected="true"] {
  background: rgba(11, 111, 152, 0.1);
  color: var(--action);
  font-weight: 800;
}

.search-select-direct {
  margin-bottom: 6px;
  background: rgba(244, 161, 0, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.search-select-empty {
  color: var(--muted);
  justify-content: center;
}

.stats-shell {
  max-width: 1180px;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 2px 18px;
}

.stats-header h1 {
  margin-bottom: 0;
  font-size: 28px;
}

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

.top-section,
.filter-section,
.table-section {
  margin-bottom: 16px;
  padding: 16px;
}

.top-section h2 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 18px;
}

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

.top-card {
  --type-color: var(--accent);
  display: grid;
  min-height: 158px;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(11, 43, 76, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(244, 161, 0, 0.12), rgba(255, 255, 255, 0) 76px),
    #ffffff;
  padding: 14px;
  box-shadow: var(--soft-shadow);
}

.top-card::before {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--type-color);
  content: "";
}

.rank {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.top-card h3 {
  min-height: 40px;
  margin: 0;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.38;
}

.top-card strong {
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.count-suffix {
  color: var(--muted);
  font-size: 13px;
}

.top-card button {
  margin-top: 4px;
  background: var(--primary);
  color: #ffffff;
}

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

.filter-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.filter-section {
  position: relative;
  z-index: 30;
  overflow: visible;
}

.filter-section .search-select {
  min-width: 0;
}

.filter-section .search-select-control,
.filter-section input {
  height: 54px;
  min-height: 54px;
}

.filter-section .search-select-panel {
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 90;
  max-height: 320px;
  overflow: hidden;
}

.filter-section .search-select-list {
  max-height: 220px;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.filter-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.page-info {
  color: var(--muted);
  font-size: 13px;
}

.table-section {
  position: relative;
  z-index: 1;
  padding: 0;
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

table {
  width: 100%;
  min-width: 2140px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #ffffff;
}

.col-select {
  width: 42px;
  text-align: center;
}

.col-participants {
  width: 180px;
}

.participants-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.participant-delete-btn {
  border: 1px solid rgba(192, 50, 33, 0.3);
  background: #fff;
  color: var(--danger);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  white-space: nowrap;
}

.participant-delete-btn:hover {
  background: rgba(192, 50, 33, 0.08);
}

.ghost-button.danger {
  border-color: rgba(192, 50, 33, 0.3);
  color: var(--danger);
}

.ghost-button.danger:not(:disabled):hover {
  background: rgba(192, 50, 33, 0.08);
}

.summary-section {
  margin-bottom: 16px;
}

.summary-card {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.toggle-card {
  align-items: center;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.toggle-text {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.toggle-status {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  border: none;
  border-radius: 999px;
  background: #c7ccd6;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.toggle-switch.toggle-on {
  background: var(--primary);
}

.toggle-switch.toggle-on .toggle-thumb {
  transform: translateX(20px);
}

.closed-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  text-align: center;
}

.closed-message {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.closed-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.closed-link:hover {
  opacity: 0.9;
}

.summary-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-value {
  color: var(--primary);
  font-size: 26px;
  font-weight: 800;
}

.summary-suffix {
  color: var(--muted);
  font-size: 13px;
}

.participants-cell {
  font-size: 12px;
  line-height: 1.6;
  white-space: normal;
  word-break: break-all;
}

.col-id {
  width: 64px;
}

.col-time {
  width: 148px;
}

.col-name {
  width: 120px;
}

.col-contact {
  width: 148px;
}

.col-company {
  width: 270px;
}

.col-chamber {
  width: 180px;
}

.col-industry {
  width: 116px;
}

.col-headcount {
  width: 96px;
}

.col-dev,
.col-offline,
.col-travel {
  width: 110px;
}

.col-referrer {
  width: 120px;
}

.col-scenario {
  width: 300px;
}

.col-pain {
  width: 330px;
}

.col-demand {
  width: 394px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.68;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #F2F8FC;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

td {
  color: #23384d;
  overflow-wrap: break-word;
  word-break: break-word;
}

td:nth-child(1),
td:nth-child(2),
td:nth-child(3),
td:nth-child(4),
td:nth-child(7) {
  white-space: nowrap;
}

td:nth-child(5),
td:nth-child(6),
td:nth-child(8),
td:nth-child(9),
td:nth-child(10),
td:nth-child(11) {
  white-space: normal;
}

tbody tr:nth-child(even) {
  background: #FBFDFF;
}

tbody tr:hover {
  background: #F4FAFD;
}

.empty-state {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  grid-column: 1 / -1;
  padding: 10px 0;
  text-align: left;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 12px 16px;
}

.pagination-bar .ghost-button {
  min-height: 38px;
}

.pagination-bar .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#paginationText {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .page-shell,
  .stats-shell {
    padding: 18px 12px 28px;
  }

  h1 {
    font-size: 25px;
  }

  .form-panel {
    padding: 18px;
  }

  .stats-header {
    align-items: flex-start;
  }

  .top-cards,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .top-card {
    min-height: 0;
  }

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

  .filter-meta {
    justify-content: space-between;
  }

  .filter-actions .ghost-button {
    width: 100%;
  }

  .pagination-bar {
    justify-content: space-between;
  }

  .table-wrap {
    max-height: min(68vh, 620px);
  }

  .search-select-panel {
    position: fixed;
    top: auto !important;
    right: 0;
    bottom: 0 !important;
    left: 0;
    z-index: 80;
    max-height: min(72vh, 620px);
    border-radius: 22px 22px 0 0;
    padding: 14px 14px 18px;
    box-shadow: 0 -18px 42px rgba(11, 43, 76, 0.18);
    overflow: hidden;
  }

  .search-select.is-open::before {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(11, 43, 76, 0.36);
    content: "";
  }

  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--primary);
  }

  .sheet-close {
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: #EEF7FB;
    color: var(--action);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
  }

  .search-select-list {
    max-height: min(432px, calc(72vh - 130px));
  }
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 161, 0, 0.18), transparent 210px),
    linear-gradient(180deg, var(--bg-start), var(--bg-end));
  padding: 20px;
  z-index: 50;
}

.login-card {
  width: min(100%, 380px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 26px;
}

.login-card h1 {
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--primary);
}

.login-card .primary-button {
  width: 100%;
}

/* ========== Session Selection Page ========== */
.sessions-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.session-card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(11, 43, 76, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.session-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(11, 43, 76, 0.14);
}

.session-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--action), #085a78);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 20px;
  border-radius: 999px;
}

.session-time {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.session-divider {
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.session-label {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.session-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 36px;
  border-radius: 8px;
  margin-top: 8px;
  transition: background 0.2s;
}

.session-btn:hover {
  background: var(--action);
}

.sessions-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.sessions-empty .session-btn {
  margin-top: 16px;
}

.sessions-loading {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

/* ========== Session Info Banner (Form Page) ========== */
.session-info-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
  border: 1px solid #b8d8f0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.session-banner-icon {
  font-size: 20px;
}

.session-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-banner-label {
  font-size: 12px;
  color: var(--muted);
}

.session-banner-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.session-banner-change {
  font-size: 14px;
  color: var(--action);
  text-decoration: none;
  white-space: nowrap;
}

.session-banner-change:hover {
  text-decoration: underline;
}

/* ========== Admin: Session Management ========== */
.session-mgmt-section {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.session-mgmt-section h2 {
  font-size: 18px;
  margin: 0 0 6px;
  color: var(--primary);
}

.session-mgmt-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.session-mgmt-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 20px;
}

.session-mgmt-form .field-group {
  flex: 1;
  min-width: 160px;
}

.session-mgmt-form .field-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  font-size: 14px;
}

.session-mgmt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-mgmt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e8eef4;
}

.session-mgmt-item.editing {
  background: #fff8e1;
  border-color: #ffc107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.session-mgmt-item .session-info {
  flex: 1 1 260px;
  min-width: 0;
  font-size: 14px;
  color: var(--text);
}

.session-field-toggles {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.session-field-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.session-field-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #d0d8e0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

.session-field-toggle:has(input:checked) {
  border-color: rgba(11, 111, 152, 0.35);
  background: rgba(11, 111, 152, 0.08);
  color: var(--action);
  font-weight: 600;
}

.session-field-toggle input {
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--action);
}

.session-mgmt-item .session-status {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.session-mgmt-item .session-status.on {
  background: #d4edda;
  color: #155724;
}

.session-mgmt-item .session-status.off {
  background: #f8d7da;
  color: #721c24;
}

.session-mgmt-item .session-actions {
  display: flex;
  gap: 6px;
}

.session-mgmt-item .session-actions button {
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  color: var(--text);
}

.session-mgmt-item .session-actions button:hover {
  background: #f0f4f8;
}

.session-mgmt-empty {
  text-align: center;
  color: var(--muted);
  padding: 16px;
  font-size: 14px;
}

.col-session {
  min-width: 120px;
}

@media (max-width: 640px) {
  .sessions-grid {
    grid-template-columns: 1fr;
  }
  .session-mgmt-form {
    flex-direction: column;
  }
  .session-mgmt-item {
    align-items: flex-start;
  }
  .session-mgmt-item .session-info {
    flex-basis: 100%;
  }
  .session-field-toggles {
    flex-basis: 100%;
  }
  .session-mgmt-item .session-actions {
    margin-left: auto;
  }
}
