/* Shared by the public feed and the private writing directory. */
.story-board-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--topbar-height, 56px) minmax(0, 1fr);
  height: 100dvh;
  min-height: 100dvh;
  background: var(--paper);
}
.story-board-shell > .app-navigation {
  grid-column: 1 / -1;
  grid-row: 1;
}
.story-board-workspace {
  grid-column: 1;
  grid-row: 2;
  height: calc(100dvh - var(--topbar-height, 56px));
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.story-board-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.story-board-tabs a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 10px 10px 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.story-board-tabs a:hover {
  background: var(--theme-soft, #edf2eb);
  text-decoration: none;
}
.story-board-tabs a[aria-current='page'] {
  color: var(--theme-ink);
  background: transparent;
  box-shadow: inset 0 -2px var(--theme-accent);
  font-weight: 600;
}
.story-board-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 0 12px;
  margin-bottom: 0;
}
.story-board-heading > div {
  min-width: 0;
}
.story-board-eyebrow {
  margin: 0 0 8px;
  color: var(--theme-accent, var(--accent));
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.story-board-heading .story-board-title {
  margin: 0;
  font-size: 28px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.story-board-description {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.story-board-compose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--theme-action);
  border-radius: 8px;
  background: var(--theme-action);
  color: var(--theme-action-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.story-board-compose:hover {
  background: var(--theme-action-hover);
  text-decoration: none;
}
.story-board-compose svg {
  width: 20px;
  height: 20px;
}
.story-board-tabs a:focus-visible,
.story-board-compose:focus-visible {
  outline: 3px solid var(--theme-danger, #b37835);
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .story-board-shell :is(a, button) {
    scroll-margin-block: 80px 96px;
  }
  .story-board-shell {
    display: block;
    height: auto;
  }
  .story-board-workspace {
    height: auto;
    overflow: visible;
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 600px) {
  .story-board-tabs {
    margin-bottom: 20px;
  }
  .story-board-tabs a {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
  }
  .story-board-heading {
    gap: 12px;
    padding: 0 0 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
  }
  .story-board-heading .story-board-title {
    font-size: 26px;
  }
  .story-board-description {
    font-size: 13px;
  }
  .story-board-heading .story-board-compose {
    padding: 10px 14px;
    flex-shrink: 0;
  }
}

@media (min-width: 901px) {
  .story-embedded .story-board-workspace {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    height: auto;
    overflow: visible;
  }
  .story-embedded .app-navigation {
    display: none;
  }
}
