@import url("/site/theme.css?v=20260922-dark");
.scenario-picker {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.scenario-picker legend {
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 600;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.scenario-option {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.scenario-option > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.scenario-card small {
  letter-spacing: 2px;
  font-size: 13px;
  color: var(--muted);
}
.scenario-card strong {
  font: 20px/1.5 var(--serif);
}
.scenario-card > span {
  font-size: 13px;
  font-weight: 600;
}
.scenario-card i {
  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
  color: var(--muted);
}
.scenario-option input:checked + .scenario-card {
  background: var(--surface-selected);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.scenario-option input:focus-visible + .scenario-card {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.scenario-option input:disabled + .scenario-card {
  cursor: default;
  opacity: 0.65;
}
.scenario-option input:disabled:checked + .scenario-card {
  opacity: 1;
}
.scenario-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-help {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.8;
}
.new-book:has(.scenario-picker) {
  grid-column: 1/-1;
  text-align: left;
  align-items: stretch;
}
.new-book:has(.scenario-picker) form {
  width: 100%;
}
.new-book .scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.new-book .scenario-picker {
  margin-top: 28px;
}
@media (max-width: 1100px) {
  .new-book .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .scenario-grid,
  .new-book .scenario-grid,
  .scenario-details {
    grid-template-columns: 1fr;
  }
  .scenario-card {
    padding: 18px;
  }
  .scenario-card strong {
    font-size: 19px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}
h1 {
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}
h2 {
  font-size: 20px;
  line-height: 1.5;
}
p {
  line-height: 1.85;
}
.muted,
.m {
  color: var(--muted);
  font-size: 13px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: var(--surface-soft);
  border-right: 1px solid var(--line);
  padding: 33px 22px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.ws-brand {
  font: 27px var(--serif);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -1px;
}
.ws-brand svg {
  width: 25px;
  height: 25px;
  color: var(--accent);
}
.side-caption {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1.6px;
  display: block;
  margin: 15px 0 45px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 3px -6px;
  border-radius: 6px;
}
.side-link:hover {
  background: var(--surface-hover);
}
.side-link.active {
  background: var(--surface-selected);
  color: var(--accent);
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.sidebar-bottom > a {
  color: var(--muted);
}
.private-note {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.private-note svg {
  width: 23px;
  height: 23px;
}
.workspace-area {
  margin-left: 235px;
  min-height: 100vh;
}
.ws-top {
  height: 85px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.ws-top > div {
  display: flex;
  gap: 24px;
  letter-spacing: 0;
  font-size: 13px;
}
.ws-top a {
  color: var(--muted);
}
.workspace-main {
  max-width: 1260px;
  padding: 36px 42px 65px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 35px;
}
.page-heading h1 {
  margin: 10px 0 11px;
  overflow-wrap: anywhere;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
}
.overline {
  font-size: 13px;
  letter-spacing: 1.65px;
  color: var(--muted);
  font-weight: 600;
}
.edition-count {
  font: 600 36px/1.2 var(--sans);
  color: var(--accent);
  min-width: 70px;
}
.edition-count small {
  display: block;
  font: 7px var(--sans);
  letter-spacing: 1.6px;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 17px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--accent-hover);
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--control-line);
}
.btn.secondary:hover {
  background: var(--surface-hover);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 26px;
  margin-bottom: 24px;
}
.panel > h2 {
  margin-bottom: 18px;
}
.panel > p {
  margin-bottom: 18px;
}
.panel form + form {
  margin-top: 14px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}
.field {
  display: block;
  margin: 16px 0;
}
.field > span {
  display: block;
  font-size: 13px;
  color: var(--head);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select,
.copy-row input {
  width: 100%;
  border: 1px solid var(--control-line);
  background: var(--bg);
  border-radius: 5px;
  min-height: 44px;
  color: var(--ink);
  padding: 11px 13px;
  font-size: 13px;
}
.field textarea {
  resize: vertical;
  line-height: 1.8;
  min-height: 150px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field input[type="file"] {
  padding: 12px;
}
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.8;
  margin: 20px 0;
  color: var(--muted);
}
.check-line input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
}
.check-line a {
  text-decoration: underline;
}
.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  background: var(--surface-selected);
  color: var(--muted);
  margin-bottom: 15px;
}
.status.good {
  background: var(--success-bg);
  color: var(--success);
}
.notice {
  padding: 15px 20px;
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  border-radius: 6px;
  color: var(--success);
  font-size: 13px;
  margin-bottom: 24px;
}
.notice.error {
  background: var(--error-bg);
  border-color: var(--error-line);
  color: var(--error);
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.library-book,
.new-book {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.book-stage {
  height: 248px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
  overflow: hidden;
}
.mini-book {
  height: 195px;
  width: 140px;
  background: var(--book-cloth);
  color: #e0c591;
  transform: rotate(-8deg) rotateY(-19deg);
  border-radius: 2px 5px 5px 2px;
  border-left: 8px solid #442f28;
  box-shadow:
    10px 13px 0 -6px #f2e4c5,
    18px 24px 22px #4c30152b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 24px 12px;
  text-align: center;
  transition: transform 0.4s;
}
.library-book:hover .mini-book {
  transform: rotate(-3deg) rotateY(-10deg);
}
.mini-book:before {
  content: "";
  position: absolute;
  inset: 12px 10px;
  border: 1px solid #c7a76370;
}
.mini-book span {
  font-size: 13px;
  letter-spacing: 2px;
}
.mini-book b {
  font: 15px/1.6 var(--serif);
  font-weight: 400;
  max-height: 95px;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.mini-book i {
  font-size: 28px;
  font-style: normal;
}
.mini-book small {
  font-size: 5px;
  letter-spacing: 1px;
}
.mini-book.color-1 {
  background: #414641;
  border-left-color: #2e332e;
}
.mini-book.color-2 {
  background: #48474a;
  border-left-color: #303033;
}
.book-info {
  padding: 22px 24px;
}
.book-info h2 {
  font-size: 19px;
  margin: 7px 0 20px;
  overflow-wrap: anywhere;
}
.book-info .actions {
  gap: 7px;
}
.book-info .btn {
  font-size: 13px;
  padding: 9px 12px;
}
.new-book {
  border-style: dashed;
  background: transparent;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.new-book-icon {
  color: var(--accent);
  margin-bottom: 22px;
}
.new-book-icon svg {
  width: 32px;
  height: 32px;
}
.new-book h2 {
  font-size: 22px;
}
.new-book p {
  font-size: 13px;
  color: var(--muted);
  margin: 15px 0;
}
.new-book form {
  margin-top: 15px;
}
.ws-footer {
  margin: 0 42px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  font: 16px var(--serif);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.ws-footer span {
  font: 9px var(--sans);
  color: var(--muted);
}
.breadcrumbs {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.book-stats {
  display: flex;
  align-items: center;
  gap: 45px;
  margin-bottom: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.book-stats > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.book-stats b {
  font: 600 28px/1.2 var(--sans);
  color: var(--ink);
}
.book-stats span {
  font-size: 13px;
  color: var(--muted);
}
.book-stats .book-stats-note {
  margin-left: auto;
  display: block;
  font: 12px/1.7 var(--serif);
  color: var(--muted);
}
.compose summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--accent);
  list-style: none;
}
.compose summary > span {
  margin-left: auto;
}
.compose[open] summary {
  margin-bottom: 25px;
}
.compose summary::-webkit-details-marker {
  display: none;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-bottom .muted {
  font-size: 13px;
}
.empty-state {
  padding: 45px 20px 60px;
  text-align: center;
}
.empty-state > span {
  font-size: 40px;
  color: var(--accent);
}
.empty-state h2 {
  margin: 20px 0 15px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
}
.chapter-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.chapter-heading .chapter-number {
  font: 32px var(--serif);
  color: var(--accent);
}
.chapter-heading h2 {
  margin-top: 4px;
}
.chapter-moves {
  margin-left: auto;
}
.icon-btn {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  width: 35px;
  height: 35px;
}
.chapter-prose {
  font:
    17px/1.95 Georgia,
    serif;
  color: var(--ink);
  max-width: 730px;
  padding: 12px 0 25px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.source-stories {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.source-stories > summary,
.edit-details > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0;
}
.source-story {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.source-story:first-of-type {
  border: 0;
}
.source-story h3 {
  font-size: 13px;
  margin-bottom: 12px;
}
.source-story > p {
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  padding: 12px 0;
}
.danger {
  color: var(--error) !important;
}
.btn.danger {
  background: var(--error-bg);
  border-color: var(--error-line);
}
.edit-details form {
  margin: 15px 0;
}
.upload-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 27px;
  border: 1px dashed var(--control-line);
  background: var(--surface-soft);
  border-radius: 5px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.upload-field input {
  max-width: 100%;
  font-size: 13px;
}
.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.album-photo {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}
.album-photo > img,
.album-photo > video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.album-photo > div {
  padding: 20px;
}
.album-photo .btn {
  font-size: 13px;
}
.empty-caption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding: 30px 0;
}
.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.copy-row input {
  min-width: 0;
  font-size: 13px;
}
.copy-row .btn {
  flex: none;
}
.cover-preview {
  display: block;
  width: 100%;
  max-width: 450px;
  max-height: 300px;
  object-fit: contain;
  border-radius: 7px;
  margin-bottom: 20px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
  margin: 15px 0 20px;
}
.danger-zone {
  background: transparent;
}
.danger-zone summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--error);
}
.danger-zone[open] summary {
  margin-bottom: 24px;
}
audio {
  width: 100%;
  margin: 15px 0;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 6px;
  z-index: 100;
  font-size: 13px;
  box-shadow: 0 6px 24px #30251430;
}
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 38px 22px;
  background: var(--bg);
}
.login-card {
  margin: auto 0;
  padding: 50px 45px;
  background: var(--card);
  border: 1px solid var(--line);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: none;
}
.login-card h1 {
  font-size: 29px;
  line-height: 1.45;
  margin-bottom: 20px;
}
.login-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin: 20px 0;
}
.login-ornament {
  color: var(--accent);
  font-size: 40px;
  margin: 22px 0;
}
.login-card .field {
  text-align: left;
}
.login-card .btn {
  width: 100%;
  margin-top: 12px;
}
.telegram-login {
  margin: 30px 0;
}
.back-link,
.login-alternative {
  display: block;
  font-size: 13px;
  margin-top: 22px;
}
.back-link {
  color: var(--muted);
}
.login-footer {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 28px;
}
@media (min-width: 1600px) {
  .library-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 28px 17px;
  }
  .workspace-area {
    margin-left: 205px;
  }
  .workspace-main {
    padding: 30px 28px 50px;
  }
  .ws-top {
    padding: 0 28px;
  }
  .two-columns {
    gap: 20px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-heading .edition-count {
    display: none;
  }
  .book-stats {
    gap: 26px;
  }
  .book-stats .book-stats-note {
    display: none;
  }
  .library-grid {
    gap: 20px;
  }
  .book-info {
    padding: 20px;
  }
  .book-info .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .book-info .actions form .btn {
    width: 100%;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    padding: 22px 20px 0;
    background: var(--surface-soft);
  }
  .ws-brand {
    font-size: 25px;
  }
  .side-caption {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin-top: 22px;
    padding-bottom: 12px;
  }
  .side-link {
    white-space: nowrap;
    font-size: 13px;
    margin: 0;
    padding: 10px 12px;
    gap: 8px;
  }
  .side-link svg {
    width: 17px;
    height: 17px;
  }
  .sidebar-bottom {
    display: none;
  }
  .workspace-area {
    margin: 0;
  }
  .ws-top {
    height: 53px;
    padding: 0 20px;
    font-size: 13px;
    letter-spacing: 1px;
  }
  .ws-top > div {
    font-size: 13px;
    gap: 18px;
  }
  .workspace-main {
    padding: 25px 20px 45px;
  }
  .page-heading {
    margin-bottom: 27px;
    gap: 18px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .overline {
    font-size: 13px;
    letter-spacing: 1.3px;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .book-stage {
    height: 230px;
  }
  .book-info .actions {
    flex-direction: row;
    align-items: center;
  }
  .book-info .btn {
    font-size: 13px;
  }
  .new-book {
    padding: 25px;
    min-height: 280px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
  }
  .panel {
    padding: 22px;
    margin-bottom: 20px;
  }
  .panel > h2 {
    font-size: 20px;
  }
  .ws-footer {
    margin: 0 20px;
    font-size: 15px;
    display: block;
  }
  .ws-footer span {
    display: block;
    margin-top: 12px;
    font-size: 13px;
  }
  .btn {
    min-height: 44px;
    font-size: 13px;
  }
  .book-stats {
    gap: 25px;
    justify-content: space-between;
    padding: 20px 0;
  }
  .book-stats > div {
    flex-direction: column;
    gap: 5px;
  }
  .book-stats b {
    font-size: 27px;
  }
  .book-stats span {
    font-size: 13px;
  }
  .chapter-heading {
    gap: 12px;
    align-items: flex-start;
  }
  .chapter-number {
    font-size: 25px !important;
  }
  .chapter-heading h2 {
    font-size: 19px;
  }
  .chapter-prose {
    font-size: 17px;
  }
  .chapter-moves {
    gap: 5px;
  }
  .icon-btn {
    width: 32px;
    height: 36px;
  }
  .form-bottom {
    gap: 18px;
  }
  .form-bottom .btn {
    width: 100%;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .copy-row {
    flex-wrap: wrap;
  }
  .copy-row input {
    flex: 1 1 100%;
    font-size: 13px;
  }
  .empty-state {
    padding: 35px 0;
  }
  .empty-state p {
    font-size: 13px;
  }
  .empty-state p br {
    display: none;
  }
  .login-body {
    padding: 25px 20px;
  }
  .login-card {
    padding: 32px 24px;
    margin: 45px 0 auto;
  }
  .login-card h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 760px) {
  .sidebar nav {
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar {
    display: none;
  }
}

/* Operate surfaces: generous controls, compact data, quiet book details. */
.side-link {
  font-size: 14px;
  min-height: 48px;
}
.sidebar-bottom {
  font-size: 12px;
}
.side-caption {
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}
.ws-top {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.ws-top > div {
  font-size: 13px;
}
.page-heading p {
  font-size: 14px;
}
.page-heading h1 {
  margin-top: 0;
}
.overline {
  font-size: 11px;
  letter-spacing: 0.05em;
}
.btn {
  min-height: 46px;
  font-size: 13px;
  padding: 11px 18px;
}
.btn:hover {
  border-color: var(--accent-hover);
}
.btn.secondary {
  border-color: var(--control-line);
}
.btn.secondary:hover {
  border-color: var(--accent);
}
.field > span,
.field-help {
  font-size: 13px;
}
.field input,
.field textarea,
.field select {
  font-size: 15px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline-offset: 3px;
}
.check-line {
  font-size: 13px;
}
.check-line input {
  width: 20px;
  height: 20px;
}
.panel,
.library-book,
.new-book,
.album-photo {
  border-radius: 8px;
}
.panel > h2 {
  font: 600 19px/1.5 var(--sans);
}
.scenario-option:hover .scenario-card {
  border-color: var(--control-line);
}
.scenario-card {
  padding: 20px;
  gap: 9px;
}
.scenario-card strong {
  font: 600 17px/1.5 var(--sans);
}
.scenario-card > span {
  font-size: 13px;
}
.scenario-card i {
  font-size: 13px;
}
.book-stats b,
.edition-count {
  font-variant-numeric: tabular-nums;
}
.book-stats span {
  font-size: 13px;
}
.book-stats-note {
  display: none !important;
}
.edition-count small {
  font: 11px var(--sans);
  letter-spacing: 0;
}
.chapter-heading .chapter-number {
  font: 500 24px/1.5 var(--sans);
  color: var(--muted);
}
.chapter-prose {
  color: var(--ink);
  max-width: 72ch;
}
.chapter-moves {
  display: flex;
  gap: 6px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-color: var(--control-line);
  color: var(--ink);
}
.icon-btn:hover {
  background: var(--surface-hover);
}
.text-button {
  font-size: 13px;
  min-height: 44px;
}
.danger-zone summary {
  min-height: 44px;
  padding: 10px 0;
}
.book-info .btn {
  font-size: 12px;
}
.book-info h2 {
  line-height: 1.5;
}
.mini-book span {
  font-size: 8px;
}
.mini-book small {
  font-size: 6px;
}
.mini-book i svg {
  width: 26px;
  height: 26px;
}
.mini-book b {
  font-size: 15px;
}
.mini-book {
  transition: transform 0.2s;
}
.book-info .overline {
  font-size: 10px;
}
.new-book {
  border-style: solid;
}
.login-card {
  max-width: 560px;
  padding: 48px;
}
.login-card h1 {
  font-size: 30px;
  letter-spacing: -0.025em;
}
.login-card > p {
  font-size: 15px;
}
.login-ornament svg {
  width: 36px;
  height: 36px;
}
.login-footer {
  font-size: 11px;
  letter-spacing: 0.04em;
}
.login-card .overline {
  display: none;
}
.back-link,
.login-alternative {
  font-size: 13px;
  min-height: 44px;
  align-content: center;
}
.empty-state > span svg {
  width: 36px;
  height: 36px;
}
.empty-state p {
  font-size: 14px;
}
.toast {
  max-width: calc(100vw - 32px);
  width: max-content;
  text-align: center;
  font-size: 14px;
}
@media (max-width: 760px) {
  .side-link {
    font-size: 13px;
  }
  .ws-top {
    font-size: 10px;
  }
  .ws-top > div {
    font-size: 12px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .panel {
    padding: 20px;
  }
  .panel > h2 {
    font-size: 18px;
  }
  .book-stats {
    gap: 16px;
  }
  .book-stats span {
    font-size: 12px;
  }
  .book-stats b {
    font-size: 26px;
  }
  .chapter-heading {
    flex-wrap: wrap;
  }
  .chapter-moves {
    margin-left: auto;
  }
  .icon-btn {
    width: 44px;
    height: 44px;
  }
  .book-info .actions {
    align-items: stretch;
  }
  .book-info .btn {
    font-size: 12px;
  }
  .login-card {
    padding: 32px 22px;
  }
  .login-card h1 {
    font-size: 26px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .scenario-card {
    padding: 18px;
  }
}
