:root {
  --ink: #13261c;
  --ink-soft: #466052;
  --line: rgba(19, 38, 28, 0.09);
  --panel: rgba(255, 255, 255, 0.88);
  --green: #0d7d43;
  --green-deep: #065b31;
  --blue: #145d8d;
  --gold: #af7a0c;
  --red: #c44f4f;
  --shadow: 0 20px 60px rgba(12, 27, 20, 0.12);
  --radius: 24px;
  --font-main: "SUIT Variable", "Pretendard Variable", "Noto Sans KR", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-main);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 125, 67, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(20, 93, 141, 0.1), transparent 24%),
    linear-gradient(180deg, #f4f2ea 0%, #eef2ea 100%);
}

body { padding: 24px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code { padding: 2px 6px; border-radius: 8px; background: rgba(19, 38, 28, 0.06); }

.landing-page {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(13, 125, 67, 0.22), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(7, 94, 49, 0.18), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(56, 168, 98, 0.12), transparent 28%),
    linear-gradient(180deg, #edf7ef 0%, #e4f0e7 48%, #eef5eb 100%);
}
.landing-shell, .app-shell, .dashboard-shell { width: min(1400px, 100%); margin: 0 auto; }

.landing-shell {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
  justify-items: center;
}

.hero-card, .panel, .dashboard-card, .dashboard-hero, .count-band, .stat-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-card { padding: 48px; border-radius: 36px; }
.hero-card h1 { margin: 0 0 16px; max-width: 14ch; font-size: clamp(2rem, 3vw, 3.6rem); line-height: 1.06; }
.hero-copy { max-width: 65ch; color: var(--ink-soft); line-height: 1.7; }
.eyebrow, .section-tag { margin: 0 0 8px; color: var(--green); font-size: 0.86rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

.landing-actions, .action-row, .topbar-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-actions { margin-top: 28px; }
.landing-note { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: rgba(13, 125, 67, 0.08); }

.landing-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 72px 56px;
  border-radius: 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 252, 248, 0.94)),
    linear-gradient(135deg, rgba(13, 125, 67, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 28px 80px rgba(10, 44, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.landing-hero-card h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.landing-eyebrow {
  margin-bottom: 18px;
  font-size: 1rem;
}

.landing-hero-card .hero-copy {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.9;
  text-wrap: balance;
}

.landing-glow-line {
  width: min(320px, 62%);
  height: 10px;
  margin-top: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 125, 67, 0), rgba(13, 125, 67, 0.75), rgba(13, 125, 67, 0));
  filter: blur(0.5px);
}

.landing-hero-card .landing-actions {
  justify-content: center;
  margin-top: 34px;
}

.meeting-launch-panel {
  width: min(860px, 100%);
  margin-top: 34px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 125, 67, 0.08);
}

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

.meeting-launch-header h2 {
  margin: 0;
  font-size: 1.3rem;
}

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

.meeting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.08), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(13, 125, 67, 0.1);
}

.meeting-card-main {
  display: grid;
  gap: 6px;
  text-align: left;
}

.meeting-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  cursor: pointer;
}

.meeting-select-button:hover {
  color: var(--green-deep);
}

.meeting-card-meta {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

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

.meeting-card-actions .action-button {
  min-width: 126px;
}

.past-meeting-panel {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.meeting-card.is-closed {
  border-style: dashed;
  opacity: 0.92;
}

.meeting-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(19, 38, 28, 0.08);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.landing-toolbox {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-user-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 125, 67, 0.12);
  color: var(--ink-soft);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(19, 38, 28, 0.08);
}

.tool-icon-button {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green-deep);
  color: white;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(6, 91, 49, 0.22);
}

.login-field-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.login-field-row > span {
  font-weight: 900;
  color: var(--ink);
  white-space: nowrap;
}

.login-field-row input {
  min-height: 58px;
  border: 1px solid rgba(64, 190, 126, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-field-row input:focus {
  border-color: rgba(13, 125, 67, 0.72);
  box-shadow:
    0 0 0 4px rgba(13, 125, 67, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.password-input-wrap {
  position: relative;
  display: grid;
}

.password-input-wrap input {
  width: 100%;
  min-height: 58px;
  padding-right: 54px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 125, 67, 0.11);
  color: var(--ink-soft);
  font-weight: 900;
  cursor: pointer;
}

.password-toggle-button.is-visible {
  background: rgba(13, 125, 67, 0.16);
  color: var(--green-deep);
}

.account-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

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

.account-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

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

.account-notice {
  display: grid;
  justify-items: start;
  gap: 12px;
}

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

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(19, 38, 28, 0.04);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

.account-row > div:first-child {
  display: grid;
  gap: 4px;
}

.account-row > div:first-child span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.account-row.is-super {
  background: linear-gradient(135deg, rgba(175, 122, 12, 0.1), rgba(255, 255, 255, 0.86));
}

.account-role-badge {
  min-width: 86px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 125, 67, 0.12);
  color: var(--green-deep);
  font-weight: 900;
}

.account-row-actions {
  display: flex;
  gap: 8px;
}

.role-choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(19, 38, 28, 0.04);
}

.allowed-user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.allowed-user-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(13, 125, 67, 0.06);
  border: 1px solid rgba(13, 125, 67, 0.12);
}

.allowed-user-item small {
  grid-column: 2;
  color: var(--ink-soft);
}

.staff-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.staff-summary-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(13, 125, 67, 0.1), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(13, 125, 67, 0.12);
}

.staff-summary-card b {
  font-size: 1.55rem;
  color: var(--green-deep);
}

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

.staff-log-table th,
.staff-log-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(19, 38, 28, 0.12);
  text-align: center;
}

.staff-audit-block {
  margin-top: 28px;
}

.staff-audit-block h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--ink);
}

.meeting-empty {
  padding: 22px;
  border-radius: 20px;
  background: rgba(19, 38, 28, 0.05);
  color: var(--ink-soft);
}

