.dashboard-shell,
.dashboard-main,
.main-stage,
.seatmap-layout,
.seatmap-content,
.seatmap-board-panel,
.seatmap-sidebar {
  min-height: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-screen {
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.42), rgba(30, 41, 59, 0.18)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80")
      center center / cover no-repeat;
}

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

.login-card h1,
.dashboard-header h2,
.stage-topline h3 {
  margin: 0;
}

.login-card {
  width: min(640px, 100%);
  min-height: 210px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(71, 85, 105, 0.34);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(14px);
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 23, 42, 0.08));
}

.login-brand .eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.login-brand h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.login-form-wrap {
  padding: 24px 20px;
  display: grid;
  align-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.12);
}

.login-card label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.login-card input {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 11px;
  outline: none;
}

.login-card input::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.login-card input:focus {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.login-card button,
.ghost-button,
.stage-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.login-card button {
  margin-top: 2px;
  border: none;
  color: #fff;
  background: rgba(31, 41, 55, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
  min-height: 34px;
  border-radius: 999px;
  font-size: 11px;
}

.helper-text {
  margin: 0;
  min-height: 16px;
  font-size: 10px;
  color: rgba(248, 250, 252, 0.8);
}

.helper-text:empty {
  visibility: hidden;
}

.dashboard-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-header {
  min-height: 68px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-text);
  border-bottom: 1px solid #d7dee8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.header-left,
.header-right,
.brand-block,
.header-actions {
  position: relative;
  z-index: 2;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
  min-width: 0;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-block {
  flex: 0 0 auto;
  width: 180px;
}

.dashboard-header .eyebrow {
  color: var(--color-accent);
  margin-bottom: 2px;
}

.dashboard-header h2 {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.header-center {
  display: inline-flex;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
  z-index: 1;
  flex: 0 0 auto;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 4px;
  border-radius: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill.active {
  background: transparent;
  border-bottom-color: var(--color-accent);
  color: var(--color-text);
}

.nav-pill.muted {
  color: #94a3b8;
}

.nav-pill:hover {
  transform: none;
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-left: 18px;
  border-left: 1px solid #dbe2ea;
}

.header-date-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 0;
  flex: 0 0 auto;
  min-width: 0;
}

.header-date-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.header-date-field {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
}

.header-date-field input {
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  outline: none;
}

.header-date-field select {
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  appearance: none;
  padding-right: 8px;
}

.header-date-sep {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
}

.ghost-button {
  min-height: 34px;
  border: 1px solid #dbe2ea;
  background: #fff;
  color: var(--color-text);
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.icon-button:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--color-accent);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ghost-button-soft {
  background: #f8fafc;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
}

.user-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  flex: 0 0 auto;
}

.user-chip-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.user-chip-text strong,
.user-chip-text em {
  font-size: 11px;
  font-style: normal;
}

.user-chip-text strong {
  color: var(--color-text);
}

.user-chip-text em {
  color: var(--color-text-muted);
}

.user-chip-caret {
  color: var(--color-text-muted);
  font-size: 10px;
  line-height: 1;
}

.user-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 14px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(12px);
  z-index: 30;
}

.user-popover-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  padding: 6px 0;
  color: var(--color-text);
}

.user-popover-row + .user-popover-row {
  border-top: 1px solid #eef2f7;
}

.user-popover-label {
  color: var(--color-text-muted);
  font-weight: 700;
}

.user-popover-action {
  width: 100%;
  margin-top: 10px;
  min-height: 38px;
  border: none;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-main {
  flex: 1;
  height: calc(100dvh - 68px);
  padding: 0;
  overflow: hidden;
}

.main-stage {
  height: calc(100dvh - 68px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage-frame {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.stage-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.stage-empty {
  flex: 1;
  min-height: 0;
  background: transparent;
}

.seatmap-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.92)),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 32%);
}

.seatmap-topbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: end;
  gap: 16px;
}

.seatmap-office-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  grid-column: 2;
}

.seatmap-office-tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.seatmap-office-tab.active {
  border-color: rgba(15, 118, 110, 0.22);
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.seatmap-topbar h3,
.seatmap-panel-head h4 {
  margin: 0;
}

.seatmap-topbar .eyebrow {
  margin-bottom: 4px;
}

.seatmap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  grid-column: 3;
}

.seatmap-actions[hidden] {
  display: none !important;
}

