@layer legacy { @scope (.legacy-page, .account-security-dialog, .watch-stage-wrap, .age-gate, .toast) {
:root {
  --ink: #233d33;
  --muted: #849087;
  --green: #285b43;
  --green-dark: #19412e;
  --lime: #d4e6b2;
  --paper: #f5f6f2;
  --white: #fff;
  --line: #e5e9e2;
  --radius: 14px;
  --sans: 'Avenir Next', 'PingFang SC', 'Noto Sans CJK SC', sans-serif;
  --serif: Georgia, 'Songti SC', 'Noto Serif CJK SC', serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font: 14px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
svg {
  vertical-align: middle;
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
  font-weight: 600;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
input,
textarea,
select {
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #85a879;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #83ad71;
  outline-offset: 4px;
}
input[type='checkbox'],
input[type='range'] {
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 10px;
  z-index: 100;
  background: white;
  color: #123;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -2.2px;
}
.logo-mark {
  display: none;
}
.logo-dot {
  color: #90af6e;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.5;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--green);
  color: #fff;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: #dfe5dd;
}
.button.small {
  padding: 6px 10px;
  font-size: 11px;
}
.button.light {
  background: #d7e9b4;
  color: #163729;
}
.button.outline {
  border-color: #4b5e52;
  color: #dce6d7;
  background: transparent;
}
.full-width {
  width: 100%;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
}
.muted {
  color: var(--muted);
}
.text-green {
  color: #477b4f;
}
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #729870;
  flex-shrink: 0;
}
.icon-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px;
  border-radius: 6px;
}
.icon-button:hover {
  background: #e9eee5;
}
.admin-body {
  background: var(--paper);
  color: var(--ink);
}
.admin-layout {
  min-height: 100vh;
}
.sidebar {
  width: 228px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 18px 0;
  z-index: 20;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sidebar-heading {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 40px;
}
.sidebar-heading .brand-link {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  gap: 8px;
}
.sidebar-heading .studio-label {
  padding-left: 8px;
}
.sidebar-toggle {
  flex: 0 0 36px;
  height: 40px;
  color: #657267;
}
.sidebar nav a > svg,
.sidebar-bottom > a > svg {
  flex-shrink: 0;
}
.nav-label {
  white-space: nowrap;
}
.nav-trailing {
  display: flex;
  margin-left: auto;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: #152a1640;
  border: 0;
  cursor: default;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  margin-bottom: 24px;
}
.brand-link .logo {
  font-size: 30px;
}
.studio-label {
  font-size: 12px;
  font-weight: 500;
  color: #657267;
  border-left: 1px solid #dfe4da;
  padding-left: 12px;
  white-space: nowrap;
}

.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 7px;
  color: #7b897e;
  font-size: 12px;
}
.sidebar nav a:hover {
  background: #f0f3eb;
}
.sidebar nav a.active {
  background: #e9f0e2;
  color: #31583c;
  font-weight: 600;
}
.nav-active-dot {
  width: 5px;
  height: 5px;
  background: #669254;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 13px;
  font-size: 11px;
  color: #829079;
}
.sidebar-bottom > a svg:last-child {
  margin-left: auto;
}
.profile {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 11px;
}
.profile small {
  display: block;
  color: #96a08f;
  font-size: 9px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border: 1px solid #64715e;
  border-radius: 50%;
  color: #cbd4c1;
}
.admin-avatar {
  background: #e5ecdb;
  border: none;
  color: #668050;
  font-family: var(--serif);
  font-size: 16px;
}
.profile .icon-button {
  margin-left: auto;
  color: #9aa58f;
}
.admin-workspace {
  margin-left: 228px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-help {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6e8064;
}
.admin-main {
  padding: 24px 28px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
}
.heading-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 280px;
}
.heading-copy > div {
  min-width: 0;
}
.page-heading h1 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: #264231;
  overflow-wrap: anywhere;
}
.page-heading p {
  font-size: 13px;
  line-height: 1.5;
  color: #657267;
  margin-top: 4px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 18px;
  background: #fff;
}
.stat-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #83917b;
  font-size: 11px;
}
.stat-card svg {
  color: #a1b38f;
}
.stat-card > strong {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  color: #2d4735;
  display: block;
  margin-top: 4px;
  letter-spacing: -1px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 22px;
}
.panel-heading h2 {
  font-size: 14px;
  font-weight: 600;
}
.panel-heading p {
  font-size: 10px;
  color: #9aa68f;
  margin-top: 4px;
}
.panel-heading > .muted {
  font-size: 10px;
}
.panel .table-scroll {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  background: #fafbf8;
  padding: 12px 20px;
  border-top: 1px solid #edf0e8;
  border-bottom: 1px solid #edf0e8;
  font-weight: 400;
  color: #a0ac95;
  font-size: 10px;
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid #eff2eb;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfefa;
}
.table-video {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 180px;
}
.table-video img {
  border-radius: 5px;
  flex-shrink: 0;
}
.table-video strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.table-video small,
.table-sub {
  display: block;
  margin-top: 4px;
  color: #a3ad9a;
  font-size: 9px;
}
.table-actions {
  display: flex;
  gap: 13px;
  color: var(--green);
}
.row-arrow {
  color: #a4b397;
  padding: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
  white-space: nowrap;
  background: #f2f4f0;
  color: #95a28d;
}
.badge > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.published,
.badge.paid {
  background: #edf4e7;
  color: #6c9557;
}
.badge.draft,
.badge.pending {
  background: #f9f2e5;
  color: #bca271;
}
.badge.archived,
.badge.cancelled {
  background: #f0f0ed;
  color: #a3a498;
}
.seo-check-panel .panel-heading {
  padding-bottom: 16px;
}
.seo-check-panel .panel-heading > svg {
  color: #9dae8b;
}
.index-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 21px 5px;
  border-radius: 5px;
  padding: 9px;
  font-size: 10px;
  background: #f4f5ed;
  color: #8d916e;
}
.index-state a {
  margin-left: auto;
  font-size: 9px;
  color: #9b9e87;
}
.index-state.paused .small-dot {
  background: #bfac7b;
}
.index-state.ready {
  color: #5e8545;
  background: #edf3e6;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 21px;
  border-bottom: 1px solid #f1f3ed;
  font-size: 10px;
}
.check-item strong {
  font-weight: 500;
  font-size: 10px;
}
.check-item small {
  display: block;
  color: #a2ae97;
  font-size: 9px;
  margin-top: 3px;
}
.check-item > svg {
  margin-left: auto;
  color: #b0bba5;
}
.check-circle {
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: #edf4e4;
  color: #8fa776;
  flex-shrink: 0;
}
.check-circle.amber {
  color: #b7a36b;
  background: #faf6e9;
}
.seo-check-panel > .button {
  margin: 15px 20px;
  width: calc(100% - 40px);
  font-size: 10px;
  padding: 8px;
}
.activity-panel .panel-heading {
  padding: 18px 22px;
}
.activity-row {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  padding: 12px 22px;
  border-top: 1px solid #f0f2eb;
}
.activity-row strong {
  font-weight: 500;
}
.activity-row > span:not(.small-dot) {
  color: #9aa58e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-row time {
  color: #a6af9f;
  margin-left: auto;
  white-space: nowrap;
}
.panel-empty {
  padding: 0 22px 22px;
  font-size: 11px;
  color: #9ca88f;
}
.admin-footer {
  padding: 12px 36px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #7b8c6c;
  margin-top: auto;
}
.admin-footer .muted {
  color: #b0b9a6;
  margin-left: 8px;
}
.live-label {
  color: #9ba88e;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mobile-menu {
  display: none;
}
.form-panel {
  padding: 25px;
}
.form-panel .panel-heading {
  padding: 0 0 20px;
}
.form-panel h2 {
  margin-bottom: 15px;
  font-size: 17px;
}
.form-panel p {
  color: #8c9983;
  font-size: 12px;
  margin: 10px 0;
}
.form-panel small {
  font-size: 10px;
  color: #99a58e;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  font-size: 12px;
}
.field > span {
  font-size: 11px;
  font-weight: 500;
  color: #52684a;
}
.field b {
  color: #aa7d54;
  font-weight: 400;
}
.field input,
.field textarea,
.field select,
.filter-bar select {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e6da;
  border-radius: 6px;
  padding: 10px 12px;
  color: #3e5936;
  outline-offset: 2px;
}
.field input[readonly] {
  background: #f7f9f3;
  color: #9aa58f;
}
.field textarea {
  resize: vertical;
  line-height: 1.8;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b3bbaa;
  font-size: 11px;
}
.field small {
  color: #a0aa96;
  font-size: 10px;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  border-top: 1px solid #edf0e7;
  margin-top: 25px;
  padding-top: 20px;
}
.form-error {
  color: #bd634c !important;
  font-size: 12px !important;
  width: 100%;
  margin: 0 !important;
}
.form-error:empty {
  display: none;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.cover-preview {
  aspect-ratio: 16/10;
  width: 100%;
  border-radius: 8px;
  margin: 12px 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #7a8c6c;
  margin: 15px 0;
}
.checkbox-row input {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.checkbox-row small {
  display: block;
  font-size: 10px;
  color: #9da994;
  margin-top: 5px;
}
.tag-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e8ecdf;
  background: #fbfcf8;
  border-radius: 5px;
  padding: 6px 9px;
  color: #829174;
  font-size: 10px;
}
.tag-checkboxes input {
  margin: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.form-panel h3 {
  margin-bottom: 18px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}
.filter-bar select {
  width: auto;
  font-size: 11px;
  padding: 8px 10px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e9dc;
  border-radius: 6px;
  padding: 8px 10px;
  color: #a2b192;
  min-width: 240px;
}
.search-field input {
  border: 0;
  outline: 0;
  font-size: 11px;
  flex: 1;
  color: #526d46;
  background: transparent;
}
.filter-bar > .muted {
  font-size: 10px;
  margin-left: auto;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
  padding: 24px;
  font-size: 11px;
  color: #94a384;
}
.pagination a {
  border: 1px solid #dfe6d7;
  border-radius: 6px;
  padding: 6px 11px;
}
.empty {
  text-align: center;
  padding: 55px 25px;
  color: #a3af98;
}
.empty svg {
  color: #bdc9b1;
  margin-bottom: 15px;
}
.empty h3 {
  font-size: 14px;
  color: #8c9f7d;
}
.empty p {
  font-size: 11px;
  margin-top: 8px;
}

.route-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.route-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
}
.route-card > svg {
  color: #9eaf8e;
  margin-top: 3px;
}
.route-card > svg:last-child {
  margin-left: auto;
}
.route-card h3 {
  font-size: 13px;
  margin-bottom: 5px;
}
.route-card p {
  font-size: 10px;
  color: #a0ad93;
  margin-bottom: 8px;
}
.route-card code {
  font-size: 9px;
  color: #9db08d;
}
.issue-text {
  font-size: 10px;
  color: #b39a62;
}
.seo-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #a0ad93;
  font-size: 10px;
}
.seo-footer-note svg {
  color: #87a173;
}
.serp-preview {
  padding: 20px 0 24px;
}
.serp-preview > div {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #353c32;
}
.serp-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #eef1e8;
  font: 24px var(--serif);
  color: #6b8c54;
}
.serp-preview small {
  display: block !important;
  font-size: 10px;
  margin-top: 2px;
}
.serp-preview h3 {
  font-family: var(--sans);
  font-size: 18px;
  color: #263a90;
  line-height: 1.5;
  margin: 15px 0 7px;
  overflow-wrap: anywhere;
}
.serp-preview p {
  font-size: 12px;
  color: #727866;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.advanced-settings {
  border: 1px solid #e8edde;
  border-radius: 7px;
  padding: 13px;
  margin-top: 22px;
}
.advanced-settings summary {
  font-size: 11px;
  color: #799365;
  cursor: pointer;
}
.advanced-settings[open] summary {
  margin-bottom: 22px;
}
.revision {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #ecf0e5;
}
.revision strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.revision small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
}
.revision button {
  margin-left: auto;
  white-space: nowrap;
}
.topic-filters {
  flex-wrap: wrap;
}
.content-filters {
  flex-wrap: wrap;
}
.content-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.content-scope a {
  color: var(--green);
}
.topic-table.series-table th:last-child {
  width: 215px;
}
.redirect-table {
  table-layout: fixed;
}
.redirect-table th:nth-child(3) {
  width: 70px;
}
.redirect-table th:last-child {
  width: 130px;
}
.redirect-table code {
  overflow-wrap: anywhere;
  white-space: normal;
}
.settings-nav {
  display: flex;
  gap: 8px;
  position: sticky;
  top: 0;
  padding: 12px 0;
  margin: -12px 0 20px;
  background: var(--white);
  z-index: 2;
}
.settings-nav a {
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
  font-size: 13px;
}
.settings-nav a:hover {
  background: #e9f0e2;
}
.settings-section {
  scroll-margin-top: 80px;
  padding: 8px 0 20px;
}
.settings-section + .settings-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.settings-savebar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 14px 25px;
  margin: 12px -25px -25px;
  box-shadow: 0 -6px 18px #233d3307;
}
.settings-savebar > span {
  color: var(--muted);
  font-size: 13px;
  margin-right: auto;
}
.settings-savebar .form-error {
  width: 100%;
  margin: 0;
}
.settings-savebar .form-error:empty {
  display: none;
}
.topic-table {
  table-layout: fixed;
}
.topic-table th:first-child {
  width: 25%;
}
.topic-table th:nth-child(3) {
  width: 110px;
}
.topic-table th:nth-child(4) {
  width: 116px;
}
.topic-table th:last-child {
  width: 190px;
}
.topic-table td {
  vertical-align: middle;
}
.topic-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.topic-name:hover {
  text-decoration: underline;
}
.topic-description span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.topic-actions > div {
  display: flex;
  gap: 8px;
}
.topic-mobile-unit {
  display: none;
}
.topic-editor {
  max-width: 800px;
}
@media (max-width: 1000px) {
  .topic-table .topic-description,
  .topic-table th:nth-child(2) {
    display: none;
  }
  .topic-table th:first-child {
    width: auto;
  }
}
@media (max-width: 760px) {
  .topic-table,
  .topic-table tbody {
    display: block;
    width: 100%;
  }
  .topic-table thead {
    display: none;
  }
  .topic-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .topic-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .topic-table .topic-identity {
    min-width: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .topic-table .topic-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .topic-table .table-sub {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .topic-table .topic-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .topic-table .topic-count {
    grid-column: 1;
    grid-row: 2;
  }
  .topic-table .topic-indexing {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
  .topic-table .topic-description {
    display: none;
  }
  .topic-table .topic-count::before {
    content: attr(data-label) ' ';
    color: var(--muted);
    font-size: 12px;
  }
  .topic-mobile-unit {
    display: inline;
  }
  .topic-actions > div {
    justify-content: flex-end;
  }
  .series-table .topic-identity {
    grid-column: 1 / -1;
  }
  .series-table .topic-actions {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}
.settings-form {
  max-width: 850px;
  overflow: visible;
}
.settings-form .callout {
  background: #f7f7ed;
  border: 1px solid #eaeada;
  border-radius: 8px;
  padding: 17px;
}
.external-links {
  display: flex;
  gap: 25px;
  font-size: 11px;
  color: #84976f;
  margin: 20px 0;
}
.danger {
  color: #b98169;
}
.series-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.series-row p {
  font-size: 11px;
  color: #9cab8b;
  margin-top: 5px;
}
.guide {
  padding: 30px;
  max-width: 900px;
}
.guide h2 {
  margin: 28px 0 12px;
}
.guide h2:first-child {
  margin-top: 0;
}
.guide p,
.guide li {
  font-size: 13px;
  line-height: 2;
  color: #879a75;
}
.guide ol {
  padding-left: 22px;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border: 1px solid #627352;
  border-radius: 9px;
  background: #263f2b;
  color: #e5eedb;
  font-size: 12px;
  z-index: 100;
  box-shadow: 0 6px 35px #0002;
  max-width: 90vw;
}
@media (max-width: 1200px) {
  .sidebar {
    padding-left: 13px;
    padding-right: 13px;
  }
  .admin-main {
    padding: 25px;
  }

  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 16px;
  }
  td,
  th {
    padding: 13px;
  }
  .table-video {
    gap: 9px;
    min-width: 155px;
  }
  .table-video img {
    width: 53px;
    height: 40px;
  }
  .route-cards {
    gap: 12px;
  }
  .route-card {
    padding: 16px;
    gap: 10px;
  }
  .route-card p {
    display: none;
  }
}
@media (max-width: 1000px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .seo-check-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .seo-check-panel .panel-heading,
  .seo-check-panel .index-state,
  .seo-check-panel > .button {
    grid-column: 1/-1;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-grid > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .route-cards {
    grid-template-columns: 1fr;
  }
  .route-card p {
    display: block;
  }

  .page-heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (min-width: 761px) {
  .sidebar-collapsed .sidebar {
    width: 72px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .sidebar-collapsed .admin-workspace {
    margin-left: 72px;
  }
  .sidebar-collapsed .sidebar-heading {
    justify-content: center;
  }
  .sidebar-collapsed .sidebar .brand-link,
  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .nav-active-dot,
  .sidebar-collapsed .nav-trailing,
  .sidebar-collapsed .profile-details,
  .sidebar-collapsed .admin-avatar {
    display: none;
  }
  .sidebar-collapsed .sidebar nav a,
  .sidebar-collapsed .sidebar-bottom > a {
    justify-content: center;
    padding: 12px;
    min-height: 44px;
  }
  .sidebar-collapsed .sidebar-toggle {
    flex-basis: 44px;
  }
  .sidebar-collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
  }
  .sidebar-collapsed .profile .icon-button {
    margin: 0;
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 228px;
    transition: transform 0.2s;
    box-shadow: 20px 0 50px #0001;
  }
  .menu-open {
    overflow: hidden;
  }
  .sidebar-toggle {
    flex-basis: 44px;
    height: 44px;
  }
  .sidebar-heading .studio-label {
    display: none;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .admin-workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: flex;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }

  .top-help {
    margin-left: auto;
    font-size: 10px;
  }

  .admin-main {
    padding: 18px 16px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 16px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .heading-actions {
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
  }
  .stat-card {
    padding: 12px 14px;
  }
  .stat-card > strong {
    font-size: 28px;
  }

  .seo-check-panel {
    display: block;
  }
  .admin-footer {
    padding: 10px 18px 24px;
    font-size: 8px;
  }
  .admin-footer .live-label {
    display: none;
  }
  .activity-row {
    padding: 12px 15px;
    font-size: 9px;
  }
  .activity-row > span:not(.small-dot) {
    display: none;
  }
  .filter-bar {
    flex-wrap: wrap;
    padding: 15px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filter-bar > .muted {
    margin-left: auto;
  }
  .panel-heading {
    padding: 18px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  .form-panel {
    padding: 20px;
  }
  .form-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .editor-grid > aside {
    display: block;
  }

  .route-card {
    padding: 20px;
  }
  .guide {
    padding: 23px;
  }
  .guide p,
  .guide li {
    font-size: 12px;
  }
  .guide h2 {
    font-size: 17px;
  }
  .empty {
    padding: 40px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable working text, scoped to the admin workspace. */
.admin-body {
  --muted: #657267;
}
.admin-body table,
.admin-body .table-video strong,
.admin-body .field,
.admin-body .field input,
.admin-body .field textarea,
.admin-body .field select,
.admin-body .filter-bar input,
.admin-body .filter-bar select,
.admin-body .guide p,
.admin-body .guide li {
  font-size: 14px;
  line-height: 1.7;
}
.admin-body .field > span,
.admin-body .check-item strong,
.admin-body .stat-card > div,
.admin-body .revision strong,
.admin-body .checkbox-row,
.admin-body .advanced-settings summary {
  font-size: 13px;
}
.admin-body .panel-heading h2 {
  font-size: 16px;
}
.admin-body .button,
.admin-body .button.small,
.admin-body .text-link,
.admin-body .sidebar nav a,
.admin-body .form-panel p,
.admin-body .pagination {
  font-size: 13px;
}
.admin-body .button.small {
  min-height: 36px;
}
.admin-body th {
  font-size: 12px;
  font-weight: 600;
  color: #657267;
}
.admin-body .table-sub,
.admin-body .table-video small,
.admin-body .panel-heading p,
.admin-body .panel-heading > .muted,
.admin-body .page-heading p,
.admin-body .form-panel small,
.admin-body .field > small,
.admin-body .filter-bar > .muted,
.admin-body .route-card p,
.admin-body .route-card code,
.admin-body .seo-footer-note,
.admin-body .empty p {
  font-size: 12px;
  color: #657267;
  line-height: 1.7;
}
.admin-body .check-item small,
.admin-body .activity-row,
.admin-body .activity-row time,
.admin-body .activity-row > span:not(.small-dot),
.admin-body .index-state,
.admin-body .index-state a,
.admin-body .sidebar-bottom > a,
.admin-body .profile,
.admin-body .profile small,
.admin-body .admin-footer,
.admin-body .tag-checkboxes label,
.admin-body .checkbox-row small,
.admin-body .series-row p,
.admin-body .external-links,
.admin-body .panel-empty {
  font-size: 12px;
  color: #657267;
}
.admin-body .badge {
  font-size: 12px;
}
.admin-body .badge.published,
.admin-body .badge.paid {
  color: #487037;
}
.admin-body .badge.draft,
.admin-body .badge.pending {
  color: #866226;
}
.admin-body .badge.archived,
.admin-body .badge.cancelled {
  color: #68695e;
}
.admin-body .field input[readonly] {
  color: #657267;
}
.admin-body .field input::placeholder,
.admin-body .field textarea::placeholder {
  font-size: 13px;
  color: #738070;
}
.admin-body .sidebar nav a {
  color: #657267;
}
.admin-body .sidebar nav a.active {
  color: #31583c;
}
.admin-body .check-item > div {
  min-width: 0;
}
.admin-body .guide p,
.admin-body .guide li {
  color: #53684d;
}
.admin-body .issue-text {
  font-size: 13px;
  color: #866226;
}
.admin-body .empty h3 {
  color: #53684d;
}
.admin-body .table-sub {
  overflow-wrap: anywhere;
}
.seo-diagnostics {
  margin-bottom: 24px;
}
.seo-health-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 13px;
}
.seo-health-summary strong {
  color: var(--ink);
  font-size: 19px;
  margin-right: 4px;
}
.seo-readiness {
  padding: 14px 20px;
  background: #f7f8f3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.seo-readiness summary {
  cursor: pointer;
  font-weight: 600;
}
.seo-readiness ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #657267;
}
.seo-readiness li + li {
  margin-top: 6px;
}
.seo-diagnostics-note {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--muted);
}
.seo-findings > summary {
  padding: 14px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .admin-body .field input,
  .admin-body .field textarea,
  .admin-body .field select,
  .admin-body .filter-bar input,
  .admin-body .filter-bar select {
    font-size: 16px;
  }
  .seo-diagnostics .panel-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .seo-diagnostics table {
    min-width: 660px;
  }
}

.seo-diagnostics > .panel-heading {
  flex-wrap: wrap;
}
.seo-diagnostics .index-state {
  margin: 0;
}
.page-heading .heading-actions {
  flex-wrap: wrap;
}
.admin-body .page-heading p {
  font-size: 13px;
}
@media (max-width: 760px) {
  .page-heading .heading-copy {
    flex-basis: 100%;
  }
  .page-heading .top-help {
    margin-left: 0;
  }
  .page-heading .heading-actions {
    width: auto;
  }
}

/* Editors keep the current list in place and reuse the standalone forms. */
body.editor-open {
  overflow: hidden;
}
.editor-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  width: min(740px, 76vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  box-shadow: -12px 0 48px #1c322224;
}
.editor-drawer[open] {
  display: flex;
  flex-direction: column;
}
.editor-drawer::backdrop {
  background: #13231c35;
}
.drawer-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 14px;
  background: white;
}
.drawer-heading > div {
  flex: 1;
  min-width: 0;
}
.drawer-heading h2 {
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.drawer-heading p {
  font-size: 12px;
  color: #657267;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.drawer-heading .icon-button {
  font-size: 28px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.drawer-heading > a {
  white-space: nowrap;
}
.drawer-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.drawer-navigation span {
  font-size: 12px;
  color: #657267;
  text-align: center;
}
.drawer-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #edf3e8;
  font-size: 13px;
  padding: 0 22px;
}
.drawer-notice:has(#drawer-status:not(:empty)) {
  padding-top: 10px;
  padding-bottom: 10px;
}
.drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
}
.drawer-body .editor-grid {
  display: block;
}
.drawer-body .editor-grid > aside {
  display: block;
}
.drawer-body .panel {
  margin-bottom: 16px;
}
.drawer-body .form-panel {
  padding: 20px;
}
.drawer-body .form-panel .panel-heading {
  padding-top: 0;
}
.drawer-body .drawer-primary-form > .form-footer > button {
  display: none;
}
.drawer-body .drawer-primary-form > .form-footer {
  padding: 0;
  margin-top: 14px;
  border: 0;
}
.drawer-body .form-error:empty {
  display: none;
}
.drawer-body .cover-preview {
  max-height: 220px;
  object-fit: contain;
}
.drawer-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: white;
}
.drawer-footer-spacer {
  flex: 1;
}
.drawer-load-error {
  padding: 30px 10px;
}
.drawer-load-error p {
  margin-bottom: 16px;
}
@media (max-width: 760px) {
  .editor-drawer {
    width: 100%;
    border-left: 0;
  }
  .drawer-heading {
    padding: 14px 16px 10px;
    gap: 10px;
  }
  .drawer-heading h2 {
    font-size: 18px;
  }
  .drawer-heading > a {
    font-size: 12px;
  }
  .drawer-navigation {
    padding: 10px 16px;
    gap: 8px;
  }
  .drawer-body {
    padding: 12px;
  }
  .drawer-body .form-panel {
    padding: 16px;
  }
  .drawer-body .form-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .drawer-footer {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .drawer-footer .button {
    padding: 10px 12px;
  }
  .drawer-footer-spacer {
    display: none;
  }
  .drawer-footer #drawer-done {
    margin-right: auto;
  }
}

.drawer-primary-form[data-kind='seo'] > .panel-heading,
.drawer-primary-form[data-kind='seo'] > .field:has([name='path']) {
  display: none;
}
.drawer-discard {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: white;
  color: var(--ink);
}
.drawer-discard::backdrop {
  background: #13231c55;
}
.drawer-discard h2 {
  font-size: 18px;
  margin-bottom: 8px;
}
.drawer-discard p {
  font-size: 14px;
  color: #657267;
  margin-bottom: 20px;
}
.drawer-discard form > div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
@media (max-width: 760px) {
  .redirect-table,
  .redirect-table tbody {
    display: block;
    width: 100%;
  }
  .redirect-table thead {
    display: none;
  }
  .redirect-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
  }
  .redirect-table td {
    display: block;
    border: 0;
    padding: 0;
  }
  .redirect-table td[data-label] {
    grid-column: 1/-1;
  }
  .redirect-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
  .redirect-actions {
    justify-self: end;
  }
  .settings-nav a {
    padding: 8px 10px;
  }
  .settings-savebar {
    margin: 12px -18px -18px;
    padding: 12px 18px;
  }
  .settings-savebar .button {
    min-height: 44px;
  }
}

}}