.meeting-dialog {
  width: min(480px, calc(100% - 32px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: transparent;
}

.meeting-dialog::backdrop {
  background: rgba(12, 27, 20, 0.34);
  backdrop-filter: blur(4px);
}

.meeting-dialog-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.dialog-error {
  margin: 0;
  color: var(--red);
  font-size: 0.92rem;
  font-weight: 700;
}

.landing-hero-card .action-button {
  min-width: 220px;
  min-height: 52px;
  font-weight: 700;
}

.landing-hero-card .action-button.ghost {
  background: rgba(19, 38, 28, 0.08);
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.landing-orb-left {
  top: -60px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(13, 125, 67, 0.24), rgba(13, 125, 67, 0));
}

.landing-orb-right {
  right: -50px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 168, 98, 0.22), rgba(56, 168, 98, 0));
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.action-button:hover, .mini-button:hover { transform: translateY(-1px); }
.action-button.primary { background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%); color: white; }
.action-button.secondary { background: linear-gradient(135deg, #1e7a6c 0%, #145c52 100%); color: white; }
.action-button.ghost, .action-button.subtle { background: rgba(19, 38, 28, 0.07); color: var(--ink); }
.action-button.light { background: white; color: var(--green-deep); }
.action-button.danger { background: linear-gradient(135deg, #d95d4f 0%, #9e2f27 100%); color: white; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.topbar h1, .topbar h2, .panel h2, .dashboard-card h2 { margin: 0; }

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

.console-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.console-shell.drawer-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.console-drawer {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
  padding: 24px 20px;
  min-height: calc(100vh - 48px);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.15), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  overflow: visible;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease, padding 180ms ease;
}

.console-shell.drawer-collapsed .console-drawer {
  width: 72px;
  padding: 72px 10px 14px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  border-radius: 26px;
}

.drawer-brand h1 {
  margin: 0 0 8px;
}

.console-shell.drawer-collapsed .drawer-brand,
.console-shell.drawer-collapsed .drawer-footer {
  display: none;
}

.drawer-nav {
  display: grid;
  gap: 10px;
}

.drawer-link {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 22px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 120ms ease, background 120ms ease;
}

.console-shell.drawer-collapsed .drawer-nav {
  gap: 8px;
}

.console-shell.drawer-collapsed .drawer-link {
  min-height: 58px;
  padding: 8px 6px;
  place-items: center;
  text-align: center;
  border-radius: 18px;
}

.console-shell.drawer-collapsed .drawer-link strong,
.console-shell.drawer-collapsed .drawer-link span {
  display: none;
}

.console-shell.drawer-collapsed .drawer-link::before {
  content: attr(data-short);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.drawer-link span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.drawer-link.is-active {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-deep) 100%);
  color: white;
}

.drawer-link.is-active span {
  color: rgba(255, 255, 255, 0.82);
}

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

.console-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.console-topbar {
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(520px, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.topbar-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.current-tab-meta {
  margin: 6px 0 0;
  font-size: 0.96rem;
}

.drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 22px;
  right: -18px;
  z-index: 8;
  min-height: 46px;
  min-width: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1b2d24 0%, #355244 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(19, 38, 28, 0.16);
  white-space: nowrap;
}

.console-shell.drawer-collapsed .drawer-toggle {
  right: 50%;
  transform: translateX(50%);
  padding: 0;
  font-size: 0;
}

.console-shell.drawer-collapsed .drawer-toggle::before {
  content: "열기";
  font-size: 0.86rem;
  font-weight: 800;
}

.tab-panels {
  display: grid;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: grid;
  gap: 20px;
}

body.reception-only-mode .console-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.reception-only-mode .console-drawer,
body.reception-only-mode .drawer-toggle,
body.reception-only-mode .topbar-actions {
  display: none;
}

body.reception-only-mode .console-main {
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
}

body.reception-only-mode .console-topbar {
  padding: 6px 4px 0;
}

.glass-panel { position: relative; overflow: hidden; }
.glass-panel::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 125, 67, 0.22), transparent 70%);
}

.panel, .dashboard-card { padding: 20px; border-radius: var(--radius); }
.panel-header, .dashboard-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-header-spread { align-items: flex-end; }

.event-danger-zone {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(217, 93, 79, 0.18);
  background: linear-gradient(135deg, rgba(217, 93, 79, 0.08), rgba(255, 255, 255, 0.78));
}

.event-danger-zone h3 {
  margin: 0;
  font-size: 1.15rem;
}

.stack-form { display: grid; gap: 14px; }
.stack-form label { display: grid; gap: 8px; }
.stack-form span, .muted, .tiny-note { color: var(--ink-soft); }

.event-settings-form {
  max-width: 620px;
}

.info-box {
  padding: 18px;
  border-radius: 22px;
  background: rgba(19, 38, 28, 0.04);
  border: 1px solid var(--line);
}

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

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

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.info-list span {
  color: var(--ink-soft);
}

.printer-box {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(20, 93, 141, 0.07), rgba(255, 255, 255, 0.96));
  border-color: rgba(20, 93, 141, 0.14);
}

.printer-locked-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 93, 141, 0.12);
}

.printer-locked-value span {
  color: var(--ink-soft);
}

.reception-header-row {
  align-items: end;
}

.reception-header-tools {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.printer-agent-download {
  min-height: 46px;
  white-space: nowrap;
}

.compact-printer-form {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-printer-title {
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.compact-printer-label {
  display: grid;
  gap: 6px;
  min-width: 250px;
}

.compact-printer-label span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.compact-printer-label select,
.compact-printer-label input {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.compact-printer-label select.select-confirmed {
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.12), rgba(255, 255, 255, 0.96));
  border-color: rgba(13, 125, 67, 0.24);
}

.custom-printer-inline {
  min-width: 220px;
}

.reception-printer-status {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(19, 38, 28, 0.06);
  border: 1px solid rgba(19, 38, 28, 0.08);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.search-row {
  margin-bottom: 16px;
  display: grid;
  gap: 12px;
}

.reception-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.filter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(19, 38, 28, 0.04), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(19, 38, 28, 0.08);
  overflow-x: auto;
}

.reception-filter-box {
  flex: 1 1 auto;
  min-width: 0;
}

.filter-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(13, 125, 67, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 125, 67, 0.14), rgba(255, 255, 255, 0.92));
  color: var(--green-deep);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.filter-toggle-icon {
  line-height: 1;
  transition: transform 0.18s ease;
}

.reception-filter-box:not(.is-expanded) .filter-tab-row {
  display: none;
}

.reception-filter-box.is-expanded .filter-toggle-icon {
  transform: rotate(180deg);
}

.reception-focus-card {
  margin: 8px 0 18px;
}

.reception-focus-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr) minmax(260px, 1fr) minmax(300px, 1.05fr);
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(13, 125, 67, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(13, 125, 67, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 247, 0.92));
  box-shadow: 0 18px 38px rgba(19, 38, 28, 0.08);
}

.reception-focus-main.needs-action {
  box-shadow: 0 0 0 3px rgba(13, 125, 67, 0.08), 0 18px 38px rgba(19, 38, 28, 0.08);
}

