.icon-button__glyph {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  stroke: var(--slate-500);
  fill: none;
}

.icon-button__glyph path,
.icon-button__glyph line,
.icon-button__glyph circle,
.icon-button__glyph rect {
  stroke: inherit;
  stroke-width: inherit;
}

.icon-button__glyph circle.filled {
  fill: var(--slate-500);
  stroke: none;
}
:root {
  color-scheme: light dark;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  background-color: #0f1115;
  color: #101828;
  --mint-50: #f4fbf7;
  --mint-100: #d4f5e3;
  --mint-300: #7fddaf;
  --mint-400: #5fd19a;
  --mint-500: #3fc588;
  --mint-600: #2a9c6a;
  --mint-900: #0d3622;
  --status-open-surface: #dcfce7;
  --status-open-solid: #22c55e;
  --status-open-border: #86efac;
  --status-open-text: #166534;
  --status-reserved-surface: #fee2e2;
  --status-reserved-solid: #ef4444;
  --status-reserved-border: #fca5a5;
  --status-reserved-text: #b91c1c;
  --status-blocked-surface: #f3f4f6;
  --status-blocked-solid: #6b7280;
  --status-blocked-border: #d1d5db;
  --status-blocked-text: #475467;
  --sage-100: #f2f5f4;
  --sage-200: #dfe6e4;
  --sage-300: #c6d2cd;
  --slate-200: #e4e7ec;
  --slate-300: #d0d5dd;
  --slate-400: #98a2b3;
  --slate-500: #667085;
  --slate-900: #101828;
  --surface: #fcfcfd;
  --surface-muted: #f8f9fb;
  --surface-strong: #1f242e;
  --surface-elevated: rgba(255, 255, 255, 0.8);
  --shadow-soft: 0 20px 40px -24px rgba(15, 17, 21, 0.5);
  --shadow-hard: 0 24px 48px -12px rgba(15, 17, 21, 0.35);
  --border: rgba(15, 17, 21, 0.08);
  --accent-glow: radial-gradient(circle at 20% 20%, rgba(126, 221, 175, 0.25), transparent 45%), radial-gradient(circle at 80% 0%, rgba(63, 197, 136, 0.2), transparent 40%), radial-gradient(circle at 50% 100%, rgba(240, 255, 250, 0.4), transparent 50%);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(120% 120% at 10% 10%, rgba(42, 156, 106, 0.12) 0%, rgba(15, 17, 21, 0.92) 42%, rgba(10, 12, 16, 1) 100%), #0f1115;
  min-height: 100vh;
}

body.sidebar-visible {
  overflow: hidden;
}

.off-canvas-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.5);
  backdrop-filter: blur(4px);
  z-index: 940;
  opacity: 0;
  animation: fade-in 0.2s forwards;
}

.app-shell {
  --sidebar-width: 360px;
  --sidebar-collapsed-width: 72px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  color: var(--slate-900);
  transition: grid-template-columns 0.3s ease;
}

.app-shell[data-left-state='collapsed'] {
  grid-template-columns: 0 minmax(0, 1fr);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: visible;
  transition: padding 0.3s ease;
}

.sidebar__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.2s ease;
  overflow-y: auto;
}

.sidebar.is-collapsed {
  padding: 0;
  width: 0;
  background: transparent;
  border-right: none;
  box-shadow: none;
  position: relative;
}
.sidebar.is-collapsed .panel-toggle {
  pointer-events: auto;
}

.sidebar.is-collapsed .sidebar__content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sidebar.is-collapsed::before {
  content: none;
}

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 17, 21, 0.1);
  background: white;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.panel-toggle {
  position: absolute;
  top: calc(var(--panel-toggle-top, 72px) - 24px);
  width: 32px;
  height: 48px;
  border: 1px solid rgba(15, 17, 21, 0.08);
  background: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, background 0.2s ease;
  z-index: 10;
  color: var(--slate-500);
}

.panel-toggle:hover {
  box-shadow: 0 16px 28px -18px rgba(15, 17, 21, 0.45);
  background: var(--surface-muted);
}

.panel-toggle--left {
  right: -16px;
  left: auto;
  border-radius: 0 12px 12px 0;
}

.panel-toggle--right {
  left: -16px;
  right: auto;
  border-radius: 12px 0 0 12px;
}

