/* Boje i osnovne postavke svijetlog nacina. */
:root {
  --bg: #f7f3ec;
  --surface: #fffdfa;
  --surface-strong: #fff7eb;
  --ink: #25211c;
  --muted: #71685d;
  --line: #e7ded1;
  --accent: #9b5146;
  --accent-strong: #78372f;
  --accent-soft: #f0d7cf;
  --ok: #57745a;
  --warning: #b7742c;
  --shadow: 0 18px 45px rgba(65, 45, 24, 0.11);
}

/* Boje za tamni nacin. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0b1220;
  --surface-strong: #111d33;
  --ink: #f8fbff;
  --muted: #a9b8d0;
  --line: #263955;
  --accent: #2563eb;
  --accent-strong: #60a5fa;
  --accent-soft: #172b52;
  --ok: #38bdf8;
  --warning: #93c5fd;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* Osnovni reset i zajednicki stilovi za stranicu, gumbe i forme. */
* {
  box-sizing: border-box;
}

body {
  -webkit-text-size-adjust: 100%;
  margin: 0;
  min-height: 100vh;
  touch-action: manipulation;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
  touch-action: manipulation;
}

button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

button:hover {
  background: var(--accent-strong);
}

.secondary-button,
.import-button,
.danger-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
}

.secondary-button:hover,
.import-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.secondary-button.active {
  background: var(--accent);
  color: white;
}

.danger-button {
  color: #9a2f25;
}

.danger-button:hover {
  background: #f7ded9;
  color: #742017;
}

.import-button input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

input,
select {
  font-size: 16px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
}

[hidden],
.is-hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Glavni okvir aplikacije. */
.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.app-shell[hidden],
.start-screen[hidden] {
  display: none !important;
}

/* Start ekran za prijavu prije ulaska u planer. */
.start-screen {
  align-items: center;
  display: grid;
  min-height: 100svh;
  padding: 24px;
}

.start-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 380px;
  padding: clamp(26px, 5vw, 44px);
  width: min(100%, 380px);
}

.start-card-controls {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-self: end;
}

.start-brand {
  gap: 12px;
  justify-self: center;
}

.start-brand img {
  height: clamp(66px, 9vw, 82px);
  width: clamp(66px, 9vw, 82px);
}

.start-brand .brand-copy {
  align-items: start;
  gap: 5px;
  justify-items: start;
  text-align: left;
}

.start-brand-name {
  display: block;
  color: var(--accent);
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  white-space: nowrap;
}

.start-brand .brand-copy small {
  color: var(--ink);
  display: block;
  font-size: clamp(0.58rem, 1.1vw, 0.72rem);
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.start-online-panel {
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface));
  display: grid;
  gap: 12px;
  margin: 0;
}

.start-online-panel .online-auth-form,
.start-online-panel .project-tools {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.start-online-panel .project-tools {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.start-online-panel .project-tools button {
  min-height: 3.1rem;
  padding-inline: 0.45rem;
}

.start-project-menu-wrap {
  position: relative;
}

.start-project-menu-wrap > #projectMenuButton {
  justify-content: space-between;
}

.start-project-menu-wrap > #projectMenuButton::after {
  border-bottom: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  content: "";
  margin-left: 0.5rem;
}

.start-project-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  left: 0;
  min-width: min(300px, calc(100vw - 80px));
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  z-index: 40;
}

.start-project-menu[hidden] {
  display: none;
}

.start-project-menu .secondary-button {
  min-height: 2.65rem;
  width: 100%;
}

.project-select-list {
  display: grid;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 16px;
}

.project-select-option {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  justify-content: flex-start;
  min-height: 2.65rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.project-select-option:hover,
.project-select-option.active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--accent-strong);
}

.project-select-empty {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  margin: 0;
  padding: 0.45rem 0.2rem;
}

.open-project-actions {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 0;
  padding: 12px 16px 16px;
}

.open-project-actions:has(#openProjectClientsButton[hidden]) {
  grid-template-columns: 1fr;
}

.open-project-actions button {
  min-width: 0;
  width: 100%;
}

#projectClientsModal {
  z-index: 25;
}

@media (max-width: 430px) {
  .open-project-actions {
    grid-template-columns: 1fr;
  }
}

.start-online-panel .project-tools .start-logout-button {
  font-size: 0.78rem;
  min-height: 2.65rem;
  padding-inline: 0.75rem;
  width: auto;
}

.modal-panel.new-project-panel {
  max-width: 440px;
  width: min(100%, 440px);
}

.new-project-panel .modal-header p {
  line-height: 1.35;
  overflow: visible;
  padding-bottom: 1px;
  text-overflow: clip;
}

.new-project-form {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.new-project-form label {
  color: var(--ink);
}

.new-project-form .confirm-actions {
  padding: 0;
}

@media (min-width: 761px) {
  .start-project-menu-wrap > #projectMenuButton,
  .start-online-panel .project-tools .start-logout-button {
    height: 2.65rem;
    min-height: 2.65rem;
  }
}

.start-online-panel .online-auth-form[hidden],
.start-online-panel .project-tools[hidden] {
  display: none;
}

.start-online-panel input,
.start-online-panel select,
.start-online-panel button,
.start-local-button {
  max-width: none;
  min-width: 0;
  width: 100%;
}

.start-online-panel input,
.start-online-panel select {
  max-width: none;
}

.start-online-panel .online-auth-form input {
  max-width: none;
}

.start-online-panel .online-auth-form #loginButton,
.start-online-panel .online-auth-form #requestAccessButton {
  font-size: 0.9rem;
  min-height: 2.7rem;
  padding-inline: 0.55rem;
  white-space: nowrap;
}

.start-online-panel #authEmail,
.start-online-panel #authPassword {
  grid-column: 1 / -1;
}

.start-online-panel .request-access-button {
  min-height: 2.5rem;
}

.modal-panel.registration-requests-panel {
  max-width: 620px;
}
.modal-panel.project-clients-panel {
  max-width: 720px;
}

.modal-panel.open-project-panel {
  max-width: 520px;
}

.no-project-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 9px;
  padding: 14px;
}

.no-project-panel strong {
  color: var(--ink);
  font-size: 1rem;
}

.no-project-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

.no-project-panel button {
  justify-self: start;
  min-height: 2.45rem;
  width: auto;
}


.registration-requests-list,
.project-clients-list {
  display: grid;
  gap: 10px;
  max-height: min(56vh, 460px);
  overflow-y: auto;
  padding: 16px;
}

.registration-request-card,
.project-client-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.project-client-add-card {
  align-items: end;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) auto;
  padding: 12px;
}

.project-client-add-card label {
  color: var(--ink);
}

.project-client-add-card select,
.project-client-add-card button {
  min-height: 2.45rem;
}

.project-client-add-actions {
  display: flex;
  gap: 6px;
}

.project-client-add-actions button {
  font-size: 0.82rem;
  padding-inline: 0.58rem;
  white-space: nowrap;
}

.registration-request-card > div:first-child,
.project-client-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.registration-request-card strong,
.project-client-card strong {
  overflow-wrap: anywhere;
}

.registration-request-card span,
.registration-request-empty,
.project-client-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.registration-request-empty,
.project-client-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
}

.registration-request-empty.error {
  color: var(--warning);
}

.registration-request-actions,
.project-client-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.registration-request-actions button {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
}

.project-client-actions label {
  align-items: center;
  display: flex;
  gap: 6px;
}

.project-client-actions label span {
  font-weight: 850;
}

.project-client-actions select {
  min-height: 2.35rem;
}

.project-client-role {
  background: color-mix(in srgb, var(--accent-soft) 65%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 850;
  padding: 0.45rem 0.65rem;
}

.project-client-actions button {
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
}

.start-online-panel .online-panel-main {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.start-online-panel .online-panel-main span {
  font-size: 0.84rem;
}

.start-online-panel .online-panel-main span::before {
  content: "(";
}

.start-online-panel .online-panel-main span::after {
  content: ")";
}

.start-local-button {
  justify-self: stretch;
  min-height: 2.75rem;
}

/* Header: naslov, brzi gumbi i statistika. */
.topbar {
  align-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface) 78%, transparent));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px 18px;
  grid-template-areas:
    "brand quick"
    "brand summary";
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
  padding: 12px 18px;
}

.title-block {
  display: contents;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-mark img {
  border-radius: 9px;
  height: 58px;
  width: 58px;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-name {
  color: var(--accent);
  font-size: clamp(2.25rem, 3vw, 3.3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
}

.brand-copy small {
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.start-card .start-brand {
  gap: 12px;
  justify-self: center;
}

.start-card .start-brand img {
  height: clamp(66px, 9vw, 82px);
  width: clamp(66px, 9vw, 82px);
}

/* Gumbi u naslovu: tamni nacin, jezik i brisanje svega. */
.title-row {
  align-items: center;
  display: flex;
  gap: 10px;
  grid-area: brand;
  justify-content: flex-start;
  width: 100%;
}

.quick-actions {
  align-items: center;
  align-self: center;
  display: flex;
  gap: 6px;
  grid-area: quick;
  justify-content: flex-end;
  justify-self: end;
}

.language-wrap {
  position: relative;
}

.language-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  left: 0;
  min-width: 84px;
  padding: 5px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 35;
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  background: transparent;
  color: var(--ink);
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
}

.language-menu button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.quick-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  min-height: 1.65rem;
  padding: 0.18rem 0.58rem;
}

.theme-quick {
  background: #111;
  color: transparent;
  font-size: 0;
  min-height: 1.65rem;
  padding: 0;
  width: 2.55rem;
}

.theme-quick.active {
  background: #fff;
  border-color: var(--line);
}

:root[data-theme="dark"] .theme-quick {
  background: #fff;
}

:root[data-theme="dark"] .theme-quick.active {
  background: #fff;
  border-color: var(--line);
}

.language-quick {
  background: #b3261e;
  color: white;
}

.undo-quick {
  background: var(--surface);
  color: var(--accent);
}

.undo-quick[hidden] {
  display: none;
}

.undo-quick:disabled {
  opacity: 0.48;
}

.reset-quick {
  background: #191919;
  color: white;
}

.reset-menu-wrap {
  position: relative;
}

.reset-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
  gap: 8px;
  min-width: 290px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 35;
}

.reset-menu[hidden] {
  display: none;
}

.reset-menu button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  display: grid;
  gap: 3px;
  justify-content: flex-start;
  min-height: 3.4rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.reset-menu button:hover {
  background: var(--accent-soft);
}

.reset-menu button strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.reset-menu button small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.35;
}

.reset-menu #resetProjectButton {
  border-color: color-mix(in srgb, var(--warning) 32%, var(--line));
}

.delete-confirm-panel .confirm-content {
  gap: 18px;
}

.delete-confirm-panel #deleteConfirmText {
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warning) 24%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.5;
  margin: 0;
  padding: 14px;
}

.delete-confirm-panel #confirmDeleteButton {
  background: #9a2f25;
  color: #fff;
}

:root[data-theme="dark"] .reset-quick {
  background: #f8fbff;
  color: #05070d;
}

/* Online racun i projekti. */
.online-panel {
  align-items: center;
  background: rgba(255, 253, 250, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px;
}

.online-panel-main {
  align-items: baseline;
  display: flex;
  flex: 1 1 240px;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.online-panel-main strong {
  color: var(--ink);
}

.online-panel-main span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.online-panel-main span.error {
  color: var(--warning);
}

.online-auth-form,
.project-tools {
  align-items: center;
  display: flex;
  flex: 999 1 auto;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.online-auth-form[hidden],
.project-tools[hidden] {
  display: none;
}

.online-auth-form input,
.project-tools select {
  min-height: 2.25rem;
}

.online-auth-form input {
  max-width: 180px;
}

.project-tools select {
  min-width: 190px;
}

:root[data-theme="dark"] .online-panel {
  background: rgba(11, 18, 32, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  display: none;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

/* Statistika gore desno: gosti, odrasli, djeca, stolovi. */
.summary-grid {
  display: grid;
  gap: 8px;
  grid-area: summary;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  justify-self: end;
}

.summary-grid div,
.mobile-summary,
.mobile-summary-grid div,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-grid div {
  padding: 0.58rem 0.68rem;
}

.summary-grid span {
  display: block;
  font-size: 1.22rem;
  font-weight: 850;
}

.summary-grid small,
.mobile-summary small,
.panel-heading p,
.guest-item p,
.table-card p {
  color: var(--muted);
}

/* Gornji alatni red: izvoz, uvoz, automatski raspored i ISPIS meni. */
.backup-actions {
  align-items: stretch;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.9fr) minmax(180px, 0.55fr);
  margin: 0 0 16px;
  padding: 16px 18px;
}

.action-group {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-right: 18px;
}

.action-group:last-of-type {
  border-right: 0;
  padding-right: 0;
}

.action-group > strong {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.action-group-buttons {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.action-group-project .action-group-buttons {
  gap: 12px;
}

.data-menu-wrap {
  order: 1;
}

#shareProjectButton {
  order: 2;
}

#autoArrangeButton {
  order: 3;
}

#checkPlanButton {
  order: 4;
}

#projectLockButton {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
  order: 5;
}

#projectLockButton::before {
  background: currentColor;
  content: "";
  flex: 0 0 auto;
  height: 1rem;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.6-1.8'/%3E%3C/svg%3E");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.6-1.8'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 1rem;
}

#projectLockButton.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#projectLockButton.active::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

#backupStatus {
  grid-column: 1 / -1;
  justify-self: start;
}