.reception-focus-main.is-complete {
  border-color: rgba(13, 125, 67, 0.1);
  background:
    radial-gradient(circle at 0% 0%, rgba(13, 125, 67, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 252, 250, 0.9));
}

.reception-focus-empty {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px dashed rgba(13, 125, 67, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

.reception-focus-empty strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.reception-focus-identity,
.reception-focus-detail,
.reception-focus-alerts,
.reception-focus-actions {
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.reception-focus-identity {
  display: grid;
  align-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(13, 125, 67, 0.13), rgba(255, 255, 255, 0.86));
}

.focus-kicker {
  width: fit-content;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
}

.reception-focus-identity strong {
  font-size: clamp(2.3rem, 3vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--ink);
}

.reception-focus-identity b {
  font-size: clamp(1.35rem, 1.7vw, 2rem);
  color: var(--ink);
}

.reception-focus-identity em {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 179, 64, 0.2);
  color: #9a6400;
  font-style: normal;
  font-weight: 950;
}

.reception-focus-detail {
  display: grid;
  gap: 12px;
}

.reception-focus-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.reception-focus-detail dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.reception-focus-detail dt,
.reception-focus-detail dd {
  margin: 0;
}

.reception-focus-detail dt {
  color: var(--ink-soft);
  font-weight: 900;
}

.reception-focus-detail dd {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 950;
}

.focus-vote-list {
  align-items: flex-start;
}

.reception-focus-alerts {
  display: grid;
  align-content: start;
  gap: 10px;
}

.focus-proxy-alert,
.focus-remarks-alert,
.focus-normal-alert {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  font-weight: 900;
}

.focus-proxy-alert {
  background: rgba(255, 196, 0, 0.22);
  color: #7b3d00;
}

.focus-remarks-alert {
  position: relative;
  padding-right: 56px;
  background: rgba(177, 18, 38, 0.1);
  color: #a11224;
  white-space: pre-line;
}

.focus-remarks-alert .remarks-edit-button {
  position: absolute;
  top: 12px;
  right: 12px;
}

.focus-normal-alert {
  background: rgba(13, 125, 67, 0.08);
  color: var(--green-deep);
}

.focus-proxy-alert span,
.focus-remarks-alert span {
  font-size: 0.82rem;
  opacity: 0.82;
}

.reception-focus-actions {
  display: grid;
  align-content: center;
  gap: 14px;
}

.reception-focus-actions p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.reception-action-button.large {
  min-height: 58px;
  min-width: 138px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 1.08rem;
  box-shadow: 0 12px 24px rgba(19, 38, 28, 0.12);
}

.reception-row.is-selected {
  background: rgba(13, 125, 67, 0.08);
  box-shadow: inset 4px 0 0 var(--green);
}

.filter-box-title {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  white-space: nowrap;
}

.filter-tab-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.filter-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(19, 38, 28, 0.08);
  border-radius: 999px;
  background: rgba(19, 38, 28, 0.05);
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-tab.is-active {
  background: linear-gradient(135deg, rgba(13, 125, 67, 0.14), rgba(13, 125, 67, 0.06));
  border-color: rgba(13, 125, 67, 0.18);
  color: var(--green-deep);
  font-weight: 700;
}

.search-inline-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.member-search-box {
  width: 100%;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(13, 125, 67, 0.09), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 125, 67, 0.16);
  box-shadow: 0 14px 34px rgba(19, 38, 28, 0.06);
}

.member-search-label {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding-right: 4px;
  color: var(--ink);
  white-space: nowrap;
}

.member-search-label span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.member-search-label strong {
  font-size: 1.02rem;
  font-weight: 900;
}

.member-search-box select {
  flex: 0 0 128px;
  width: 128px;
}

.member-search-box input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 280px;
}

.search-inline-tight select:first-child {
  width: 180px;
  flex: 0 0 180px;
}

.search-inline-tight input[type="search"] {
  flex: 0 1 560px;
  width: min(560px, 100%);
  min-width: 0;
}

.search-inline-row select:first-child {
  width: 170px;
  flex: 0 0 170px;
}

.search-inline-row input[type="search"] {
  flex: 0 1 560px;
  width: min(560px, 100%);
  min-width: 0;
}

.search-inline-row.inline-filters input[type="search"] {
  min-width: 0;
}

.search-inline-row select:last-child {
  width: 150px;
  flex: 0 0 150px;
}

.member-search-box.search-inline-tight select,
.member-search-box.search-inline-row select:first-child {
  flex: 0 0 128px;
  width: 128px;
}

.member-search-box.search-inline-tight input[type="search"],
.member-search-box.search-inline-row input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 280px;
}

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

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

.form-span-2 {
  grid-column: 1 / -1;
}

input[type="text"], input[type="password"], input[type="search"], input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(64, 190, 126, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

textarea { resize: vertical; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; }
.toggle-field input { width: 20px; height: 20px; }

.template-style-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(13, 125, 67, 0.12);
}

.template-style-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.template-helper-copy {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(19, 38, 28, 0.05);
  color: var(--ink-soft);
  line-height: 1.7;
}

.template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.template-controls-pane {
  display: grid;
  gap: 14px;
}

.template-top-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  align-items: end;
}

.template-name-field,
.template-preset-select-field {
  min-width: 0;
}

.template-preset-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(19, 38, 28, 0.04);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

.template-preset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-config-grid,
.alignment-grid {
  display: grid;
  gap: 12px;
}

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

.alignment-grid {
  display: none;
}

.template-grid-builder {
  display: grid;
  gap: 14px;
}

.template-plain-builder {
  display: grid;
  gap: 14px;
}

.template-plain-editor {
  display: grid;
  gap: 10px;
}

.template-plain-editor textarea {
  min-height: 260px;
  resize: vertical;
}

.canvas-template-builder {
  display: grid;
  gap: 14px;
}

.canvas-designer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.canvas-tool-panel {
  display: block;
}