.panel-toggle--floating {
  position: fixed;
  top: var(--panel-toggle-top, 72px);
  z-index: 100;
  transform: translateY(-50%);
}

.panel-toggle--floating.panel-toggle--left {
  left: 16px;
  right: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 17, 21, 0.08);
}

.panel-toggle--floating.panel-toggle--right {
  right: 16px;
  left: auto;
  border-radius: 12px;
  border: 1px solid rgba(15, 17, 21, 0.08);
}

.app-shell[data-left-state='collapsed'] .panel-toggle--left {
  right: -40px;
}

.workspace-body[data-details-state='collapsed'] .panel-toggle--right {
  left: -40px;
}

.app-shell[data-left-state='collapsed'] .panel-toggle--left {
  right: -32px;
}

.workspace-body[data-details-state='collapsed'] .panel-toggle--right {
  left: -32px;
}

.panel-toggle .material-symbol {
  font-size: 18px;
  color: var(--slate-500);
  transition: transform 0.3s ease;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--accent-glow), linear-gradient(135deg, var(--mint-500), var(--mint-300));
  box-shadow: var(--shadow-hard);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0a1b12;
  letter-spacing: 0.06em;
}

.brand-copy h1 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--slate-900);
}

.brand-copy p {
  font-size: 0.95rem;
  color: var(--slate-500);
}


.event-switcher {
  background: var(--surface-muted);
  border-radius: 24px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.event-form {
  display: grid;
  gap: 16px;
}



.event-form .ghost.destructive {
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.event-form .ghost.destructive:hover {
  background: rgba(220, 38, 38, 0.14);
  color: #991b1b;
}

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

.field span {
  font-weight: 500;
  color: var(--slate-500);
}

.field input,
.field select {
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  color: var(--slate-900);
}

.field input:focus {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.12);
  outline: none;
}

.primary,
.secondary,
.ghost,
.text-button {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary {
  background: linear-gradient(135deg, var(--mint-600), var(--mint-400));
  color: white;
  box-shadow: 0 16px 30px -16px rgba(63, 197, 136, 0.65);
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px -16px rgba(63, 197, 136, 0.75);
}

.secondary {
  background: rgba(63, 197, 136, 0.12);
  color: var(--mint-600);
}

.ghost {
  background: transparent;
  color: var(--slate-500);
}

.text-button {
  background: transparent;
  color: var(--mint-600);
  padding: 0;
}

.event-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.event-card:hover {
  border-color: var(--mint-300);
  transform: translateY(-2px);
}

.legend {
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.legend h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.legend ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-flex;
  margin-right: 8px;
}

.status-open {
  background: var(--status-open-solid);
}

.status-held {
  background: var(--status-reserved-solid);
}

.status-occupied {
  background: #f97316;
}

.status-vip {
  background: #8b5cf6;
}

.status-blocked {
  background: var(--status-blocked-solid);
}

.sync-status {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(63, 197, 136, 0.12);
  color: var(--mint-600);
  font-weight: 500;
}

.sync-status .pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 0 rgba(63, 197, 136, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 197, 136, 0.4);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(63, 197, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 197, 136, 0);
  }
}

.workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(18px);
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(15, 17, 21, 0.08);
}

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-400);
  font-size: 0.95rem;
}

.breadcrumbs span:last-child {
  color: var(--slate-900);
  font-weight: 600;
}

.divider {
  opacity: 0.5;
}

.intent-toggles {
  display: flex;
  gap: 12px;
  background: white;
  padding: 6px;
  border-radius: 20px;
  box-shadow: inset 0 1px 2px rgba(15, 17, 21, 0.08);
}

.chip {
  border: none;
  background: transparent;
  border-radius: 16px;
  padding: 8px 16px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  transition: 0.2s ease;
}

.chip.active {
  background: rgba(63, 197, 136, 0.16);
  color: var(--mint-600);
}

.logout-button {
  padding-inline: 14px;
  color: var(--slate-500);
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 14px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logout-button.is-visible {
  display: inline-flex;
}

.workspace-body {
  --details-panel-width: 360px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--details-panel-width);
  min-height: 0;
  flex: 1;
  transition: grid-template-columns 0.3s ease;
  background: rgba(250, 250, 252, 0.95);
  overflow: hidden;
}

.workspace-body[data-details-state='collapsed'] {
  grid-template-columns: minmax(0, 1fr) 0;
}

