:root {
  --bg: #f8f9fa;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --ink: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --brand: #e85d04;
  --brand-2: #d45103;
  --danger: #b91c1c;
  --accent: #e85d04;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--ink);
  position: relative;
  overflow-x: auto;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.16;
  pointer-events: none;
}

.bg-orb-a {
  width: 380px;
  height: 380px;
  background: #ffd9c5;
  right: -120px;
  top: -110px;
}

.bg-orb-b {
  width: 340px;
  height: 340px;
  background: #e9ecef;
  left: -100px;
  bottom: -120px;
}

.app-shell {
  width: min(1220px, 96vw);
  margin: 20px auto 28px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(120deg, #1a1d21 0%, #252a30 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.topbar h1 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.topbar p {
  margin: 4px 0 0;
  opacity: 0.92;
}

.tabs {
  margin-top: 14px;
  display: inline-flex;
  padding: 6px;
  border-radius: 10px;
  background: #f1f3f4;
  border: 1px solid var(--line);
}

.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tab.active {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(212, 81, 3, 0.25);
}

.panel {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.panel.active {
  display: block;
  animation: panelIn 180ms ease-out;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 8px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}

.mode-switch,
.nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 11px;
  background: #f8f9fa;
  border: 1px solid var(--line);
}

.filter-group label {
  margin: 0;
  font-weight: 700;
  color: #334155;
}

.btn-select {
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 600;
  min-width: 170px;
}

.week-hours {
  font-size: 0.82rem;
  font-weight: 800;
  color: #7c2d12;
  background: #fff3e8;
  border: 1px solid #ffd3b5;
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
  display: none;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn:hover {
  background: #f8f9fa;
  border-color: var(--accent);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
}

.btn-mode.active {
  background: #fff3e8;
  border-color: #ffd3b5;
  color: #9a3412;
}

.btn-ghost {
  background: #ffffff22;
  border-color: #ffffff55;
  color: inherit;
}

.notice {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffe69c;
}

.hidden {
  display: none !important;
}

#planningContainer {
  margin-top: 14px;
  overflow: visible;
  padding: 2px 2px 8px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 0 2px 2px;
}

.month-head {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  font-weight: 700;
  position: sticky;
  top: 74px;
  z-index: 12;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 0;
}

.day-cell {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 8px;
  background: var(--panel-solid);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.day-cell.today {
  outline: 2px solid #60a5fa;
}

.day-cell.outside {
  opacity: 0.45;
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 800;
}

.shift-chip {
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 3px 6px;
  margin-bottom: 4px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  cursor: default;
}

.shift-chip button {
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  padding: 2px 6px;
}

.week-vertical {
  --slot-h: 24px;
  display: grid;
  grid-template-columns: 74px repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding-bottom: 6px;
  align-items: start;
}

.week-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 11px;
  padding: 12px;
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.time-col {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-solid);
  position: sticky;
  left: 0;
  z-index: 2;
}

.time-head {
  padding: 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 6;
}

.time-body {
  position: relative;
  height: calc(var(--slot-h) * 38);
}

.time-mark {
  height: calc(var(--slot-h) * 2);
  border-top: 1px solid #e8edf6;
  padding: 2px 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.week-v-day {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-solid);
  overflow: visible;
  min-width: 0;
}

.week-v-day:hover {
  z-index: 16;
}

.week-v-day.today {
  outline: 2px solid #60a5fa;
}

.week-v-title {
  padding: 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 5;
}

.week-v-body {
  position: relative;
  height: calc(var(--slot-h) * 38);
  user-select: none;
}

.week-v-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(38, var(--slot-h));
}

.week-v-line {
  border-top: 1px solid #eef2f8;
}

.week-v-line:nth-child(2n + 1) {
  border-top-color: #e2e8f0;
}

.week-v-selection {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.24);
  border: 1px dashed #2563eb;
  display: none;
  z-index: 2;
}

.week-v-body-target {
  box-shadow: inset 0 0 0 2px #60a5fa;
}

.week-v-preview {
  position: absolute;
  left: 6px;
  z-index: 4;
  display: none;
  font-size: 0.71rem;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #c7d2fe;
  border-radius: 7px;
  padding: 2px 5px;
  pointer-events: none;
}

.week-v-shifts {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.week-v-shift {
  position: absolute;
  border-radius: 8px;
  color: #fff;
  padding: 2px 4px 3px;
  overflow: visible;
  cursor: default;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.2);
}

.week-v-shift:hover {
  z-index: 18;
}

.week-v-time {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  padding-right: 0;
  white-space: nowrap;
  pointer-events: none;
}