.canvas-tool-card,
.canvas-stage-panel {
  padding: 16px;
  border-radius: 20px;
  background: rgba(19, 38, 28, 0.04);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

.canvas-tool-card {
  display: grid;
  gap: 10px;
}

.canvas-ribbon-card {
  background: rgba(250, 252, 249, 0.96);
  box-shadow: 0 12px 28px rgba(19, 38, 28, 0.06);
}

.canvas-tool-title {
  font-weight: 800;
  color: var(--ink);
}

.canvas-ribbon-row,
.canvas-ribbon-group,
.canvas-ribbon-actions,
.canvas-align-buttons,
.canvas-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.canvas-ribbon-row {
  justify-content: space-between;
}

.canvas-ribbon-group {
  min-height: 62px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

.canvas-ribbon-group strong {
  width: 100%;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.canvas-ribbon-field-group {
  flex: 1 1 520px;
}

.canvas-ribbon-actions {
  flex: 0 1 auto;
}

.canvas-ribbon-field {
  flex: 1 1 300px;
  min-width: 240px;
}

.canvas-workbench {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(304px, 360px) minmax(280px, 360px);
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 410px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(13, 125, 67, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(13, 125, 67, 0.055) 1px, transparent 1px),
    #ffffff;
  background-size: 20px 20px;
  border: 1px dashed rgba(19, 38, 28, 0.18);
  overflow: auto;
}

.canvas-side-panel {
  align-self: center;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(252, 253, 250, 0.92);
  border: 1px solid rgba(19, 38, 28, 0.08);
  box-shadow: 0 18px 38px rgba(19, 38, 28, 0.08);
}

.canvas-side-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

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

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

.canvas-side-panel-wide > .canvas-align-strip,
.canvas-side-panel-wide > .canvas-style-grid {
  display: none;
}

.canvas-format-stack {
  display: grid;
  gap: 12px;
}

.canvas-format-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}

.canvas-format-row:first-child {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.canvas-format-label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 800;
}

.canvas-format-label select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(19, 38, 28, 0.14);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.canvas-text-field textarea {
  min-height: 92px;
  resize: vertical;
}

.canvas-align-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.canvas-align-strip > span {
  color: var(--ink-soft);
  font-weight: 800;
}

.number-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  min-height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(19, 38, 28, 0.15);
  background: #ffffff;
}

.number-stepper input {
  min-height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  background: #ffffff;
}

.stepper-buttons {
  display: grid;
  border-left: 1px solid rgba(19, 38, 28, 0.12);
}

.stepper-buttons button {
  border: 0;
  background: rgba(19, 38, 28, 0.06);
  color: var(--ink-soft);
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
}

.stepper-buttons button:hover {
  background: rgba(13, 125, 67, 0.14);
  color: var(--green-deep);
}

.canvas-style-grid input[type="color"] {
  min-height: 44px;
  padding: 5px;
}

.canvas-panel-actions {
  justify-content: flex-end;
}

.canvas-stage-panel {
  display: grid;
  gap: 12px;
}

.canvas-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}

.canvas-stage-header span {
  color: #8a2424;
  font-weight: 800;
}

.canvas-designer-stage {
  display: grid;
  place-items: center;
  min-height: 324px;
  padding: 0;
}

.canvas-designer-paper,
.label-canvas-card {
  position: relative;
  background: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

.canvas-designer-paper {
  width: 80mm;
  height: 80mm;
  border: 2px solid #e3342f;
  box-shadow: 0 20px 44px rgba(19, 38, 28, 0.12);
}

.label-canvas-card {
  color: #111;
  border: 0;
  box-shadow: 0 18px 40px rgba(18, 35, 27, 0.08);
}

.canvas-edit-item,
.label-canvas-item {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  box-sizing: border-box;
  line-height: 1.25;
  white-space: pre-line;
  overflow: hidden;
}

.canvas-edit-item {
  cursor: move;
  user-select: none;
  isolation: isolate;
  overflow: visible;
}

.canvas-edit-item.is-image,
.label-canvas-item.is-image {
  padding: 0;
}

.canvas-edit-item img,
.label-canvas-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.canvas-edit-item span,
.label-canvas-item span {
  display: flex;
  align-items: center;
  justify-content: var(--canvas-justify, center);
  width: 100%;
  height: 100%;
  text-align: var(--canvas-text-align, center);
  white-space: pre-line;
  overflow: hidden;
}

.canvas-edit-item.is-selected {
  outline: 1px dashed rgba(8, 113, 74, 0.82);
  outline-offset: 7px;
}

.canvas-edit-item.is-selected::after {
  display: none;
}

.canvas-resize-handle {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: #08714a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(8, 113, 74, 0.35), 0 4px 10px rgba(19, 38, 28, 0.18);
  cursor: nwse-resize;
  z-index: 4;
}

.template-section-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(19, 38, 28, 0.04);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

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

.template-row-editor,
.template-body-editor {
  display: grid;
  gap: 12px;
}

.template-row-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.template-body-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

.template-row-editor .template-cell-editor,
.template-body-row-cells .template-cell-editor,
.template-footer-editor {
  min-height: var(--template-row-height, auto);
}

.template-insert-row {
  display: flex;
  justify-content: center;
  margin-top: -2px;
}

.template-insert-row .mini-button {
  min-width: 112px;
}

.template-row-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.template-cell-metrics,
.template-cell-style-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.template-cell-metrics {
  justify-content: flex-start;
}

.template-cell-style-row {
  justify-content: space-between;
}

.template-body-row-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

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

.template-cell-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.template-align-group {
  display: inline-flex;
  gap: 6px;
}

.template-width-control {
  display: grid;
  gap: 6px;
  width: 120px;
}

.template-font-control,
.template-height-control {
  display: grid;
  gap: 6px;
  width: 108px;
}

.template-width-control span,
.template-font-control span,
.template-height-control span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.template-width-control input,
.template-font-control input,
.template-height-control input {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
}

.template-cell-editor {
  display: grid;
  gap: 8px;
}

.template-cell-editor > select,
.template-cell-editor > textarea,
.template-cell-metrics,
.template-cell-style-row {
  width: 100%;
}

.template-cell-editor textarea,
.template-footer-editor textarea {
  min-height: 84px;
  resize: vertical;
}

.template-footer-editor {
  display: grid;
  gap: 10px;
}

.template-footer-tools {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.label-variable-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.label-variable-chip {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(19, 38, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.label-variable-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 125, 67, 0.24);
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.08), rgba(255, 255, 255, 0.96));
}

.label-variable-chip strong {
  font-size: 0.98rem;
}

.label-variable-chip span {
  color: var(--ink-soft);
  font-size: 0.8rem;
  word-break: break-all;
}

.preview-card {
  margin: 16px auto 0;
  max-width: 920px;
  padding: 16px;
  border-radius: 20px;
  background: #fbfbf8;
  border: 1px solid rgba(19, 38, 28, 0.07);
}

.template-preview-pane {
  margin: 0;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  position: sticky;
  top: 24px;
}

.template-preview-pane .preview-title-row {
  align-items: flex-start;
  flex-direction: column;
}