.print-menu-wrap {
  order: 6;
}

.backup-actions .secondary-button,
.backup-actions .import-button,
.backup-actions .danger-button {
  flex: 1 1 150px;
  min-height: 2.55rem;
  padding: 0.52rem 0.86rem;
}

.action-group-print .secondary-button {
  background: var(--accent);
  color: #fff;
  min-width: 180px;
}

.start-guide {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 16px 20px;
}

.start-guide > strong {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.start-guide ol {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.start-guide li {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  position: relative;
  z-index: 1;
}

.start-guide li:not(:last-child)::after {
  content: none;
}

.start-guide li > span {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.start-guide small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-top: 2px;
}

.backup-actions .danger-button {
  margin-left: auto;
}
.guest-actions .ghost-button {
  font-size: 0.82rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.65rem;
}
.backup-actions span {
  background: color-mix(in srgb, var(--ok) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line));
  border-radius: 999px;
  color: var(--ok);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.42rem 0.72rem;
}

.backup-actions span.dirty {
  background: color-mix(in srgb, #b7742c 12%, var(--surface));
  border-color: color-mix(in srgb, #b7742c 34%, var(--line));
  color: #8a4a12;
}

.backup-actions span.error {
  background: color-mix(in srgb, var(--warning) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--warning) 36%, var(--line));
  color: var(--warning);
}

:root[data-theme="dark"] .backup-actions {
  background: rgba(11, 18, 32, 0.82);
}

.data-menu-wrap,
.print-menu-wrap {
  position: relative;
}

.print-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(37, 33, 28, 0.18);
  left: 0;
  min-width: 240px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 25;
}

.print-menu[hidden] {
  display: none;
}

.print-menu button,
.print-menu .import-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: flex-start;
  min-height: auto;
  padding: 0.7rem 0.8rem;
  text-align: left;
  width: 100%;
}

.print-menu .import-button {
  align-items: center;
  box-shadow: none;
  cursor: pointer;
  margin: 0;
}

.print-menu button:hover,
.print-menu .import-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.print-submenu {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding: 4px 0 0 10px;
}

.print-submenu[hidden] {
  display: none;
}

.print-submenu button {
  color: var(--muted);
  font-size: 0.92rem;
}

.compact-heading {
  margin: 10px 0 8px;
}

/* Glavni raspored panela: gosti lijevo, stolovi i tlocrt desno. */
.workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
}

.right-workspace-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

/* Zajednicki stil panela i naslova unutar panela. */
.panel {
  padding: 18px;
}

.guest-panel {
  position: sticky;
  top: 18px;
}

.panel-heading {
  margin-bottom: 16px;
}

.panel-heading p,
.guest-item p,
.table-card p {
  margin-bottom: 0;
}

/* Forma gosta, tabovi mladozenja/mlada i filteri. */
.side-tabs {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 6px;
}

.side-tab {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem;
  text-align: center;
}

.side-tab:hover,
.side-tab.active {
  background: var(--accent);
  color: white;
}

.side-tab span {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  min-width: 1.7rem;
  padding: 0.12rem 0.45rem;
}

.spread {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.spread > div {
  flex: 1 1 180px;
  min-width: 0;
}

.stacked-form,
.inline-form {
  display: grid;
  gap: 12px;
}

.form-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
}

.inline-form {
  align-items: end;
  flex: 1 1 560px;
  grid-template-columns: minmax(120px, 1fr) 82px minmax(130px, 1fr) auto;
  min-width: 0;
}

.inline-form > * {
  min-width: 0;
  width: 100%;
}

.form-row,
.tools-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.checkbox-line {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
}

.checkbox-line input {
  min-height: auto;
  width: auto;
}

.tools-row {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.82fr) minmax(120px, 0.82fr);
  margin: 18px 0 12px;
}


.bulk-add {
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  margin-top: 12px;
  padding: 10px;
}

.bulk-add summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 850;
  grid-column: 1 / -1;
  list-style-position: inside;
}

.bulk-add p {
  color: var(--muted);
  font-size: 0.85rem;
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.bulk-add textarea {
  min-height: 112px;
  resize: vertical;
}

.bulk-add #bulkAddButton {
  font-size: 0.86rem;
  justify-self: start;
  min-height: 2.45rem;
  padding: 0.48rem 0.82rem;
  width: min(170px, 100%);
}
.bulk-add-footer {
  display: grid;
  gap: 8px;
}

.bulk-entry-column,
.bulk-review-column {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.bulk-columns {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.bulk-add-footer small {
  color: var(--muted);
  font-weight: 750;
}

.bulk-warning {
  color: #9c2f26 !important;
}
.bulk-preview {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
}

.bulk-preview strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.bulk-preview ul {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bulk-preview li {
  align-items: baseline;
  background: color-mix(in srgb, var(--accent-soft) 18%, var(--surface));
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 6px 7px;
}

.bulk-preview li.duplicate {
  outline: 1px solid #b94a3f;
}

.bulk-preview li span {
  font-weight: 800;
}

.bulk-preview li small {
  color: var(--muted);
  font-weight: 650;
}

.bulk-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-add-actions button {
  font-size: 0.84rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.72rem;
}

.bulk-add-actions button,
.bulk-add-actions #bulkAddButton {
  flex: 1 1 125px;
  width: auto;
}

.bulk-add:not([open]) {
  display: block;
}

.bulk-add:not([open]) > :not(summary) {
  display: none;
}

.bulk-excel-icon-button {
  display: none;
}

.bulk-excel-help-panel {
  max-width: 560px;
  width: min(100%, 560px);
}

.bulk-excel-help-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.bulk-excel-example {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.bulk-excel-example-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.bulk-excel-example-row > * {
  border-right: 1px solid var(--line);
  min-height: 2.5rem;
  padding: 0.62rem 0.75rem;
}

.bulk-excel-example-row > :last-child {
  border-right: 0;
}

.bulk-excel-example-row + .bulk-excel-example-row {
  border-top: 1px solid var(--line);
}

.bulk-excel-example-head {
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface));
  color: var(--accent-strong);
}

.bulk-excel-help-content > small {
  color: var(--muted);
}

.bulk-excel-help-actions {
  display: flex;
  justify-content: flex-end;
}

.bulk-excel-help-actions button {
  min-width: 120px;
}

.single-field {
  grid-template-columns: 1fr;
}

/* Popis gostiju i akcije na jednom gostu. */
.guest-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 455px);
  min-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.guest-item,
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guest-item {
  align-items: center;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.guest-item.editing {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.guest-item strong {
  display: block;
  margin-bottom: 2px;
}

.quick-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.quick-status-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  min-height: 1.42rem;
  padding: 0.12rem 0.42rem;
}

.quick-status-button:hover,
.quick-status-button.active,
.ghost-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.guest-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 1fr) auto auto auto;
}

.guest-table-menu-button,
.guest-table-menu {
  display: none;
}

.quick-table-button {
  white-space: nowrap;
}

.ghost-button,
.icon-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--accent);
}

.ghost-button:hover,
.icon-button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Grid i kartice stolova. */
.table-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

@media (min-width: 1180px) {
  .table-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 1180px) {
  .table-panel > .panel-heading > div,
  .table-panel > .panel-heading .inline-form {
    flex-basis: 100%;
    width: 100%;
  }

  .inline-form {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .inline-form #tableNote,
  .inline-form button {
    grid-column: 1 / -1;
  }

  .inline-form button {
    justify-self: end;
    width: auto;
  }
}

.table-card {
  display: grid;
  gap: 7px;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 210px;
  min-height: 0;
  padding: 10px;
  position: relative;
}

.table-card.drop-target {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent-soft);
}

.table-card.table-full {
  border-color: color-mix(in srgb, var(--warning) 46%, var(--line));
}

.table-card-header {
  align-items: start;
  cursor: default;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
  padding-right: 2.45rem;
}

.table-card-header > div {
  min-width: 0;
}

.table-card-header h3,
.table-card-header p {
  overflow-wrap: anywhere;
}

.table-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  position: absolute;
  right: 10px;
  top: 10px;
}

.table-full-badge {
  background: color-mix(in srgb, var(--warning) 18%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warning) 46%, var(--line));
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.36rem 0.52rem;
  white-space: nowrap;
}

.compact-button {
  border-radius: 999px;
  font-size: 0.72rem;
  min-height: 1.7rem;
  padding: 0.18rem 0.52rem;
}

.icon-button {
  align-items: center;
  display: inline-flex;
  font-size: 1.1rem;
  height: 2.05rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  text-align: center;
  width: 2.05rem;
}