.workspace-body[data-details-state='expanded'] {
  grid-template-columns: minmax(0, 1fr) var(--details-panel-width);
}

.workspace-body[data-intent='assignments'] {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-body[data-intent='assignments'] .canvas-toolbar,
.workspace-body[data-intent='assignments'] .canvas {
  display: none;
}

.workspace-body[data-intent='assignments'] [data-assignments-panel] {
  display: flex;
}

.workspace-body[data-intent='assignments'] .details-panel,
.workspace-body[data-intent='assignments'] .panel-toggle--right {
  display: none;
}

.canvas-wrapper {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(15, 17, 21, 0.06);
  flex: 1;
  min-height: 0;
}

.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(15, 17, 21, 0.06);
  gap: 16px;
}

.library {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.edit-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  min-height: 64px;
}

.edit-toolbar__rotate {
  display: grid;
  gap: 6px;
}

.edit-toolbar__rotate label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
}

.edit-toolbar__rotate-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

#rotationAngleInput {
  width: 68px;
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  background: white;
  color: var(--slate-700);
}

.edit-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: 14px;
  background: white;
  padding: 8px 12px;
  font-weight: 600;
  color: var(--slate-500);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.edit-item:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(15, 17, 21, 0.35);
  color: var(--mint-600);
  border-color: rgba(63, 197, 136, 0.26);
}

.edit-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.edit-item[aria-pressed='true'] {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.18);
  color: var(--mint-600);
}

.library-item {
  display: grid;
  grid-template-columns: auto;
  justify-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 21, 0.08);
  background: white;
  min-width: 68px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  font-weight: 600;
  color: var(--slate-500);
}

.library-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -14px rgba(15, 17, 21, 0.35);
}

.library-item.active {
  border-color: var(--mint-400);
  color: var(--mint-600);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.18);
}

.library-item[data-tool='rotate'] .library-glyph {
  display: inline-flex;
  transform: rotate(90deg);
}

.library-glyph {
  font-size: 18px;
}

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

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 17, 21, 0.08);
  background: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-button__glyph {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  stroke: var(--slate-500);
}

.icon-button__glyph path,
.icon-button__glyph line,
.icon-button__glyph circle,
.icon-button__glyph rect {
  stroke: inherit;
  stroke-width: inherit;
}

.icon-button:hover .icon-button__glyph {
  stroke: var(--mint-600);
}

.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -12px rgba(15, 17, 21, 0.5);
}

.icon-button[disabled] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.material-symbol {
  font-family: 'Material Symbols Rounded', 'Material Icons', sans-serif;
  font-size: 20px;
}

.canvas {
  position: relative;
  flex: 1;
  background: transparent;
  overflow: hidden;
  min-height: 0;
}

[data-assignments-panel] {
  display: none;
  flex-direction: column;
  padding: 32px 48px 40px;
  gap: 28px;
  background: linear-gradient(160deg, rgba(241, 248, 245, 0.9), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(15, 17, 21, 0.08);
}

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

.assignments-panel__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint-500);
  margin-bottom: 6px;
  font-weight: 600;
}

.assignments-panel__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--slate-900);
}

.assignments-panel__updated {
  font-size: 0.85rem;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.assignments-panel__updated::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint-500);
  box-shadow: 0 0 0 6px rgba(63, 197, 136, 0.18);
}

.assignments-panel__event {
  background: white;
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: 0 18px 40px -32px rgba(15, 17, 21, 0.6);
  display: grid;
  gap: 6px;
}

.assignments-panel__event h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-900);
}

.assignments-panel__event p {
  margin: 0;
  color: var(--slate-500);
}

.assignments-summary,
.assignments-progress,
.assignments-feed {
  background: white;
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: 0 18px 40px -32px rgba(15, 17, 21, 0.6);
}

.assignments-summary {
  display: grid;
  gap: 16px;
}

.assignments-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px;
}

.assignments-metric {
  display: grid;
  gap: 6px;
}

.assignments-metric span {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.assignments-metric strong {
  font-size: 1.6rem;
  color: var(--slate-900);
}

.assignments-progress {
  display: grid;
  gap: 22px;
}

.assignments-progress__bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(63, 197, 136, 0.18);
  overflow: hidden;
}

.assignments-progress__fill {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint-400), var(--mint-600));
  transition: width 0.4s ease;
}

.assignments-progress__legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-500);
  font-size: 0.9rem;
}