.seatmap-status {
  min-height: 20px;
  margin: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.seatmap-status[data-tone="error"] {
  color: #b91c1c;
}

.seatmap-status[data-tone="success"] {
  color: #047857;
}

.seatmap-content {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  overflow: hidden;
}

.seatmap-board-panel,
.seatmap-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.seatmap-board-panel {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.seatmap-board-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  padding: 0;
  overscroll-behavior: contain;
  cursor: grab;
}

.seatmap-board-wrap.is-panning {
  cursor: grabbing;
}

.seatmap-board {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.seatmap-dxf-canvas {
  position: relative;
  min-width: 100%;
  min-height: 100%;
  padding: 72px 24px 24px;
  border-radius: 24px;
  overflow: visible;
  box-shadow: none;
  background: #ffffff;
}

.seatmap-dxf-frame-shell {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
}

.seatmap-dxf-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: transparent;
}

.seatmap-dxf-drop-overlay.is-active {
  pointer-events: auto;
}

.seatmap-dxf-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

.seatmap-dxf-viewer-head {
  position: sticky;
  top: 16px;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  pointer-events: none;
}

.seatmap-viewer-chip,
.seatmap-viewer-fit {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(21, 35, 48, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: #627286;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(21, 35, 48, 0.08);
}

.seatmap-viewer-fit {
  border: none;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #115e59);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.seatmap-dxf-canvas-surface {
  display: block;
  width: 100%;
  height: 680px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(21, 35, 48, 0.08);
  box-shadow: 0 22px 48px rgba(21, 35, 48, 0.06);
  cursor: grab;
}

.seatmap-dxf-canvas-surface.dragging {
  cursor: grabbing;
}

.seatmap-dxf-stage {
  position: relative;
  transform-origin: top left;
  transition: width 0.12s ease-out, height 0.12s ease-out;
  margin: 0 auto;
}

.seatmap-dxf-preview {
  position: relative;
  z-index: 1;
  line-height: 0;
  filter: none;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 48, 0.08);
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(21, 35, 48, 0.06);
}

.seatmap-preview-svg {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.seatmap-preview-svg .seatmap-dxf-entity {
  stroke: rgba(21, 35, 48, 0.16) !important;
  stroke-opacity: 1 !important;
  stroke-width: 4 !important;
}

.seatmap-preview-svg .seatmap-dxf-chair-entity {
  stroke: rgba(15, 118, 110, 0.96) !important;
  stroke-opacity: 1 !important;
  stroke-width: 5.5 !important;
}

.seatmap-preview-svg rect {
  fill: #fff !important;
}

.seatmap-dxf-slots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.seatmap-slot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  pointer-events: auto;
  transition: box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.seatmap-slot.editable:hover {
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.18);
  background: rgba(15, 118, 110, 0.08);
  transform: translate(-50%, -50%) scale(1.06);
}

.seatmap-slot.occupied {
  width: 34px;
  min-height: 34px;
  background: transparent;
}

.seatmap-slot.empty {
  opacity: 0.72;
}

.seatmap-slot[data-slot-id]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.28);
  border: 1px solid rgba(15, 118, 110, 0.55);
}

.seatmap-slot.occupied::after {
  width: 14px;
  height: 14px;
  background: rgba(220, 38, 38, 0.3);
  border-color: rgba(220, 38, 38, 0.72);
}

.seatmap-slot:hover::after {
  width: 16px;
  height: 16px;
}

.seatmap-canvas {
  position: relative;
  width: min(100%, 1240px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
}

.seatmap-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.seatmap-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--seatmap-cols), 1fr);
  grid-template-rows: repeat(var(--seatmap-rows), 1fr);
  gap: var(--seatmap-gap);
  padding: var(--seatmap-gap);
}

.seatmap-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.12);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.seatmap-cell.editable:hover {
  border-color: rgba(14, 165, 233, 0.62);
  background: rgba(14, 165, 233, 0.12);
}

.seatmap-cell.occupied {
  background: rgba(255, 255, 255, 0.18);
}

.seatmap-cell-label {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.seatmap-member-card {
  position: absolute;
  inset: 22px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  color: #fff;
  overflow: hidden;
}

.seatmap-member-card.draggable {
  cursor: grab;
}

.seatmap-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.2);
}

.seatmap-member-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seatmap-member-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.seatmap-member-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seatmap-member-text strong,
.seatmap-member-text em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seatmap-member-text strong {
  font-size: 12px;
}