.capacity-bar {
  background: var(--surface-strong);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.capacity-bar span {
  background: var(--ok);
  display: block;
  height: 100%;
  width: 0;
}

.capacity-bar .full {
  background: var(--warning);
}

.table-card-occupancy {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.table-menu-button {
  font-size: 1.15rem;
  bottom: 10px;
  position: absolute;
  right: 10px;
}

.table-status-summary {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -2px;
  padding-right: 2.45rem;
}

.table-status-count {
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  padding: 0.22rem 0.38rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-status-count strong {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  height: 1.45rem;
  justify-content: center;
  min-width: 1.45rem;
  padding: 0 0.35rem;
}

.table-status-count span {
  color: var(--ink);
}

.table-status-count.coming {
  color: #2f7d50;
}

.table-status-count.coming strong {
  background: color-mix(in srgb, #2f7d50 14%, var(--surface));
}

.table-status-count.pending {
  color: #2555b8;
}

.table-status-count.pending strong {
  background: color-mix(in srgb, #2563eb 13%, var(--surface));
}

.table-status-count.not-coming {
  color: #9c3f35;
}

.table-status-count.not-coming strong {
  background: color-mix(in srgb, #a34f43 14%, var(--surface));
}

/* Lista gostiju unutar kartice stola. */
.assigned-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.assigned-pill,
.empty-state {
  border-radius: 8px;
  padding: 0.48rem 0.6rem;
}

.assigned-pill {
  background: var(--surface-strong);
  cursor: grab;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.assigned-pill:active,
.guest-item:active {
  cursor: grabbing;
}

.assigned-pill span,
.assigned-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assigned-pill small {
  color: var(--muted);
  flex: 0 0 auto;
  max-width: 48%;
}

.empty-state {
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

/* Tlocrt sale i alati za dodavanje posebnih elemenata. */
.floor-plan-section {
  margin-top: 10px;
}

.floor-plan-wrap {
  position: relative;
}

.mobile-floor-lock-button {
  display: none;
}

.floor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.floor-element-wrap {
  width: max-content;
  position: relative;
}

.floor-element-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  box-sizing: border-box;
  left: 0;
  min-width: 100%;
  padding: 4px;
  position: absolute;
  right: auto;
  top: calc(100% + 6px);
  width: 100%;
  z-index: 35;
}

.floor-element-menu[hidden] {
  display: none;
}

.floor-element-menu button {
  background: transparent;
  color: var(--ink);
  justify-content: flex-start;
  font-size: 0.78rem;
  min-height: 1.8rem;
  padding: 0.3rem 0.5rem;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floor-element-menu button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.floor-tools .secondary-button {
  min-height: 2.45rem;
  padding: 0.5rem 0.8rem;
}

.floor-plan {
  background:
    linear-gradient(90deg, rgba(155, 81, 70, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(155, 81, 70, 0.08) 1px, transparent 1px),
    var(--surface);
  background-size: 48px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 516px;
  overflow: hidden;
  position: relative;
}

:root[data-theme="dark"] .floor-plan {
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.14) 1px, transparent 1px),
    var(--surface);
}

/* Stolovi i elementi koji se pomicu po tlocrtu. */
.floor-table {
  align-items: center;
  background: var(--surface);
  border: 1.6px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(65, 45, 24, 0.14);
  color: var(--ink);
  cursor: grab;
  display: grid;
  font-size: 0.78rem;
  height: 46px;
  justify-items: center;
  line-height: 1.1;
  padding: 0.26rem;
  position: absolute;
  transform: translate(-50%, -50%);
  touch-action: none;
  width: 78px;
}

.floor-table.locked {
  background: var(--surface-strong);
  border-color: var(--muted);
  cursor: pointer;
}

.floor-table.locked::after {
  content: "zaključano";
  bottom: -18px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  position: absolute;
}

.floor-special {
  border-style: solid;
  height: 46px;
  width: 78px;
}

.floor-table.locked::after {
  content: none;
}

.floor-lock-label {
  display: none;
}

.floor-special.stage {
  border-radius: 8px;
  width: 118px;
}

.floor-special.dessert {
  border-color: var(--warning);
}

.floor-special span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  height: 22px;
  justify-content: center;
  position: absolute;
  right: -7px;
  top: -7px;
  width: 22px;
}

.floor-special:hover span,
.floor-special.dragging span {
  color: var(--accent);
}

.floor-table:hover,
.floor-table.dragging {
  background: var(--accent);
  color: white;
}

.floor-table small {
  color: inherit;
  font-size: 0.68rem;
  opacity: 0.8;
}

/* Popup i kontekstni meni za zakljucavanje stola/elementa. */
.modal-backdrop {
  align-items: center;
  background: rgba(37, 33, 28, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.context-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: calc(100vw - 16px);
  box-shadow: 0 18px 45px rgba(37, 33, 28, 0.18);
  min-width: 180px;
  padding: 6px;
  position: fixed;
  z-index: 30;
}

.context-menu[hidden] {
  display: none;
}

.context-menu button {
  background: transparent;
  white-space: nowrap;
  color: var(--ink);
  display: block;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.context-menu button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(37, 33, 28, 0.25);
  max-height: min(760px, calc(100vh - 48px));
  max-width: 760px;
  overflow: hidden;
  width: min(100%, 760px);
}

.modal-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.modal-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
}

.modal-header h2 {
  font-size: 1.18rem;
  line-height: 1.08;
  margin-bottom: 0.2rem;
}

.modal-actions .secondary-button {
  font-size: 0.7rem;
  min-height: 1.62rem;
  padding: 0.22rem 0.36rem;
  white-space: nowrap;
}

.modal-actions .icon-button {
  font-size: 0.86rem;
  height: 1.62rem;
  min-height: 1.62rem;
  min-width: 1.62rem;
  width: 1.62rem;
}

.modal-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.modal-search-wrap {
  border-top: 1px solid var(--line);
  padding: 12px 18px 0;
}

.modal-search-wrap[hidden] {
  display: none;
}

.modal-search-wrap input {
  min-height: 2.35rem;
  width: 100%;
}

.modal-guest-list {
  display: grid;
  gap: 10px;
  max-height: min(430px, calc(100vh - 250px));
  overflow: auto;
  padding: 18px;
}

.check-plan-panel {
  max-width: 820px;
  width: min(100%, 820px);
}

.status-print-panel {
  max-width: 440px;
  width: min(100%, 440px);
}

.status-print-choices {
  display: grid;
  gap: 8px;
}

.status-print-choice {
  align-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  min-height: 2.5rem;
  padding: 0.55rem 0.7rem;
}

.status-print-choice input {
  accent-color: var(--accent);
  height: 1rem;
  width: 1rem;
}

.check-plan-list {
  display: grid;
  gap: 10px;
  max-height: min(560px, calc(100vh - 190px));
  overflow: auto;
  padding: 18px;
}

.check-plan-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, minmax(70px, 1fr));
  padding: 14px 18px 0;
}

.check-plan-summary div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.58rem 0.68rem;
}

.check-plan-summary span {
  display: block;
  font-size: 1.22rem;
  font-weight: 850;
}

.check-plan-summary small {
  color: var(--muted);
  display: block;
}

.check-plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.check-plan-card.has-issues {
  border-color: color-mix(in srgb, var(--warning) 44%, var(--line));
}

.check-plan-card.is-clear {
  background: color-mix(in srgb, var(--ok) 8%, var(--surface));
}

.check-plan-card header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.check-plan-card header span {
  align-items: center;
  background: var(--surface-strong);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  min-width: 1.8rem;
  padding: 0.18rem 0.48rem;
}

.check-plan-card.has-issues header span {
  background: color-mix(in srgb, var(--warning) 18%, var(--surface));
  color: var(--accent-strong);
}

.check-plan-card ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  max-height: 150px;
  overflow: auto;
  padding: 0;
}

.check-plan-card li,
.check-plan-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.share-panel {
  max-width: 620px;
  overflow: auto;
}

.share-form,
.share-result,
.share-members-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.share-role-grid {
  border: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.share-role-grid legend,
.share-email-field span,
.share-result span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  grid-column: 1 / -1;
}

.share-role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.share-role-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.share-role-card input {
  accent-color: var(--accent);
}

.share-role-card span,
.share-email-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.share-email-field,
.share-result label {
  display: grid;
  gap: 6px;
}

.share-actions {
  display: flex;
  justify-content: flex-end;
}

.share-result {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.share-result[hidden] {
  display: none;
}

.share-members-panel {
  border-top: 1px solid var(--line);
}

.share-members-panel h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.share-members-panel p,
.share-member-card span,
.share-member-empty {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.share-members-list {
  display: grid;
  gap: 10px;
}

.share-member-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.share-member-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-member-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.share-member-role {
  min-height: 38px;
}

.share-member-owner {
  background: rgba(155, 81, 70, 0.1);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 850;
  padding: 8px 10px;
}

.confirm-panel {
  max-width: 560px;
}

.confirm-content {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.confirm-content p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.project-lock-panel .confirm-content {
  gap: 16px;
}

.project-lock-panel #projectLockConfirmText {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 8px;
  color: var(--text);
  font-weight: 780;
  padding: 12px;
}

.modal-guest-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  padding: 12px;
}

.modal-guest-controls {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto auto auto minmax(0, 1fr);
}

.modal-guest-controls .secondary-button {
  font-size: 0.78rem;
  min-height: 2.35rem;
  padding: 0.36rem 0.58rem;
  white-space: nowrap;
}

.modal-remove-guest-button {
  font-size: 1rem;
  height: 2.35rem;
  line-height: 1;
  width: 2.35rem;
}

.modal-guest-controls select {
  min-height: 2.35rem;
  padding-block: 0.42rem;
}

.modal-status-button.coming {
  background: color-mix(in srgb, #2f7d50 14%, var(--surface));
  color: #2f7d50;
}

.modal-status-button.pending {
  background: color-mix(in srgb, #2563eb 13%, var(--surface));
  color: #2555b8;
}

.modal-status-button.not-coming {
  background: color-mix(in srgb, #a34f43 14%, var(--surface));
  color: #9c3f35;
}

.modal-guest-row p {
  color: var(--muted);
  margin-bottom: 0;
}
.modal-guest-row.no-table-select {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 260px);
}

.modal-guest-row.no-table-select .modal-guest-controls {
  display: flex;
  justify-content: center;
}

.table-editor {
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.table-editor-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mobile-controls,
.mobile-nav,
.mobile-summary-toggle,
.mobile-summary {
  display: none;
}

/* Prilagodba za tablet i uzi ekran. */
@media (max-width: 760px) {
  body[data-mobile-view="floor"] .floor-plan-section {
    position: relative;
  }

  body[data-mobile-view="floor"] .floor-plan-wrap {
    position: static;
  }

  .topbar,
  .spread {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-actions {
    grid-template-columns: 1fr;
  }

  .action-group {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }

  .action-group:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .start-guide ol {
    grid-template-columns: 1fr;
  }

  .start-guide li:not(:last-child)::after {
    display: none;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(86px, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .guest-panel {
    position: static;
  }

  .guest-list {
    max-height: none;
  }

  .floor-plan {
    height: 416px;
  }
}

/* Prilagodba za mobitel i uski tablet. */
@media (max-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .start-screen {
    align-items: start;
    padding: 84px 18px 24px;
  }

  .start-card {
    border-radius: 16px;
    gap: 20px;
    max-width: 100%;
    padding: 28px 20px;
    width: 100%;
  }

  .start-card .start-brand {
    gap: 9px;
    justify-self: center;
  }

  .start-card .start-brand img {
    height: 58px;
    width: 58px;
  }

  .start-brand-name {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .start-brand .brand-copy small {
    font-size: 0.56rem;
    letter-spacing: 0.13em;
  }

  .start-online-panel .online-auth-form,
  .start-online-panel .project-tools {
    grid-template-columns: 1fr;
  }

  .start-online-panel .project-tools {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .start-online-panel .project-tools button {
    font-size: 0.78rem;
    min-height: 2.65rem;
    padding-inline: 0.32rem;
  }

  .start-project-menu {
    min-width: 100%;
  }

  .project-client-add-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .new-project-form {
    gap: 14px;
    padding: 14px;
  }

  .registration-request-card {
    align-items: stretch;
    display: grid;
  }

  .registration-request-actions button {
    flex: 1 1 0;
  }

  .project-client-card {
    align-items: stretch;
    display: grid;
  }

  .project-client-actions {
    align-items: stretch;
    display: grid;
  }

  .project-client-actions label {
    align-items: stretch;
    display: grid;
  }

  .project-client-actions button {
    width: 100%;
  }

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

  .app-shell {
    width: min(100% - 20px, 1440px);
    padding: 16px 0;
  }

  .topbar {
    align-items: center;
    gap: 8px;
    grid-template-areas: "brand quick";
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .title-row {
    gap: 6px;
  }

  .quick-actions {
    gap: 3px;
    justify-content: flex-end;
    justify-self: stretch;
    min-width: 0;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .online-panel {
    align-items: stretch;
    border-radius: 14px;
    gap: 9px;
    margin-bottom: 10px;
  }

  .online-panel-main {
    flex-basis: 100%;
  }

  .online-auth-form,
  .project-tools {
    display: grid;
    flex-basis: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .online-auth-form input,
  .project-tools select,
  .online-auth-form button,
  .project-tools button {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .project-tools select {
    grid-column: 1 / -1;
  }

  .quick-button {
    font-size: 0.58rem;
    min-height: 1.45rem;
    padding: 0.12rem 0.34rem;
    white-space: nowrap;
  }

  .theme-quick,
  .language-quick {
    min-height: 1.45rem;
    width: 1.95rem;
  }

  .undo-quick,
  .reset-quick {
    min-height: 1.45rem;
    padding-inline: 0.36rem;
  }

  .brand-mark img {
    height: 40px;
    width: 40px;
  }

  .eyebrow {
    font-size: 1.18rem;
    white-space: nowrap;
  }

  .brand-mark span {
    white-space: nowrap;
  }

  .brand-mark {
    gap: 8px;
    min-width: 0;
  }

  .brand-copy {
    gap: 2px;
    min-width: 0;
  }

  .brand-name {
    font-size: 1.3rem;
    line-height: 0.95;
  }

  .brand-copy small {
    display: block;
    font-size: 0.49rem;
    letter-spacing: 0.11em;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar > .summary-grid {
    display: none;
  }

  .start-guide {
    display: none;
  }

  body[data-mobile-view="start"] .start-guide {
    display: grid;
    flex: 1 1 auto;
    gap: 12px;
    grid-template-rows: auto minmax(0, 1fr);
    margin-bottom: 0;
    min-height: 0;
    padding: 15px 14px 18px;
  }

  body[data-mobile-view="start"] .app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 8px;
    width: 100%;
  }

  body[data-mobile-view="start"] .mobile-controls {
    margin-bottom: 8px;
  }

  body[data-mobile-view="start"] .start-guide > strong {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  body[data-mobile-view="start"] .start-guide ol {
    align-items: start;
    display: grid;
    flex: 1 1 auto;
    gap: 0;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, minmax(62px, 1fr));
    margin: 0 auto;
    max-width: 300px;
    overflow: visible;
    padding: 0;
    width: 100%;
  }

  body[data-mobile-view="start"] .start-guide ol::before {
    background: repeating-linear-gradient(
      to bottom,
      color-mix(in srgb, var(--accent) 52%, var(--line)) 0 5px,
      transparent 5px 11px
    );
    content: "";
    display: block;
    left: 1rem;
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    z-index: 0;
  }

  body[data-mobile-view="start"] .start-guide li {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 5px 0;
    position: relative;
  }

  body[data-mobile-view="start"] .start-guide li > span {
    background: linear-gradient(180deg, var(--surface), var(--surface-strong));
    box-shadow: 0 5px 12px rgba(72, 48, 31, 0.08);
    height: 2rem;
    position: relative;
    z-index: 1;
    width: 2rem;
  }

  body[data-mobile-view="start"] .start-guide li > div {
    min-width: 0;
    width: auto;
  }

  body[data-mobile-view="start"] .start-guide li strong,
  body[data-mobile-view="start"] .start-guide small {
    white-space: normal;
  }

  body[data-mobile-view="start"] .start-guide li strong {
    font-size: 0.82rem;
    line-height: 1.1;
  }

  body[data-mobile-view="start"] .start-guide small {
    font-size: 0.66rem;
    line-height: 1.2;
  }

  h1 {
    display: none;
  }

  .mobile-controls {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
  }

  .summary-grid,
  .form-row,
  .form-buttons,
  .tools-row,
  .inline-form,
  .bulk-add {
    grid-template-columns: 1fr;
  }

  .bulk-add-actions {
    gap: 6px;
  }

  .bulk-add-actions button,
  .bulk-add-actions #bulkAddButton {
    min-height: 2.25rem;
    padding: 0.38rem 0.62rem;
    width: auto;
  }

  .guest-actions {
    gap: 4px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) auto auto auto;
  }

  .guest-actions .ghost-button {
    font-size: 0.66rem;
    min-height: 2rem;
    padding: 0.28rem 0.38rem;
  }

  .guest-actions select {
    grid-column: 1;
    font-size: 0.72rem;
    min-height: 2rem;
    min-width: 0;
    padding-inline: 0.34rem;
  }

  .guest-actions .quick-table-button {
    grid-column: 2;
    padding-inline: 0.34rem;
  }

  .guest-actions .edit-button {
    grid-column: 3;
  }

  .guest-actions button:last-child {
    grid-column: 4;
  }

  .guest-list {
    max-height: 520px;
    min-height: 0;
    overflow: auto;
  }

  .backup-actions,
  .workspace,
  .guest-panel,
  .table-panel,
  .table-panel > .panel-heading,
  .table-grid,
  .floor-plan-section {
    display: none;
  }

  body[data-mobile-view="guests"] .workspace,
  body[data-mobile-view="guests"] .guest-panel,
  body[data-mobile-view="tables"] .workspace,
  body[data-mobile-view="tables"] .table-panel,
  body[data-mobile-view="tables"] .table-grid,
  body[data-mobile-view="floor"] .workspace {
    display: grid;
  }

  body[data-mobile-view="guests"] .guest-panel,
  body[data-mobile-view="tables"] .table-panel,
  body[data-mobile-view="floor"] .floor-plan-section {
    display: block;
  }

  body[data-mobile-view="tables"] .table-panel > .panel-heading {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body[data-mobile-view="tables"] .table-panel > .panel-heading > div {
    width: 100%;
  }

  body[data-mobile-view="tables"] .table-panel > .panel-heading h2 {
    align-items: center;
    display: flex;
    font-size: 1.3rem;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
  }

  body[data-mobile-view="tables"] .table-panel > .panel-heading h2::before {
    background: currentColor;
    color: var(--accent);
    content: "";
    flex: 0 0 1.2rem;
    height: 1.2rem;
    order: -2;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v13H4z'/%3E%3Cpath d='M4 10h16M8 14h8'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v13H4z'/%3E%3Cpath d='M4 10h16M8 14h8'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1.2rem;
  }

  body[data-mobile-view="tables"] .table-panel > .panel-heading h2::after {
    content: "2.";
    order: -1;
  }

  body[data-mobile-view="tables"] #tableForm {
    display: grid;
    flex: 0 0 auto;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  body[data-mobile-view="tables"] #tableName,
  body[data-mobile-view="tables"] #tableCapacity,
  body[data-mobile-view="tables"] #tableNote {
    display: none;
  }

  body[data-mobile-view="tables"] #tableForm > select,
  body[data-mobile-view="tables"] #tableForm > button[type="submit"] {
    min-height: 2.65rem;
    width: 100%;
  }

  body[data-mobile-view="tables"] #tableForm > button[type="submit"] {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: center;
  }

  body[data-mobile-view="tables"] #tableForm > button[type="submit"]::before {
    align-items: center;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: "+";
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 900;
    height: 1.15rem;
    justify-content: center;
    line-height: 1;
    width: 1.15rem;
  }

  body[data-mobile-view="finish"] .backup-actions {
    align-items: stretch;
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }

  body[data-mobile-view="finish"] .action-group {
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
  }

  body[data-mobile-view="finish"] .action-group:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
  }

  body[data-mobile-view="finish"] .action-group-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  body[data-mobile-view="finish"] .data-menu-wrap {
    order: 1;
  }

  body[data-mobile-view="finish"] #shareProjectButton {
    order: 2;
  }

  body[data-mobile-view="finish"] #autoArrangeButton {
    order: 3;
  }

  body[data-mobile-view="finish"] #checkPlanButton {
    order: 4;
  }

  body[data-mobile-view="finish"] #projectLockButton {
    order: 5;
  }

  body[data-mobile-view="finish"] .print-menu-wrap {
    order: 6;
  }

  body[data-mobile-view="finish"] .action-group-print .print-menu-wrap {
    order: 1;
  }

  body[data-mobile-view="finish"] .action-group-print .reset-menu-wrap {
    order: 2;
  }

  body[data-mobile-view="finish"] #backupStatus {
    order: 7;
  }

  body[data-mobile-view="finish"] .backup-actions .secondary-button,
  body[data-mobile-view="finish"] .backup-actions .import-button {
    justify-content: center;
    width: 100%;
  }

  body[data-mobile-view="finish"] .data-menu-wrap,
  body[data-mobile-view="finish"] .print-menu-wrap {
    width: 100%;
  }

  body[data-mobile-view="finish"] .data-menu-wrap .print-menu button,
  body[data-mobile-view="finish"] .data-menu-wrap .print-menu .import-button {
    align-items: center;
    box-sizing: border-box;
    justify-content: flex-start;
    line-height: 1.2;
    min-height: 2.6rem;
    padding: 0.7rem 0.8rem;
    text-align: left;
  }

  body[data-mobile-view="floor"] .floor-plan-section {
    margin-top: 0;
  }

  body[data-mobile-view="tables"] .table-grid {
    max-height: calc(100vh - 210px);
  }

  body[data-mobile-view="tables"] .table-card {
    gap: 7px;
    grid-template-rows: auto 7px 12px auto;
    height: 142px;
    padding: 14px;
  }

  body[data-mobile-view="tables"] .table-card-header {
    align-items: center;
  }

  body[data-mobile-view="tables"] .table-card-header h3 {
    align-items: center;
    display: flex;
    font-size: 0.98rem;
    gap: 0.42rem;
    margin-bottom: 0.05rem;
  }

  body[data-mobile-view="tables"] .table-card-header h3::before {
    background: var(--accent);
    content: "";
    flex: 0 0 1rem;
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Ccircle cx='17' cy='8' r='2.3'/%3E%3Cpath d='M3 19v-1.5A4.5 4.5 0 0 1 7.5 13h3A4.5 4.5 0 0 1 15 17.5V19M15 14.5a3.8 3.8 0 0 1 6 3V19'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Ccircle cx='17' cy='8' r='2.3'/%3E%3Cpath d='M3 19v-1.5A4.5 4.5 0 0 1 7.5 13h3A4.5 4.5 0 0 1 15 17.5V19M15 14.5a3.8 3.8 0 0 1 6 3V19'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1rem;
  }

  body[data-mobile-view="tables"] .table-card-header p {
    font-size: 0.8rem;
  }

  body[data-mobile-view="tables"] .assigned-list {
    display: none;
  }

  body[data-mobile-view="tables"] .table-status-summary {
    align-items: center;
    display: flex;
    gap: 12px;
    grid-template-columns: repeat(3, max-content);
    margin-top: 0;
    padding-right: 2.45rem;
  }

  body[data-mobile-view="tables"] .table-menu-button {
    bottom: 10px;
    right: 10px;
  }

  body[data-mobile-view="tables"] .table-card .icon-button {
    height: 1.8rem;
    min-height: 1.8rem;
    min-width: 1.8rem;
    width: 1.8rem;
  }


  body[data-mobile-view="floor"] .compact-heading {
    display: block;
    margin: 0 0 6px;
  }

  body[data-mobile-view="floor"] .compact-heading > div {
    flex: 0 0 auto;
  }

  body[data-mobile-view="floor"] .compact-heading h2 {
    margin-bottom: 4px;
  }

  body[data-mobile-view="floor"] .compact-heading p {
    margin-top: 0;
  }

  body[data-mobile-view="floor"] .floor-tools {
    flex-wrap: wrap;
    margin-top: 6px;
  }

  body[data-mobile-view="floor"] .floor-plan {
    height: 370px;
  }

  body[data-mobile-view="floor"] .floor-table {
    border-width: 1.35px;
    font-size: 0.66rem;
    height: 36px;
    padding: 0.16rem;
    width: 58px;
  }

  body[data-mobile-view="floor"] .floor-table small {
    font-size: 0.58rem;
  }

  body[data-mobile-view="floor"] .floor-special {
    height: 36px;
    width: 58px;
  }

  .mobile-nav {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px;
  }
  

  .mobile-summary {
    display: none;
    gap: 8px;
    margin-top: 0;
    padding: 10px;
  }

  body.summary-open .mobile-summary {
    display: grid;
    margin-top: 8px;
  }

  .mobile-summary strong {
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .mobile-summary-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-summary-grid div {
    box-shadow: none;
    padding: 0.35rem 0.45rem;
  }

  .mobile-summary-grid span {
    display: block;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1;
  }

  .mobile-summary-grid small {
    display: block;
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .mobile-nav-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    color: var(--muted);
    display: flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    min-height: 38px;
    padding: 0.35rem 0.08rem;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-nav-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
  }

  .mobile-nav-button[data-mobile-view="start"] {
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .modal-guest-row {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 8px 10px;
  }

  .modal-panel {
    max-height: calc(100dvh - 16px);
  }

  .share-panel {
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .modal-header {
    align-items: start;
    display: grid;
    gap: 3px;
    grid-template-columns: 1fr;
    padding: 7px 38px 7px 8px;
    position: relative;
  }

  .modal-header > div:first-child {
    min-width: 0;
  }

  .modal-header h2 {
    font-size: 0.78rem;
    line-height: 1;
    margin-bottom: 0.1rem;
  }

  .modal-header p {
    font-size: 0.62rem;
    line-height: 1;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
    justify-content: end;
    position: absolute;
    right: 8px;
    top: 7px;
    width: auto;
  }

  .modal-actions .secondary-button {
    font-size: 0.54rem;
    min-height: 1.44rem;
    padding: 0.16rem 0.18rem;
  }

  .modal-actions .icon-button {
    font-size: 0.9rem;
    height: 1.44rem;
    min-height: 1.44rem;
    min-width: 1.44rem;
    width: 1.44rem;
  }

  .modal-guest-row {
    align-items: center;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .modal-guest-list {
    gap: 8px;
    max-height: min(370px, calc(100dvh - 210px));
    padding: 10px 14px 14px;
  }

  .check-plan-summary {
    gap: 3px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 8px 8px 0;
  }

  .check-plan-summary div {
    border-radius: 6px;
    min-width: 0;
    padding: 0.3rem 0.16rem;
    text-align: center;
  }

  .check-plan-summary span {
    font-size: 0.88rem;
    line-height: 1;
  }

  .check-plan-summary small {
    font-size: 0.48rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .check-plan-panel .modal-header {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .check-plan-panel .modal-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  .share-role-grid {
    grid-template-columns: 1fr;
  }

  .share-form,
  .share-result,
  .share-members-panel {
    padding: 12px;
  }

  .share-member-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .share-member-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .modal-guest-row p {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-guest-controls {
    display: flex;
    gap: 3px;
    justify-content: end;
  }

  .modal-guest-controls .secondary-button {
    font-size: 0.58rem;
    min-height: 1.78rem;
    padding-inline: 0.32rem;
  }

  .modal-remove-guest-button {
    font-size: 0.92rem;
    height: 1.78rem;
    min-height: 1.78rem;
    width: 1.78rem;
  }

  .modal-status-button {
    max-width: 74px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .modal-guest-controls select {
    font-size: 0.66rem;
    min-height: 1.78rem;
    min-width: 0;
    padding: 0.25rem 1.25rem 0.25rem 0.46rem;
    width: 72px;
  }
  .modal-guest-row.no-table-select {
    align-items: center;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .modal-guest-row.no-table-select .modal-guest-controls {
    justify-content: end;
  }

  .modal-guest-row.no-table-select p {
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-guest-row.no-table-select .secondary-button {
    min-height: 2rem;
    padding-inline: 0.58rem;
  }

  .table-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
.mobile-stat-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}

.mobile-stat-button:hover {
  background: transparent;
}

.mobile-stat-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.floor-item-editor {
  display: grid;
  gap: 12px;
}

@media (max-width: 760px) {
  body[data-mobile-view="floor"] .floor-special {
    height: 36px;
    width: 58px;
  }
}

.danger-inline {
  color: #9a2f25;
}

.danger-inline:hover {
  background: #f7ded9;
  color: #742017;
}

.floor-size-controls {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  min-height: 2.45rem;
  padding: 0.22rem 0.36rem 0.22rem 0.7rem;
}

.floor-size-controls span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.floor-size-controls .icon-button {
  height: 1.8rem;
  min-height: 1.8rem;
  min-width: 1.8rem;
  width: 1.8rem;
}

.floor-plan {
  --floor-table-scale: 1;
}

.table-card-status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.3rem 0.48rem;
  white-space: nowrap;
}

.table-card-status-pill.coming {
  background: color-mix(in srgb, #2f7d50 15%, var(--surface));
  color: #2f7d50;
}

.table-card-status-pill.pending {
  background: color-mix(in srgb, #2563eb 12%, var(--surface));
  color: #2555b8;
}

.table-card-status-pill.not-coming {
  background: color-mix(in srgb, #d9352a 11%, var(--surface));
  color: #a92d25;
}

@media (min-width: 901px) {
  .bulk-add[open] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    position: relative;
  }

  .bulk-add[open] > summary {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
    padding-right: 2.5rem;
    text-align: left;
  }

  .bulk-add summary::after {
    display: none;
  }

  .bulk-add[open] > .bulk-entry-column {
    grid-column: 1;
    grid-row: 2;
  }

  .bulk-add[open] > .bulk-review-column {
    align-content: start;
    grid-column: 2;
    grid-row: 2;
  }

  .bulk-add[open] .bulk-entry-column > p {
    margin: 0;
  }

  .bulk-add[open] .bulk-entry-column > textarea,
  .bulk-add[open] .bulk-preview {
    box-sizing: border-box;
    height: 154px;
    max-height: 154px;
    min-height: 154px;
    width: 100%;
  }

  .bulk-add[open] #bulkGuestSummary {
    min-height: 1rem;
  }

  .bulk-add[open] .bulk-preview {
    position: static;
  }

  .bulk-add[open] .bulk-add-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 0;
  }

  .bulk-add[open] .bulk-add-actions #bulkExcelButton {
    display: none;
  }

  .bulk-add[open] .bulk-add-actions button,
  .bulk-add[open] .bulk-add-actions #bulkAddButton {
    flex: 0 1 auto;
    font-size: 0.78rem;
    min-height: 2rem;
    padding: 0.3rem 0.58rem;
    width: auto;
  }

  .bulk-add[open] .bulk-add-actions #bulkClearButton {
    min-width: 96px;
  }

  .bulk-add[open] .bulk-add-actions #bulkAddButton {
    min-width: 72px;
  }

  .bulk-add[open] .bulk-warning {
    display: block;
    margin-top: 0;
  }

  .bulk-excel-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--accent);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    min-height: 2rem;
    padding: 0;
    position: absolute;
    right: 0.42rem;
    top: 0.32rem;
    width: 2rem;
    z-index: 2;
  }

  .bulk-excel-icon-button::before {
    background: currentColor;
    content: "";
    height: 1.05rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5-5 5 5'/%3E%3Cpath d='M12 5v12'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5-5 5 5'/%3E%3Cpath d='M12 5v12'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1.05rem;
  }

  .bulk-excel-icon-button:hover {
    background: var(--accent-soft);
  }

  .topbar .quick-actions {
    gap: 7px;
  }

  .topbar .quick-actions .quick-button {
    font-size: 0.72rem;
    min-height: 2rem;
    min-width: 2.8rem;
    padding: 0.28rem 0.68rem;
  }

  .topbar .quick-actions .theme-quick {
    min-width: 2.8rem;
    width: 2.8rem;
  }

  .action-group-print .reset-quick {
    font-size: 0.72rem;
    min-height: 2rem;
    padding: 0.28rem 0.68rem;
  }

  .modal-guest-row.no-table-select {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .modal-guest-row.no-table-select .modal-guest-controls {
    justify-content: flex-end;
    min-width: max-content;
  }

  body {
    background:
      radial-gradient(circle at 10% 0%, rgba(163, 79, 67, 0.08), transparent 28%),
      linear-gradient(180deg, #fbf7ef 0%, var(--bg) 48%, var(--bg) 100%);
  }

  .app-shell {
    max-width: 1680px;
  }

  .topbar {
    background: rgba(255, 253, 250, 0.92);
    border-radius: 10px;
    grid-template-areas: "brand quick";
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 14px;
    padding: 14px 20px;
  }

  .topbar > .summary-grid {
    display: none;
  }

  .topbar,
  .backup-actions,
  .start-guide,
  .panel {
    border-color: color-mix(in srgb, var(--line) 80%, #fff);
    box-shadow: 0 18px 44px rgba(72, 48, 31, 0.08);
  }

  .brand-mark img {
    box-shadow: 0 10px 22px rgba(37, 33, 28, 0.14);
    height: 62px;
    width: 62px;
  }

  .brand-name {
    font-size: clamp(2.7rem, 3.2vw, 3.55rem);
    line-height: 0.82;
  }

  .brand-copy small {
    letter-spacing: 0.2em;
  }

  .quick-actions {
    gap: 10px;
  }

  .quick-button {
    min-height: 2.35rem;
    padding-inline: 1rem;
  }

  .theme-quick {
    min-height: 2.35rem;
    width: 3.2rem;
  }

  .backup-actions {
    background: rgba(255, 253, 250, 0.88);
    grid-template-columns: minmax(430px, 1fr) minmax(360px, 0.85fr) minmax(300px, 0.6fr);
    margin: 0 0 14px;
    padding: 18px 24px;
    position: relative;
  }

  .action-group {
    gap: 12px;
    padding-right: 28px;
  }

  .action-group > strong,
  .start-guide > strong {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .action-group-buttons {
    gap: 12px;
  }

  .action-group-print .action-group-buttons {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(112px, auto);
  }

  .action-group-print .print-menu-wrap {
    order: 1;
  }

  .action-group-print .reset-menu-wrap {
    order: 2;
    position: relative;
  }

  .action-group-print .reset-quick {
    align-items: center;
    background: linear-gradient(180deg, #fff, #fffaf3);
    color: var(--accent);
    display: inline-flex;
    justify-content: center;
    min-width: 112px;
    text-align: center;
    width: 100%;
  }

  .backup-actions .secondary-button,
  .backup-actions .import-button {
    background: linear-gradient(180deg, #fff, #fffaf3);
    border-color: color-mix(in srgb, var(--line) 88%, var(--accent));
    box-shadow: inset 0 -1px 0 rgba(155, 81, 70, 0.08);
    min-height: 2.65rem;
  }

  .backup-actions .secondary-button::before,
  .backup-actions .import-button::before {
    align-items: center;
    background: currentColor;
    content: "";
    display: inline-flex;
    flex: 0 0 auto;
    height: 1.08rem;
    justify-content: center;
    margin-right: 0.55rem;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    opacity: 0.85;
    width: 1rem;
  }

  .action-group-print .reset-quick::before,
  .data-menu-wrap .print-menu .import-button::before {
    content: none;
    margin-right: 0;
    width: 0;
  }

  .data-menu-wrap .print-menu .import-button {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--ink);
    display: flex;
    justify-content: flex-start;
    min-height: auto;
    padding: 0.7rem 0.8rem;
    text-align: left;
    width: 100%;
  }

  #dataButton::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
  }

  #shareProjectButton::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.6 15.4 6.4'/%3E%3Cpath d='M8.6 13.4 15.4 17.6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='M8.6 10.6 15.4 6.4'/%3E%3Cpath d='M8.6 13.4 15.4 17.6'/%3E%3C/svg%3E");
  }

  #projectLockButton::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.6-1.8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.6-1.8'/%3E%3C/svg%3E");
  }

  #projectLockButton.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }

  #projectLockButton.active::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  }

  #autoArrangeButton::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.4 4.2L17.5 9l-4.1 1.8L12 15l-1.4-4.2L6.5 9l4.1-1.8L12 3Z'/%3E%3Cpath d='M19 14l.8 2.2L22 17l-2.2.8L19 20l-.8-2.2L16 17l2.2-.8L19 14Z'/%3E%3Cpath d='M5 14l.7 1.8L7.5 16.5l-1.8.7L5 19l-.7-1.8-1.8-.7 1.8-.7L5 14Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.4 4.2L17.5 9l-4.1 1.8L12 15l-1.4-4.2L6.5 9l4.1-1.8L12 3Z'/%3E%3Cpath d='M19 14l.8 2.2L22 17l-2.2.8L19 20l-.8-2.2L16 17l2.2-.8L19 14Z'/%3E%3Cpath d='M5 14l.7 1.8L7.5 16.5l-1.8.7L5 19l-.7-1.8-1.8-.7 1.8-.7L5 14Z'/%3E%3C/svg%3E");
  }

  #checkPlanButton::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.2 2.2 2.2 4.8-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.5 12.2 2.2 2.2 4.8-5'/%3E%3C/svg%3E");
  }

  #printButton {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(163, 79, 67, 0.18);
    min-width: 190px;
  }

  #printButton::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3Cpath d='M18 12h.01'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v7H6z'/%3E%3Cpath d='M18 12h.01'/%3E%3C/svg%3E");
  }

  #backupStatus {
    bottom: 22px;
    box-shadow: 0 8px 18px rgba(72, 48, 31, 0.08);
    font-size: 0.78rem;
    max-width: 360px;
    overflow: hidden;
    position: fixed;
    right: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 60;
  }

  .start-guide {
    background: rgba(255, 253, 250, 0.9);
    margin-bottom: 16px;
    padding: 18px 28px 20px;
  }

  .start-guide ol {
    align-items: center;
    gap: 22px;
  }

  .start-guide ol::before {
    background:
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 18.2% 1.28rem / 56px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 38.4% 1.28rem / 56px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 58.7% 1.28rem / 56px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 79% 1.28rem / 56px 1px repeat-x;
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
  }

  .start-guide li {
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
  }

  .start-guide li > div {
    min-width: 0;
    width: max-content;
  }

  .start-guide li:not(:last-child)::after {
    content: none;
  }

  .start-guide li > span {
    background: linear-gradient(180deg, #fffaf3, #f4ece0);
    box-shadow: 0 8px 18px rgba(72, 48, 31, 0.08);
    height: 2.6rem;
    width: 2.6rem;
  }

  .start-guide li strong {
    font-size: 0.94rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .start-guide small {
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .workspace {
    gap: 16px;
    grid-template-columns: minmax(380px, 520px) minmax(0, 1fr);
  }

  .panel {
    background: rgba(255, 253, 250, 0.92);
    padding: 20px;
  }

  .guest-panel {
    top: 14px;
  }

  .guest-panel .panel-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .guest-panel .panel-heading > div:first-child {
    min-width: 0;
  }

  .guest-panel .panel-heading p {
    display: none;
  }

  .panel-heading h2 {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    font-size: 1.32rem;
    margin-bottom: 0.25rem;
  }

  .guest-panel .panel-heading h2::before,
  .table-panel > .panel-heading h2::before,
  .floor-plan-section .panel-heading h2::before {
    align-items: center;
    color: var(--accent);
    display: inline-flex;
    font-size: 1.05rem;
    font-weight: 900;
    justify-content: center;
    width: 1.25rem;
  }

  .guest-panel .panel-heading h2::before {
    background: currentColor;
    content: "";
    height: 1.25rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1.25rem;
  }

  .guest-panel .panel-heading h2::after {
    content: "1.";
    order: -1;
  }

  .guest-panel .panel-heading h2::before {
    order: -2;
  }

  .table-panel > .panel-heading h2::before {
    background: currentColor;
    content: "";
    height: 1.25rem;
    order: -2;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v13H4z'/%3E%3Cpath d='M4 10h16M8 14h8'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v13H4z'/%3E%3Cpath d='M4 10h16M8 14h8'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }

  .table-panel > .panel-heading h2::after {
    content: "2.";
    order: -1;
  }

  .floor-plan-section .panel-heading h2::before {
    background: currentColor;
    content: "";
    height: 1.25rem;
    order: -2;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
  }

  .floor-plan-section .panel-heading h2::after {
    content: "3.";
    order: -1;
  }

  .side-tabs {
    background: #fff7ea;
    flex: 0 0 270px;
    gap: 5px;
    margin: 0;
    padding: 5px;
  }

  .side-tab {
    align-items: center;
    border-radius: 6px;
    flex-direction: column;
    font-size: 0.62rem;
    gap: 2px;
    line-height: 1.1;
    min-height: 2.35rem;
    padding: 0.32rem 0.22rem;
  }

  .side-tab span {
    font-size: 0.66rem;
    line-height: 1;
    min-width: 1.22rem;
    padding: 0.08rem 0.28rem;
  }

  .stacked-form {
    gap: 7px;
  }

  .guest-panel .stacked-form {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) 104px 142px;
  }

  .guest-panel .stacked-form input,
  .guest-panel .stacked-form select {
    font-size: 0.82rem;
    min-height: 2.18rem;
    padding: 0.38rem 0.5rem;
  }

  .guest-panel .stacked-form > label:first-child {
    grid-column: 1;
  }

  .guest-panel .stacked-form > .form-row:first-of-type {
    display: contents;
  }

  .guest-panel .checkbox-line {
    grid-column: 1 / -1;
    margin-top: -2px;
  }

  .guest-panel .single-field {
    grid-column: 1 / -1;
    margin-top: -4px;
  }

  .guest-panel .form-buttons {
    grid-column: 1 / -1;
  }

  .guest-panel .form-buttons button {
    min-height: 2.45rem;
    padding-block: 0.46rem;
  }

  .bulk-add {
    background: color-mix(in srgb, var(--accent-soft) 18%, var(--surface));
    margin-top: 8px;
    padding: 0;
  }

  .bulk-add summary {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    list-style: none;
    min-height: 2.4rem;
    padding: 0.56rem 0.72rem;
  }

  .bulk-add summary::-webkit-details-marker {
    display: none;
  }

  .bulk-add summary::before {
    color: var(--accent);
    content: "\203A";
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.18s ease;
  }

  .bulk-add summary::after {
    background: currentColor;
    color: var(--accent);
    content: "";
    height: 1rem;
    margin-left: auto;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5-5 5 5'/%3E%3Cpath d='M12 5v12'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5-5 5 5'/%3E%3Cpath d='M12 5v12'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1rem;
  }

  .bulk-add[open] summary::before {
    transform: rotate(90deg);
  }

  .bulk-add > :not(summary) {
    margin-inline: 10px;
  }

  .bulk-add > :last-child {
    margin-bottom: 10px;
  }

  .tools-row {
    gap: 8px;
    grid-template-columns: minmax(0, 1.05fr) minmax(100px, 0.62fr) minmax(116px, 0.72fr);
    margin: 12px 0 10px;
  }

  .tools-row input,
  .tools-row select {
    font-size: 0.82rem;
    min-height: 2.18rem;
    padding: 0.38rem 0.58rem;
  }

  .guest-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    counter-reset: guest-row;
    gap: 0;
    max-height: calc(100vh - 470px);
    min-height: 88px;
    padding: 0;
  }

  .guest-list > .empty-state {
    align-items: center;
    border: 0;
    border-radius: 0;
    display: flex;
    justify-content: center;
    min-height: 84px;
  }

  .guest-item {
    align-items: center;
    border-radius: 0;
    border-width: 0 0 1px;
    box-shadow: none;
    counter-increment: guest-row;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1.25fr) minmax(78px, 0.65fr) minmax(54px, auto) 1.8rem;
    padding: 8px 10px;
    position: relative;
  }

  .guest-item:last-child {
    border-bottom: 0;
  }

  .guest-item::before {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    content: counter(guest-row);
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 850;
    height: 1.55rem;
    justify-content: center;
    width: 1.55rem;
  }

  .guest-item > div:first-child {
    align-items: center;
    display: contents;
    min-width: 0;
  }

  .guest-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guest-item p {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .guest-status-pill {
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 850;
    justify-self: end;
    min-width: 2.3rem;
    padding: 0.28rem 0.5rem;
    text-align: center;
    white-space: nowrap;
  }

  .guest-table-menu-button {
    align-items: center;
    align-self: center;
    background: transparent;
    border: 0;
    color: var(--accent);
    display: inline-flex;
    font-size: 1.15rem;
    height: 1.8rem;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0;
    width: 1.8rem;
  }

  .guest-table-menu-button:hover {
    background: var(--accent-soft);
  }

  .guest-table-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(72, 48, 31, 0.18);
    display: grid;
    max-height: 230px;
    min-width: 180px;
    overflow-y: auto;
    padding: 5px;
    position: fixed;
    z-index: 30;
  }

  .guest-table-menu[hidden] {
    display: none;
  }

  .guest-table-menu button {
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--ink);
    font-size: 0.78rem;
    justify-content: flex-start;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    text-align: left;
  }

  .guest-table-menu button:hover,
  .guest-table-menu button.active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  .guest-table-menu .danger-menu-button {
    color: var(--danger);
  }

  .guest-table-menu .danger-menu-button:hover {
    background: color-mix(in srgb, var(--danger) 14%, var(--surface));
    color: var(--danger);
  }

  .guest-status-pill:hover {
    filter: saturate(1.12) brightness(0.98);
    outline: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  }

  .guest-status-pill.coming {
    background: color-mix(in srgb, #2f7d50 14%, var(--surface));
    color: #2f7d50;
  }

  .guest-status-pill.pending {
    background: color-mix(in srgb, #2563eb 13%, var(--surface));
    color: #2555b8;
  }

  .guest-status-pill.not-coming {
    background: color-mix(in srgb, #d9352a 12%, var(--surface));
    color: #a92d25;
  }

  .guest-item .quick-status {
    display: none;
  }

  .guest-actions {
    display: none;
  }

  .guest-actions select {
    min-height: 2rem;
    min-width: 0;
  }

  .guest-actions .ghost-button {
    font-size: 0.72rem;
    min-height: 2rem;
    padding: 0.3rem 0.5rem;
  }

  .table-panel {
    display: grid;
    gap: 16px;
  }

  .table-panel > .panel-heading {
    align-items: start;
    margin-bottom: 0;
  }

  .table-panel > .panel-heading > div:first-child {
    flex: 1 1 360px;
  }

  .table-panel > .panel-heading p {
    max-width: none;
    white-space: nowrap;
  }

  .inline-form {
    flex: 0 0 auto;
    gap: 8px;
    grid-template-columns: auto auto;
  }

  .inline-form #tableName,
  .inline-form #tableCapacity,
  .inline-form #tableNote {
    display: none;
  }

  .inline-form #tableViewFilter {
    height: 2.15rem;
    min-height: 2.15rem;
    padding-block: 0.2rem;
    transition: width 160ms ease;
    width: 190px;
  }

  .inline-form #tableViewFilter.showing-available {
    width: 215px;
  }

  .inline-form button {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    height: 2.15rem;
    justify-content: center;
    min-height: 2.15rem;
    min-width: 108px;
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
  }

  .inline-form button::before {
    background: currentColor;
    content: "";
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1rem;
  }

  .table-grid {
    gap: 12px;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    max-height: 300px;
    overflow: auto;
    padding-right: 0;
  }

  .table-card {
    background: #fffdf9;
    box-shadow: 0 12px 26px rgba(72, 48, 31, 0.07);
    gap: 7px;
    grid-template-rows: auto 7px 12px auto;
    height: 142px;
    padding: 14px;
  }

  .table-card-header {
    align-items: center;
  }

  .table-card-header h3 {
    align-items: center;
    display: flex;
    font-size: 0.98rem;
    gap: 0.45rem;
    margin-bottom: 0.05rem;
  }

  .table-card-header h3::before {
    background: var(--accent);
    content: "";
    display: inline-block;
    flex: 0 0 1rem;
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Ccircle cx='17' cy='8' r='2.3'/%3E%3Cpath d='M3 19v-1.5A4.5 4.5 0 0 1 7.5 13h3A4.5 4.5 0 0 1 15 17.5V19M15 14.5a3.8 3.8 0 0 1 6 3V19'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Ccircle cx='17' cy='8' r='2.3'/%3E%3Cpath d='M3 19v-1.5A4.5 4.5 0 0 1 7.5 13h3A4.5 4.5 0 0 1 15 17.5V19M15 14.5a3.8 3.8 0 0 1 6 3V19'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1rem;
  }

  .table-card-header p {
    font-size: 0.8rem;
  }

  .table-card-actions {
    flex-wrap: nowrap;
  }

  .table-card-status-pill,
  .table-full-badge {
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.38rem 0.58rem;
    white-space: nowrap;
  }

  .table-card-status-pill.coming {
    background: color-mix(in srgb, #2f7d50 15%, var(--surface));
    border: 1px solid color-mix(in srgb, #2f7d50 28%, var(--line));
    color: #2f7d50;
  }

  .table-card-status-pill.pending {
    background: color-mix(in srgb, #2563eb 12%, var(--surface));
    border: 1px solid color-mix(in srgb, #2563eb 24%, var(--line));
    color: #2555b8;
  }

  .table-card-status-pill.not-coming {
    background: color-mix(in srgb, #d9352a 11%, var(--surface));
    border: 1px solid color-mix(in srgb, #d9352a 26%, var(--line));
    color: #a92d25;
  }

  .table-card .icon-button {
    background: #fffaf4;
    height: 1.8rem;
    min-height: 1.8rem;
    min-width: 1.8rem;
    width: 1.8rem;
  }

  .table-card .table-menu-button {
    bottom: 10px;
    right: 10px;
  }

  .capacity-bar {
    background: #efe8df;
    height: 7px;
  }

  .table-status-summary {
    align-items: center;
    display: flex;
    gap: 12px;
    grid-template-columns: repeat(3, max-content);
    margin-top: 0;
    padding-right: 2.45rem;
  }

  .table-status-count {
    align-items: center;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    gap: 5px;
    min-width: 0;
    padding: 0;
  }

  .assigned-list {
    display: none;
  }

  .assigned-pill {
    background: #fff7ea;
    border-radius: 7px;
    font-size: 0.82rem;
    padding: 0.35rem 0.48rem;
  }

  .floor-plan-section {
    margin-top: 0;
  }

  .floor-section-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .floor-plan-section .compact-heading {
    align-items: center;
    margin: 0;
  }

  .floor-plan-section .compact-heading p {
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .floor-tools {
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin: 0;
    max-width: none;
  }

  .floor-tools .secondary-button,
  .floor-size-controls {
    height: 2.05rem;
    min-height: 2.05rem;
  }

  #addSweetheartButton {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    min-height: 2.05rem;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
  }

  #addSweetheartButton::before {
    background: currentColor;
    content: "";
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.3 3.7L17 8l-3.7 1.3L12 13l-1.3-3.7L7 8l3.7-1.3L12 3Z'/%3E%3Cpath d='M19 13l.8 2.2L22 16l-2.2.8L19 19l-.8-2.2L16 16l2.2-.8L19 13Z'/%3E%3Cpath d='M5 14l.7 1.8 1.8.7-1.8.7L5 19l-.7-1.8-1.8-.7 1.8-.7L5 14Z'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.3 3.7L17 8l-3.7 1.3L12 13l-1.3-3.7L7 8l3.7-1.3L12 3Z'/%3E%3Cpath d='M19 13l.8 2.2L22 16l-2.2.8L19 19l-.8-2.2L16 16l2.2-.8L19 13Z'/%3E%3Cpath d='M5 14l.7 1.8 1.8.7-1.8.7L5 19l-.7-1.8-1.8-.7 1.8-.7L5 14Z'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1rem;
  }

  .floor-size-controls {
    gap: 4px;
    padding-left: 0;
  }

  #floorTableSizeSelect {
    border: 0;
    font-size: 0.78rem;
    height: 1.9rem;
    min-height: 1.9rem;
    padding: 0.18rem 1.45rem 0.18rem 0.5rem;
    width: 114px;
  }

  .floor-lock-button {
    background: transparent;
    height: 1.75rem;
    min-height: 1.75rem;
    min-width: 1.75rem;
    position: relative;
    width: 1.75rem;
  }

  .floor-lock-button::before {
    background: currentColor;
    content: "";
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1rem;
  }

  .floor-lock-button.locked::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  }

  .floor-plan {
    background:
      linear-gradient(90deg, rgba(155, 81, 70, 0.09) 1px, transparent 1px),
      linear-gradient(rgba(155, 81, 70, 0.09) 1px, transparent 1px),
      #fffdf9;
    background-size: 44px 44px;
    height: 430px;
  }

  .floor-table {
    background: linear-gradient(180deg, var(--surface), var(--surface-strong));
    border: 1px solid color-mix(in srgb, var(--accent) 70%, var(--line));
    box-shadow: 0 9px 16px rgba(72, 48, 31, 0.17);
    font-size: calc(0.78rem * var(--floor-table-scale));
    height: calc(54px * var(--floor-table-scale));
    width: calc(92px * var(--floor-table-scale));
  }

  .floor-special {
    height: calc(54px * var(--floor-table-scale));
    width: calc(92px * var(--floor-table-scale));
  }

  .floor-special.sweetheart {
    background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--accent-soft) 58%, var(--surface)));
    border: 3px double var(--accent);
    border-radius: 18px;
    box-shadow:
      0 10px 18px rgba(163, 79, 67, 0.18),
      inset 0 0 0 2px rgba(255, 255, 255, 0.75);
    width: calc(108px * var(--floor-table-scale));
  }

  .floor-special.stage {
    width: calc(118px * var(--floor-table-scale));
  }

  .floor-table strong {
    font-size: calc(0.8rem * var(--floor-table-scale));
  }

  .floor-table small {
    font-size: calc(0.68rem * var(--floor-table-scale));
    font-weight: 850;
  }

  .floor-table:hover,
  .floor-table.dragging {
    background: #fff7ea;
    color: var(--ink);
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .app-shell {
    width: min(100% - 24px, 1180px);
  }

  .backup-actions {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr) minmax(0, 0.58fr);
    padding: 16px 18px;
  }

  .action-group {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 0 14px 0 0;
  }

  .action-group:last-of-type {
    border-right: 0;
    padding-right: 0;
  }

  .action-group-buttons {
    gap: 8px;
  }

  .action-group-print .action-group-buttons {
    grid-template-columns: minmax(130px, 1fr) minmax(84px, 0.48fr);
  }

  .backup-actions .secondary-button,
  .backup-actions .import-button {
    font-size: 0.78rem;
    min-height: 2.35rem;
    min-width: 0;
    padding-inline: 0.5rem;
    white-space: nowrap;
  }

  .backup-actions .secondary-button::before,
  .backup-actions .import-button::before {
    height: 0.92rem;
    margin-right: 0.38rem;
    width: 0.92rem;
  }

  .start-guide {
    padding-inline: 22px;
  }

  .start-guide ol {
    gap: 14px;
  }

  .start-guide ol::before {
    background:
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 18.4% 1.08rem / 30px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 38.7% 1.08rem / 30px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 59% 1.08rem / 30px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 79.2% 1.08rem / 30px 1px repeat-x;
  }

  .start-guide li {
    gap: 6px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
  }

  .start-guide li > div {
    width: max-content;
  }

  .start-guide li strong {
    font-size: 0.88rem;
  }

  .start-guide small {
    font-size: 0.7rem;
  }

  .workspace {
    grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .app-shell {
    width: min(100% - 20px, 900px);
  }

  .topbar {
    gap: 8px 12px;
    padding: 10px 14px;
  }

  .brand-mark img {
    height: 48px;
    width: 48px;
  }

  .brand-name {
    font-size: 2.35rem;
  }

  .backup-actions {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr) minmax(0, 0.56fr);
    padding: 14px;
  }

  .action-group {
    gap: 8px;
    padding-right: 10px;
  }

  .action-group > strong {
    font-size: 0.66rem;
  }

  .action-group-buttons {
    gap: 6px;
  }

  .backup-actions .secondary-button,
  .backup-actions .import-button {
    font-size: 0.68rem;
    min-height: 2.18rem;
    min-width: 0;
    padding: 0.38rem 0.38rem;
    white-space: nowrap;
  }

  .backup-actions .secondary-button::before,
  .backup-actions .import-button::before {
    height: 0.82rem;
    margin-right: 0.3rem;
    width: 0.82rem;
  }

  .action-group-print .action-group-buttons {
    grid-template-columns: minmax(105px, 1fr) minmax(76px, 0.48fr);
  }

  #printButton {
    min-width: 0;
  }

  .action-group-print .reset-quick {
    min-width: 0;
  }

  .start-guide {
    padding: 14px 18px 16px;
  }

  .start-guide > strong {
    font-size: 0.68rem;
  }

  .start-guide ol {
    gap: 8px;
  }

  .start-guide ol::before {
    background:
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 18.7% 1rem / 16px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 39% 1rem / 16px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 59.3% 1rem / 16px 1px repeat-x,
      linear-gradient(to right, color-mix(in srgb, var(--accent) 45%, var(--line)) 45%, transparent 0) 79.5% 1rem / 16px 1px repeat-x;
  }

  .start-guide li {
    gap: 5px;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: start;
  }

  .start-guide li > div {
    width: max-content;
  }

  .start-guide li > span {
    height: 2.15rem;
    width: 2.15rem;
  }

  .start-guide li strong {
    font-size: 0.78rem;
  }

  .start-guide small {
    font-size: 0.64rem;
  }

  .workspace {
    gap: 12px;
    grid-template-columns: minmax(280px, 350px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body[data-mobile-view="floor"] .floor-table,
  body[data-mobile-view="floor"] .floor-special:not(.sweetheart):not(.stage) {
    background: linear-gradient(180deg, var(--surface), var(--surface-strong));
    border: 1px solid color-mix(in srgb, var(--accent) 72%, var(--line));
    box-shadow: 0 6px 12px rgba(72, 48, 31, 0.15);
    color: var(--ink);
    font-size: calc(0.66rem * var(--floor-table-scale));
    height: calc(36px * var(--floor-table-scale));
    width: calc(58px * var(--floor-table-scale));
  }

  body[data-mobile-view="floor"] .floor-table strong {
    font-size: calc(0.66rem * var(--floor-table-scale));
    line-height: 0.92;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  body[data-mobile-view="floor"] .floor-table small {
    font-size: calc(0.58rem * var(--floor-table-scale));
    line-height: 0.92;
  }

  body[data-mobile-view="floor"] .floor-special {
    height: calc(42px * var(--floor-table-scale));
    width: calc(72px * var(--floor-table-scale));
  }

  body[data-mobile-view="floor"] .floor-special.sweetheart {
    background: linear-gradient(
      180deg,
      var(--surface),
      color-mix(in srgb, var(--accent-soft) 58%, var(--surface))
    );
    border: 3px double var(--accent);
    border-radius: 14px;
    box-shadow:
      0 7px 13px rgba(163, 79, 67, 0.16),
      inset 0 0 0 1px color-mix(in srgb, var(--surface) 75%, transparent);
    color: var(--ink);
    width: calc(78px * var(--floor-table-scale));
  }

  body[data-mobile-view="floor"] .floor-special.stage {
    border-radius: 8px;
    width: calc(82px * var(--floor-table-scale));
  }
}

@media (min-width: 480px) {
  .bulk-add[open] > p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    white-space: nowrap;
  }

  .bulk-add[open] > .bulk-columns {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  }

  .bulk-add[open] .bulk-entry-column > textarea,
  .bulk-add[open] .bulk-preview {
    box-sizing: border-box;
    height: 154px;
    max-height: 154px;
    min-height: 154px;
    width: 100%;
  }

  .bulk-add[open] #bulkGuestSummary {
    min-height: 1rem;
  }

  .bulk-add[open] .bulk-add-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-top: 0;
  }

  .bulk-add[open] .bulk-add-actions #bulkExcelButton {
    display: none;
  }

  .bulk-add[open] .bulk-add-actions button,
  .bulk-add[open] .bulk-add-actions #bulkAddButton {
    flex: 0 1 auto;
    font-size: 0.78rem;
    min-height: 2rem;
    padding: 0.3rem 0.58rem;
    width: auto;
  }

  .bulk-add[open] .bulk-add-actions #bulkClearButton {
    min-width: 96px;
  }

  .bulk-add[open] .bulk-add-actions #bulkAddButton {
    min-width: 72px;
  }

  .bulk-add[open] .bulk-warning {
    display: block;
    margin-top: 0;
  }
}