.week-v-employee {
  position: absolute;
  left: 2px;
  top: 26px;
  bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.05;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.96;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.week-v-info-zone {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 26%;
  bottom: 26%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  cursor: default;
}

.week-v-info-zone::after {
  content: attr(data-tip);
  position: absolute;
  left: 4px;
  bottom: calc(100% + 6px);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 0.68rem;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  transition: opacity 90ms ease-out, transform 90ms ease-out;
  z-index: 30;
}

.week-v-info-zone:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.week-v-shift-compact .week-v-time,
.week-v-shift-compact .week-v-employee {
  display: none;
}

.week-v-time-hidden .week-v-time {
  display: none;
}

.week-v-shift-compact .week-v-info-zone {
  top: 10%;
  bottom: 10%;
}

.week-v-shift button {
  position: absolute;
  top: 2px;
  right: 2px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.68rem;
  padding: 1px 4px;
}

.week-v-origin-dim {
  opacity: 0.35;
}

.week-v-ghost {
  border: 2px dashed rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15), 0 6px 14px rgba(15, 23, 42, 0.2);
}

.week-v-ghost .week-v-handle {
  display: none;
}

.week-v-handle {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 4px;
  margin-left: -7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  cursor: ns-resize;
  z-index: 4;
}

.week-v-handle-top {
  top: 1px;
}

.week-v-handle-bottom {
  bottom: 1px;
}

.tab-help {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.02rem;
  font-weight: 900;
}

.trash-drop {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 90;
  min-width: 180px;
  text-align: center;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px dashed #ef4444;
  background: rgba(254, 226, 226, 0.96);
  color: #991b1b;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(153, 27, 27, 0.2);
  pointer-events: none;
  transition: transform 120ms ease-out, background 120ms ease-out, border-color 120ms ease-out;
}

.trash-drop.active {
  transform: translateX(-50%) scale(1.05);
  background: rgba(252, 165, 165, 0.98);
  border-color: #b91c1c;
}

.help-dialog {
  width: min(880px, 94vw);
  border: 1px solid #cfe0f5;
}

.help-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.help-form {
  padding: 4px;
}

.help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.help-head h3 {
  margin: 0;
}

.help-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.help-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  animation: helpStepIn 280ms ease both;
}

.help-step:nth-child(2) { animation-delay: 45ms; }
.help-step:nth-child(3) { animation-delay: 90ms; }
.help-step:nth-child(4) { animation-delay: 135ms; }
.help-step:nth-child(5) { animation-delay: 170ms; }
.help-step:nth-child(6) { animation-delay: 205ms; }
.help-step:nth-child(7) { animation-delay: 240ms; }

.help-step h4 {
  margin: 8px 0 5px;
  font-size: 0.95rem;
}

.help-step p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #334155;
}

.help-anim {
  position: relative;
  height: 60px;
  border-radius: 10px;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
  overflow: hidden;
}

.help-anim-create .help-slot {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #d7e3f3;
}

.help-anim-create .help-slot:nth-child(1) { top: 14px; }
.help-anim-create .help-slot:nth-child(2) { top: 28px; }
.help-anim-create .help-slot:nth-child(3) { top: 42px; }

.help-drag {
  position: absolute;
  left: 22%;
  width: 24%;
  top: 10px;
  bottom: 12px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.42);
  border: 1px dashed #2563eb;
  animation: helpDrag 1.8s ease-in-out infinite;
}

.help-bar {
  position: absolute;
  left: 38%;
  width: 24%;
  top: 12px;
  height: 36px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.78);
  animation: helpStretch 1.8s ease-in-out infinite;
}

.help-handle-top,
.help-handle-bottom {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 4px;
  margin-left: -8px;
  border-radius: 3px;
  background: #fff;
}

.help-handle-top { top: 10px; }
.help-handle-bottom { top: 48px; }

.help-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  top: 23px;
  animation: helpPulse 1.5s ease-in-out infinite;
}