.seatmap-member-text em {
  color: rgba(226, 232, 240, 0.84);
  font-size: 10px;
  font-style: normal;
}

.seatmap-sidebar {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seatmap-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.seatmap-sidebar .seatmap-panel:last-child {
  flex: 1;
}

.seatmap-panel-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
}

.seatmap-form,
.seatmap-form-grid {
  display: grid;
  gap: 10px;
}

.seatmap-form label,
.seatmap-form > div,
.seatmap-search {
  display: grid;
  gap: 6px;
}

.seatmap-form span {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.seatmap-form input,
.seatmap-search input,
.seatmap-form button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  border-radius: 12px;
  font: inherit;
}

.seatmap-form input,
.seatmap-search input {
  border: 1px solid #d7dee8;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
}

.seatmap-file-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #d7dee8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  cursor: pointer;
}

.seatmap-file-input input {
  display: none;
}

.seatmap-file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.seatmap-file-name {
  min-width: 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seatmap-form button {
  border: 0;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.seatmap-member-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.seatmap-member-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seatmap-member-section + .seatmap-member-section {
  margin-top: 6px;
}

.seatmap-member-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seatmap-member-section-head strong {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.seatmap-member-section-head span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.seatmap-member-section-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seatmap-member-list .seatmap-member-card {
  position: relative;
  inset: auto;
}

.seatmap-member-search-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.seatmap-member-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.seatmap-member-badge.occupied {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.seatmap-member-card-compact {
  position: relative;
  inset: auto;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #3f4658;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: none;
}

.seatmap-member-text-inline {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.seatmap-member-text-inline strong {
  font-size: 13px;
}

.seatmap-member-text-inline em {
  display: inline;
  color: rgba(226, 232, 240, 0.8);
  font-size: 11px;
}

.seatmap-slot .seatmap-member-card {
  inset: auto;
  left: 50%;
  top: 50%;
  min-width: 48px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  padding: 3px 4px;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.seatmap-slot .seatmap-member-avatar {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.seatmap-slot .seatmap-member-text strong {
  font-size: 8px;
}

.seatmap-slot .seatmap-member-text em {
  display: none;
}

.seatmap-dxf-stage {
  cursor: grab;
}

.seatmap-list-empty,
.seatmap-empty-card {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.8);
  color: #64748b;
  text-align: center;
  padding: 18px;
}

.seatmap-empty-card strong {
  display: block;
  color: #0f172a;
  margin-bottom: 8px;
}

.seatmap-list-empty-inline {
  min-height: 64px;
  padding: 12px;
}

@media (max-width: 1180px) {
  .dashboard-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-left,
  .header-right {
    width: 100%;
  }

  .header-right {
    justify-content: space-between;
  }

  .header-center {
    position: static;
    transform: none;
    order: 2;
    width: auto;
    justify-content: flex-end;
    margin-top: 8px;
    overflow-x: auto;
  }

  .header-actions {
    flex-wrap: wrap;
    padding-left: 0;
    border-left: 0;
  }

  .header-date-controls {
    order: 2;
    width: auto;
    justify-content: flex-start;
    margin-left: 0;
    margin-top: 8px;
  }

  .seatmap-content {
    grid-template-columns: 1fr;
  }

  .seatmap-sidebar {
    order: -1;
  }
}

@media (max-width: 980px) {
  .login-screen {
    padding: 16px;
  }

  .login-backdrop {
    min-height: calc(100vh - 32px);
  }

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

  .login-brand {
    padding: 40px 28px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .login-form-wrap {
    padding: 28px;
  }

  .seatmap-layout {
    padding: 12px;
  }

  .seatmap-topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .seatmap-office-tabs {
    grid-column: 1;
    justify-content: center;
  }

  .seatmap-dxf-canvas {
    padding: 68px 16px 16px;
  }

  .seatmap-dxf-canvas-surface {
    height: 620px;
  }

  .seatmap-dxf-frame-shell,
  .seatmap-dxf-frame {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 0;
  }

  .main-stage {
    height: calc(100vh - 68px);
  }

  .seatmap-board {
    min-width: 640px;
  }

  .seatmap-member-card {
    inset: 20px 4px 4px;
    padding: 6px;
    gap: 6px;
  }

  .seatmap-member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .seatmap-member-text strong {
    font-size: 11px;
  }

  .seatmap-member-text em {
    font-size: 9px;
  }
}