@media (min-width: 901px) {
  .action-group-print .action-group-buttons {
    grid-template-columns: 206px 104px;
  }

  #printButton {
    font-size: 0.95rem;
    min-height: 2.65rem;
    min-width: 206px;
    width: 206px;
  }

  .action-group-print .reset-quick {
    font-size: 0.95rem;
    min-height: 2.65rem;
    min-width: 104px;
    padding: 0.52rem 0.86rem;
    width: 104px;
  }

  .bulk-add:not([open]) > summary {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: center;
    list-style: none;
    text-align: center;
  }

  .bulk-add:not([open]) > summary::-webkit-details-marker {
    display: none;
  }

  .bulk-add:not([open]) > summary::before {
    content: "\203A";
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    position: static;
    transform: none;
  }

  .bulk-add[open] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .bulk-add[open] > .bulk-columns {
    align-items: start;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-add[open] .bulk-entry-column,
  .bulk-add[open] .bulk-review-column {
    align-content: start;
    gap: 3px;
    grid-template-rows: auto 154px auto;
  }

  .bulk-add[open] .bulk-entry-column > p,
  .bulk-add[open] .bulk-review-title {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    min-height: 1.2em;
    white-space: nowrap;
  }

  .bulk-add[open] .bulk-entry-column > textarea,
  .bulk-add[open] .bulk-preview {
    height: 154px;
    max-height: 154px;
    min-height: 154px;
  }

  .bulk-add[open] #bulkGuestSummary,
  .bulk-add[open] #bulkDuplicateWarning {
    display: block;
    line-height: 1.3;
    margin: 0;
    min-height: 1.3em;
  }

  .bulk-add[open] #bulkDuplicateWarning {
    color: var(--muted) !important;
  }

  .bulk-add[open] #bulkDuplicateWarning.has-errors {
    color: #9c2f26 !important;
  }
}

