:root {
  --ink: #17213e;
  --muted: #69738d;
  --paper: #f3f6fb;
  --line: #dce3ef;
  --blue: #1e3ab8;
  --blue-dark: #13298a;
  --blue-soft: #e9edff;
  --mint: #58d5c3;
  --yellow: #ffd166;
  --shadow: 0 18px 45px rgba(28, 47, 112, 0.11);
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 96% 2%, rgba(88, 213, 195, 0.2), transparent 22rem),
    linear-gradient(135deg, #fafbff, var(--paper));
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.app {
  min-height: 100vh;
  padding: 22px;
}
.shell {
  width: min(1540px, 100%);
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  gap: 4px;
  padding: 10px;
  background: var(--blue);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(30, 58, 184, 0.23);
}
.brand-mark i {
  width: 11px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
}
.brand-mark i:nth-child(2) {
  background: var(--mint);
}
.brand-mark i:nth-child(3) {
  background: var(--yellow);
}
.brand h1 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.saved {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.83rem;
}
.saved:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36a675;
}
.workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.panel,
.stage {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(220, 227, 239, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  overflow: clip;
}
.panel-head {
  flex: 0 0 auto;
  padding: 19px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 17px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.section + .section {
  margin-top: 23px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title h3 {
  margin: 0;
  font-size: 0.92rem;
}
.count-pill {
  padding: 3px 8px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}
.room-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.choice {
  position: relative;
  display: block;
}
.choice input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.room-choice {
  display: block;
  padding: 10px 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  background: #fbfcff;
  transition: 0.15s;
}
.room-choice strong {
  display: block;
  font-size: 0.88rem;
}
.room-choice span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.69rem;
}
.choice input:checked + .room-choice {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #9baaf1;
  box-shadow: inset 0 0 0 1px #9baaf1;
}
.choice input:focus-visible + .room-choice,
.choice input:focus-visible + .class-choice {
  outline: 3px solid rgba(30, 58, 184, 0.22);
  outline-offset: 2px;
}
.class-tools {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 7px;
  margin-bottom: 9px;
}
.search,
.filter-select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4e5;
  border-radius: 9px;
  outline: 0;
  font-size: 0.8rem;
}
.search:focus,
.filter-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 184, 0.1);
}
.class-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.class-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
  transition: 0.15s;
}
.class-choice strong {
  font-size: 0.79rem;
  overflow-wrap: anywhere;
}
.class-choice span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.7rem;
}
.choice input:checked + .class-choice {
  background: var(--blue-soft);
  border-color: #9baaf1;
  color: var(--blue);
}
.panel-actions {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 14px 20px 19px;
  border-top: 1px solid var(--line);
  background: white;
}
.btn {
  min-height: 43px;
  padding: 9px 13px;
  border-radius: 11px;
  font-weight: 820;
  border: 1px solid transparent;
}
.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(30, 58, 184, 0.2);
}
.btn-primary:hover {
  background: var(--blue-dark);
}
.btn-secondary {
  color: var(--blue);
  background: var(--blue-soft);
}
.stage {
  min-width: 0;
  overflow: hidden;
}
.stage-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.stage-title input {
  width: min(420px, 100%);
  height: auto;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.21rem;
  font-weight: 850;
  letter-spacing: -0.025em;
}
.stage-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.stage-actions {
  display: flex;
  gap: 8px;
}
.quiet {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 11px;
  color: #48536e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.79rem;
  font-weight: 750;
}
.quiet:hover {
  background: #f8faff;
  border-color: #b7c1d8;
}
.quiet svg {
  width: 16px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  padding: 15px 20px 0;
}
.metric {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbfe;
}
.metric strong {
  display: block;
  font-size: 1.11rem;
  line-height: 1.15;
}
.metric span {
  color: var(--muted);
  font-size: 0.73rem;
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px 0;
  overflow: auto;
}
.tab {
  min-width: 92px;
  padding: 9px 13px;
  color: #53607c;
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.81rem;
  font-weight: 800;
}
.tab.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.tab small {
  display: block;
  margin-top: 1px;
  font-size: 0.64rem;
  font-weight: 650;
  opacity: 0.78;
}
.canvas-wrap {
  padding: 17px 20px 20px;
  overflow: auto;
}
.room-canvas {
  min-width: 670px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(#fbfdff, #f4f8fc);
}
.room-name {
  text-align: center;
  margin: 0 0 9px;
  font-size: 1rem;
}
.seat-rows {
  display: grid;
  gap: 9px;
}
.seat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
}
.seat-row .aisle {
  margin-left: 42px;
}
.desk {
  display: grid;
  grid-template-columns: repeat(var(--desk-seats, 2), 86px);
  gap: 4px;
  padding: 4px;
  background: #4b9cf5;
  border-radius: 9px;
  box-shadow: 0 4px 8px rgba(36, 111, 195, 0.17);
}
.seat {
  position: relative;
  min-height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border: 0;
  border-radius: 6px;
  background: #8fc7ff;
  color: #0b427a;
  text-align: center;
  line-height: 1.08;
  font-size: 0.67rem;
  font-weight: 780;
  overflow-wrap: anywhere;
  user-select: none;
}
.seat.occupied {
  background: #fff;
  color: var(--ink);
  cursor: grab;
}
.seat.occupied:active {
  cursor: grabbing;
}
.seat.locked {
  background: #fff2c8;
}
.seat.dragging {
  opacity: 0.4;
}
.seat.drag-over {
  outline: 3px solid var(--yellow);
  transform: scale(1.03);
}
.seat-number {
  position: absolute;
  top: 2px;
  left: 4px;
  color: #5795d6;
  font-size: 0.52rem;
  font-weight: 700;
}
.seat-name {
  padding-top: 5px;
}
.lock {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #98a2b8;
  background: transparent;
  font-size: 0.63rem;
}
.locked .lock {
  color: #8b6500;
  background: rgba(255, 209, 102, 0.28);
}
.teacher {
  width: 130px;
  margin: 8px auto 17px;
  padding: 7px;
  text-align: center;
  color: white;
  background: #7e899d;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
}
.whiteboard {
  width: 260px;
  height: 8px;
  margin: 0 auto;
  background: white;
  border: 1px solid #aab4c5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}
.room-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.72rem;
}
.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 5px;
}
.unplaced {
  display: none;
  margin: 0 20px 20px;
  padding: 12px 13px;
  color: #784500;
  background: #fff2d7;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 650;
}
.unplaced.show {
  display: block;
}
.empty-stage {
  padding: 70px 25px;
  text-align: center;
  color: var(--muted);
}
.empty-stage strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 1rem;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  padding: 12px 16px;
  color: #fff;
  background: #202a47;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(17, 25, 52, 0.25);
  font-size: 0.84rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 25, 52, 0.55);
  backdrop-filter: blur(4px);
}
.login-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  padding: 34px 38px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(17, 25, 52, 0.35);
}
.login-card h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ink);
}
.login-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6480;
}
.login-error {
  color: #c0392b;
  font-weight: 700;
}
.desk-spacer {
  /* Samma bredd som en dubbelbänk: 2 × 86px + gap 4px + padding 2 × 4px */
  width: 184px;
  flex: 0 0 184px;
}
.hidden {
  display: none !important;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.back-button {
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}
.back-button:hover {
  background: var(--blue-soft);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fixed-name-control {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.fixed-name-control .section-title {
  margin-bottom: 8px;
}
.fixed-name-control .section-title h3 {
  font-size: 0.82rem;
}
.canvas-wrap:fullscreen {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f3f6fb;
  overflow: auto;
}
.canvas-wrap:fullscreen .room-canvas {
  width: min(1450px, 100%);
  min-width: 670px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(28, 47, 112, 0.18);
}
body.plan-focus {
  overflow: hidden;
}
body.plan-focus .shell > header,
body.plan-focus .home-view,
body.plan-focus .tool-view:not(#seatingView),
body.plan-focus #seatingView > .panel,
body.plan-focus #seatingView .stage > *:not(#canvasWrap) {
  display: none !important;
}
body.plan-focus #seatingView,
body.plan-focus #seatingView .stage,
body.plan-focus #seatingView #canvasWrap {
  display: grid !important;
}
body.plan-focus #seatingView {
  position: fixed;
  inset: 0;
  z-index: 1000;
  grid-template-columns: 1fr;
  background: #f3f6fb;
}
body.plan-focus #seatingView .stage {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.plan-focus #seatingView #canvasWrap {
  place-items: center;
  padding: 24px;
}
.home-view {
  padding: 34px 0 10px;
}
.home-intro {
  max-width: 660px;
  margin: 0 auto 28px;
  text-align: center;
}
.home-intro h2 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.045em;
}
.home-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.tool-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tool-card {
  min-height: 225px;
  padding: 25px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #a9b6ee;
  box-shadow: 0 22px 50px rgba(28, 47, 112, 0.16);
}
.tool-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 15px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 1.55rem;
  font-weight: 900;
}
.tool-card:nth-child(2) .tool-icon {
  color: #087b6d;
  background: #dcf7f2;
}
.tool-card:nth-child(3) .tool-icon {
  color: #9b5e00;
  background: #fff2cf;
}
.tool-card h3 {
  margin: 0 0 7px;
  font-size: 1.16rem;
}
.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.import-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 18px;
  padding: 20px 25px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.import-bar h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.import-bar p {
  margin: 0;
  font-size: 0.85rem;
}
.import-bar .import-help {
  margin-top: 4px;
  color: var(--muted);
}
.import-actions {
  display: flex;
  gap: 8px;
}
.name-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.name-toggle {
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfcff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}
.name-toggle.active {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #9baaf1;
}
.name-toggle:focus-visible {
  outline: 3px solid rgba(30, 58, 184, 0.22);
}
.seat.first-only {
  font-size: 0.82rem;
}
.tool-panel-select,
.number-input {
  width: 100%;
  height: 42px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd4e5;
  border-radius: 9px;
  outline: 0;
}
.tool-panel-select:focus,
.number-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 184, 0.1);
}
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
}
.helper {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}
.group-board {
  padding: 19px 20px 22px;
}
.group-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.student-group {
  min-height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faff;
}
.student-group.drag-over {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue-soft);
}
.student-group h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.9rem;
}
.student-group h3 span {
  color: var(--muted);
  font-size: 0.72rem;
}
.student-list {
  display: grid;
  gap: 7px;
  min-height: 48px;
}
.student-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid #d9e1ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(29, 48, 101, 0.05);
  font-size: 0.76rem;
  font-weight: 750;
  cursor: grab;
}
.student-chip:active {
  cursor: grabbing;
}
.student-chip select {
  max-width: 72px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 0.66rem;
}
.empty-group {
  padding: 14px 5px;
  color: #98a2b8;
  text-align: center;
  font-size: 0.74rem;
}
.group-empty-state {
  padding: 75px 25px;
  text-align: center;
  color: var(--muted);
}
.group-empty-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}
.speaker-stage {
  padding: 32px 24px 28px;
  text-align: center;
}
.speaker-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.speaker-name {
  min-height: 140px;
  display: grid;
  place-items: center;
  margin: 16px auto 20px;
  padding: 24px;
  border: 1px solid #cad6ed;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.speaker-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}
.speaker-actions .btn {
  min-width: 170px;
}
.speaker-meta {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.speaker-history {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.history-chip {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #53607c;
  font-size: 0.72rem;
}
.compact-stage {
  min-height: 560px;
}
@media (max-width: 930px) {
  .tool-cards {
    grid-template-columns: 1fr;
  }
  .tool-card {
    min-height: 0;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .panel {
    position: static;
    max-height: none;
  }
  .panel-scroll {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }
  .section + .section {
    margin: 0;
    padding: 0 0 0 20px;
    border: 0;
    border-left: 1px solid var(--line);
  }
}
@media (max-width: 620px) {
  .app {
    padding: 13px;
  }
  .brand p,
  .saved {
    display: none;
  }
  .header-left {
    gap: 7px;
  }
  .back-button {
    font-size: 0;
  }
  .back-button:after {
    content: "←";
    font-size: 1rem;
  }
  .panel,
  .stage {
    border-radius: 16px;
  }
  .panel-scroll {
    display: block;
  }
  .section + .section {
    margin-top: 22px;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stage-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .stage-actions {
    width: 100%;
  }
  .quiet {
    flex: 1;
    justify-content: center;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .class-list {
    grid-template-columns: 1fr;
  }
  .speaker-stage {
    padding: 22px 14px;
  }
  .student-chip {
    align-items: flex-start;
    flex-direction: column;
  }
  .student-chip select {
    max-width: none;
    width: 100%;
  }
}
@media print {
  body {
    background: #fff;
  }
  .app {
    padding: 0;
  }
  header,
  .home-view,
  .panel,
  .stage-actions,
  .metrics,
  .tabs,
  .room-legend,
  .unplaced {
    display: none !important;
  }
  .tool-view {
    display: none !important;
  }
  .tool-view.active {
    display: block !important;
  }
  .workspace.active {
    display: block !important;
  }
  .stage {
    border: 0;
    box-shadow: none;
  }
  .stage-head {
    min-height: auto;
    padding: 0 0 12px;
  }
  .canvas-wrap,
  .group-board {
    padding: 0;
    overflow: visible;
  }
  .room-canvas {
    min-width: 0;
    border: 0;
    padding: 0;
  }
  .desk {
    grid-template-columns: repeat(2, 1fr);
    break-inside: avoid;
  }
  .seat {
    font-size: 0.56rem;
  }
  .lock,
  .student-chip select {
    display: none;
  }
  .student-group {
    break-inside: avoid;
  }
}