.preview-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-preview {
  margin: 12px 0 0;
  min-height: 0;
  padding: 18px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 245, 0.96));
  border: 1px dashed rgba(19, 38, 28, 0.14);
  white-space: normal;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
}

.label-preview-status {
  width: 100%;
  margin: 0 0 10px;
  color: #7a1f1f;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.label-preview-status.is-overflowing {
  color: #b42318;
}

.label-paper-preview {
  position: relative;
  width: var(--paper-width);
  min-width: var(--paper-width);
  height: var(--paper-height);
  min-height: var(--paper-height);
  overflow: visible;
}

.label-paper-boundary {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(220, 38, 38, 0.95);
  border-radius: 2px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 3;
}

.label-paper-preview.is-overflowing .label-paper-boundary {
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.label-paper-stage {
  position: relative;
  z-index: 1;
  width: var(--paper-width);
  min-width: var(--paper-width);
  min-height: var(--paper-height);
}

.label-plain-card {
  width: min(100%, 380px);
  padding: 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(19, 38, 28, 0.12);
  background: white;
  box-shadow: 0 16px 36px rgba(19, 38, 28, 0.07);
}

.label-plain-card div {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(19, 38, 28, 0.1);
  white-space: pre-line;
}

.label-plain-card div:last-child {
  border-bottom: 0;
}

.label-table-card {
  width: min(100%, 380px);
  background: white;
  color: #111;
  border: 2px solid #111;
  box-sizing: border-box;
  box-shadow: 0 18px 40px rgba(18, 35, 27, 0.08);
  overflow: hidden;
}

.label-table-head {
  display: grid;
  font-weight: 400;
}

.label-table-head div {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 8px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: inherit;
  letter-spacing: normal;
  box-sizing: border-box;
  overflow: hidden;
}

.label-table-head div span {
  width: 100%;
  white-space: pre-line;
}

.label-table-head div:last-child {
  border-right: 0;
}

.label-table-grid-rows {
  display: grid;
}

.label-table-row {
  display: grid;
}

.label-table-cell {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 10px 10px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  font-size: inherit;
  box-sizing: border-box;
  overflow: hidden;
}

.label-table-cell span {
  width: 100%;
  white-space: pre-line;
}

.label-table-cell:last-child {
  border-right: 0;
}

.label-table-footer {
  padding: 10px;
  text-align: center;
  font-size: inherit;
  font-weight: 400;
  box-sizing: border-box;
  overflow: hidden;
  white-space: pre-line;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { min-height: 140px; padding: 22px; border-radius: 28px; display: grid; gap: 10px; }
.stat-card p { margin: 0; color: var(--ink-soft); }
.stat-card strong { font-size: clamp(1.8rem, 2vw, 2.4rem); }
.console-topbar .stats-grid {
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 8px;
  min-width: 0;
}
.console-topbar .stat-card {
  min-height: 72px;
  padding: 10px 12px;
  border-radius: 20px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "value detail";
  align-content: center;
  gap: 3px 8px;
}
.console-topbar .stat-card p {
  grid-area: label;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.console-topbar .stat-card strong {
  grid-area: value;
  font-size: clamp(1.25rem, 1.45vw, 1.75rem);
  line-height: 1;
  white-space: nowrap;
}
.console-topbar .stat-card span {
  grid-area: detail;
  align-self: end;
  min-width: 0;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.accent-green { background: linear-gradient(180deg, rgba(13, 125, 67, 0.12), rgba(255, 255, 255, 0.92)); }
.accent-blue { background: linear-gradient(180deg, rgba(20, 93, 141, 0.12), rgba(255, 255, 255, 0.92)); }
.accent-gold { background: linear-gradient(180deg, rgba(175, 122, 12, 0.14), rgba(255, 255, 255, 0.92)); }
.accent-red { background: linear-gradient(180deg, rgba(196, 79, 79, 0.12), rgba(255, 255, 255, 0.92)); }

.command-center-page {
  display: grid;
  gap: 18px;
}

.command-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 112px;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(13, 125, 67, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 250, 244, 0.88));
}

.command-hero h2 {
  margin: 4px 0 6px;
  font-size: clamp(2rem, 3vw, 3.4rem);
  letter-spacing: -0.06em;
}

.command-hero-status {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 4px 8px;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(13, 125, 67, 0.08);
  color: var(--green-deep);
  font-weight: 900;
}

.command-hero-status small {
  grid-column: 2;
  color: var(--ink-soft);
  font-weight: 700;
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0f9c55;
  box-shadow: 0 0 0 7px rgba(15, 156, 85, 0.14);
}

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

.command-kpi-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value"
    "icon meta";
  align-items: center;
  gap: 4px 12px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(13, 125, 67, 0.09);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 248, 0.86)),
    radial-gradient(circle at 0% 0%, rgba(13, 125, 67, 0.16), transparent 42%);
  box-shadow: 0 16px 34px rgba(19, 38, 28, 0.08);
}

.kpi-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(13, 125, 67, 0.1);
  color: var(--green-deep);
  font-weight: 1000;
}