.assignments-feed {
  display: grid;
  gap: 18px;
}

.assignments-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.assignments-feed__header h3 {
  font-size: 1.1rem;
  color: var(--slate-900);
}

.assignments-feed__list {
  display: grid;
  gap: 16px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.assignments-feed__list::-webkit-scrollbar {
  width: 6px;
}
.assignments-feed__list::-webkit-scrollbar-thumb {
  background: rgba(63, 197, 136, 0.4);
  border-radius: 999px;
}

.assignments-feed__list::-webkit-scrollbar-track {
  background: transparent;
}

.assignments-feed__item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 17, 21, 0.06);
  background: rgba(250, 252, 251, 0.9);
  display: grid;
  gap: 6px;
}

.assignments-feed__item time {
  font-size: 0.78rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.assignments-feed__item strong {
  color: var(--slate-900);
}

.assignments-feed__empty {
  padding: 28px;
  text-align: center;
  color: var(--slate-400);
  border-radius: 18px;
  border: 1px dashed rgba(15, 17, 21, 0.1);
}

.assignments-map {
  background: white;
  border-radius: 22px;
  padding: 24px 28px 32px;
  box-shadow: 0 18px 40px -32px rgba(15, 17, 21, 0.6);
  display: grid;
  gap: 20px;
}

.assignments-map__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.assignments-map__header h3 {
  font-size: 1.2rem;
  color: var(--slate-900);
  margin: 0;
}

.assignments-map__header p {
  margin: 0;
  color: var(--slate-500);
}

.assignments-map__header > div:first-child {
  flex: 1 1 220px;
  min-width: 200px;
}

.assignments-map__stats {
  display: flex;
  flex: 1 1 240px;
  gap: 10px;
  row-gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  max-width: 100%;
}

.assignments-map__chip {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(63, 197, 136, 0.1);
  border: 1px solid rgba(63, 197, 136, 0.22);
  min-width: 110px;
  flex: 1 1 110px;
  max-width: 140px;
  text-align: center;
}

.assignments-map__chip span {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.assignments-map__chip strong {
  font-size: 1.25rem;
  color: var(--slate-900);
}

.assignments-map__canvas {
  display: grid;
  gap: 16px;
}

.assignments-map__frame {
  position: relative;
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.95);
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.06);
  padding: 24px;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 48vh, 540px);
}

#assignmentsMapCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.08);
}

.assignments-map__overlay {
  position: absolute;
  inset: 24px;
  backdrop-filter: blur(6px);
  background: rgba(15, 23, 42, 0.22);
  color: white;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 500;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.assignments-map__overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.assignments-map__hint {
  margin: 0;
  text-align: center;
  font-size: 0.87rem;
  color: var(--slate-500);
}

.assignments-map__legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 0.88rem;
  color: var(--slate-500);
}

.assignments-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.canvas-viewport {
  position: relative;
  width: 100%;
  height: 100%;
}



.rotation-gizmo {
  position: absolute;
  pointer-events: none;
  transform-origin: center;
  z-index: 20;
}

.rotation-gizmo__circle {
  stroke: rgba(63, 197, 136, 0.5);
  stroke-dasharray: 8 8;
  fill: transparent;
}

.rotation-gizmo__line {
  stroke: var(--mint-500);
  stroke-width: 2;
}

.rotation-gizmo__handle {
  fill: var(--mint-500);
  stroke: white;
  stroke-width: 2;
  cursor: grab;
}

.rotation-gizmo__handle:active {
  cursor: grabbing;
}

.rotation-gizmo__angle-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -160%);
  background: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint-700);
  box-shadow: 0 6px 18px -12px rgba(15, 17, 21, 0.45);
  pointer-events: none;
}

.canvas-viewport:active {
  cursor: grabbing;
}
.canvas-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.canvas-scale {
  position: absolute;
  transform-origin: top left;
  will-change: transform;
}

.canvas-stage {
  --canvas-padding: 80px;
  --canvas-rect-width: 1600px;
  --canvas-rect-height: 1200px;
  --canvas-offset-x: 0px;
  --canvas-offset-y: 0px;
}

.canvas-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
}

.canvas-bounds {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--canvas-rect-width, 1600px);
  height: var(--canvas-rect-height, 1200px);
  border-radius: 32px;
  box-shadow: none;
  border: none;
  pointer-events: none;
  transform: translate(
    calc(-50% + var(--canvas-offset-x, 0px)),
    calc(-50% + var(--canvas-offset-y, 0px))
  );
}

