/* Admin pages (admin/*.php). Builds on style.css: same colours, panels, buttons and date blocks. */

.admin-page {
  background: var(--bg);
}

.admin-page::before {
  display: none;
}

/* ---------- Header and navigation ---------- */

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.admin-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.admin-header .brand-title {
  color: #fff;
}

.admin-tagline {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.admin-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  font-size: 14px;
}

.admin-user a {
  color: #fff;
}

.admin-whoami {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.admin-header .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.admin-header .button.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.admin-nav {
  background: var(--brand-deep);
}

.admin-nav ul {
  display: flex;
  gap: 2px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-nav a {
  display: block;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.admin-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* ---------- Page body ---------- */

.admin-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-main:focus {
  outline: none;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.admin-lead {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.admin-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.admin-crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  color: var(--muted);
  font-weight: 400;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

/* ---------- Notices ---------- */

.notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left-width: 5px;
  background: var(--surface);
  font-weight: 600;
}

.notice-ok {
  border-color: #1f8a4c;
  background: #eaf7ef;
  color: #11552d;
}

.notice-error {
  border-color: #c62828;
  background: #fdecec;
  color: #8e1b1b;
}

.notice ul {
  margin: 6px 0 0;
  padding-left: 20px;
  font-weight: 500;
}

.notice a {
  color: inherit;
}

/* ---------- Buttons ---------- */

.button.small,
.admin-page button.small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

.button.danger,
.admin-page button.danger {
  background: #c62828;
  color: #fff;
}

.button.danger:hover,
.admin-page button.danger:hover {
  background: #a31f1f;
}

.button.icon {
  min-width: 36px;
  padding: 6px 10px;
}

.admin-page button.linklike {
  min-height: 0;
  padding: 0;
  background: none;
  border: none;
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

.admin-page a.button.linklike {
  min-height: 0;
  padding: 0 4px;
  background: none;
  border: none;
  box-shadow: none;
  color: var(--brand-strong);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
}

.admin-page button.linklike.danger-text {
  color: #b42318;
}

.inline-form {
  display: inline;
  margin: 0;
}

/* ---------- Forms ---------- */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-form h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: 6px;
}

.field label,
.field legend {
  font-weight: 700;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  margin-bottom: 0;
}

.field textarea {
  min-height: 110px;
}

.field input[type="number"],
.field input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #fff;
  font: inherit;
}

.field input[readonly] {
  background: var(--surface-2);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 16px;
}

.field-row .field.grow {
  grid-column: span 2;
}

.req {
  color: #c62828;
}

.field-hint,
.form-hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.field-error {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #b42318;
}

[aria-invalid="true"] {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15) !important;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 4px 0 10px;
}

fieldset legend {
  padding: 0 6px;
  font-weight: 700;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.segmented label,
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.segmented label:has(input:checked),
.check:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.weekday-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weekday-picks label {
  min-width: 52px;
  justify-content: center;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 10px -20px -20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}

.char-counter {
  align-self: flex-end;
  font-size: 13px;
  color: var(--muted);
}

.char-counter.is-over {
  color: #b42318;
  font-weight: 700;
}

/* ---------- Editor layout ---------- */

.editor-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.editor-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-side h2 {
  font-size: 1.1rem;
}

.log-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.danger-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.edit-preview {
  max-width: 100%;
  max-height: 260px;
  border-radius: var(--radius-sm);
}

/* ---------- Lists ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.filter-bar input[type="search"] {
  flex: 1 1 220px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font: inherit;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-row.is-past {
  opacity: 0.72;
}

.admin-row-body {
  flex: 1;
  min-width: 0;
}

.admin-row-body h3 {
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.admin-row-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.admin-row-body h3 a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.admin-row-meta {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-list.compact .admin-row {
  padding: 8px 10px;
  box-shadow: none;
}

.admin-list.compact .date-block {
  width: 54px;
}

.admin-list.compact .date-day {
  font-size: 1.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
}

.badges:empty {
  display: none;
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.badge-ok {
  background: #eaf7ef;
  border-color: #b6e0c6;
  color: #11552d;
}

.badge-warn {
  background: var(--accent-soft);
  border-color: #f0d75a;
  color: #6b5400;
}

.month-group h2 {
  margin: 8px 0 8px;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

/* ---------- Gallery ---------- */

.thumb-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.thumb-link {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.thumb-caption {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.thumb-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 14px;
}

.album summary {
  cursor: pointer;
  padding: 4px 0;
}

.album[open] summary {
  margin-bottom: 12px;
}

.archive-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.archive-block h2 {
  margin: 12px 0 0;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ---------- Dashboard ---------- */

.dash-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}

.dash-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-title {
  margin: 8px 0 0;
  font-size: 1.2rem;
}

.activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.activity .muted {
  display: block;
  font-size: 13px;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.shortcut h3 {
  margin: 0;
  font-size: 1.1rem;
}

.shortcut h3 a {
  text-decoration: none;
}

.shortcut p {
  margin: 4px 0 12px;
}

/* ---------- Login ---------- */

.login-card {
  width: 100%;
  max-width: 440px;
  margin: 24px auto 0;
}

.login-card .notice {
  margin-bottom: 12px;
}

/* ---------- Inside the dialog on the public pages ---------- */

.admin-modal .admin-main {
  padding: 20px 20px 24px;
  max-width: none;
}

.admin-modal .admin-head h1 {
  padding-right: 44px;
}

.admin-modal .login-card {
  margin-top: 0;
  max-width: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.admin-modal .sticky-actions {
  position: static;
}

/* ---------- Wider screens ---------- */

@media (min-width: 900px) {
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .editor-layout > :only-child {
    grid-column: 1 / -1;
  }

  .dash-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .admin-modal .editor-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .admin-header-inner {
    flex-wrap: wrap;
  }

  .admin-header .brand-title {
    font-size: 15px;
  }

  .admin-site-link,
  .admin-whoami {
    display: none;
  }

  .field-row .field.grow {
    grid-column: auto;
  }

  .admin-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .admin-row-body {
    flex-basis: calc(100% - 80px);
  }

  .admin-row.no-date .admin-row-body {
    flex-basis: 100%;
  }

  .admin-row-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-row-actions .button {
    flex: 1 1 auto;
  }

  .panel {
    padding: 16px;
  }

  .sticky-actions {
    margin: 10px -16px -16px;
    padding: 10px 16px;
  }

  .sticky-actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- Program and document editors ---------- */

.admin-month h2 {
  margin: 8px 0 8px;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.admin-row-meta span + span::before {
  content: " · ";
}

.small-link {
  font-size: 14px;
  font-weight: 600;
}

.label-like {
  margin: 8px 0 6px;
  font-weight: 700;
}

.pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
  min-height: 40px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pick:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-strong);
}

.recurrence-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.scope-choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scope-choice .check {
  border-radius: var(--radius-sm);
}

.doc-mini {
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 14px;
  display: grid;
  gap: 4px;
}

[data-show-for] {
  margin-top: 8px;
}

[hidden] {
  display: none !important;
}

/* ---------- Program editor: colour-coded steps and the guide ---------- */

/* One colour per step; the number is always shown too, so colour is never the only cue.
   Text on each colour meets WCAG AA (white on 1-4, dark blue on 5). */
.step-1 { --step: #0a1ee8; --step-ink: #fff; --step-tint: #eef0ff; }
.step-2 { --step: #0f766e; --step-ink: #fff; --step-tint: #e9f7f5; }
.step-3 { --step: #15803d; --step-ink: #fff; --step-tint: #ebf7ef; }
.step-4 { --step: #7e22ce; --step-ink: #fff; --step-tint: #f5edfc; }
.step-5 { --step: #ffd60a; --step-ink: #0b1263; --step-tint: #fff8d6; --step-edge: #d9a900; }
.step-done { --step: #0b1263; --step-ink: #fff; --step-tint: #eceef2; }

.step-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--step, var(--brand-deep));
  color: var(--step-ink, #fff);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.form-step {
  border-left: 5px solid var(--step-edge, var(--step));
  padding: 4px 0 8px 16px;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-form .step-head,
.editor-side .step-head,
.import-main .step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.form-step.is-current {
  background: linear-gradient(90deg, var(--step-tint), transparent 70%);
}

.editor-side .form-step.panel {
  border-left-width: 5px;
}

.step-guide summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  color: var(--brand-deep);
}

.guide-mini {
  display: inline-flex;
  gap: 4px;
}

.guide-mini .step-num {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.step-guide[open] .guide-mini {
  display: none;
}

/* ---------- Preview before saving (program editor) ---------- */

.preview-dialog {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.preview-dialog[open] {
  display: flex;
  flex-direction: column;
}

.preview-dialog[open] .preview-stage {
  flex: 1 1 auto;
  overflow: auto;
}

.preview-dialog::backdrop {
  background: rgba(7, 12, 69, 0.55);
}

.preview-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px 12px;
  border-left: 5px solid var(--step);
}

.preview-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.preview-head p {
  margin: 2px 0 0;
}

.preview-stage {
  padding: 16px 20px;
  background: var(--bg);
}

.preview-stage .event-list {
  margin: 0;
}

.preview-stage .chip-link[aria-disabled] {
  cursor: default;
}

.preview-dates {
  margin-top: 12px;
  font-size: 15px;
}

.preview-dates p {
  margin: 0;
}

.preview-dates-lead {
  font-weight: 700;
}

.preview-more summary {
  cursor: pointer;
  color: var(--brand-strong);
  font-weight: 700;
  margin-top: 6px;
}

.preview-actions {
  padding: 14px 20px 18px;
  margin: 0;
}

@media (max-width: 640px) {
  .preview-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .preview-actions .button {
    flex: 1 1 auto;
  }
}

/* ---------- Program import (Excel/CSV) ---------- */

.badge-error {
  background: #fdecea;
  border-color: #f3b8b2;
  color: #8a1c12;
}

.import-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.import-main > .form-step.panel {
  margin: 0;
  border-left-width: 5px;
}

.import-downloads {
  flex-wrap: wrap;
  align-items: center;
}

.import-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.import-counts .badge {
  font-size: 14px;
  padding: 4px 12px;
}

.import-main h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
}

.import-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
}

.import-list > li {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  overflow-wrap: anywhere;
}

.import-date {
  display: inline-block;
  min-width: 11em;
  color: var(--muted);
}

.import-row {
  float: right;
  font-size: 12.5px;
  color: var(--muted);
}

.import-errors > li {
  background: #fdecea;
}

.import-changes {
  margin: 6px 0 0;
  padding-left: 18px;
}

.import-field {
  font-weight: 700;
}

.import-changes del {
  color: #8a1c12;
}

.import-changes ins {
  color: #11552d;
  text-decoration: none;
  font-weight: 600;
}

.import-same summary {
  cursor: pointer;
  margin-top: 14px;
  color: var(--brand-strong);
  font-weight: 700;
}

.import-same .import-list {
  margin-top: 8px;
}

.import-confirm {
  margin: 0;
  align-items: center;
}

.guide-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--muted);
}

.guide-note strong {
  color: var(--text);
}

.guide-note ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

@media (max-width: 640px) {
  .import-date {
    display: block;
    min-width: 0;
  }

  .import-confirm .button:not(.linklike) {
    flex: 1 1 auto;
  }
}

/* Narrow: a visible cue that the summary opens the guide. */
.guide-toggle {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-strong);
  text-decoration: underline;
}

.guide-toggle::after {
  content: "Visa steg";
}

.step-guide[open] .guide-toggle::after {
  content: "Dölj";
}

.step-guide summary {
  list-style: none;
}

.step-guide summary::-webkit-details-marker {
  display: none;
}

.guide-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-steps a {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border-left: 4px solid transparent;
  color: var(--text);
  text-decoration: none;
}

.guide-steps a:hover {
  background: var(--surface-2);
}

.guide-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}

.guide-text strong {
  color: var(--text);
  font-size: 15px;
}

.guide-steps .is-active a {
  background: var(--step-tint);
  border-left-color: var(--step-edge, var(--step));
}

/* Narrow (and the normal-width dialog): the guide is a short summary above the form. */
.editor-layout.has-guide {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.editor-layout.has-guide > .editor-side {
  display: contents;
}

.editor-layout.has-guide .step-guide {
  order: -1;
}

@media (min-width: 1000px) {
  .editor-layout.has-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }

  .editor-layout.has-guide > .editor-side {
    display: flex;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .editor-layout.has-guide .step-guide {
    order: 0;
  }

  .step-guide summary {
    cursor: default;
  }

  .guide-toggle {
    display: none;
  }
}