.kpi-icon.green { background: rgba(13, 125, 67, 0.16); }
.kpi-icon.blue { background: rgba(20, 93, 141, 0.12); color: #145d8d; }
.kpi-icon.navy { background: rgba(17, 109, 98, 0.13); color: #0a5b52; }
.kpi-icon.gold { background: rgba(175, 122, 12, 0.15); color: #8b650b; }
.kpi-icon.amber { background: rgba(245, 179, 64, 0.22); color: #8a5b00; }

.command-kpi-card p {
  grid-area: label;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 800;
  white-space: nowrap;
}

.command-kpi-card strong {
  grid-area: value;
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.command-kpi-card small {
  grid-area: meta;
  color: var(--ink-soft);
  font-weight: 700;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 1.35fr) minmax(260px, 0.85fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.command-progress-list,
.command-status-list,
.command-log-list,
.command-watch-list {
  display: grid;
  gap: 12px;
}

.command-progress-item {
  display: grid;
  gap: 8px;
}

.command-progress-item > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 800;
}

.command-progress-item > div span {
  color: var(--ink);
}

.command-progress-item i {
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(19, 38, 28, 0.08);
}

.command-progress-item b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d7d43, #30bd76);
  transition: width 240ms ease;
}

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

.command-watch-columns h3 {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.command-watch-item,
.command-status-item,
.command-log-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(19, 38, 28, 0.045);
}

.command-watch-item {
  border: 1px solid rgba(245, 179, 64, 0.18);
  background: linear-gradient(135deg, rgba(255, 244, 206, 0.78), rgba(255, 255, 255, 0.86));
}

.command-watch-item strong,
.command-log-item strong {
  color: var(--ink);
}

.command-watch-item span,
.command-log-item span,
.command-log-item time {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.command-watch-item em {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(196, 79, 79, 0.12);
  color: #a11224;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 900;
}

.command-status-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.command-status-item span {
  color: var(--ink-soft);
  font-weight: 800;
}

.command-status-item strong {
  text-align: right;
}

.command-status-item.ok {
  background: rgba(13, 125, 67, 0.08);
}

.command-status-item.warn {
  background: rgba(245, 179, 64, 0.18);
}

.command-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(19, 38, 28, 0.04);
  color: var(--ink-soft);
  font-weight: 700;
}

.command-member-panel {
  padding: 22px;
}

.command-member-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.command-member-table {
  min-width: 1180px;
}

.command-member-table th:nth-child(1) { width: 58px; }
.command-member-table th:nth-child(2) { width: 86px; }
.command-member-table th:nth-child(3) { width: 150px; }
.command-member-table th:nth-child(4) { width: 92px; }
.command-member-table th:nth-child(5) { width: 160px; }
.command-member-table th:nth-child(6) { width: 130px; }
.command-member-table th:nth-child(7) { width: 118px; }
.command-member-table th:nth-child(8) { width: 130px; }
.command-member-table th:nth-child(9) { width: 210px; }

.inline-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-filters input { min-width: min(340px, 100%); }
.table-wrap { overflow: auto; }
.member-table, .summary-table { width: 100%; border-collapse: collapse; }
.member-table {
  table-layout: fixed;
  min-width: 1360px;
}
.member-table th, .member-table td, .summary-table th, .summary-table td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(19, 38, 28, 0.14);
  text-align: left;
  vertical-align: middle;
}
.member-table thead th, .summary-table thead th { color: var(--ink-soft); font-weight: 700; }
.sort-header-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}
.sort-header-button:hover,
.sort-header-button.is-active {
  color: var(--green-deep);
}
.member-table th:nth-child(1) { width: 56px; }
.member-table th:nth-child(2) { width: 82px; }
.member-table th:nth-child(3) { width: 150px; }
.member-table th:nth-child(4) { width: 92px; }
.member-table th:nth-child(5) { width: 160px; }
.member-table th:nth-child(6) { width: 128px; }
.member-table th:nth-child(7) { width: 118px; }
.member-table th:nth-child(8) { width: 270px; }
.member-table th:nth-child(9) { width: 130px; }
.member-table th:nth-child(10) { width: 170px; }
.member-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(249, 252, 248, 0.98);
  box-shadow: inset 0 -1px 0 rgba(19, 38, 28, 0.18);
}
.member-table tbody tr {
  transition: background 120ms ease, box-shadow 120ms ease;
}
.member-table tbody tr:hover {
  background: rgba(13, 125, 67, 0.035);
}
.member-table td:nth-child(1),
.member-table td:nth-child(2) {
  font-weight: 800;
  color: var(--green-deep);
}
.member-table td:nth-child(4),
.member-table td:nth-child(5),
.member-table td:nth-child(6) {
  font-weight: 800;
  color: var(--ink);
}
.member-name-cell {
  display: grid;
  justify-items: center;
  gap: 5px;
}
.designated-proxy-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.22);
  color: #a11224;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
}
.member-table th:nth-child(1),
.member-table th:nth-child(2),
.member-table th:nth-child(4),
.member-table th:nth-child(5),
.member-table th:nth-child(6),
.member-table th:nth-child(7),
.member-table td:nth-child(1),
.member-table td:nth-child(2),
.member-table td:nth-child(4),
.member-table td:nth-child(5),
.member-table td:nth-child(6),
.member-table td:nth-child(7) {
  text-align: center;
}
.member-table th:nth-child(1) .sort-header-button,
.member-table th:nth-child(2) .sort-header-button,
.member-table th:nth-child(4) .sort-header-button,
.member-table th:nth-child(5) .sort-header-button,
.member-table th:nth-child(6) .sort-header-button,
.member-table th:nth-child(7) .sort-header-button {
  justify-content: center;
  text-align: center;
}
.reception-row.needs-action {
  background: linear-gradient(90deg, rgba(13, 125, 67, 0.11), rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0));
  box-shadow: inset 8px 0 0 #0d7d43, inset 14px 0 0 rgba(13, 125, 67, 0.16);
}
.reception-row.is-attended {
  background: rgba(13, 125, 67, 0.025);
}
.reception-actions-cell {
  vertical-align: middle !important;
}

.tag-wrap, .button-cluster, .table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vote-status-list {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
}
.table-actions { flex-direction: column; align-items: flex-start; }
.reception-actions {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.db-main-row td {
  border-bottom: 0;
}

.db-action-summary {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(19, 38, 28, 0.06);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.db-action-row td {
  padding-top: 0;
  padding-bottom: 18px;
}

.db-actions-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(13, 125, 67, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(13, 125, 67, 0.05), rgba(13, 125, 67, 0.02)),
    #fbfdfb;
}

.db-actions-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13, 125, 67, 0.1);
  color: var(--green-deep);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.db-inline-actions {
  flex: 1 1 480px;
}