@media (max-width: 760px) {
  body[data-mobile-view="floor"] .floor-section-header {
    align-items: center;
    display: grid;
    gap: 4px 5px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 8px;
  }

  body[data-mobile-view="floor"] .floor-plan-section .compact-heading {
    display: contents;
    margin: 0;
  }

  body[data-mobile-view="floor"] .floor-plan-section .compact-heading > div {
    display: contents;
  }

  body[data-mobile-view="floor"] .floor-plan-section .compact-heading h2 {
    align-items: center;
    display: flex;
    font-size: 0.98rem;
    gap: 0.28rem;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    min-width: 0;
  }

  body[data-mobile-view="floor"] .floor-plan-section .compact-heading h2::before {
    background: currentColor;
    color: var(--accent);
    content: "";
    flex: 0 0 0.98rem;
    height: 0.98rem;
    order: -2;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 0.98rem;
  }

  body[data-mobile-view="floor"] .floor-plan-section .compact-heading h2::after {
    content: "3.";
    order: -1;
  }

  body[data-mobile-view="floor"] .floor-plan-section .compact-heading p {
    display: block;
    font-size: 0.61rem;
    grid-column: 1 / -1;
    grid-row: 2;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  body[data-mobile-view="floor"] .floor-tools {
    align-items: center;
    display: grid;
    gap: 4px;
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: auto auto;
    margin: 0;
    padding-right: 28px;
  }

  body[data-mobile-view="floor"] #addSweetheartButton {
    font-size: 0.56rem;
    gap: 0.16rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0.22rem 0.3rem;
  }

  body[data-mobile-view="floor"] #addSweetheartButton::before {
    background: currentColor;
    content: "";
    height: 0.7rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.3 3.7L17 8l-3.7 1.3L12 13l-1.3-3.7L7 8l3.7-1.3L12 3Z'/%3E%3Cpath d='M19 13l.8 2.2L22 16l-2.2.8L19 19l-.8-2.2L16 16l2.2-.8L19 13Z'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.3 3.7L17 8l-3.7 1.3L12 13l-1.3-3.7L7 8l3.7-1.3L12 3Z'/%3E%3Cpath d='M19 13l.8 2.2L22 16l-2.2.8L19 19l-.8-2.2L16 16l2.2-.8L19 13Z'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 0.7rem;
  }

  body[data-mobile-view="floor"] .floor-size-controls {
    border: 0;
    display: block;
    height: 2rem;
    min-height: 2rem;
    padding: 0;
  }

  body[data-mobile-view="floor"] #floorTableSizeSelect {
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 0.49rem;
    height: 2rem;
    min-height: 2rem;
    padding: 0.18rem 1.05rem 0.18rem 0.28rem;
    width: 76px;
  }

  body[data-mobile-view="floor"] .floor-size-controls #lockAllFloorButton {
    display: none;
  }

  body[data-mobile-view="floor"] .mobile-floor-lock-button {
    align-items: center;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
    position: absolute;
    right: 10px;
    top: 18px;
    width: 2rem;
    z-index: 12;
  }

  body[data-mobile-view="floor"] .mobile-floor-lock-button::before {
    background: currentColor;
    content: "";
    height: 1rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    transform: translateY(2px);
    width: 1rem;
  }

  body[data-mobile-view="floor"] .mobile-floor-lock-button.locked::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  }

  body[data-mobile-view="guests"] .guest-panel .panel-heading {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 10px;
  }

  body[data-mobile-view="guests"] .guest-panel .panel-heading > div:first-child {
    min-width: max-content;
  }

  body[data-mobile-view="guests"] .guest-panel .panel-heading p {
    display: none;
  }

  body[data-mobile-view="guests"] .guest-panel .panel-heading h2 {
    align-items: center;
    display: flex;
    font-size: 1.16rem;
    gap: 0.42rem;
    margin: 0;
  }

  body[data-mobile-view="guests"] .guest-panel .panel-heading h2::before {
    background: currentColor;
    color: var(--accent);
    content: "";
    flex: 0 0 1.12rem;
    height: 1.12rem;
    order: -2;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1.12rem;
  }

  body[data-mobile-view="guests"] .guest-panel .panel-heading h2::after {
    content: "1.";
    order: -1;
  }

  body[data-mobile-view="guests"] .side-tabs {
    background: var(--surface-strong);
    gap: 4px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: end;
    margin: 0;
    min-width: 0;
    padding: 4px;
    width: min(100%, 245px);
  }

  body[data-mobile-view="guests"] .side-tab {
    font-size: 0.52rem;
    gap: 2px;
    line-height: 1.05;
    min-height: 1.9rem;
    min-width: 0;
    padding: 0.2rem 0.22rem;
  }

  body[data-mobile-view="guests"] .side-tab span {
    font-size: 0.56rem;
    min-width: 1.08rem;
    padding: 0.06rem 0.2rem;
  }

  body[data-mobile-view="guests"] #guestForm {
    align-items: end;
    display: grid;
    gap: 7px 6px;
    grid-template-columns: minmax(0, 48%) minmax(0, 28%) minmax(0, 24%);
  }

  body[data-mobile-view="guests"] #guestForm > label:first-child {
    grid-column: 1;
  }

  body[data-mobile-view="guests"] #guestForm > .form-row:first-of-type {
    display: contents;
  }

  body[data-mobile-view="guests"] #guestForm label {
    font-size: 0.68rem;
    min-width: 0;
  }

  body[data-mobile-view="guests"] #guestForm input,
  body[data-mobile-view="guests"] #guestForm select {
    font-size: 0.76rem;
    min-height: 2.3rem;
    min-width: 0;
    padding: 0.36rem 0.38rem;
    width: 100%;
  }

  body[data-mobile-view="guests"] #guestForm .checkbox-line {
    grid-column: 1 / -1;
    margin-top: 1px;
  }

  body[data-mobile-view="guests"] #guestForm .checkbox-line input {
    min-height: auto;
    width: auto;
  }

  body[data-mobile-view="guests"] #guestForm .single-field,
  body[data-mobile-view="guests"] #guestForm .form-buttons {
    grid-column: 1 / -1;
  }

  body[data-mobile-view="guests"] .bulk-add:not([open]) > summary {
    justify-content: center;
    text-align: center;
  }

  body[data-mobile-view="guests"] .bulk-add[open] > summary {
    justify-content: flex-start;
    padding-right: 2.65rem;
    text-align: left;
  }

  body[data-mobile-view="guests"] .bulk-add {
    position: relative;
  }

  body[data-mobile-view="guests"] .bulk-add summary::after {
    display: none;
  }

  body[data-mobile-view="guests"] .bulk-add[open] > .bulk-excel-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--accent);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    min-height: 2rem;
    padding: 0;
    position: absolute;
    right: 0.42rem;
    top: 0.32rem;
    width: 2rem;
    z-index: 2;
  }

  body[data-mobile-view="guests"] .bulk-add[open] > .bulk-excel-icon-button::before {
    background: currentColor;
    content: "";
    height: 1.05rem;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5-5 5 5'/%3E%3Cpath d='M12 5v12'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5-5 5 5'/%3E%3Cpath d='M12 5v12'/%3E%3C/svg%3E");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    width: 1.05rem;
  }

  body[data-mobile-view="guests"] .bulk-add[open] > .bulk-columns {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-mobile-view="guests"] .bulk-add[open] .bulk-entry-column,
  body[data-mobile-view="guests"] .bulk-add[open] .bulk-review-column {
    align-content: start;
    gap: 4px;
    grid-template-rows: auto 154px auto auto;
  }

  body[data-mobile-view="guests"] .bulk-add[open] .bulk-entry-column > p,
  body[data-mobile-view="guests"] .bulk-add[open] .bulk-review-title {
    font-size: 0.58rem;
    line-height: 1.25;
    margin: 0;
    min-height: 1.25em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  html[lang="en"] body[data-mobile-view="guests"] .bulk-add[open] .bulk-entry-column > p,
  html[lang="en"] body[data-mobile-view="guests"] .bulk-add[open] .bulk-review-title,
  html[lang="de"] body[data-mobile-view="guests"] .bulk-add[open] .bulk-entry-column > p,
  html[lang="de"] body[data-mobile-view="guests"] .bulk-add[open] .bulk-review-title {
    display: -webkit-box;
    font-size: 0.56rem;
    line-height: 1.2;
    min-height: 1.2em;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-mobile-view="guests"] .bulk-add[open] .bulk-entry-column > textarea,
  body[data-mobile-view="guests"] .bulk-add[open] .bulk-preview {
    box-sizing: border-box;
    font-size: 0.75rem;
    height: 154px;
    max-height: 154px;
    min-height: 154px;
    width: 100%;
  }

  body[data-mobile-view="guests"] .bulk-add[open] #bulkGuestSummary,
  body[data-mobile-view="guests"] .bulk-add[open] #bulkDuplicateWarning {
    display: block;
    font-size: 0.65rem;
    line-height: 1.3;
    margin: 0;
    min-height: 1.3em;
    overflow: visible;
    padding-bottom: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-mobile-view="guests"] .bulk-add[open] .bulk-add-actions {
    flex-wrap: nowrap;
    gap: 5px;
  }

  body[data-mobile-view="guests"] .bulk-add[open] .bulk-add-actions button,
  body[data-mobile-view="guests"] .bulk-add[open] .bulk-add-actions #bulkAddButton {
    flex: 1 1 0;
    font-size: 0.66rem;
    min-height: 2rem;
    min-width: 0;
    padding: 0.3rem 0.2rem;
    width: auto;
  }

  .bulk-excel-help-panel .modal-header {
    align-items: start;
    column-gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px 8px;
  }

  .bulk-excel-help-panel .modal-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
  }

  .bulk-excel-help-panel .bulk-excel-help-content {
    gap: 8px;
    padding: 10px;
  }

  .bulk-excel-help-panel .bulk-excel-help-actions button {
    font-size: 0.78rem;
    min-height: 2.15rem;
    min-width: 86px;
    padding: 0.38rem 0.68rem;
  }

  body[data-mobile-view="guests"] .tools-row {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.82fr) minmax(0, 0.95fr);
    margin: 12px 0 10px;
  }

  body[data-mobile-view="guests"] .tools-row input,
  body[data-mobile-view="guests"] .tools-row select {
    font-size: 0.68rem;
    min-height: 2.35rem;
    min-width: 0;
    padding: 0.34rem 0.38rem;
    width: 100%;
  }

  body[data-mobile-view="guests"] .guest-list {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    counter-reset: mobile-guest-row;
    gap: 0;
    min-height: 88px;
    padding: 0;
  }

  body[data-mobile-view="guests"] .guest-item {
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    counter-increment: mobile-guest-row;
    display: grid;
    gap: 5px;
    grid-template-columns: 1.45rem minmax(0, 1.15fr) minmax(72px, 0.8fr) 2.2rem 1.7rem;
    min-height: 3.15rem;
    padding: 7px 6px;
    position: relative;
  }

  body[data-mobile-view="guests"] .guest-item:last-child {
    border-bottom: 0;
  }

  body[data-mobile-view="guests"] .guest-item::before {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 5px;
    content: counter(mobile-guest-row);
    display: inline-flex;
    font-size: 0.66rem;
    font-weight: 850;
    height: 1.4rem;
    justify-content: center;
    width: 1.4rem;
  }

  body[data-mobile-view="guests"] .guest-item > div:first-child {
    align-items: center;
    display: contents;
    min-width: 0;
  }

  body[data-mobile-view="guests"] .guest-item strong {
    font-size: 0.78rem;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-mobile-view="guests"] .guest-item p {
    font-size: 0.66rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-mobile-view="guests"] .guest-status-pill {
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 850;
    justify-self: stretch;
    min-width: 0;
    padding: 0.25rem 0.2rem;
    text-align: center;
  }

  body[data-mobile-view="guests"] .guest-table-menu-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--accent);
    display: inline-flex;
    font-size: 1rem;
    height: 1.65rem;
    justify-content: center;
    min-height: 1.65rem;
    padding: 0;
    width: 1.65rem;
  }

  body[data-mobile-view="guests"] .guest-table-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 12px 28px rgba(72, 48, 31, 0.18);
    display: grid;
    max-height: 250px;
    min-width: 190px;
    overflow-y: auto;
    padding: 5px;
    position: fixed;
    z-index: 30;
  }

  body[data-mobile-view="guests"] .guest-table-menu[hidden] {
    display: none;
  }

  body[data-mobile-view="guests"] .guest-table-menu button {
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--ink);
    font-size: 0.78rem;
    justify-content: flex-start;
    min-height: 2rem;
    padding: 0.35rem 0.55rem;
    text-align: left;
  }

  body[data-mobile-view="guests"] .guest-table-menu button:hover,
  body[data-mobile-view="guests"] .guest-table-menu button.active {
    background: var(--accent-soft);
    color: var(--accent);
  }

  body[data-mobile-view="guests"] .guest-item .quick-status,
  body[data-mobile-view="guests"] .guest-actions {
    display: none;
  }
}