.canvas-bounds::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
}

.canvas-layer {
  position: relative;
  will-change: transform;
}

.canvas-layer .selection-rect {
  position: absolute;
  border: 1px dashed rgba(47, 145, 103, 0.6);
  background: rgba(47, 145, 103, 0.12);
  backdrop-filter: blur(1px);
  pointer-events: none;
  border-radius: 8px;
  z-index: 5;
}

.canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      140% 120% at 50% 32%,
      rgba(63, 197, 136, 0.16),
      rgba(244, 251, 247, 0.82) 55%,
      #f4fbf7 86%
    ),
    #f4fbf7;
}

.canvas-grid {
  position: absolute;
  inset: 0;
  background-size: 48px 48px;
  background-image: linear-gradient(rgba(15, 17, 21, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 17, 21, 0.08) 1px, transparent 1px);
  opacity: 0.45;
}



.canvas-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 20px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--slate-900);
  box-shadow: 0 30px 50px -36px rgba(15, 17, 21, 0.6);
  transition: box-shadow 0.15s ease, border 0.15s ease, background-color 0.2s ease, color 0.2s ease;
  padding: 10px;
  text-align: center;
}

.canvas-element[data-type='seat'] {
  background: rgba(165, 108, 55, 0.18);
  border-color: rgba(165, 108, 55, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.15s ease, border 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.canvas-element[data-type='seat'] .seat-glyph,
.canvas-element[data-type='seat'] .seat-meta-inline {
  color: #3f2a16;
}

.canvas-element[data-status='open'] {
  background: var(--status-open-surface);
  border-color: var(--status-open-border);
  color: var(--status-open-text);
}

.canvas-element[data-status='open'][data-type='seat'] {
  background: radial-gradient(circle at 40% 35%, rgba(34, 197, 94, 0.22), transparent 65%), var(--status-open-surface);
  border-color: var(--status-open-border);
}

.canvas-element[data-status='open'] .seat-glyph,
.canvas-element[data-status='open'] .seat-meta-inline,
.canvas-element[data-status='open'] .element-label,
.canvas-element[data-status='open'] .element-label-table,
.canvas-element[data-status='open'] .element-price {
  color: var(--status-open-text);
}

.canvas-element[data-status='reserved'] {
  background: var(--status-reserved-surface);
  border-color: var(--status-reserved-border);
  color: var(--status-reserved-text);
}

.canvas-element[data-status='reserved'][data-type='seat'] {
  background: radial-gradient(circle at 45% 30%, rgba(239, 68, 68, 0.18), transparent 70%), var(--status-reserved-surface);
}

.canvas-element[data-status='reserved'] .seat-glyph,
.canvas-element[data-status='reserved'] .seat-meta-inline,
.canvas-element[data-status='reserved'] .element-label,
.canvas-element[data-status='reserved'] .element-label-table,
.canvas-element[data-status='reserved'] .element-price {
  color: var(--status-reserved-text);
}

.canvas-element[data-status='blocked'] {
  background: var(--status-blocked-surface);
  border-color: var(--status-blocked-border);
  color: var(--status-blocked-text);
}

.canvas-element[data-status='blocked'][data-type='seat'] {
  background: radial-gradient(circle at 40% 30%, rgba(55, 65, 81, 0.2), transparent 70%), var(--status-blocked-surface);
}

.canvas-element[data-status='blocked'] .seat-glyph,
.canvas-element[data-status='blocked'] .seat-meta-inline,
.canvas-element[data-status='blocked'] .element-label,
.canvas-element[data-status='blocked'] .element-label-table,
.canvas-element[data-status='blocked'] .element-price {
  color: var(--status-blocked-text);
}

.canvas-element[data-type='seat'] .seat-glyph {
  font-size: 16px;
  font-weight: 700;
  color: #3f2a16;
  transition: color 0.2s ease;
}

.seat-meta-inline {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 17, 21, 0.12);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.canvas-element[data-type='seat'] .element-label,
.canvas-element[data-type='seat'] .element-capacity {
  display: none;
}

.canvas-element[data-type='table'] {
  background: rgba(128, 128, 128, 0.18);
  border-color: rgba(128, 128, 128, 0.5);
  transition: box-shadow 0.15s ease, border 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.canvas-element[data-type='table'] .element-label-table {
  display: block;
  font-weight: 600;
  color: #3a3a3a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.element-price {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint-600);
}



.canvas-element:hover {
  transform: translateY(-2px);
  box-shadow: 0 40px 60px -30px rgba(15, 17, 21, 0.35);
}

.canvas-element.selected,
.canvas-element.multi-selected {
  border: 2px solid var(--mint-400);
  box-shadow: 0 0 0 4px rgba(63, 197, 136, 0.25);
}

.canvas-element.preview-selected {
  border: 2px dashed rgba(63, 197, 136, 0.6);
  box-shadow: 0 0 0 2px rgba(63, 197, 136, 0.18);
}

.seat-status-occupied {
  background: rgba(249, 115, 22, 0.16);
  border-color: rgba(249, 115, 22, 0.35);
}

.seat-status-vip {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0.05));
  border-color: rgba(139, 92, 246, 0.4);
}

.context-menu {
  position: absolute;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 14px;
  box-shadow: 0 30px 40px -32px rgba(15, 17, 21, 0.55);
  padding: 6px;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.context-menu[aria-hidden='false'] {
  display: grid;
  gap: 4px;
}

.context-menu--event {
  position: fixed;
  min-width: 160px;
  background: white;
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(15, 17, 21, 0.35);
  padding: 6px;
  z-index: 1000;
  display: grid;
  gap: 4px;
}

.context-menu--event button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
}

.context-menu--event button:hover {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
}

.context-menu button:hover {
  background: rgba(63, 197, 136, 0.14);
  color: var(--mint-700);
}

.context-menu button:disabled {
  color: rgba(71, 85, 105, 0.5);
  cursor: not-allowed;
  background: transparent;
  opacity: 0.6;
}

.context-menu hr {
  border: none;
  border-top: 1px solid rgba(15, 17, 21, 0.08);
  margin: 4px -2px;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px;
  color: var(--slate-500);
  gap: 16px;
}

.empty-icon {
  font-size: 48px;
}

.details-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  padding: 24px;
  display: grid;
  grid-auto-rows: minmax(0, max-content);
  gap: 20px;
  transition: width 0.3s ease, padding 0.3s ease;
  width: var(--details-panel-width);
  overflow: visible;
}