.db-inline-actions .button-cluster {
  width: 100%;
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
}
.reception-action-button {
  min-height: 46px;
  min-width: 118px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 18px rgba(19, 38, 28, 0.12);
}
.mini-button.reception-action-button.primary {
  background: linear-gradient(135deg, #0d8b4e 0%, #056935 100%);
  color: white;
}
.mini-button.reception-action-button.secondary {
  background: linear-gradient(135deg, #116d62 0%, #084f49 100%);
  color: white;
}
.mini-button.reception-action-button.subtle {
  background: linear-gradient(135deg, rgba(20, 93, 141, 0.16), rgba(20, 93, 141, 0.08));
  color: #0f5c8d;
}
.mini-button.reception-action-button.danger {
  background: linear-gradient(135deg, #d94848 0%, #a81f2f 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(168, 31, 47, 0.18);
}
.mini-button.reception-action-button.done {
  min-width: 104px;
  background: linear-gradient(135deg, rgba(13, 125, 67, 0.16), rgba(13, 125, 67, 0.08));
  color: var(--green-deep);
  box-shadow: none;
}

.mini-button.primary { background: var(--green); color: white; }
.mini-button.secondary { background: #145c52; color: white; }
.mini-button.done { background: #d7f0e1; color: var(--green-deep); cursor: not-allowed; }
.mini-button.ghost { background: rgba(19, 38, 28, 0.08); color: var(--ink); }
.mini-button.subtle { background: rgba(20, 93, 141, 0.12); color: var(--blue); }
.mini-button.danger { background: rgba(196, 79, 79, 0.12); color: var(--red); }
.mini-button:disabled, .action-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 0.86rem; }
.vote-status-list .status-pill {
  width: fit-content;
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
}
.status-pill.success { background: rgba(13, 125, 67, 0.12); color: var(--green-deep); }
.status-pill.info { background: rgba(20, 93, 141, 0.1); color: var(--blue); }
.status-pill.muted { background: rgba(19, 38, 28, 0.08); color: var(--ink-soft); }
.status-pill.vote-required {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(190, 18, 60, 0.58);
  background: linear-gradient(135deg, #fff36b 0%, #ffc400 100%);
  color: #b11226;
  font-weight: 950;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.24), 0 8px 16px rgba(177, 18, 38, 0.12);
}

.vote-withdraw-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 900;
  border: 1px solid rgba(177, 18, 38, 0.2);
}

.remarks-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 260px;
}

.remarks-text {
  display: inline-block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-button.icon-button {
  min-width: 32px;
  width: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.remarks-edit-button {
  background: rgba(13, 125, 67, 0.1);
  color: var(--green-deep);
}

.attendance-confirm-dialog {
  width: min(520px, calc(100% - 32px));
  border: 0;
  border-radius: 30px;
  padding: 0;
  background: transparent;
}

.attendance-confirm-dialog::backdrop {
  background: rgba(12, 27, 20, 0.36);
  backdrop-filter: blur(4px);
}

.attendance-confirm-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.attendance-confirm-form h2 {
  margin: 0;
  color: var(--ink);
}

.attendance-confirm-summary {
  border: 1px solid rgba(13, 125, 67, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(13, 125, 67, 0.06), rgba(255, 255, 255, 0.92));
  overflow: hidden;
}

.attendance-confirm-summary dl {
  margin: 0;
  display: grid;
}

.attendance-confirm-summary div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(13, 125, 67, 0.12);
}

.attendance-confirm-summary div:last-child {
  border-bottom: 0;
}

.attendance-confirm-summary dt,
.attendance-confirm-summary dd {
  margin: 0;
  padding: 14px 16px;
}

.attendance-confirm-summary dt {
  font-weight: 900;
  color: var(--green-deep);
}

.attendance-confirm-summary dd {
  font-size: 1.25rem;
  font-weight: 950;
  color: var(--ink);
}

.attendance-confirm-hint {
  margin: 0;
  color: var(--ink-soft);
}

.attendance-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.empty-state { text-align: center !important; color: var(--ink-soft); padding: 40px 20px !important; }

.member-editor-dialog {
  width: min(760px, calc(100% - 32px));
  border: 0;
  border-radius: 30px;
  padding: 0;
  background: transparent;
}

.member-editor-dialog::backdrop {
  background: rgba(12, 27, 20, 0.34);
  backdrop-filter: blur(4px);
}

.member-editor-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.member-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.member-editor-head h2 {
  margin: 0;
}

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

.member-editor-grid label,
.member-editor-flags label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 800;
}

.member-editor-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(19, 38, 28, 0.045);
  border: 1px solid rgba(19, 38, 28, 0.08);
}

.member-editor-flags label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  cursor: pointer;
}

.member-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-page {
  background:
    radial-gradient(circle at top, rgba(13, 125, 67, 0.18), transparent 28%),
    linear-gradient(180deg, #f6f5ee 0%, #eef5eb 100%);
}

.dashboard-capture-scene {
  min-height: 100vh;
}

.dashboard-shell { max-width: 760px; }
.dashboard-hero { padding: 28px; border-radius: 30px; text-align: center; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, #1b2d24 0%, #344b3e 100%); color: white; font-weight: 700; }
.dashboard-hero h1 { margin: 18px 0 8px; padding: 14px 18px; border-radius: 22px; background: linear-gradient(135deg, var(--green) 0%, #0a6b39 100%); color: white; font-size: clamp(2rem, 4vw, 3rem); }
.dashboard-subtitle { margin: 6px 0; color: var(--green-deep); font-size: clamp(1rem, 2vw, 1.4rem); }
.dashboard-subtitle.strong { font-weight: 800; }

.count-band { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin-top: 16px; padding: 16px 20px; border-radius: 24px; }
.count-band span { color: var(--ink-soft); }
.count-band strong { font-size: 1.9rem; }
.count-band-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.count-band-inline span {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
}
.summary-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.dashboard-card.wide { margin-top: 18px; }
.summary-table.compact th, .summary-table.compact td { padding: 10px 8px; }
.summary-table td:last-child, .summary-table th:last-child { text-align: right; }
.summary-table.compact td:nth-child(2), .summary-table.compact th:nth-child(2) { text-align: center; }
.emphasize-row { background: rgba(13, 125, 67, 0.08); font-weight: 800; }
.dashboard-table-wrap {
  overflow-x: auto;
}

.detailed-table {
  table-layout: fixed;
}

.detailed-table thead th:nth-child(1) {
  width: 136px;
}

.detailed-table thead th:nth-child(2) {
  width: 170px;
}

.detailed-table thead th:nth-child(3),
.detailed-table thead th:nth-child(4) {
  width: 74px;
}

.group-cell {
  position: relative;
  padding: 0 !important;
  vertical-align: middle !important;
  overflow: hidden;
}

.group-cell::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.14), rgba(13, 125, 67, 0.05));
}

.group-cell span {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  padding: 22px 12px;
  color: var(--green-deep);
  font-weight: 800;
  font-size: 1.18rem;
  word-break: keep-all;
  white-space: nowrap;
}

.group-cell-attendance::before {
  background: linear-gradient(180deg, rgba(20, 93, 141, 0.18), rgba(20, 93, 141, 0.06));
}

.group-cell-attendance span {
  color: #0e4e76;
}

.group-cell-quorum span {
  color: #7b5609;
}

.group-cell-quorum::before {
  background: transparent;
}

.detail-label-cell {
  font-weight: 600;
  word-break: keep-all;
  font-size: 0.95rem;
  text-align: right !important;
  padding-right: 6px !important;
}

.detail-value-cell,
.detail-ratio-cell {
  text-align: right !important;
  font-weight: 700;
}

.subtotal-row {
  background: linear-gradient(180deg, rgba(13, 125, 67, 0.08), rgba(13, 125, 67, 0.03));
  font-weight: 800;
}

.subtotal-row td {
  border-bottom: 2px solid rgba(13, 125, 67, 0.22);
}

.section-attendance.subtotal-row {
  background: linear-gradient(180deg, rgba(20, 93, 141, 0.14), rgba(20, 93, 141, 0.05));
}

.section-attendance.subtotal-row td {
  border-bottom: 2px solid rgba(20, 93, 141, 0.24);
}

.section-quorum.subtotal-row {
  background: linear-gradient(180deg, rgba(175, 122, 12, 0.18), rgba(175, 122, 12, 0.07));
}

.section-quorum.subtotal-row td {
  border-bottom: 2px solid rgba(175, 122, 12, 0.32);
}

.section-quorum .detail-label-cell,
.section-quorum .detail-value-cell,
.section-quorum .detail-ratio-cell {
  color: #7b5609;
}

.section-start-row td,
.section-start-row th:not(.group-cell) {
  border-top: 12px solid transparent;
}

.dashboard-floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
}

