:root {
  color-scheme: light;
  --ink: #252a31;
  --muted: #727983;
  --line: #e4e6e8;
  --paper: #fff;
  --page: #f2f3f4;
  --header: #293039;
  --accent: #495463;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.app-shell { width: min(100% - 24px, 1260px); margin: 28px auto; }
.workspace { display: flex; align-items: stretch; gap: 18px; }
.page-kicker { margin: 0 0 8px 2px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.card, .preview-card { overflow: hidden; flex: 1 1 0; min-width: 0; background: var(--paper); border: 1px solid #dfe1e3; border-radius: 16px 16px 0 0; box-shadow: 0 2px 8px rgb(25 32 40 / 8%); }
.preview-card { display: flex; flex-direction: column; }
.card-header { position: relative; padding: 21px 22px 18px; color: #fff; background: var(--header); cursor: pointer; }
.eyebrow { margin: 0 0 4px; color: #bdc4cc; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: 22px; line-height: 1.15; }
.subtitle { margin: 5px 0 0; color: #c5cbd1; font-size: 14px; font-style: italic; }
.card-header:focus-visible { outline: 2px solid #b8c4d0; outline-offset: -2px; }
.header-chevron { position: absolute; top: 8px; right: 21px; color: #d1d8df; font-size: 44px; font-weight: 700; line-height: 1.15; }
.lane-menu { position: absolute; z-index: 5; top: 100%; right: 0; left: 0; overflow: hidden; border: 1px solid #77818d; border-radius: 0 0 7px 7px; background: #343d48; box-shadow: 0 8px 18px rgb(0 0 0 / 25%); }
.lane-option { display: block; width: 100%; padding: 10px 12px; border: 0; color: #fff; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.lane-option:hover, .lane-option:focus-visible { background: #465362; outline: 0; }
.lane-option small { display: block; margin-top: 2px; color: #c5cbd1; font-size: 12px; }
.header-help { margin: 6px 0 0; color: #bdc4cc; font-size: 12px; }
.status { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; color: var(--muted); font-size: 14px; }
.status:empty { display: none; }
.visibility-toggle { padding: 0 2px; border: 0; color: #7c858d; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; }
.visibility-toggle:hover, .visibility-toggle:focus-visible { color: var(--ink); }
.visibility-toggle:focus-visible { outline: 2px solid #8d9aac; outline-offset: 3px; border-radius: 3px; }
.accordion.all-hidden .item { display: none; }
.accordion { border-top: 1px solid var(--line); }
.item { border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 11px 18px; list-style: none; cursor: pointer; transition: background .15s ease; }
.item summary::-webkit-details-marker { display: none; }
.item summary:hover, .item summary:focus-visible { background: #f7f8f8; }
.item summary:focus-visible { outline: 2px solid #8d9aac; outline-offset: -2px; }
.item.is-off summary { color: #9aa1a8; }
.switch { flex: 0 0 auto; width: 38px; height: 22px; padding: 2px; border: 0; border-radius: 999px; background: #c8cdd1; cursor: pointer; }
.switch span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 20%); transition: transform .15s ease; }
.switch[aria-checked="true"] { background: #df3518; }
.switch[aria-checked="true"] span { transform: translateX(16px); }
.switch:focus-visible { outline: 2px solid #8d9aac; outline-offset: 2px; }
.summary-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.number { flex: 0 0 auto; color: var(--muted); font-size: 13px; }
.param { overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.marker { flex: 0 0 auto; color: #aeb5bc; font-size: 14px; }
.item[open] summary { background: #f5f6f7; }
.item[open] .marker { color: var(--accent); }
.panel { padding: 2px 20px 22px 48px; border-top: 1px solid #f0f1f2; }
.panel h2 { margin: 15px 0 12px; color: var(--ink); font-size: 20px; line-height: 1.25; }
.panel .parameter { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-style: italic; }
.panel p { margin: 0 0 13px; color: #42474d; font-size: 15px; line-height: 1.62; white-space: pre-line; }
.empty { padding: 25px 20px; color: var(--muted); font-style: italic; }
.preview-header { padding: 21px 22px 18px; color: #fff; background: var(--header); }
.preview-header h2 { margin: 0; font-size: 22px; }
.preview-header p { margin: 5px 0 0; color: #c5cbd1; font-size: 14px; font-style: italic; }
.pages { display: grid; min-height: 0; flex: 1; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); align-content: start; gap: 12px; padding: 20px 18px 28px; background: #eef0f2; }
.page { position: relative; width: min(100%, 105px); height: 148px; justify-self: center; margin: 0; overflow: hidden; padding: 10px 9px; background: #fff; box-shadow: 0 3px 8px rgb(25 32 40 / 14%); }
.page h3 { margin: 0 0 6px; color: var(--ink); font-size: 8px; line-height: 1.2; }
.page .page-param { margin: 0 0 6px; color: var(--muted); font-size: 6px; font-style: italic; }
.page p { margin: 0; color: #42474d; font-size: 5px; line-height: 1.35; white-space: pre-line; }
.page-empty { margin: 0; color: var(--muted); font-size: 14px; font-style: italic; }
@media (max-width: 600px) { .app-shell { width: 100%; margin: 0; } .workspace { display: block; } .card { width: min(100%, 620px); margin: 0 auto; border-right: 0; border-left: 0; border-radius: 0; } .preview-card { display: none; } .card-header { padding-top: 20px; } }