.details-panel.is-collapsed {
  width: 0;
  padding: 0;
  background: transparent;
  border-left: none;
  box-shadow: none;
  position: relative;
  overflow: visible;
}
.details-panel.is-collapsed .panel-toggle {
  pointer-events: auto;
}

.details-panel__content {
  display: grid;
  gap: 20px;
  transition: opacity 0.2s ease;
}

.details-panel.is-collapsed .details-panel__content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.details-panel.is-collapsed::after {
  content: none;
}

.panel-section {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 17, 21, 0.08);
  box-shadow: var(--shadow-soft);
}

.panel-section[data-section='properties'] .section-header {
  gap: 12px;
  flex-wrap: wrap;
}

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

.guest-list {
  display: grid;
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.guest-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(244, 251, 247, 0.7);
  border: 1px solid rgba(63, 197, 136, 0.18);
}

.guest-card span {
  font-weight: 500;
}

.badge {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(63, 197, 136, 0.12);
  color: var(--mint-600);
  font-size: 0.75rem;
  font-weight: 600;
}

.seat-details {
  min-height: 120px;
}

.seat-details h3 {
  font-size: 1.1rem;
}

.element-inspector {
  display: grid;
  gap: 16px;
}

.element-inspector--group {
  gap: 20px;
}

.group-panel {
  display: grid;
  gap: 16px;
}

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

.group-field input {
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
}

.group-field input:focus {
  border-color: var(--mint-400);
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.12);
}

.group-list {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
}

.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: var(--surface-muted);
}

.group-item__meta {
  display: grid;
  gap: 4px;
}

.group-item__actions {
  display: flex;
  gap: 12px;
}

.group-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.inspector-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.inspector-pill[data-status='open'] {
  background: var(--status-open-surface);
  color: var(--status-open-text);
  border: 1px solid var(--status-open-border);
}

.inspector-pill[data-status='reserved'] {
  background: var(--status-reserved-surface);
  color: var(--status-reserved-text);
  border: 1px solid var(--status-reserved-border);
}