.start-card-controls .theme-quick {
  min-height: 1.75rem;
  min-width: 2.2rem;
  width: 2.2rem;
}

.start-card-controls .language-quick {
  font-size: 0.72rem;
  min-height: 1.75rem;
  min-width: 2.2rem;
  padding: 0.2rem 0.48rem;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(180deg, #05070d 0%, var(--bg) 48%, var(--bg) 100%);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .backup-actions,
:root[data-theme="dark"] .start-guide,
:root[data-theme="dark"] .panel {
  background: rgba(11, 18, 32, 0.92);
  border-color: var(--line);
}

:root[data-theme="dark"] .backup-actions .secondary-button,
:root[data-theme="dark"] .backup-actions .import-button,
:root[data-theme="dark"] .side-tabs,
:root[data-theme="dark"] .guest-list,
:root[data-theme="dark"] .guest-item::before,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .table-card .icon-button,
:root[data-theme="dark"] .floor-size-controls,
:root[data-theme="dark"] .floor-plan {
  background: var(--surface);
}

:root[data-theme="dark"] .start-guide li > span,
:root[data-theme="dark"] .assigned-pill {
  background: var(--surface-strong);
}

:root[data-theme="dark"] .floor-plan {
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.14) 1px, transparent 1px),
    var(--surface);
}