.help-dot:nth-child(1) { left: 20%; background: #06b6d4; }
.help-dot:nth-child(2) { left: 44%; background: #eab308; animation-delay: 140ms; }
.help-dot:nth-child(3) { left: 68%; background: #f97316; animation-delay: 280ms; }

.help-page {
  position: absolute;
  left: 46%;
  right: 12%;
  top: 8px;
  bottom: 8px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  background: #eaf2ff;
  opacity: 0.35;
  animation: helpPagePop 1.8s ease-in-out infinite;
}

.help-button {
  position: absolute;
  left: 14%;
  top: 21px;
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0f766e, #14b8a6);
}

.help-click {
  position: absolute;
  left: 19%;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: helpClick 1.8s ease-in-out infinite;
}

.help-sync {
  position: absolute;
  width: 28px;
  height: 28px;
  right: 12%;
  top: 16px;
  border-radius: 50%;
  border: 3px solid #0f766e;
  border-right-color: transparent;
  animation: helpSpin 1.2s linear infinite, helpSyncBlink 1.8s ease-in-out infinite;
}

.help-copy-a,
.help-copy-b {
  position: absolute;
  top: 18px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.help-copy-a { left: 8px; }
.help-copy-b { right: 8px; }

.help-copy-arrow {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  font-weight: 900;
  color: #ea580c;
  animation: helpArrowMove 1.2s ease-in-out infinite;
}

.help-filter-pill {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 3px 8px;
}

.help-filter-item {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  animation: helpFilterPulse 1.6s ease-in-out infinite;
}

.help-filter-item:nth-child(2) { top: 26px; }
.help-filter-item:nth-child(3) { top: 44px; animation-delay: 180ms; }

.help-view-a,
.help-view-b {
  position: absolute;
  top: 18px;
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  border: 1px solid #dbe2ea;
  background: #fff;
}

.help-view-a {
  left: 12px;
  animation: helpViewSwitchA 1.5s ease-in-out infinite;
}

.help-view-b {
  right: 12px;
  animation: helpViewSwitchB 1.5s ease-in-out infinite;
}

@keyframes helpStepIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes helpDrag {
  0%, 100% { top: 10px; bottom: 12px; }
  50% { top: 20px; bottom: 20px; }
}

@keyframes helpStretch {
  0%, 100% { top: 12px; height: 36px; }
  50% { top: 7px; height: 44px; }
}

@keyframes helpPulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.18); opacity: 1; }
}

@keyframes helpSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes helpClick {
  0%, 45%, 100% { transform: scale(1); opacity: 0.95; }
  55%, 70% { transform: scale(1.35); opacity: 0.55; }
}

@keyframes helpPagePop {
  0%, 48%, 100% { opacity: 0.35; transform: translateY(4px); }
  58%, 85% { opacity: 1; transform: translateY(0); }
}

@keyframes helpSyncBlink {
  0%, 45%, 100% { opacity: 0.3; }
  58%, 85% { opacity: 1; }
}

@keyframes helpArrowMove {
  0%, 100% { transform: translateX(-50%) translateX(0); opacity: 0.65; }
  50% { transform: translateX(-50%) translateX(7px); opacity: 1; }
}

@keyframes helpFilterPulse {
  0%, 100% { opacity: 0.72; transform: scaleX(1); }
  50% { opacity: 1; transform: scaleX(0.96); }
}

@keyframes helpViewSwitchA {
  0%, 45%, 100% { background: #fff; color: #334155; border-color: #dbe2ea; }
  55%, 80% { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
}

@keyframes helpViewSwitchB {
  0%, 45%, 100% { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
  55%, 80% { background: #fff; color: #334155; border-color: #dbe2ea; }
}

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

.month-filter-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

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

.month-filter-hours {
  font-size: 0.8rem;
  font-weight: 800;
  color: #7c2d12;
  background: #fff3e8;
  border: 1px solid #ffd3b5;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.month-filter-day {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px;
  background: var(--panel-solid);
}

.month-filter-day.today {
  outline: 2px solid #60a5fa;
}

.month-filter-day-head {
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: capitalize;
}

.month-filter-shifts {
  display: grid;
  gap: 6px;
}

.month-filter-shift-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 8px;
}

.month-filter-time {
  font-size: 0.82rem;
  font-weight: 800;
  color: #334155;
}

.month-filter-track {
  height: 22px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #dbeafe;
  overflow: hidden;
}

.month-filter-bar {
  min-width: 8%;
  height: 100%;
  border-radius: 999px;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.month-filter-delete {
  min-width: 34px;
  padding: 6px 0;
  border-radius: 8px;
}


.personnel-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(260px, 380px) 1fr;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.glass-card {
  background: linear-gradient(145deg, #ffffff, #fbfdff);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

input,
select {
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-row input[type="color"] {
  width: 72px;
  padding: 2px;
  height: 42px;
}

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

.employee-list {
  display: grid;
  gap: 8px;
}

.employee-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
}

.employee-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.employee-actions {
  display: flex;
  gap: 6px;
}

.export-card {
  max-width: 640px;
}

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

.export-form button {
  grid-column: 1 / -1;
}

.export-preview {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.export-preview iframe {
  width: 100%;
  height: min(70vh, 760px);
  border: 0;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(420px, 92vw);
}

.assign-form menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
}

#moveChoiceText {
  white-space: pre-line;
}

@media (max-width: 1024px) {
  .month-grid,
  .personnel-layout,
  .export-form {
    grid-template-columns: 1fr;
  }

  .week-vertical {
    grid-template-columns: 70px repeat(7, minmax(0, 1fr));
  }

  .tabs {
    display: flex;
  }

  .filter-group {
    width: 100%;
  }

  .btn-select {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .help-steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .help-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