.inspector-pill[data-status='blocked'] {
  background: var(--status-blocked-surface);
  color: var(--status-blocked-text);
  border: 1px solid var(--status-blocked-border);
}

.inspector-field {
  display: grid;
  gap: 6px;
}

.inspector-field span {
  font-weight: 500;
  color: var(--slate-500);
}

.inspector-field input,
.inspector-field select {
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  padding: 10px 12px;
  background: white;
  color: var(--slate-900);
  caret-color: var(--slate-900);
}

.inspector-statuses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inspector-statuses button {
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: 12px;
  padding: 6px 12px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: border 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.inspector-statuses button[data-status='open'] {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.28);
  color: var(--status-open-text);
}

.inspector-statuses button[data-status='reserved'] {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.26);
  color: var(--status-reserved-text);
}

.inspector-statuses button[data-status='blocked'] {
  background: rgba(107, 114, 128, 0.08);
  border-color: rgba(107, 114, 128, 0.22);
  color: var(--status-blocked-text);
}

.inspector-statuses button[data-status='open'].active {
  background: var(--status-open-surface);
  border-color: var(--status-open-border);
  color: var(--status-open-text);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.inspector-statuses button[data-status='reserved'].active {
  background: var(--status-reserved-surface);
  border-color: var(--status-reserved-border);
  color: var(--status-reserved-text);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.inspector-statuses button[data-status='blocked'].active {
  background: var(--status-blocked-surface);
  border-color: var(--status-blocked-border);
  color: var(--status-blocked-text);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.18);
}

.inspector-actions {
  display: flex;
  gap: 10px;
}

.inspector-actions button {
  flex: 1;
  border: 1px solid rgba(15, 17, 21, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  background: white;
  cursor: pointer;
}

.inspector-actions button:hover {
  border-color: var(--mint-400);
}

.seat-meta {
  margin-top: 12px;
  display: grid;
  gap: 6px;
  color: var(--slate-500);
}

.seat-meta span strong {
  color: var(--slate-900);
}

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


.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 12px;
  z-index: 999;
}

.toast {
  padding: 14px 16px;
  background: rgba(15, 17, 21, 0.92);
  color: white;
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toast.success {
  background: linear-gradient(135deg, rgba(63, 197, 136, 0.95), rgba(47, 164, 113, 0.95));
}

.toast.error {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95), rgba(185, 28, 28, 0.95));
}

.toast.info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95));
}

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

.theming-preview {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 17, 21, 0.85);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1000;
  animation: fade-in 0.3s ease;
}

.theming-preview span {
  font-weight: 600;
  color: var(--mint-300);
}

.icon-button.active {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.25);
}

.canvas-element::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(63, 197, 136, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.canvas-element:hover::after,
.canvas-element.selected::after,
.canvas-element.multi-selected::after {
  opacity: 1;
}

.canvas-toolbar {
  position: relative;
}

.canvas-toolbar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(0);
  z-index: -1;
}

.workspace-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.workspace-body {
  position: relative;
}

.workspace-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 17, 21, 0.08));
  pointer-events: none;
  opacity: 0.8;
}


body.auth-locked {
  overflow: hidden;
}

body.auth-locked .app-shell,
body.auth-locked .toast-stack {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 17, 21, 0.55);
  backdrop-filter: blur(18px);
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.login-overlay[aria-hidden='false'] {
  opacity: 1;
  pointer-events: all;
}

.login-card {
  width: min(420px, 90vw);
  background: var(--surface, #fcfcfd);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow-hard);
}

.login-card .material-symbol {
  font-size: 22px;
}

.login-headline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-headline h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate-900);
}

.login-actions {
  display: grid;
  gap: 12px;
}

.login-hint {
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--slate-400);
  text-align: center;
}

.login-error {
  min-height: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e11d48;
}

.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-button .material-symbol {
  font-variation-settings: 'FILL' 1;
  opacity: 0.85;
}
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 17, 21, 0.48);
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal[aria-hidden='false'] {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  width: min(420px, 90vw);
  background: white;
  border-radius: 20px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-hard);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.publish-modal .modal-content {
  width: min(640px, 95vw);
  gap: 24px;
}

.publish-modal__body {
  display: grid;
  gap: 20px;
}

.publish-preview {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.04);
}

.publish-preview__empty {
  color: var(--slate-400);
  font-weight: 500;
}

.publish-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-summary {
  display: grid;
  gap: 16px;
}

