@font-face {
  font-family: Figtree;
  src: url('/static/brand/figtree.woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --sea-950: #082236;
  --sea-900: #0b2b4a;
  --sea-800: #124266;
  --sea-700: #1d6b85;
  --sea-600: #3d8ba1;
  --ink-900: #13263a;
  --ink-800: #234054;
  --ink-700: #3c556e;
  --ink-500: #6b8194;
  --surface: #f8fbfd;
  --surface-soft: #f2f7fc;
  --card: #ffffff;
  --line: #d7e4ee;
  --line-2: #edf4fb;
  --ok-bg: #e8f6ee;
  --ok-line: #c9ebd2;
  --ok-text: #166b42;
  --warn-bg: #fff4d9;
  --warn-line: #f0d7a4;
  --warn-text: #835b0b;
  --bad-bg: #ffefe6;
  --bad-line: #f6cebe;
  --bad-text: #a74423;
  --shadow-sm: 0 8px 24px rgb(8 34 56 / 9%);
  --shadow-md: 0 16px 48px rgb(14 45 79 / 12%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-800);
  background: linear-gradient(160deg, #f5fbff 0%, #e9f4fb 52%, #f2f6f9 100%);
  font-family: Figtree, 'Trebuchet MS', sans-serif;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--sea-900);
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

button:hover,
.button:hover {
  border-color: #7ab9ca;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgb(31 122 154 / 18%);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary {
  background: linear-gradient(130deg, #154b78, #0f3c66);
  color: #ffffff;
  border-color: #0f3c66;
}

.primary:hover {
  background: linear-gradient(130deg, #0f3c66, #09284a);
  box-shadow: 0 12px 20px rgb(14 60 102 / 20%);
}

.topbar-user {
  color: var(--ink-500);
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  background: linear-gradient(180deg, #fefefe 0%, #f4f9ff 100%);
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.brand img {
  width: 185px;
  height: 62px;
  object-fit: contain;
}

.brand span {
  display: block;
  letter-spacing: 5px;
  font-size: 10px;
  color: #7892a6;
  margin: 6px 0 0 56px;
}

.workspace {
  margin: 34px 0 23px;
  padding: 18px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.6;
}

.workspace strong {
  font-size: 13px;
  color: var(--sea-900);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

nav a {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
}

nav a:hover,
nav a.selected {
  background: #ebf6fa;
  border-color: #bce0ea;
  color: #0d5572;
}

.sidebar-foot {
  margin-top: auto;
  margin-bottom: 10px;
  font-size: 11px;
  color: #556d7a;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #27a979;
  border-radius: 50%;
  margin-right: 5px;
}

.text-button {
  border: 0;
  padding: 0;
  font-size: 12px;
  color: #1d5b72;
}

main {
  margin-left: 270px;
  padding: 0 48px 60px;
  max-width: 1860px;
}

.shell {
  max-width: 1560px;
}

.topbar {
  height: 84px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
}

.topbar a.pill { text-decoration: none; }

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.topbar-left span {
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
  background: var(--card);
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin: 44px 0 26px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #51718a;
}

.heading h1 {
  font-size: clamp(30px, 3vw, 54px);
  line-height: 1.06;
  letter-spacing: -1.7px;
  margin: 12px 0;
}

.heading h1 em {
  color: #1f6f90;
  font-style: normal;
}

.heading p {
  color: var(--ink-500);
  font-size: 15px;
  max-width: 740px;
  line-height: 1.6;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0;
}

.section-title span {
  font-size: 12px;
  color: var(--ink-500);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stats > div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 22px;
  box-shadow: var(--shadow-sm);
}

.stats span {
  font-size: 12px;
  color: var(--ink-500);
}

.stats strong {
  display: block;
  font-size: 37px;
  letter-spacing: -1px;
  margin: 9px 0;
}

.stats small {
  color: var(--ink-500);
  font-size: 11px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 26px;
  flex-wrap: wrap;
}

.filters select,
.filters button {
  width: auto;
}

.filters .muted {
  margin-left: auto;
}

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

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  border-color: #93cfdd;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-preview {
  height: 300px;
  background:
    linear-gradient(130deg, #e7f6fb, #d7ecf2),
    #d9f0f7;
  position: relative;
  overflow: hidden;
}

.card-preview > img:not(.draft-shot) {
  height: 100%;
  width: 100%;
  object-fit: contain;
  background: #deedf5;
}

.card-preview.signal {
  background: linear-gradient(130deg, #062b4f, #0d486f);
  color: white;
}

.card-preview.editorial {
  background: linear-gradient(130deg, #fff4d8, #ffe7b5);
}

.card-preview.offer {
  background: linear-gradient(130deg, #ecf6f8, #d4f4ed);
}

.mini-brand {
  position: absolute;
  top: 18px;
  left: 21px;
  font-size: 18px;
  font-weight: 700;
}

.card-preview h3 {
  position: absolute;
  left: 21px;
  right: 20px;
  top: 50px;
  font-size: 25px;
  white-space: pre-line;
  line-height: 1.08;
  letter-spacing: -0.7px;
  z-index: 1;
}

.draft-shot {
  position: absolute;
  left: 22px;
  top: 146px;
  width: calc(100% - 44px);
  border: 5px solid #ffffff;
  border-radius: 10px;
  transform: rotate(-3deg);
  opacity: 0.86;
}

.draft-mark {
  position: absolute;
  bottom: 10px;
  left: 20px;
  font-size: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-900);
  padding: 5px 6px;
  letter-spacing: 1px;
}

.format-label {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-900);
  border-radius: 30px;
  font-size: 10px;
  padding: 7px 11px;
}

.card-body {
  padding: 18px;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--ink-500);
}

.status {
  display: inline-block;
  border-radius: 20px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-900);
  background: #eef3f7;
  white-space: nowrap;
}

.status.review {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-line);
}

.status.approved,
.status.published {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid var(--ok-line);
}

.status.needs_attention {
  background: var(--bad-bg);
  color: var(--bad-text);
  border: 1px solid var(--bad-line);
}

.card-body h3 {
  font-size: 17px;
  line-height: 1.32;
  margin: 15px 0 16px;
  letter-spacing: -0.3px;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #60849d;
  border-top: 1px solid var(--line-2);
  padding-top: 11px;
}

.muted {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.6;
}

.empty {
  padding: 60px 20px;
  grid-column: 1 / -1;
  text-align: center;
}

.notice {
  background: #def4f3;
  border: 1px solid #c2e0e4;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  line-height: 1.6;
}

.notice.error {
  background: #fff0e9;
  border-color: #f2d4c4;
  color: #8a3b20;
}

.notice p {
  margin: 0;
}

dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 640px;
  width: calc(100% - 32px);
  padding: 30px;
  color: var(--ink-900);
  box-shadow: var(--shadow-md);
}

dialog::backdrop {
  background: rgb(7 33 62 / 45%);
  backdrop-filter: blur(4px);
}

.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-top h2 {
  font-size: 23px;
  margin: 0;
}

label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin: 17px 0;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #cddde8;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink-800);
  background: var(--card);
  margin-top: 7px;
  line-height: 1.45;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #39b2cb46;
  border-color: #6dc0d4;
}

input[type='checkbox'] {
  width: auto;
  margin: 0;
  accent-color: #1781a0;
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.inline input {
  flex-shrink: 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px 16px;
  margin: 18px 0;
}

legend {
  color: var(--ink-500);
  font-size: 12px;
}

.back {
  display: inline-block;
  font-size: 13px;
  color: #447787;
  margin-top: 22px;
}

.post-heading {
  display: flex;
  gap: 25px;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 18px;
}

.post-heading h1 {
  font-size: 32px;
  letter-spacing: -1px;
  max-width: 820px;
  line-height: 1.2;
  margin: 11px 0;
}

.editor {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 28px;
  align-items: start;
}

.preview-panel,
.copy-panel,
.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.panel {
  margin: 24px 0;
}

.preview-panel {
  position: sticky;
  top: 20px;
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 12px;
  color: #5f7a84;
}

.slides {
  display: flex;
  gap: 15px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  background: #edf6fb;
  border-radius: 10px;
}

.slides figure {
  margin: 0;
  min-width: 100%;
  scroll-snap-align: start;
}

.slides img {
  display: block;
  width: 100%;
  max-height: 740px;
  object-fit: contain;
}

.slides figcaption {
  font-size: 11px;
  padding: 14px;
  text-align: center;
  color: #62808b;
}

.iframe-shell {
  overflow: hidden;
  position: relative;
  background: #eaf6fa;
  border-radius: 10px;
}

.iframe-shell iframe {
  position: absolute;
  inset: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.actions form {
  margin: 0;
}

.copy-panel h2 {
  font-size: 20px;
  margin: 0 0 22px;
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ai-button {
  background: #f0fafc;
}

.fact {
  background: #f4f8fb;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
}

.fact a {
  color: #087995;
  text-decoration: underline;
}

.approval {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 45px;
  margin: 35px 0;
  background: #e6f2f8;
  border: 1px solid #d2e7f2;
  border-radius: 18px;
  padding: 30px;
}

.approval h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}

.approval p {
  font-size: 13px;
  line-height: 1.6;
  color: #55716a;
}

.break {
  overflow-wrap: anywhere;
}

.history {
  font-size: 12px;
  color: #66808a;
  padding: 20px;
}

.history summary {
  cursor: pointer;
}

.panel h2 {
  font-size: 23px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  overflow: auto;
}

.strategy {
  max-width: 1000px;
  line-height: 1.8;
}

.strategy h2 {
  margin-top: 35px;
  letter-spacing: -0.5px;
}

.strategy li {
  margin-bottom: 8px;
}

.strategy a {
  color: #147e96;
  text-decoration: underline;
}

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

.connection-grid .panel {
  min-width: 0;
}

.connection-grid input:not([type='checkbox']) {
  width: 100%;
  min-width: 0;
}

.connection-grid .inline {
  font-size: 14px;
  margin-top: 8px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.calendar-day {
  border: 1px solid #d5e4e9;
  border-radius: 12px;
  padding: 10px;
  background: #f7fbfc;
  min-width: 0;
  min-height: 160px;
}

.calendar-day:first-child {
  grid-column-start: var(--start, 1);
}

.calendar-day.today {
  border: 2px solid #149fd3;
}

.calendar-day > header {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  font-size: 14px;
}

.calendar-piece {
  margin-top: 12px;
  padding: 10px;
  border-radius: 9px;
  background: white;
  overflow-wrap: anywhere;
  border: 1px solid #deeaee;
}

.calendar-piece img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  margin: 10px 0;
}

.calendar-piece label,
.calendar-state {
  font-size: 12px;
}

.calendar-piece input[type='datetime-local'] {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.calendar-piece > a {
  font-size: 13px;
  line-height: 1.4;
  display: block;
}

.bulk-controls {
  border-top: 4px solid #149fd3;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 5%, #bde7f4, transparent 38%),
    radial-gradient(circle at 85% 90%, #c5edf6, transparent 46%),
    linear-gradient(120deg, #f8fcff, #f2f9fd);
}

.login form {
  width: min(470px, 92vw);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbebf1;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 22px 60px rgb(26 77 121 / 16%);
  backdrop-filter: blur(3px);
}

.login h1 {
  font-size: 30px;
}

.login .primary {
  width: 100%;
}

.login p {
  color: #5b7588;
}

@media (min-width: 1600px) {
  .card-preview { height: 390px; }
}

@media (max-width: 1220px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-day:first-child {
    grid-column-start: auto;
  }
}

@media (max-width: 980px) {
  .sidebar {
    width: 210px;
    padding: 28px 15px;
  }

  .brand img {
    width: 160px;
  }

  main {
    margin-left: 210px;
    padding: 0 26px 40px;
  }
}

@media (max-width: 780px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 20px;
    display: block;
  }

  .sidebar .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand img {
    height: 40px;
  }

  .brand span { margin: 0; }

  .workspace,
  .sidebar-foot {
    display: none;
  }

  nav {
    flex-direction: row;
    overflow: auto;
    margin-top: 12px;
    gap: 0;
  }

  nav a {
    white-space: nowrap;
    font-size: 11px;
    padding: 9px;
  }

  main {
    margin: 0;
    padding: 0 16px 35px;
  }

  .topbar {
    height: 62px;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 10px;
  }

  .topbar-actions {
    width: 100%;
  }

  .heading {
    display: block;
    margin: 28px 0 20px;
  }

  .heading h1 {
    font-size: 35px;
    letter-spacing: -1px;
  }

  .stats {
    gap: 10px;
    margin-bottom: 20px;
  }

  .stats > div {
    padding: 18px;
  }

  .stats strong {
    font-size: 30px;
  }

  .section-title {
    display: block;
  }

  .section-title span {
    font-size: 10px;
  }

  .section-title h2 {
    margin-bottom: 2px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-preview {
    height: 250px;
  }

  .card-preview h3 {
    font-size: 23px;
  }

  .meta {
    flex-wrap: wrap;
  }

  .card-body {
    padding: 14px;
  }

  .card-bottom {
    display: block;
    line-height: 1.6;
  }

  .card-bottom span {
    display: block;
  }

  .filters select,
  .filters button {
    max-width: 100%;
    font-size: 12px;
  }

  .post-heading {
    display: block;
  }

  .post-heading h1 {
    font-size: 27px;
  }

  .editor {
    display: block;
  }

  .preview-panel {
    position: static;
    margin-bottom: 18px;
  }

  .approval {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .two-cols {
    grid-template-columns: 1fr;
  }

  .preview-bar {
    font-size: 10px;
  }

  .strategy table {
    font-size: 11px;
  }

  .connection-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 80px;
  }

  .calendar-piece img {
    max-height: 300px;
    object-fit: contain;
  }

  .calendar-piece > a {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  .heading h1 {
    font-size: 31px;
  }

  .login {
    padding: 16px;
  }

  .login form {
    padding: 30px;
  }
}

/* Final polish layer: atmosphere, motion, focus and clearer interaction states. */
html { scroll-behavior: smooth; }

::selection {
  background: rgba(29, 209, 161, .24);
  color: var(--ink);
}

body {
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 0%, rgba(29, 209, 161, .08), transparent 28rem),
    radial-gradient(circle at 12% 90%, rgba(255, 184, 92, .07), transparent 24rem);
}

main,
.sidebar {
  position: relative;
  z-index: 1;
}

button,
a,
input,
select,
textarea {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease, color .18s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(29, 209, 161, .34);
  outline-offset: 3px;
}

button.primary {
  box-shadow: 0 10px 24px rgba(22, 32, 47, .16);
}

button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 32, 47, .22);
}

button.ghost:hover:not(:disabled),
button.secondary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.panel,
.stat,
.post-card,
.calendar-day,
.connection-card,
.approval {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.panel:hover,
.stat:hover,
.post-card:hover,
.connection-card:hover,
.approval:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(22, 32, 47, .10);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .48s ease, transform .48s cubic-bezier(.2, .75, .25, 1);
}

.empty {
  border: 1px dashed rgba(22, 32, 47, .22);
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(241,246,244,.72));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Desktop shell repair: keep a top-level sidebar beside the page content. */
@media (min-width: 901px) {
  body:has(> .sidebar) {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
  }

  body:has(> .sidebar) > .sidebar {
    grid-column: 1;
    grid-row: 1;
    min-height: 100vh;
  }

  body:has(> .sidebar) > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    align-items: start;
    min-height: 100vh;
  }

  .app-shell > .sidebar {
    grid-column: 1;
    grid-row: 1;
    min-height: 100vh;
  }

  .app-shell > main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}