:root[data-theme="dark"] .capacity-bar {
  background: #1d2b42;
}

:root[data-theme="dark"] .floor-table:hover,
:root[data-theme="dark"] .floor-table.dragging {
  background: var(--surface-strong);
  color: var(--ink);
}


/* Izgled stolova na tlocrtu. */
.floor-table.shape-round {
  border-radius: 999px;
  height: calc(58px * var(--floor-table-scale));
  width: calc(58px * var(--floor-table-scale));
}

.floor-table.shape-square {
  border-radius: 10px;
  height: calc(58px * var(--floor-table-scale));
  width: calc(58px * var(--floor-table-scale));
}

.floor-table.shape-rectangle {
  border-radius: 10px;
  width: calc(112px * var(--floor-table-scale));
}

.floor-table.shape-oval {
  border-radius: 999px;
}

.table-shape-field {
  min-width: 130px;
}

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

.table-editor-actions .table-shape-field span {
  font-weight: 850;
}

.floor-item-editor .table-shape-field {
  display: grid;
  gap: 6px;
}

@media (max-width: 560px) {
  body[data-mobile-view="floor"] .floor-table.shape-round,
  body[data-mobile-view="floor"] .floor-table.shape-square {
    height: calc(46px * var(--floor-table-scale));
    width: calc(46px * var(--floor-table-scale));
  }

  body[data-mobile-view="floor"] .floor-table.shape-rectangle {
    width: calc(82px * var(--floor-table-scale));
  }
}


.start-online-panel .demo-button {
  grid-column: 1 / -1;
  min-height: 2.5rem;
}

.start-online-panel .hidden-auth-action[hidden] {
  display: none;
}

body.project-demo-mode .backup-actions {
  display: none;
}