.copy-dashboard-button,
.refresh-dashboard-button {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
}

.copy-dashboard-button {
  background: linear-gradient(135deg, #144f8d 0%, #0e6a8e 100%);
  box-shadow: 0 16px 36px rgba(20, 79, 141, 0.28);
}

.refresh-dashboard-button {
  background: linear-gradient(135deg, #d27d16 0%, #b65f10 100%);
  box-shadow: 0 16px 36px rgba(182, 95, 16, 0.24);
}

.copy-dashboard-button:disabled,
.refresh-dashboard-button:disabled {
  opacity: 0.75;
  cursor: progress;
}

.dashboard-copy-scene {
  width: fit-content;
}

@media (max-width: 1100px) {
  .console-shell,
  .console-shell.drawer-collapsed { grid-template-columns: 1fr; }
  .console-drawer {
    position: relative;
    top: 0;
    min-height: 0;
  }
  .console-shell.drawer-collapsed .console-drawer {
    height: 0;
    min-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
  }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .console-topbar .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reception-toolbar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .reception-focus-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .command-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .command-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .command-grid {
    grid-template-columns: 1fr;
  }
  .command-member-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body { padding: 14px; }
  .hero-card, .panel, .dashboard-card, .dashboard-hero, .count-band, .stat-card { border-radius: 22px; }
  .topbar, .count-band, .brand-row, .topbar-group { flex-direction: column; align-items: stretch; }
  .stats-grid, .summary-columns { grid-template-columns: 1fr; }
  .console-topbar .stats-grid { grid-template-columns: 1fr; }
  .command-kpi-grid,
  .command-watch-columns {
    grid-template-columns: 1fr;
  }
  .command-kpi-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 104px;
  }
  .command-hero {
    padding: 20px;
  }
  .command-hero-status {
    width: 100%;
  }
  .template-layout { grid-template-columns: 1fr; }
  .canvas-designer-grid { grid-template-columns: 1fr; }
  .canvas-preset-line,
  .template-top-controls,
  .canvas-button-grid,
  .canvas-property-grid { grid-template-columns: 1fr; }
  .canvas-ribbon-card { position: relative; top: 0; }
  .canvas-ribbon-style label,
  .canvas-ribbon-metrics label { width: calc(50% - 6px); }
  .canvas-designer-stage { min-height: 360px; padding: 12px; }
  .canvas-designer-paper { width: min(80mm, 100%); height: auto; aspect-ratio: 1 / 1; }
  .template-preset-bar,
  .template-section-header { align-items: flex-start; flex-direction: column; }
  .template-style-bar,
  .preview-title-row { align-items: flex-start; flex-direction: column; }
  .template-config-grid,
  .alignment-grid { grid-template-columns: 1fr; }
  .template-row-editor,
  .template-body-row-cells { grid-template-columns: 1fr; }
  .template-preview-pane {
    justify-self: stretch;
    position: relative;
    top: 0;
    max-width: none;
  }
  .label-variable-palette { grid-template-columns: 1fr; }
  .inline-filters { width: 100%; }
  .inline-filters input { min-width: 100%; }
  .two-column-form { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .landing-hero-card {
    padding: 44px 24px;
  }
  .landing-hero-card .action-button {
    width: 100%;
    min-width: 0;
  }
  .landing-hero-card .landing-actions {
    width: 100%;
  }
  .meeting-launch-header,
  .meeting-card {
    grid-template-columns: 1fr;
  }
  .meeting-launch-header,
  .meeting-card-actions {
    justify-content: stretch;
  }
  .meeting-card-actions .action-button,
  .meeting-launch-header .action-button {
    width: 100%;
    min-width: 0;
  }
  .login-field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .search-inline-row {
    flex-wrap: wrap;
  }
  .search-inline-row select:first-child,
  .search-inline-row select:last-child {
    width: 100%;
    flex-basis: 100%;
  }
  .reception-filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .reception-filter-toolbar .action-button {
    width: 100%;
  }
  .reception-focus-main {
    grid-template-columns: 1fr;
  }
  .reception-focus-actions .reception-actions,
  .reception-focus-actions .reception-action-button {
    width: 100%;
  }
  .member-search-box {
    align-items: stretch;
    width: 100%;
  }
  .member-search-label {
    width: 100%;
    min-width: 0;
  }
  .member-search-box input[type="search"] {
    width: 100%;
    flex-basis: 100%;
  }
  .member-search-box.search-inline-tight select,
  .member-search-box.search-inline-row select:first-child {
    width: 100%;
    flex-basis: 100%;
  }
  .db-actions-box {
    align-items: flex-start;
  }
  .db-inline-actions {
    flex-basis: 100%;
  }
  .compact-printer-form {
    width: 100%;
    justify-content: stretch;
  }
  .reception-header-tools {
    width: 100%;
    justify-content: stretch;
  }
  .compact-printer-title {
    width: 100%;
  }
  .compact-printer-label,
  .custom-printer-inline {
    min-width: 100%;
  }
  .dashboard-shell {
    max-width: 100%;
  }
  .dashboard-hero,
  .count-band,
  .dashboard-card {
    padding: 18px;
  }
  .brand-chip {
    align-self: flex-start;
  }
  .summary-table th,
  .summary-table td {
    padding: 8px 6px;
    font-size: 0.86rem;
  }
  .detailed-table {
    min-width: 520px;
  }
  .dashboard-floating-actions {
    right: 14px;
    bottom: 14px;
    gap: 8px;
  }
  .copy-dashboard-button,
  .refresh-dashboard-button {
    min-height: 48px;
    padding: 0 14px;
  }
}