.publish-summary__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.publish-share {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 17, 21, 0.06);
  background: rgba(244, 247, 250, 0.72);
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.03);
}

.publish-share__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.publish-share__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.publish-share__input {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-700);
}

.publish-share__input:focus {
  outline: none;
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.15);
}

.publish-share .icon-button {
  width: 42px;
  height: 42px;
  background: rgba(63, 197, 136, 0.12);
  color: var(--mint-600);
}

.publish-share .icon-button:hover {
  background: rgba(63, 197, 136, 0.2);
}

.publish-share .icon-button:disabled {
  background: rgba(226, 232, 240, 0.7);
  color: var(--slate-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.publish-share__status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate-400);
}

.publish-share__status[data-tone='success'] {
  color: var(--mint-600);
}

.publish-share__status[data-tone='success'] {
  color: var(--mint-600);
}

.publish-summary__item .label {
  color: var(--slate-500);
  font-size: 0.875rem;
}

.publish-summary__item .value {
  font-size: 1rem;
  color: var(--slate-900);
}

.publish-confirm-modal .modal-content {
  width: min(400px, 90vw);
  text-align: center;
}

.publish-confirmation-message {
  color: var(--slate-500);
}

.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.muted {
  color: var(--slate-400);
}

.field .input-with-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field .input-with-button:focus-within {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.12);
}

.field .input-with-button input {
  border: none;
  padding: 12px 14px;
}

.field .input-with-addon {
  position: relative;
}

.field .input-with-addon input {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  padding: 12px 46px 12px 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field .input-with-addon input:focus {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.12);
  outline: none;
}

.input-inline-button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--mint-600);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.input-inline-button:hover {
  background: rgba(63, 197, 136, 0.12);
}

.numeric-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  background: white;
  overflow: hidden;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.numeric-stepper:focus-within {
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.12);
}

.numeric-stepper input {
  border: none;
  text-align: center;
  font-weight: 600;
  padding: 12px 0;
}

.stepper-button {
  display: grid;
  place-items: center;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mint-600);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.stepper-button:hover {
  background: rgba(63, 197, 136, 0.12);
}

.stepper-button:disabled {
  color: var(--slate-300);
  cursor: not-allowed;
  background: transparent;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 320px minmax(0, 1fr);
  }

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

  .details-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: min(360px, 100vw);
    height: 100vh;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 900;
  }

  .details-panel.open {
    transform: translateX(0);
  }
}

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

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(360px, 100vw);
    z-index: 950;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle[data-action='closeSidebar'] {
    display: flex;
    margin-left: auto;
  }

  .workspace {
    margin-left: 0;
  }

  .workspace-header {
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
  }

  .canvas-toolbar {
    padding: 12px 16px;
  }

  .sidebar-toggle[data-action='openSidebar'] {
    display: flex;
    margin-right: auto;
  }

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

  .logout-button {
    height: 36px;
    padding-inline: 12px;
  }

  .login-card {
    padding: 28px;
  }
}

.datetime-picker {
  position: relative;
}

.datetime-picker.with-helper {
  display: grid;
  gap: 6px;
}

.datetime-picker__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.field-helper {
  font-size: 13px;
  color: var(--slate-400);
  font-weight: 500;
}

.datetime-picker__display {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  color: var(--slate-600);
  font-weight: 500;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.datetime-picker__display:hover {
  background: var(--surface-muted);
}

.datetime-picker__display:focus-visible {
  outline: none;
  border-color: var(--mint-400);
  box-shadow: 0 0 0 3px rgba(63, 197, 136, 0.12);
}

.datetime-picker__value {
  flex: 1;
  text-align: left;
  color: var(--slate-500);
}

.datetime-picker__display.has-value .datetime-picker__value {
  color: var(--slate-900);
  font-weight: 600;
}

.datetime-picker__display span.material-symbol {
  color: var(--mint-600);
}

.plan-context-menu {
  position: fixed;
  min-width: 180px;
  padding: 6px;
  background: white;
  border: 1px solid rgba(15, 17, 21, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 48px -18px rgba(15, 17, 21, 0.35);
  z-index: 1200;
  display: grid;
  gap: 4px;
}

.plan-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  color: var(--slate-600);
  cursor: pointer;
}

.plan-context-menu button:hover,
.plan-context-menu button:focus-visible {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  outline: none;
}

