:root {
  color-scheme: light;
  font-family: Inter, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  background: #0b1218;
  color: #182024;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #0b1218;
}

.release-access-root {
  min-height: 100vh;
  min-height: 100dvh;
}

.release-granted-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.account-gate,
.subscription-gate {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: auto;
  padding: max(32px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  background: #0b1218;
  color: #ecf3f0;
}

.account-gate-shell,
.subscription-shell {
  width: min(960px, 100%);
  border: 1px solid rgba(182, 211, 202, 0.28);
  border-radius: 8px;
  background: #111c22;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.account-gate-shell {
  width: min(560px, 100%);
  padding: 30px;
}

.account-gate-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #2a3940;
}

.account-gate-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d8b96f;
  border-radius: 4px;
  color: #f4d994;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.account-gate-brand div {
  display: grid;
  gap: 2px;
}

.account-gate-brand strong {
  color: #fff;
  font-size: 15px;
}

.account-gate-brand div span,
.account-gate-heading > span,
.subscription-heading > span {
  color: #92d4c2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-gate-heading,
.subscription-heading {
  padding: 28px 0 22px;
}

.account-gate-heading h1,
.account-gate-progress h1,
.subscription-heading h1 {
  margin: 8px 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.account-gate-heading p,
.account-gate-progress p,
.subscription-heading p,
.subscription-product p,
.reviewer-access p {
  margin: 0;
  color: #b7c6c1;
  font-size: 14px;
  line-height: 1.55;
}

.account-gate-progress {
  padding: 48px 0;
}

.account-gate-progress .release-access-progress {
  margin-top: 24px;
}

.account-gate-fields {
  display: grid;
  gap: 15px;
}

.account-gate-fields label,
.reviewer-access label {
  display: grid;
  gap: 7px;
  color: #d8e0dd;
  font-size: 12px;
  font-weight: 700;
}

.account-gate-fields input:not([type="checkbox"]),
.reviewer-access input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #405159;
  border-radius: 4px;
  background: #0b1419;
  color: #fff;
}

.account-gate-fields input:focus,
.reviewer-access input:focus {
  border-color: #92d4c2;
  outline: 2px solid rgba(146, 212, 194, 0.24);
}

.account-terms-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  padding-top: 4px;
  font-weight: 500 !important;
  line-height: 1.45;
}

.account-terms-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.account-terms-row a,
.account-gate-shell footer a,
.subscription-shell footer a {
  color: #b9e4d8;
}

.account-gate-status,
.subscription-status {
  min-height: 20px;
  margin: 18px 0 0;
  color: #f1d18d;
  font-size: 13px;
  line-height: 1.45;
}

.account-gate-actions,
.subscription-secondary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.account-primary-action,
.subscription-product button,
.reviewer-access > button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #f1d18d;
  border-radius: 4px;
  background: #f1d18d;
  color: #12191d;
  font-weight: 800;
}

.account-text-action,
.account-gate-switch button,
.subscription-secondary-actions button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9e4d8;
  font-weight: 700;
}

.account-primary-action:disabled,
.subscription-product button:disabled,
.subscription-secondary-actions button:disabled,
.reviewer-access > button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.account-gate-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #82928d;
  font-size: 13px;
}

.account-gate-shell footer,
.subscription-shell footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #2a3940;
  color: #82928d;
  font-size: 12px;
}

.subscription-shell {
  padding: 32px;
}

.subscription-heading {
  max-width: 680px;
  padding-top: 0;
}

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

.subscription-product {
  display: grid;
  grid-template-rows: minmax(146px, 1fr) auto auto auto;
  min-width: 0;
  padding: 20px;
  border: 1px solid #34464e;
  border-radius: 6px;
  background: #0e181d;
}

.subscription-product > div > span {
  color: #92d4c2;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.subscription-product h2 {
  margin: 8px 0;
  color: #fff;
  font-size: 18px;
}

.subscription-product > strong {
  margin-top: 18px;
  color: #f4d994;
  font-size: 20px;
}

.subscription-product > small {
  min-height: 32px;
  margin: 4px 0 12px;
  color: #8fa19b;
  font-size: 11px;
}

.reviewer-access {
  margin-top: 22px;
  padding: 14px 0 0;
  border-top: 1px solid #2a3940;
}

.reviewer-access summary {
  cursor: pointer;
  color: #aebdb8;
  font-size: 12px;
  font-weight: 700;
}

.reviewer-access p {
  margin: 12px 0;
}

.reviewer-access label {
  margin-top: 10px;
}

.reviewer-access > button {
  margin-top: 14px;
}

.play-access-dock {
  position: fixed;
  z-index: 180;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(44px, calc(env(safe-area-inset-bottom) + 10px));
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 5px 5px 12px;
  border: 1px solid #7a653c;
  border-radius: 6px;
  background: #171c1f;
  color: #f1d18d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 800;
}

.play-access-dock.paid {
  border-color: #4f8475;
  color: #a8dfd0;
}

.play-access-dock button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #56646a;
  border-radius: 4px;
  background: #263238;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.subscription-modal-backdrop {
  position: fixed;
  z-index: 500;
  inset: 0;
  overflow: auto;
  background: rgba(4, 8, 10, 0.86);
}

.subscription-modal {
  position: relative;
  min-height: 100%;
}

.subscription-modal-close {
  position: fixed;
  z-index: 510;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #53636a;
  border-radius: 4px;
  background: #111c22;
  color: #fff;
  font-weight: 800;
}

@media (max-width: 720px) {
  .account-gate,
  .subscription-gate {
    align-items: start;
    padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .account-gate-shell,
  .subscription-shell {
    padding: 22px;
  }

  .subscription-products {
    grid-template-columns: minmax(0, 1fr);
  }

  .subscription-product {
    grid-template-rows: auto;
  }

  .account-gate-actions,
  .subscription-secondary-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .account-primary-action,
  .subscription-secondary-actions button {
    width: 100%;
  }

  .play-access-dock span {
    display: none;
  }
}

.release-access-gate {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) max(32px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(32px, env(safe-area-inset-left));
  background: #0b1218;
  color: #ecf3f0;
}

.release-access-gate section {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(182, 211, 202, 0.28);
  border-radius: 8px;
  background: #111c22;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.release-access-gate span {
  display: block;
  color: #92d4c2;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.release-access-gate h1 {
  margin: 12px 0 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.15;
}

.release-access-gate p {
  margin: 0 0 24px;
  color: #b7c6c1;
  font-size: 15px;
  line-height: 1.55;
}

.release-access-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #f1d18d;
  border-radius: 5px;
  background: #f1d18d;
  color: #12191d;
  font-weight: 800;
  text-decoration: none;
}

.release-access-action:focus-visible {
  outline: 3px solid #78b7a6;
  outline-offset: 3px;
}

.release-access-progress {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: #27363c;
}

.release-access-progress::after {
  display: block;
  width: 38%;
  height: 100%;
  background: #92d4c2;
  content: "";
  animation: release-access-progress 1.2s ease-in-out infinite alternate;
}

.release-access-gate small {
  display: block;
  margin-top: 24px;
  color: #82928d;
  font-size: 12px;
}

@keyframes release-access-progress {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(165%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-access-progress::after {
    width: 100%;
    animation: none;
  }
}

@media (max-width: 540px) {
  .release-access-gate {
    align-items: start;
    padding: 20px;
    padding-top: max(64px, env(safe-area-inset-top));
  }

  .release-access-gate section {
    padding: 24px;
  }

  .release-access-gate h1 {
    font-size: 26px;
  }
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.app-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 34px;
  height: 100vh;
  height: 100dvh;
  background: #f4f6f5;
}

.app-frame.typewriter-shell {
  grid-template-rows: minmax(0, 1fr);
}

.app-frame.typewriter-shell .top-bar,
.app-frame.typewriter-shell .bottom-bar {
  display: none;
}

.top-bar,
.bottom-bar {
  display: flex;
  align-items: center;
  background: #0b1218;
  color: #eff4f2;
}

.top-bar {
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  gap: 0;
  min-width: 0;
  width: 100%;
  overflow: visible;
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-menu-strip,
.command-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-menu-strip {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.command-strip {
  align-content: stretch;
  justify-content: space-between;
  overflow: visible;
  scrollbar-width: none;
}

.command-strip::-webkit-scrollbar {
  display: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 152px;
}

.brand-lockup strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

.brand-name-full {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.brand-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.brand-edition {
  color: #83958f;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid #78b7a6;
  border-radius: 5px;
  color: #bfe5db;
  font-size: 10px;
  font-weight: 900;
  overflow: hidden;
  background: #117a70;
}

.brand-mark img {
  display: block;
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.brand-mark.large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.menu-popover button.premium-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.menu-popover button.premium-feature small {
  color: #f1d18d;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.typewriter-layout-toggle small {
  color: #59410d;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.typewriter-layout-toggle {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.command-cluster {
  display: inline-flex;
  align-items: stretch;
  gap: 7px;
  flex: 0 0 auto;
  min-width: max-content;
  height: 78px;
  padding: 8px 8px 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.command-cluster:last-child {
  border-right: 0;
}

.icon-command,
.mode-command,
.publish-command {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 52px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d9e5e1;
  padding: 0 6px;
  text-align: center;
}

.icon-command:hover,
.mode-command:hover,
.mode-command.active,
.publish-command:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-command span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border: 1px solid rgba(193, 215, 209, 0.46);
  border-radius: 4px;
  color: #dff5ef;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.icon-command.compact {
  min-width: 45px;
}

.icon-command small,
.mode-command,
.publish-command span {
  color: #d8e4df;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.edit-cluster .icon-command span {
  color: #91a39f;
  border-color: rgba(145, 163, 159, 0.38);
}

.document-switcher {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  flex: 0 1 340px;
  min-width: 280px;
  max-width: 380px;
  height: 68px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.document-switcher strong,
.document-switcher small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.top-status span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-switcher strong {
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.document-switcher small {
  color: #9db2ad;
  font-size: 10px;
}

.book-switcher {
  width: 100%;
}

.book-switcher select {
  width: 100%;
  height: 23px;
  border: 1px solid #22323d;
  border-radius: 4px;
  background: #111c24;
  color: #f5fbf9;
  padding: 0 10px;
  font-size: 11px;
}

.workflow-command-strip {
  flex-wrap: wrap;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 5px 0 0;
}

.workflow-command-strip .document-switcher {
  flex-basis: 280px;
  min-width: 220px;
  max-width: 300px;
}

.project-actions,
.support-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: max-content;
}

.project-command,
.support-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 32px;
  border: 1px solid #253744;
  border-radius: 5px;
  background: #111c24;
  color: #dfeae7;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.project-command:hover,
.support-command:hover,
.support-command.active {
  border-color: rgba(46, 198, 155, 0.48);
  background: #183027;
  color: #7de6c5;
}

.project-command.primary {
  border-color: #198369;
  background: #0d6d59;
  color: #ffffff;
}

.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex: 1 1 680px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.workflow-command-strip .support-actions {
  flex: 1 1 100%;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: wrap;
}

.flow-steps::-webkit-scrollbar {
  display: none;
}

.flow-step {
  display: grid;
  grid-template-columns: 22px minmax(68px, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 7px;
  flex: 0 0 104px;
  min-width: 104px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #111c24;
  color: #c8d6d2;
  padding: 7px 8px;
  text-align: left;
}

.flow-step:hover,
.flow-step.active {
  border-color: rgba(46, 198, 155, 0.6);
  background: linear-gradient(140deg, rgba(18, 117, 93, 0.68), rgba(17, 28, 36, 0.96));
  color: #f3fffb;
}

.flow-step span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #dbede8;
  font-size: 11px;
  font-weight: 900;
}

.flow-step strong,
.flow-step small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-step strong {
  align-self: end;
  color: #f8fffc;
  font-size: 12px;
  font-weight: 900;
}

.flow-step small {
  align-self: start;
  color: #9fb2ae;
  font-size: 10px;
}

.flow-step.active small {
  color: #d6f5ed;
}

.layout-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 150px;
  height: 32px;
  border: 1px solid #253744;
  border-radius: 5px;
  background: #111c24;
  color: #dfeae7;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.view-cluster {
  align-items: center;
}

.mode-command {
  min-width: 68px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #111c24;
}

.mode-command.active {
  border-color: rgba(46, 198, 155, 0.48);
  color: #67e3bd;
}

.publish-cluster {
  padding-right: 12px;
}

.publish-command {
  min-width: 62px;
  color: #f0ca74;
}

.layout-switcher select {
  min-width: 108px;
  max-width: none;
  height: 24px;
  border: 0;
  background: transparent;
  color: #f4fbf8;
  font-size: 12px;
  font-weight: 800;
}

.layout-switcher select option,
.editor-toolbar select option,
.inspector-section select option {
  background: #ffffff;
  color: #182024;
}

.persona-switcher {
  min-width: 166px;
}

.persona-switcher select {
  min-width: 112px;
  max-width: none;
}

.team-switcher {
  min-width: 174px;
}

.team-switcher select {
  min-width: 118px;
  max-width: none;
}

.primary-command {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  border: 1px solid #197a63;
  border-radius: 5px;
  background: #0d6d59;
  color: #ffffff;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.file-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  height: 32px;
  border: 1px solid #253744;
  border-radius: 5px;
  background: #111c24;
  color: #dfeae7;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.file-command:hover,
.file-command.button-like:hover {
  background: #182935;
}

.file-command.button-like {
  min-width: max-content;
}

.hidden-file {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  max-width: 1px;
  height: 1px;
  max-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.system-menu,
.menu-row,
.top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.system-menu {
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
  overflow: visible;
  scrollbar-width: none;
}

.system-menu::-webkit-scrollbar {
  display: none;
}

.menu-group {
  position: relative;
  flex: 0 0 auto;
}

.menu-group > button {
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #dce7e4;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.menu-group > button:hover,
.menu-group.open > button {
  background: rgba(255, 255, 255, 0.09);
}

.menu-popover {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #111d25;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.menu-group.open .menu-popover {
  display: grid;
}

.menu-popover button,
.menu-popover label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #edf4f1;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.menu-popover button:hover,
.menu-popover label:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-row {
  flex: 1 1 180px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-row::-webkit-scrollbar {
  display: none;
}

.top-actions {
  flex: 0 0 auto;
}

.menu-row button,
.top-actions button {
  min-width: 32px;
  height: 32px;
  border: 0;
  border-radius: 5px;
  color: #dce7e4;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 9px;
  font-size: 12px;
  white-space: nowrap;
}

.menu-row button:hover,
.top-actions button:hover,
.top-actions button.active {
  background: rgba(255, 255, 255, 0.08);
}

.top-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 360px;
  min-width: 220px;
  margin-left: 0;
  color: #c7d5d2;
  font-size: 12px;
}

.top-status span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.license-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(240, 201, 119, 0.38);
  border-radius: 999px;
  background: rgba(240, 201, 119, 0.1);
  color: #f4d78e;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.license-pill.demo {
  border-color: rgba(255, 112, 95, 0.42);
  background: rgba(255, 112, 95, 0.1);
  color: #ffb1a7;
}

.license-pill.paid {
  border-color: rgba(94, 224, 167, 0.48);
  background: rgba(46, 198, 155, 0.12);
  color: #75e3ba;
}

.ok-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7bd08b;
}

.workspace {
  display: grid;
  grid-template-columns:
    minmax(220px, var(--left-width, 300px))
    6px
    minmax(360px, 1fr)
    6px
    minmax(320px, var(--right-width, 560px));
  width: 100%;
  min-width: 0;
  min-height: 0;
}

.workspace.left-collapsed {
  grid-template-columns: 0 0 minmax(360px, 1fr) 6px minmax(320px, var(--right-width, 560px));
}

.workspace.right-collapsed {
  grid-template-columns: minmax(220px, var(--left-width, 300px)) 6px minmax(360px, 1fr) 0 0;
}

.workspace.left-collapsed.right-collapsed {
  grid-template-columns: 0 0 minmax(0, 1fr) 0 0;
}

.workspace.home-active {
  grid-template-columns: minmax(220px, var(--left-width, 300px)) 6px minmax(560px, 1fr) 0 0;
}

.left-rail {
  grid-column: 1;
}

.left-resizer {
  grid-column: 2;
}

.editor-pane {
  grid-column: 3;
}

.right-resizer {
  grid-column: 4;
}

.publish-pane {
  grid-column: 5;
}

.workspace.left-collapsed .left-rail,
.workspace.left-collapsed .left-resizer,
.workspace.right-collapsed .publish-pane,
.workspace.right-collapsed .right-resizer {
  display: none;
}

.workspace.home-active .left-rail {
  display: grid;
}

.workspace.home-active .left-resizer {
  display: block;
}

.workspace.home-active .publish-pane,
.workspace.home-active .right-resizer {
  display: none;
}

.workspace.home-active .editor-pane-dashboard {
  grid-template-rows: minmax(0, 1fr);
}

.workspace.home-active.left-collapsed .left-rail,
.workspace.home-active.left-collapsed .left-resizer {
  display: none;
}

.pane-splitter {
  position: relative;
  z-index: 4;
  min-width: 6px;
  border-inline: 1px solid rgba(0, 0, 0, 0.18);
  background: #d8e0de;
  cursor: col-resize;
}

.pane-splitter::after {
  content: "";
  position: absolute;
  inset: 35% 2px;
  border-radius: 99px;
  background: #8c9a97;
}

.pane-splitter:hover,
.pane-splitter:focus-visible {
  background: #c6d3d0;
}

.layout-focus {
  grid-template-columns: 0 0 minmax(0, 1fr) 0 0;
}

.layout-focus .left-rail,
.layout-focus .publish-pane,
.layout-focus .pane-splitter,
.layout-typewriter .left-rail,
.layout-typewriter .publish-pane,
.layout-typewriter .pane-splitter,
.layout-mechanical-typewriter .left-rail,
.layout-mechanical-typewriter .publish-pane,
.layout-mechanical-typewriter .pane-splitter {
  display: none;
}

.layout-clarity {
  grid-template-columns: minmax(236px, var(--left-width, 300px)) 6px minmax(0, 1fr) 0 0;
  background: #eff4f2;
}

.layout-clarity .publish-pane,
.layout-clarity .right-resizer {
  display: none;
}

.layout-clarity.left-collapsed {
  grid-template-columns: 0 0 minmax(0, 1fr) 0 0;
}

.layout-clarity .left-rail {
  background: #10252b;
}

.layout-clarity .editor-pane {
  grid-template-rows: 46px minmax(0, 1fr) 32px;
  border-right: 0;
  background: #f4f7f6;
}

.layout-clarity .document-tabs,
.layout-clarity .studio-workbench,
.layout-clarity .toolbar-divider,
.layout-clarity .editor-toolbar button[title="Bold"],
.layout-clarity .editor-toolbar button[title="Italic"],
.layout-clarity .editor-toolbar button[title="Underline"],
.layout-clarity .editor-toolbar button[title="Align left"],
.layout-clarity .editor-toolbar button[title="Align center"] {
  display: none;
}

.layout-clarity .editor-toolbar {
  gap: 8px;
  border-bottom-color: #cbd9d6;
  background: #edf3f1;
  padding: 8px 12px;
}

.layout-clarity .editor-toolbar select,
.layout-clarity .editor-toolbar button {
  min-height: 32px;
  border-color: #b8cbc7;
  background: #ffffff;
  color: #182a2b;
}

.layout-clarity .editor-scroll {
  padding: clamp(28px, 6vh, 64px) clamp(22px, 8vw, 124px);
  background:
    linear-gradient(180deg, rgba(69, 128, 132, 0.05), transparent 220px),
    #f7faf8;
}

.layout-clarity .editor-book-meta {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  border-bottom: 1px solid #d8e2df;
  padding-bottom: 14px;
  color: #536764;
}

.layout-clarity .chapter-title-input,
.layout-clarity .writing-area {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.layout-clarity .chapter-title-input {
  margin-bottom: 18px;
  font-size: 36px;
}

.layout-clarity .writing-area {
  min-height: min(58vh, 640px);
  border: 1px solid #d8e2df;
  border-radius: 8px;
  background: #ffffff;
  padding: 26px clamp(20px, 5vw, 56px);
  line-height: 1.82;
  box-shadow: 0 18px 42px rgba(30, 58, 55, 0.08);
}

.layout-clarity .editor-status {
  border-top-color: #ccd9d6;
  background: #edf3f1;
}

.layout-typewriter,
.layout-proof {
  grid-template-columns: 0 0 minmax(360px, 0.92fr) 6px minmax(500px, var(--right-width, 560px));
}

.layout-proof .left-rail,
.layout-proof .left-resizer {
  display: none;
}

.layout-planning {
  grid-template-columns: minmax(240px, var(--left-width, 300px)) 6px minmax(340px, 0.76fr) 6px minmax(520px, var(--right-width, 620px));
}

.layout-editorial {
  grid-template-columns: minmax(260px, var(--left-width, 320px)) 6px minmax(420px, 1fr) 6px minmax(380px, var(--right-width, 520px));
}

.layout-production {
  grid-template-columns: 0 0 minmax(360px, 0.72fr) 6px minmax(560px, var(--right-width, 680px));
}

.layout-production .left-rail,
.layout-production .left-resizer {
  display: none;
}

.layout-editorial .studio-workbench {
  max-height: 170px;
}

.left-rail {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #101c24;
  color: #edf4f2;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.library-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  color: #e5eeeb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-title span:last-child {
  color: #8fa19d;
  font-weight: 700;
  text-transform: none;
}

.book-list {
  display: grid;
  gap: 1px;
}

.book-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: #dbe6e3;
  padding: 10px 12px;
  text-align: left;
}

.book-row:hover,
.book-row.active {
  background: rgba(18, 115, 93, 0.35);
}

.book-row strong,
.book-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-row strong {
  color: #ffffff;
  font-size: 13px;
}

.book-row small {
  color: #b2c2bf;
  font-size: 11px;
  line-height: 1.45;
}

.book-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #84928f;
}

.book-row.active i {
  background: #55d08c;
}

.cover-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  background:
    linear-gradient(155deg, rgba(53, 130, 115, 0.95), rgba(21, 48, 60, 0.96)),
    radial-gradient(circle at 50% 24%, #e8f1ef 0 10%, transparent 12%);
  color: #f8fbf9;
  font-family: Georgia, serif;
  font-size: 28px;
}

.cover-thumb.small {
  width: 40px;
  height: 56px;
  font-size: 18px;
}

.cover-thumb.has-image {
  overflow: hidden;
  background: #0c151c;
  color: transparent;
}

.cover-thumb.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-thumb.generated {
  overflow: hidden;
  align-content: stretch;
  justify-items: stretch;
  background:
    radial-gradient(circle at var(--cover-focal-x, 50%) var(--cover-focal-y, 28%), color-mix(in srgb, var(--cover-accent) 42%, transparent), transparent 33%),
    linear-gradient(155deg, var(--cover-bg), color-mix(in srgb, var(--cover-bg) 78%, #000 22%));
  color: var(--cover-fg);
}

.cover-generated-type {
  display: grid;
  align-content: space-between;
  width: 100%;
  height: 100%;
  padding: 10px 7px;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 70%, transparent);
  text-align: center;
}

.cover-variant-1 .cover-generated-type {
  padding: 8px 10px 12px 6px;
  text-align: left;
}

.cover-variant-2 .cover-generated-type {
  padding: 13px 6px 8px 10px;
  text-align: right;
}

.cover-variant-3 .cover-generated-type {
  border-width: 2px 1px 1px 2px;
  transform: rotate(var(--cover-angle, 0deg));
}

.cover-generated-type b,
.cover-generated-type i {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-overflow: ellipsis;
}

.cover-generated-type b {
  align-self: center;
  font-size: 9px;
  line-height: 1.1;
  text-transform: uppercase;
}

.cover-generated-type i {
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.template-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px 12px 12px;
}

.template-actions button,
.rail-actions button {
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #eaf3f0;
  font-size: 11px;
  font-weight: 800;
}

.project-header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-header h1 {
  margin: 2px 0 5px;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-header p {
  margin: 0 0 4px;
  color: #b6c5c2;
  font-size: 12px;
}

.progress-track {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.13);
}

.progress-track span {
  display: block;
  height: 100%;
  background: #62c99e;
}

.rail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.outline {
  min-height: 0;
  overflow: auto;
  padding: 6px 0 18px;
}

.outline-group-title,
.outline-row {
  display: grid;
  align-items: center;
  width: 100%;
}

.outline-group-title {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 13px 17px 6px;
  color: #eef7f4;
  font-size: 12px;
  font-weight: 900;
}

.outline-row {
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #d5e1de;
  padding: 8px 17px;
  text-align: left;
  font-size: 12px;
}

.outline-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.outline-row.active {
  background: linear-gradient(90deg, rgba(25, 121, 98, 0.88), rgba(25, 121, 98, 0.42));
  color: #ffffff;
}

.doc-icon {
  width: 13px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.8;
}

.doc-icon.front {
  border-radius: 50% 50% 2px 2px;
}

.doc-icon.back {
  border-style: dashed;
}

.chapter-name,
.chapter-words {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-words {
  color: #bdcbc8;
}

.editor-pane {
  display: grid;
  grid-template-rows: 32px 46px minmax(0, 1fr) 31px 214px;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid #cdd5d4;
}

.editor-pane-dashboard {
  grid-template-rows: minmax(0, 1fr);
  background: #0d171d;
  border-right-color: rgba(255, 255, 255, 0.08);
}

.home-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
  overflow: auto;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(18, 35, 43, 0.98), rgba(11, 20, 26, 0.98)),
    #0d171d;
  color: #eef6f3;
}

.home-command-hero,
.home-import-strip,
.home-production-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #111f27;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.home-command-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(150px, 0.32fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(17, 84, 72, 0.72), rgba(17, 31, 39, 0.98) 48%),
    #111f27;
}

.home-command-cover .cover-thumb {
  width: 84px;
  height: 116px;
}

.home-command-copy {
  min-width: 0;
}

.home-command-copy > span,
.home-section-title span {
  display: block;
  color: #69dcb8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-command-copy h1 {
  margin: 5px 0 4px;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 26px;
  line-height: 1.1;
}

.home-command-copy p {
  margin: 0;
  color: #b8c7c3;
  font-size: 13px;
  line-height: 1.4;
}

.home-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.home-command-meta strong {
  border: 1px solid rgba(105, 220, 184, 0.22);
  border-radius: 999px;
  background: rgba(105, 220, 184, 0.08);
  color: #d7f6ee;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.home-command-progress,
.pipeline-step i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.home-command-progress {
  margin-top: 12px;
}

.home-command-progress span,
.pipeline-step i b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #33c996, #91e7bd);
}

.home-command-actions,
.home-mini-actions {
  display: grid;
  gap: 8px;
}

.home-command-actions button,
.home-mini-actions button,
.home-import-strip label,
.home-import-strip button,
.design-showcase-grid button,
.format-chip,
.print-option-list button,
.pipeline-step {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf6f3;
  text-align: left;
}

.home-command-actions button,
.home-mini-actions button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.home-command-actions .primary {
  border-color: rgba(66, 209, 149, 0.58);
  background: #14634f;
}

.enterprise-readiness-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(105, 220, 184, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(28, 112, 91, 0.22), rgba(255, 255, 255, 0.035)),
    #101b22;
  padding: 14px;
}

.enterprise-readiness-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.enterprise-readiness-header span {
  color: #8be5c9;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.enterprise-readiness-header h2 {
  margin: 4px 0 4px;
  color: #f7fffc;
  font-size: 20px;
  line-height: 1.15;
}

.enterprise-readiness-header p {
  max-width: 760px;
  margin: 0;
  color: #b6c8c3;
  font-size: 12px;
  line-height: 1.45;
}

.enterprise-readiness-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
}

.enterprise-readiness-actions button {
  min-height: 32px;
  border: 1px solid rgba(105, 220, 184, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #effaf6;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.enterprise-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.enterprise-status {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  padding: 10px;
  font: inherit;
  text-align: left;
}

.enterprise-status span {
  justify-self: start;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.enterprise-status strong {
  min-width: 0;
  overflow: hidden;
  color: #f8fffc;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
}

.enterprise-status small {
  min-width: 0;
  overflow: hidden;
  color: #b7c9c4;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 11px;
  line-height: 1.35;
}

.enterprise-status.ready {
  border-color: rgba(105, 220, 184, 0.38);
}

.enterprise-status.ready span {
  color: #8be5c9;
}

.enterprise-status.attention {
  border-color: rgba(240, 201, 119, 0.35);
}

.enterprise-status.attention span {
  color: #f0c977;
}

.enterprise-status.blocked {
  border-color: rgba(244, 126, 126, 0.36);
}

.enterprise-status.blocked span {
  color: #f47e7e;
}

.enterprise-operating-model {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(240, 201, 119, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 201, 119, 0.12), rgba(91, 181, 190, 0.08)),
    #101b22;
  padding: 14px;
}

.enterprise-model-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.enterprise-model-header span,
.enterprise-model-grid small {
  color: #f0c977;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.enterprise-model-header h2 {
  margin: 4px 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.15;
}

.enterprise-model-header p,
.enterprise-model-grid span {
  margin: 0;
  color: #b9c8c4;
  font-size: 12px;
  line-height: 1.4;
}

.enterprise-model-header button {
  min-height: 32px;
  border: 1px solid rgba(240, 201, 119, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff6d9;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.enterprise-model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.enterprise-model-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.enterprise-model-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 950;
}

.enterprise-model-grid span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.clarity-support-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(69, 128, 132, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(226, 239, 235, 0.84)),
    #eef5f2;
  color: #162527;
  padding: 14px;
  box-shadow: 0 18px 34px rgba(14, 42, 40, 0.08);
}

.clarity-support-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.clarity-support-header span,
.clarity-support-grid small {
  color: #3f6e73;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clarity-support-header h2 {
  margin: 4px 0 0;
  color: #162527;
  font-size: 20px;
  line-height: 1.2;
}

.clarity-support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.clarity-support-actions button {
  min-height: 34px;
  border: 1px solid rgba(69, 128, 132, 0.28);
  border-radius: 7px;
  background: #ffffff;
  color: #173133;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.clarity-support-actions button:first-child {
  border-color: rgba(24, 113, 98, 0.4);
  background: #16725f;
  color: #ffffff;
}

.clarity-support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.clarity-support-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 122px;
  border: 1px solid rgba(69, 128, 132, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px;
}

.clarity-support-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #152426;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 950;
}

.clarity-support-grid span {
  color: #4b5f60;
  font-size: 12px;
  line-height: 1.45;
}

.layout-clarity .home-workspace {
  background:
    linear-gradient(180deg, #eff5f2, #e7efec),
    #edf4f1;
  color: #162527;
}

.layout-clarity .home-command-hero,
.layout-clarity .home-import-strip,
.layout-clarity .home-production-card,
.layout-clarity .enterprise-readiness-card,
.layout-clarity .enterprise-operating-model {
  border-color: rgba(69, 128, 132, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 250, 0.9)),
    #ffffff;
  color: #17272a;
  box-shadow: 0 16px 34px rgba(16, 50, 48, 0.08);
}

.layout-clarity .home-command-hero {
  grid-template-columns: 86px minmax(0, 1fr) minmax(156px, 0.28fr);
  background:
    linear-gradient(135deg, rgba(22, 114, 95, 0.16), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.layout-clarity .home-command-copy h1,
.layout-clarity .enterprise-readiness-header h2,
.layout-clarity .enterprise-model-header h2,
.layout-clarity .home-section-title h2,
.layout-clarity .enterprise-status strong,
.layout-clarity .enterprise-model-grid strong {
  color: #162527;
}

.layout-clarity .home-command-copy p,
.layout-clarity .enterprise-readiness-header p,
.layout-clarity .enterprise-model-header p,
.layout-clarity .enterprise-model-grid span,
.layout-clarity .enterprise-status small {
  color: #536665;
}

.layout-clarity .home-command-copy > span,
.layout-clarity .home-section-title span,
.layout-clarity .enterprise-readiness-header span {
  color: #17715f;
}

.layout-clarity .enterprise-model-header span,
.layout-clarity .enterprise-model-grid small {
  color: #7b6320;
}

.layout-clarity .home-command-meta strong,
.layout-clarity .enterprise-status,
.layout-clarity .enterprise-model-grid article,
.layout-clarity .home-import-strip label,
.layout-clarity .home-import-strip button,
.layout-clarity .pipeline-step,
.layout-clarity .format-chip,
.layout-clarity .print-option-list button,
.layout-clarity .design-showcase-grid button {
  border-color: rgba(69, 128, 132, 0.16);
  background: rgba(243, 248, 246, 0.9);
  color: #162527;
}

.layout-clarity .home-command-actions .primary {
  background: #16725f;
  color: #ffffff;
}

.layout-clarity .home-command-actions button:not(.primary),
.layout-clarity .enterprise-readiness-actions button,
.layout-clarity .enterprise-model-header button {
  border-color: rgba(69, 128, 132, 0.28);
  background: #ffffff;
  color: #173133;
}

.home-import-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.home-import-strip label,
.home-import-strip button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px;
}

.home-import-strip strong,
.pipeline-step strong,
.design-showcase-grid strong,
.format-chip strong,
.identity-register strong,
.print-option-list strong,
.author-register strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.home-import-strip span,
.pipeline-step small,
.design-showcase-grid span,
.format-chip span,
.print-option-list span,
.author-register span,
.author-register p,
.identity-register small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #aebfba;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.35;
}

.home-import-strip span,
.design-showcase-grid strong,
.design-showcase-grid span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.home-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 14px;
}

.home-command-grid.secondary {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

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

.home-production-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 14px;
}

.home-section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-section-title h2 {
  margin: 0;
  color: #f4fbf8;
  font-size: 15px;
}

.home-section-title span {
  max-width: 46%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-list {
  display: grid;
  gap: 7px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
}

.pipeline-step > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(105, 220, 184, 0.11);
  color: #8be5c9;
  font-size: 11px;
  font-weight: 950;
}

.pipeline-step div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.flow-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.flow-system-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 176px;
  border: 1px solid rgba(105, 220, 184, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #101b22;
  color: #eef8f5;
  padding: 12px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.flow-system-card:hover {
  border-color: rgba(105, 220, 184, 0.48);
  background:
    linear-gradient(160deg, rgba(46, 198, 155, 0.16), rgba(255, 255, 255, 0.03)),
    #101b22;
}

.flow-system-card > span,
.flow-system-card em {
  color: #8be5c9;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-system-card strong {
  min-width: 0;
  color: #f4fbf8;
  font-size: 14px;
  line-height: 1.18;
}

.flow-system-card p {
  margin: 0;
  color: #b6c8c3;
  font-size: 11px;
  line-height: 1.35;
}

.flow-system-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.flow-system-card small {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d5e3df;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
}

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

.design-showcase-grid button {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 8px;
}

.design-showcase-grid img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #e8eeee;
}

.home-format-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.format-chip {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px;
}

.format-chip.epub,
.format-chip.docx,
.format-chip.pdf,
.format-chip.package {
  border-color: rgba(105, 220, 184, 0.28);
  background: rgba(36, 142, 111, 0.13);
}

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

.identity-register div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
}

.print-option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.print-option-list button {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px;
}

.author-register {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.author-register p {
  margin: 4px 0 0;
}

.home-checklist {
  display: grid;
  gap: 4px;
}

.home-command-actions button:hover,
.home-mini-actions button:hover,
.home-import-strip label:hover,
.home-import-strip button:hover,
.pipeline-step:hover,
.design-showcase-grid button:hover,
.format-chip:hover,
.print-option-list button:hover {
  border-color: rgba(105, 220, 184, 0.45);
  background: rgba(46, 198, 155, 0.12);
}

.document-tabs {
  display: flex;
  align-items: end;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 10px 0;
  border-bottom: 1px solid #22313b;
  background: #0f1920;
}

.document-tabs button {
  flex: 0 0 auto;
  height: 28px;
  max-width: 280px;
  overflow: hidden;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: transparent;
  color: #b9c9c5;
  padding: 0 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 850;
}

.document-tabs button.active {
  border-color: rgba(255, 255, 255, 0.11);
  background: #14222b;
  color: #f4fbf8;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 7px 12px;
  border-bottom: 1px solid #dfe4e3;
  background: #f8faf9;
}

@media (min-width: 781px) and (max-width: 1400px) {
  .editor-pane {
    grid-template-rows: 32px auto minmax(0, 1fr) 31px 214px;
  }

  .editor-toolbar {
    flex-wrap: wrap;
    row-gap: 6px;
    overflow-x: visible;
  }

  .editor-toolbar select,
  .editor-toolbar button {
    flex: 0 0 auto;
  }

  .editor-toolbar .toolbar-layout-select {
    min-width: 112px;
  }
}

.editor-toolbar select,
.editor-toolbar button,
.stage-toolbar select,
.inspector-section select,
.inspector-section input {
  height: 30px;
  border: 1px solid #cbd5d4;
  border-radius: 4px;
  background: #ffffff;
  color: #182024;
  font-size: 12px;
}

.editor-toolbar select {
  padding: 0 24px 0 8px;
}

.editor-toolbar .toolbar-layout-select {
  min-width: 96px;
}

.editor-toolbar button {
  min-width: 30px;
  padding: 0 8px;
  font-weight: 800;
}

.toolbar-divider {
  width: 1px;
  height: 24px;
  background: #d8dfde;
}

.editor-scroll {
  position: relative;
  min-width: 0;
  overflow: auto;
  padding: 34px min(7vw, 82px);
}

.editor-scroll.visual-drop-active {
  outline: 3px solid rgba(46, 198, 155, 0.32);
  outline-offset: -7px;
  background:
    linear-gradient(180deg, rgba(46, 198, 155, 0.075), rgba(46, 198, 155, 0.02)),
    #f8faf9;
}

.visual-drop-hint {
  pointer-events: none;
  position: absolute;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46, 198, 155, 0.62);
  border-radius: 999px;
  background: rgba(8, 28, 31, 0.88);
  color: #ecfff8;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(7, 23, 28, 0.2);
  backdrop-filter: blur(10px);
}

.writing-drop-hint {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.editor-scroll.locked-work .chapter-title-input,
.editor-scroll.locked-work .writing-area {
  background-image: repeating-linear-gradient(
    -28deg,
    transparent 0 74px,
    rgba(13, 119, 98, 0.045) 74px 76px,
    transparent 76px 150px
  );
}

.work-watermark {
  position: sticky;
  top: 10px;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  border: 1px solid rgba(18, 119, 99, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #127763;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.watermark-label-compact {
  display: none;
}

.editor-book-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  color: #657170;
  font-size: 12px;
}

.chapter-title-input {
  width: 100%;
  min-height: 88px;
  resize: none;
  overflow: hidden;
  border: 0;
  outline: 0;
  margin: 0 0 22px;
  color: #13110f;
  background: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.08;
}

.writing-area {
  width: 100%;
  min-height: clamp(260px, 38vh, 520px);
  resize: none;
  border: 0;
  outline: 0;
  overflow-x: hidden;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-break: break-word;
  color: #191512;
  background: transparent;
  font-family: var(--editor-font);
  font-size: var(--editor-size);
  line-height: 1.72;
}

.editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-top: 1px solid #dfe4e3;
  color: #4f5d5d;
  font-size: 12px;
}

.studio-workbench {
  display: grid;
  grid-template-rows: 32px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid #22313b;
  background: #0f1920;
  color: #e8f2ef;
}

.workbench-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workbench-tabs button {
  height: 31px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #b7c8c3;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 850;
}

.workbench-tabs button.active {
  border-color: #39d0aa;
  color: #5de5c0;
}

.workbench-tabs span {
  margin-left: auto;
  color: #92a7a2;
  font-size: 11px;
}

.workbench-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.7fr);
  min-height: 0;
  overflow: hidden;
}

.mini-mindmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 10px;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 18px 20px;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    #f3f3ee;
  background-size: 24px 24px;
}

.mini-mindmap > strong {
  grid-column: 2 / 4;
  place-self: center;
  min-width: 160px;
  border: 1px solid #0f6672;
  border-radius: 8px;
  background: #103947;
  color: #ffffff;
  padding: 12px 18px;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 14px 28px rgba(20, 42, 48, 0.18);
}

.mini-node {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 42px;
  border: 1px solid #9eb2c8;
  border-radius: 7px;
  background: #f7f9fb;
  color: #27343a;
  padding: 7px 9px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(30, 45, 54, 0.08);
}

.mini-node small {
  color: #505c66;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-node b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.mini-node.plot {
  border-color: #c2af7b;
  background: #fff9ea;
}

.mini-node.research {
  border-color: #81b7ad;
  background: #effaf7;
}

.workbench-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  overflow: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #111d25;
}

.workbench-side article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.workbench-side h3 {
  margin: 0 0 2px;
  color: #5de5c0;
  font-size: 12px;
}

.workbench-side p {
  display: grid;
  gap: 3px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 7px;
}

.workbench-side p strong {
  color: #a9bbb6;
  font-size: 9px;
  text-transform: uppercase;
}

.workbench-side p span {
  overflow: hidden;
  color: #e8f2ef;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.publish-pane {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 286px;
  grid-template-rows: 72px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #101b22;
  color: #ecf3f1;
}

.workflow-header,
.publish-tabs {
  grid-column: 1 / -1;
}

.workflow-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  padding: 10px 12px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1920;
}

.workflow-title {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.workflow-title span {
  color: #7f9691;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-title strong {
  color: #ecf7f4;
  font-size: 14px;
  line-height: 1.25;
}

.workflow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.workflow-meta small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(46, 198, 155, 0.22);
  border-radius: 999px;
  background: rgba(46, 198, 155, 0.08);
  color: #bfe9dc;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 850;
}

.workflow-rail {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 7px;
  scrollbar-width: thin;
}

.workflow-step {
  display: grid;
  grid-template-columns: 22px minmax(82px, 1fr);
  grid-template-rows: auto auto;
  column-gap: 7px;
  align-content: center;
  flex: 0 0 126px;
  min-width: 0;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: #14212a;
  color: #c8d6d2;
  padding: 8px;
  text-align: left;
}

.workflow-step:hover,
.workflow-step.active {
  border-color: rgba(46, 198, 155, 0.65);
  background: linear-gradient(140deg, rgba(18, 117, 93, 0.7), rgba(20, 33, 42, 0.96));
  color: #f3fffb;
}

.workflow-step span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #dbede8;
  font-size: 11px;
  font-weight: 900;
}

.workflow-step strong,
.workflow-step small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-step strong {
  align-self: end;
  font-size: 12px;
}

.workflow-step small {
  align-self: start;
  color: #9fb2ae;
  font-size: 10px;
}

.workflow-step.active small {
  color: #cdf4ea;
}

.workflow-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  scrollbar-width: none;
}

.workflow-tools::-webkit-scrollbar {
  display: none;
}

.workflow-tools button {
  flex: 0 0 auto;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #bdcbc7;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 850;
}

.workflow-tools button:hover,
.workflow-tools button.active {
  border-color: rgba(46, 198, 155, 0.55);
  color: #2ee0b0;
  background: rgba(20, 101, 83, 0.32);
}

.publish-tabs {
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 0 12px;
  overflow-x: auto;
  background: #0f1920;
}

.publish-tabs button {
  flex: 0 0 auto;
  height: 48px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #bbc8c5;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.publish-tabs button.active {
  border-color: #2ec69b;
  color: #2ee0b0;
}

.designer-stage {
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #d9dddc;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid #c6cdcc;
  background: #edf0ef;
  color: #283235;
}

.stage-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.stage-toolbar select {
  padding: 0 10px;
}

.stage-toolbar span {
  color: #526061;
  font-size: 12px;
}

.book-preview {
  min-width: 0;
  overflow: auto;
  padding: 22px 12px;
}

.book-preview-cover {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(100%, var(--page-width));
  margin: 0 auto 18px;
  border: 1px solid #c3ccca;
  border-radius: 7px;
  background: #eef2f1;
  padding: 10px;
  color: #243134;
}

.book-preview-cover.drop-ready,
.book-page.visual-drop-active {
  border-color: rgba(22, 119, 99, 0.72);
  box-shadow:
    0 0 0 5px rgba(46, 198, 155, 0.14),
    0 18px 54px rgba(18, 28, 34, 0.23);
}

.preview-cover-drop-hint {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.preview-page-drop-hint {
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

.book-preview-cover .cover-thumb {
  width: 58px;
  height: 78px;
}

.book-preview-cover strong,
.book-preview-cover span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-preview-cover strong {
  font-size: 12px;
}

.book-preview-cover span {
  margin-top: 4px;
  color: #60706f;
  font-size: 11px;
}

.book-page {
  position: relative;
  width: min(100%, var(--page-width));
  min-height: var(--page-min-height);
  margin: 0 auto;
  padding: var(--page-padding);
  border: 1px solid #ced6d5;
  color: var(--preview-ink);
  background: var(--preview-paper);
  box-shadow: 0 18px 54px rgba(18, 28, 34, 0.23);
  font-family: var(--preview-font);
}

.book-page.watermarked-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -32deg,
      transparent 0 90px,
      rgba(18, 119, 99, 0.055) 90px 92px,
      transparent 92px 180px
    );
}

.preview-watermark {
  position: absolute;
  inset: 42% auto auto 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  pointer-events: none;
  border: 2px solid rgba(18, 119, 99, 0.18);
  color: rgba(18, 119, 99, 0.22);
  padding: 12px 20px;
  font-family: Inter, Arial, sans-serif;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}

.chapter-kicker {
  color: var(--preview-accent);
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.book-page h2 {
  margin: 14px 0 24px;
  color: var(--preview-ink);
  text-align: center;
  font-family: var(--preview-heading);
  font-size: 23px;
  font-weight: 500;
}

.book-page p {
  margin: 0 0 12px;
  font-size: var(--preview-size);
  line-height: var(--preview-line-height);
}

.preview-break {
  margin: 23px 0;
  color: var(--preview-accent);
  text-align: center;
  font-size: 12px;
}

.preview-visual {
  margin: 22px 0;
  text-align: center;
}

.preview-visual img {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

.preview-visual figcaption {
  margin-top: 6px;
  color: var(--preview-accent);
  font-size: 10px;
}

.book-page footer {
  margin-top: 30px;
  color: var(--preview-accent);
  text-align: center;
  font-size: 10px;
}

.preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 0;
  color: #394647;
  font-size: 12px;
}

.preview-controls button {
  height: 27px;
  border: 1px solid #bec7c5;
  border-radius: 4px;
  background: #eef1f0;
  color: #324143;
  padding: 0 8px;
  font-size: 11px;
}

.preview-controls button.active {
  border-color: #167763;
  color: #0d6857;
}

.side-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #101b22;
}

.inspector-tabs {
  display: flex;
  align-items: end;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e181f;
  scrollbar-width: none;
}

.inspector-tabs::-webkit-scrollbar {
  display: none;
}

.inspector-tabs button {
  flex: 0 0 auto;
  height: 35px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #aebfba;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.inspector-tabs button.active {
  border-color: #2ec69b;
  color: #5ce1bd;
}

.panel-scroll {
  height: 100%;
  overflow: auto;
}

.inspector-section {
  display: grid;
  gap: 9px;
  padding: 15px 14px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-section h2 {
  margin: 0;
  color: #eef6f3;
  font-size: 13px;
}

.inspector-section p,
.inspector-section small,
.plain-list {
  margin: 0;
  color: #aebfba;
  font-size: 12px;
  line-height: 1.45;
}

.inspector-section label {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #c4d2ce;
  font-size: 12px;
}

.inspector-section select,
.inspector-section input,
.inspector-section textarea,
.asset-card input,
.asset-card select,
.asset-card textarea,
.board-card input,
.board-card select,
.board-card textarea {
  width: 100%;
  border-color: #2b3a43;
  background: #17242d;
  color: #ecf4f1;
  padding: 0 8px;
}

.inspector-section textarea,
.asset-card textarea,
.board-card textarea {
  min-height: 96px;
  resize: vertical;
  border: 1px solid #2b3a43;
  border-radius: 4px;
  padding: 8px;
  line-height: 1.45;
}

.home-panel .inspector-section {
  gap: 11px;
}

.home-hero {
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(94, 224, 167, 0.22), transparent 28%),
    linear-gradient(155deg, rgba(15, 55, 48, 0.94), rgba(16, 27, 34, 0.98));
}

.home-cover-wrap .cover-thumb {
  width: 72px;
  height: 98px;
}

.home-kicker {
  display: block;
  margin-bottom: 4px;
  color: #7de6c5;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-hero h2,
.home-hero p {
  margin: 0;
}

.home-hero h2 {
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.home-hero p {
  margin-top: 4px;
  color: #bfd0cc;
}

.home-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.home-meta-row span {
  border: 1px solid rgba(125, 230, 197, 0.22);
  border-radius: 999px;
  background: rgba(125, 230, 197, 0.08);
  color: #d7f6ee;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 850;
}

.home-progress {
  height: 5px;
  overflow: hidden;
  margin-top: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.home-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #42d195, #90e7bd);
}

.home-action-grid,
.home-next-grid {
  display: grid;
  gap: 8px;
}

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

.home-action-grid button,
.home-action-grid label,
.home-next-grid button,
.author-home-card article {
  display: grid;
  gap: 5px;
  min-height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf6f3;
  padding: 10px;
  text-align: left;
}

.home-action-grid button.primary {
  border-color: rgba(94, 224, 167, 0.55);
  background: linear-gradient(145deg, #176b55, #12372f);
}

.home-action-grid strong,
.home-action-grid span,
.home-next-grid strong,
.home-next-grid span,
.author-home-card strong,
.author-home-card span,
.author-home-card p {
  display: block;
  min-width: 0;
}

.home-action-grid strong,
.home-next-grid strong,
.author-home-card strong {
  color: #ffffff;
  font-size: 12px;
}

.home-action-grid span,
.home-next-grid span,
.author-home-card span,
.author-home-card p {
  color: #aebfba;
  font-size: 11px;
  line-height: 1.35;
}

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

.home-next-grid button {
  min-height: 68px;
}

.home-next-grid button:hover,
.home-action-grid button:hover,
.home-action-grid label:hover {
  border-color: rgba(94, 224, 167, 0.48);
  background: rgba(46, 198, 155, 0.12);
}

.home-artifacts > div:not(.visual-asset-shelf) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-artifacts figure {
  display: grid;
  gap: 5px;
  margin: 0;
}

.home-artifacts figure img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: #edf0ef;
}

.home-artifacts figcaption {
  color: #bcd0cb;
  font-size: 10px;
  font-weight: 850;
}

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

.theme-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.theme-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.theme-card span {
  font-size: 22px;
  line-height: 1;
}

.theme-card i {
  display: block;
  width: 34px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  opacity: 0.25;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.theme-card small {
  color: inherit;
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  opacity: 0.75;
}

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

.cover-design-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: var(--cover-bg);
  color: var(--cover-fg);
  padding: 8px;
  text-align: left;
}

.cover-design-card.active {
  border-color: var(--cover-accent);
  box-shadow: inset 0 0 0 1px var(--cover-accent);
}

.cover-design-card span {
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  border: 1px solid var(--cover-accent);
  background:
    linear-gradient(90deg, transparent 42%, var(--cover-accent) 42% 44%, transparent 44%),
    linear-gradient(180deg, transparent 18%, rgba(255,255,255,.13) 18% 19%, transparent 19% 72%, rgba(255,255,255,.12) 72% 73%, transparent 73%);
}

.cover-design-card strong {
  display: block;
  color: inherit;
  font-size: 10px;
  line-height: 1.2;
}

.cover-identity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cover-identity-panel div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cover-identity-panel strong,
.cover-identity-panel small,
.cover-identity-panel p {
  overflow-wrap: anywhere;
}

.cover-identity-panel small {
  color: #9eaaa8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.cover-identity-panel button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(202, 166, 91, 0.55);
  border-radius: 5px;
  background: rgba(202, 166, 91, 0.1);
  color: #f2e7cc;
  font: inherit;
  font-weight: 750;
}

.cover-identity-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: #b9c3c1;
  font-size: 10px;
  line-height: 1.45;
}

.export-summary {
  background: linear-gradient(180deg, rgba(19, 121, 96, 0.22), rgba(16, 27, 34, 0));
}

.readiness-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.readiness-meter span {
  display: block;
  height: 100%;
  background: #47d28d;
}

.validation-summary {
  background: linear-gradient(180deg, rgba(52, 113, 145, 0.22), rgba(16, 27, 34, 0));
}

.validation-score {
  position: relative;
  height: 28px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
}

.validation-score span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #23b37d, #65d8a0);
}

.validation-score strong {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 12px;
}

.validation-list {
  display: grid;
  gap: 1px;
  padding: 0 10px 14px;
}

.validation-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 4px;
}

.validation-row > span {
  display: grid;
  place-items: center;
  height: 22px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 900;
}

.validation-row.pass > span {
  background: rgba(54, 197, 129, 0.2);
  color: #78e2a9;
}

.validation-row.warning > span {
  background: rgba(212, 164, 65, 0.2);
  color: #ffd27a;
}

.validation-row.error > span {
  background: rgba(220, 88, 75, 0.22);
  color: #ffaaa0;
}

.validation-row strong,
.validation-row small {
  display: block;
}

.validation-row strong {
  color: #edf5f2;
  font-size: 12px;
}

.validation-row small {
  margin-top: 2px;
  color: #aebfba;
  font-size: 11px;
  line-height: 1.35;
}

.preflight-summary {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 28, 32, 0.42);
}

.preflight-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.preflight-heading div {
  display: grid;
  gap: 2px;
}

.preflight-heading small {
  color: #9fb0ab;
  font-size: 10px;
}

.preflight-heading > span {
  padding: 4px 7px;
  border: 1px solid rgba(66, 190, 145, 0.5);
  border-radius: 4px;
  color: #8ee4bd;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.preflight-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0;
}

.preflight-counts strong {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
  color: #f6f8f7;
  font-size: 16px;
}

.preflight-counts small {
  color: #aebbb7;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.preflight-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.preflight-coverage span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #b8c5c1;
  font-size: 9px;
}

.preflight-coverage .enabled {
  border-color: rgba(66, 190, 145, 0.45);
  color: #8ee4bd;
}

.preflight-coverage .gated {
  border-color: rgba(210, 168, 86, 0.45);
  color: #f0cc83;
}

.preflight-row {
  align-items: start;
  grid-template-columns: 54px minmax(0, 1fr);
}

.preflight-row.preflight-critical > span {
  background: rgba(214, 75, 65, 0.25);
  color: #ffc0b8;
}

.preflight-row.preflight-high > span {
  background: rgba(215, 139, 50, 0.23);
  color: #ffd091;
}

.preflight-row.preflight-review > span {
  background: rgba(74, 140, 184, 0.23);
  color: #addcff;
}

.preflight-row.preflight-information > span {
  background: rgba(120, 135, 142, 0.22);
  color: #d3dcdf;
}

.preflight-row-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.preflight-row-heading em {
  flex: 0 0 auto;
  color: #9fadaa;
  font-size: 9px;
  font-style: normal;
}

.preflight-row p {
  margin: 6px 0;
  color: #c3cecb;
  font-size: 10px;
  line-height: 1.45;
}

.preflight-row code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #96aaa4;
  font-size: 9px;
  white-space: normal;
}

.review-routing p {
  margin: 9px 0 0;
  color: #aebbb7;
  font-size: 10px;
  line-height: 1.45;
}

.export-actions {
  display: grid;
  gap: 0;
  padding: 0 10px 14px;
}

.license-export-lock,
.license-inline-lock,
.license-state-card {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(240, 201, 119, 0.34);
  border-radius: 6px;
  background: rgba(240, 201, 119, 0.1);
  color: #f4d78e;
  padding: 10px;
}

.license-export-lock strong,
.license-state-card strong {
  color: #fff3c4;
  font-size: 12px;
}

.license-export-lock span,
.license-state-card span,
.license-inline-lock {
  color: #dbc993;
  font-size: 11px;
  line-height: 1.42;
}

.export-actions button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #ecf4f1;
  padding: 8px 4px;
  text-align: left;
}

.export-actions button:hover {
  background: rgba(255, 255, 255, 0.04);
}

.export-actions button.locked-export,
.handoff-actions button.locked-export {
  opacity: 0.72;
}

.export-actions button.locked-export em {
  color: #f0c977;
}

.export-actions strong,
.export-actions small {
  display: block;
}

.export-actions strong {
  font-size: 13px;
}

.export-actions small {
  color: #9fb1ac;
  font-size: 11px;
}

.export-actions em {
  color: #70d98d;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.export-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: #72d88b;
}

.export-icon.pdf {
  color: #ff705f;
}

.export-icon.html {
  color: #6ab8ff;
}

.export-icon.markdown {
  color: #dfe7e5;
}

.export-icon.source {
  color: #7ccfc8;
}

.export-icon.docx,
.export-icon.rtf,
.export-icon.text {
  color: #b5d6ff;
}

.export-icon.mobi {
  color: #d4bdff;
}

.export-icon.outline,
.export-icon.layout,
.export-icon.xml {
  color: #f0c977;
}

.export-icon.package {
  color: #75e3a4;
}

.export-icon::after {
  content: "";
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.export-actions .export-all {
  display: block;
  height: 42px;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid #218667;
  border-radius: 5px;
  background: #156d55;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.export-actions .export-project {
  display: block;
  height: 38px;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid #355163;
  border-radius: 5px;
  background: #172734;
  color: #e9f5f1;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.export-receipt {
  margin-top: 10px;
  border: 1px solid rgba(75, 210, 140, 0.45);
  border-radius: 5px;
  background: rgba(42, 137, 93, 0.17);
  color: #cdeedc;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.panel-header-actions button {
  height: 32px;
  border: 1px solid #218667;
  border-radius: 5px;
  background: #156d55;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.character-grid {
  display: grid;
  gap: 10px;
  padding: 12px 10px 16px;
}

.character-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.character-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(122, 214, 179, 0.45);
  border-radius: 50%;
  background: #173b34;
  color: #d9fff0;
  font-weight: 900;
}

.character-card input,
.character-card textarea {
  width: 100%;
  border: 1px solid #2b3a43;
  border-radius: 4px;
  background: #17242d;
  color: #ecf4f1;
  padding: 0 8px;
}

.character-card input {
  height: 30px;
}

.character-card textarea {
  grid-column: 1 / -1;
  min-height: 132px;
  resize: vertical;
  padding: 8px;
  line-height: 1.45;
}

.language-summary {
  background: linear-gradient(180deg, rgba(94, 77, 132, 0.35), rgba(16, 27, 34, 0));
}

.language-score {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
}

.language-score strong {
  color: #fff1ba;
  font-size: 18px;
}

.language-tools {
  display: grid;
  gap: 10px;
  padding: 12px 10px 16px;
}

.language-tools article {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.language-tools h3 {
  margin: 0;
  color: #edf6f3;
  font-size: 12px;
  text-transform: uppercase;
}

.language-tools input,
.language-tools select {
  height: 30px;
  border: 1px solid #2b3a43;
  border-radius: 4px;
  background: #17242d;
  color: #ecf4f1;
  padding: 0 8px;
}

.language-tools p,
.language-tools small {
  margin: 0;
  color: #b4c4c0;
  font-size: 12px;
  line-height: 1.45;
}

.language-issue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(76px, auto);
  gap: 8px;
  align-items: center;
  border-left: 3px solid #e0c264;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.language-issue.spelling {
  border-left-color: #e96d5e;
}

.language-issue.grammar {
  border-left-color: #67b7ff;
}

.language-issue.style {
  border-left-color: #e0c264;
}

.language-issue strong,
.language-issue small {
  display: block;
}

.language-issue strong {
  color: #ffffff;
  font-size: 12px;
}

.language-issue span {
  justify-self: end;
  color: #9fe8c6;
  font-size: 11px;
  font-weight: 800;
}

.language-issue button,
.thesaurus-chips button,
.assistant-actions button,
.language-tools > article > button {
  min-height: 28px;
  border: 1px solid #315b52;
  border-radius: 5px;
  background: #18352f;
  color: #dcfff2;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 850;
}

.language-issue button {
  grid-column: span 1;
}

.compact-label {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #c4d2ce;
  font-size: 12px;
}

.translation-preview {
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px;
  white-space: pre-wrap;
}

.thesaurus-chips,
.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-grid,
.integration-grid,
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-grid div,
.store-grid div,
.integration-grid a,
.integration-grid button {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #edf6f3;
  padding: 10px;
  text-decoration: none;
}

.settings-grid strong,
.settings-grid span,
.store-grid strong,
.store-grid span {
  display: block;
}

.settings-grid span,
.store-grid span {
  margin-top: 4px;
  color: #aebfba;
  font-size: 11px;
  line-height: 1.35;
}

.integration-grid a,
.integration-grid button {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: #d9fff0;
  font-size: 12px;
  font-weight: 900;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.suite-notice {
  border: 1px solid rgba(46, 198, 155, 0.24);
  border-radius: 5px;
  background: rgba(46, 198, 155, 0.08);
  padding: 8px 9px;
  color: #d9fff0;
}

.asset-list {
  display: grid;
  gap: 10px;
  padding: 12px 10px 16px;
}

.asset-card,
.board-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.asset-card input,
.asset-card select,
.board-card input,
.board-card select {
  height: 30px;
  border: 1px solid #2b3a43;
  border-radius: 4px;
}

.asset-card label {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #c4d2ce;
  font-size: 11px;
}

.asset-card small,
.board-card small {
  color: #9fb1ac;
  font-size: 11px;
}

.asset-workspace-library {
  gap: 12px;
}

.asset-workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.asset-workspace-actions,
.asset-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.asset-workspace-actions button,
.asset-card-actions button,
.template-registry-card {
  border: 1px solid rgba(46, 198, 155, 0.28);
  border-radius: 6px;
  background: rgba(46, 198, 155, 0.08);
  color: #effbf7;
  font-weight: 850;
}

.asset-folder-grid,
.template-registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.asset-folder-card,
.template-registry-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
  text-align: left;
}

.asset-folder-card span,
.template-registry-card span {
  color: #8ee6c9;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-folder-card strong,
.template-registry-card strong {
  color: #f4faf7;
  font-size: 12px;
}

.asset-folder-card p {
  margin: 0;
  color: #c3d0cc;
  font-size: 11px;
  line-height: 1.35;
}

.template-registry-card {
  cursor: pointer;
}

.template-registry-card:hover {
  border-color: rgba(46, 198, 155, 0.58);
  background: rgba(46, 198, 155, 0.13);
}

.visual-card-preview {
  position: relative;
  display: grid;
  gap: 6px;
  cursor: grab;
}

.visual-card-preview:active {
  cursor: grabbing;
}

.visual-card-preview span {
  justify-self: start;
  border: 1px solid rgba(46, 198, 155, 0.3);
  border-radius: 999px;
  background: rgba(46, 198, 155, 0.09);
  color: #dff9ef;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 850;
}

.visual-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  background: #eef2f0;
}

.asset-file-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.asset-file-placeholder strong,
.asset-file-placeholder small {
  display: block;
}

.board-lanes {
  display: grid;
  gap: 10px;
  padding: 12px 10px 16px;
}

.board-lane {
  display: grid;
  gap: 8px;
}

.board-lane h3 {
  margin: 0;
  color: #eff7f3;
  font-size: 12px;
  text-transform: uppercase;
}

.history-list {
  padding-top: 10px;
}

.history-list.compact {
  gap: 6px;
}

.history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.history-card strong,
.history-card small {
  display: block;
}

.history-card strong {
  color: #eef6f3;
  font-size: 12px;
}

.history-card small {
  margin-top: 3px;
  color: #9fb1ac;
  font-size: 11px;
}

.history-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.history-comparison {
  border-color: rgba(46, 198, 155, 0.3);
  background: rgba(46, 198, 155, 0.055);
}

.history-comparison-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.history-comparison-header > div {
  display: grid;
  gap: 3px;
}

.history-comparison-header span,
.history-comparison-grid span {
  color: #9fb1ac;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.history-comparison-header strong {
  color: #f2f8f5;
  font-size: 13px;
}

.history-comparison-header button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  color: #dce9e5;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 800;
}

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

.history-comparison-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
}

.history-comparison-grid strong {
  color: #eef9f5;
  font-size: 15px;
}

.history-comparison-grid small {
  color: #aebfba;
  font-size: 10px;
  line-height: 1.35;
}

.history-card button,
.handoff-actions button {
  min-height: 32px;
  border: 1px solid #2b6f61;
  border-radius: 5px;
  background: #183d35;
  color: #d9fff0;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.mindmap-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 520px;
  margin: 14px;
  padding: 28px 22px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    #0d171e;
  background-size: 28px 28px;
}

.mindmap-center {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px solid #d6a84f;
  border-radius: 50%;
  background: #f5efe1;
  color: #1d2328;
  text-align: center;
  padding: 14px;
}

.mindmap-center strong,
.mindmap-center small {
  display: block;
}

.mindmap-node {
  display: grid;
  gap: 4px;
  min-height: 68px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 6px;
  background: #16232c;
  padding: 9px;
}

.mindmap-node span {
  color: #8fb9ff;
  font-size: 10px;
  text-transform: uppercase;
}

.mindmap-node strong {
  color: #edf5f2;
  font-size: 12px;
  line-height: 1.25;
}

.mindmap-node.plot span {
  color: #f0c977;
}

.mindmap-node.research span {
  color: #79ddb7;
}

.publishing-summary {
  background: linear-gradient(180deg, rgba(58, 76, 117, 0.38), rgba(16, 27, 34, 0));
}

.service-grid,
.isbn-grid,
.handoff-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-card,
.isbn-grid div {
  min-height: 74px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.045);
  color: #eef6f3;
  padding: 10px;
  text-decoration: none;
}

.service-card strong,
.service-card small,
.isbn-grid strong,
.isbn-grid span {
  display: block;
}

.service-card small,
.isbn-grid span {
  margin-top: 4px;
  color: #9fb1ac;
  font-size: 11px;
  line-height: 1.3;
}

.production-package {
  background:
    linear-gradient(180deg, rgba(46, 198, 155, 0.08), rgba(255, 255, 255, 0.02)),
    #0d1720;
}

.press-package-grid {
  display: grid;
  gap: 10px;
}

.cover-wrap-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  min-height: 176px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: var(--wrap-paper);
  color: var(--wrap-ink);
}

.wrap-panel {
  display: grid;
  align-content: space-between;
  gap: 8px;
  min-width: 0;
  background: var(--wrap-bg);
  padding: 14px;
}

.wrap-panel strong {
  color: var(--wrap-ink);
  font-family: var(--wrap-font);
  font-size: 16px;
  line-height: 1.1;
}

.wrap-panel span,
.wrap-panel small,
.wrap-panel em {
  color: var(--wrap-ink);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
  opacity: 0.82;
  overflow-wrap: anywhere;
}

.wrap-front {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.wrap-back {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.wrap-spine {
  display: grid;
  place-items: center;
  background: var(--wrap-accent);
  color: var(--wrap-bg);
  font-size: 10px;
  font-weight: 950;
  overflow: hidden;
  text-transform: uppercase;
}

.wrap-spine span {
  max-width: 152px;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.press-spec-stack,
.channel-readiness-grid {
  display: grid;
  gap: 8px;
}

.press-spec-stack div,
.channel-readiness-grid div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.press-spec-stack strong,
.channel-readiness-grid strong {
  color: #eff7f4;
  font-size: 12px;
  font-weight: 900;
}

.press-spec-stack span,
.channel-readiness-grid span {
  color: #aebfba;
  font-size: 11px;
  line-height: 1.35;
}

.production-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.production-action-row button {
  min-height: 42px;
  border: 1px solid rgba(46, 198, 155, 0.26);
  border-radius: 6px;
  background: rgba(46, 198, 155, 0.1);
  color: #eef8f5;
  padding: 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.production-action-row button:hover {
  border-color: rgba(46, 198, 155, 0.62);
  background: rgba(46, 198, 155, 0.18);
}

.production-action-row button.locked-export {
  opacity: 0.6;
}

.toggle-row input {
  justify-self: start;
  width: 18px;
  height: 18px;
}

.readiness {
  gap: 8px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d1b6ad;
  font-size: 12px;
}

.checkline span:first-child {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(199, 90, 59, 0.2);
  color: #ffb5a6;
  font-size: 9px;
  font-weight: 900;
}

.checkline.ok {
  color: #c6e6dc;
}

.checkline.ok span:first-child {
  background: rgba(48, 185, 125, 0.22);
  color: #6be09f;
}

.help-panel {
  background: #101b22;
}

.guide-step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.guide-step strong,
.guide-step i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #d7e3df;
  font-size: 11px;
  font-style: normal;
}

.guide-step.done strong,
.guide-step.done i {
  background: rgba(54, 197, 129, 0.22);
  color: #6ee0a3;
}

.guide-step b,
.guide-step small {
  display: block;
}

.guide-step b {
  color: #eaf3f0;
  font-size: 12px;
}

.guide-step small {
  margin-top: 2px;
}

.plain-list {
  padding-left: 18px;
}

.plain-list li + li {
  margin-top: 7px;
}

.about-card {
  place-items: start;
}

.about-card dl {
  display: grid;
  gap: 9px;
  width: 100%;
  margin: 6px 0 0;
}

.about-card div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
}

.about-card dt {
  color: #8fa39d;
  font-size: 11px;
}

.about-card dd {
  margin: 0;
  color: #edf4f1;
  font-size: 12px;
}

.setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(5, 11, 15, 0.68);
  padding: 22px;
}

.setup-modal {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  width: min(1480px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #f5f7f6;
  color: #182326;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.setup-messages {
  min-width: 0;
}

.setup-modal-header,
.setup-modal-footer,
.setup-tabs {
  display: flex;
  align-items: center;
}

.setup-modal-header {
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #d7dddc;
}

.setup-modal-header strong,
.setup-modal-header span {
  display: block;
}

.setup-modal-header strong {
  font-size: 17px;
  font-weight: 900;
}

.setup-modal-header span {
  margin-top: 3px;
  color: #63706f;
  font-size: 12px;
}

.setup-close {
  width: 32px;
  height: 32px;
  border: 1px solid #c9d2d0;
  border-radius: 5px;
  background: #ffffff;
  color: #243234;
  font-size: 12px;
  font-weight: 900;
}

.setup-tabs {
  height: 52px;
  border-bottom: 1px solid #dce2e1;
  background: #ffffff;
}

.setup-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  place-items: center;
  gap: 7px;
  flex: 1;
  height: 100%;
  border-right: 1px solid #e1e6e5;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: #5b6868;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.setup-tabs button span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid #cbd7d4;
  border-radius: 999px;
  color: #657371;
  font-size: 10px;
  font-weight: 950;
}

.setup-tabs button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-tabs button.active {
  color: #0f7260;
  box-shadow: inset 0 -2px 0 #0f866f;
}

.setup-tabs button.active span {
  border-color: #0f866f;
  background: #e6f5f0;
  color: #0f6d5c;
}

.setup-focus-note {
  margin: 0;
  border-bottom: 1px solid #dce2e1;
  background: #f8fbfa;
  color: #526260;
  padding: 9px 20px;
  font-size: 12px;
  line-height: 1.4;
}

.setup-body {
  display: grid;
  grid-template-columns: minmax(290px, 0.9fr) minmax(470px, 1.35fr) minmax(330px, 0.95fr);
  min-height: 0;
  overflow: hidden;
}

.setup-column {
  min-width: 0;
  overflow: auto;
  padding: 18px;
}

.setup-column.focus-active {
  background:
    linear-gradient(180deg, rgba(15, 134, 111, 0.08), rgba(255, 255, 255, 0) 180px),
    #ffffff;
  box-shadow: inset 0 0 0 2px rgba(15, 134, 111, 0.14);
}

.setup-column + .setup-column {
  border-left: 1px solid #dde4e2;
}

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

.setup-section-title h2,
.setup-choice-block h3,
.generated-pages h3,
.publishing-account-list h3,
.format-artifacts-card h3 {
  margin: 0;
  color: #152126;
  font-size: 13px;
  font-weight: 900;
}

.setup-section-title button {
  height: 28px;
  border: 1px solid #b9c8c5;
  border-radius: 5px;
  background: #ffffff;
  color: #176f5e;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
}

.setup-section-title span {
  color: #667472;
  font-size: 12px;
  font-weight: 750;
}

.author-setup label,
.setup-title-grid label {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
  color: #3b4a4c;
  font-size: 12px;
  font-weight: 800;
}

.author-setup input,
.author-setup select,
.author-setup textarea,
.setup-title-grid input {
  width: 100%;
  border: 1px solid #c7d0ce;
  border-radius: 5px;
  background: #ffffff;
  color: #1b282b;
  padding: 0 10px;
}

.author-setup input,
.author-setup select,
.setup-title-grid input {
  height: 34px;
}

.author-setup textarea {
  min-height: 74px;
  resize: vertical;
  padding: 9px 10px;
  line-height: 1.45;
}

.license-scope-card,
.generated-pages,
.publishing-account-list,
.format-artifacts-card {
  display: grid;
  gap: 8px;
  border: 1px solid #d4dcda;
  border-radius: 7px;
  background: #ffffff;
  padding: 12px;
}

.license-scope-card strong {
  color: #173d35;
  font-size: 12px;
}

.license-scope-card p,
.license-scope-card small {
  margin: 0;
  color: #5f6f6d;
  font-size: 11px;
  line-height: 1.4;
}

.setup-governance-grid,
.account-setup-grid,
.flow-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.setup-governance-grid article,
.account-setup-grid article,
.account-setup-grid button,
.flow-control-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(15, 72, 59, 0.14);
  border-radius: 7px;
  background: rgba(15, 72, 59, 0.045);
  color: inherit;
  font: inherit;
  padding: 9px;
  text-align: left;
}

.account-setup-grid button {
  cursor: pointer;
}

.account-setup-grid button.active {
  border-color: rgba(46, 198, 155, 0.58);
  background:
    linear-gradient(135deg, rgba(46, 198, 155, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(46, 198, 155, 0.08);
}

.setup-governance-grid strong,
.account-setup-grid strong,
.flow-control-grid strong {
  color: #20302f;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.18;
}

.setup-governance-grid span,
.account-setup-grid span,
.flow-control-grid span {
  color: #657370;
  font-size: 11px;
  line-height: 1.35;
}

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

.enterprise-settings-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(105, 220, 184, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.enterprise-settings-grid label span {
  color: #b8c8c4;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.enterprise-settings-grid select {
  width: 100%;
}

.backup-recovery-settings {
  display: grid;
  gap: 10px;
}

.backup-recovery-settings > label:not(.toggle-row) {
  grid-template-columns: minmax(132px, 168px) minmax(0, 1fr);
}

.backup-recovery-settings .toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 34px;
}

.backup-recovery-settings .toggle-row > span {
  min-width: 0;
  overflow-wrap: normal;
}

.backup-custody-callout {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(240, 201, 119, 0.42);
  border-left: 4px solid #f0c977;
  border-radius: 6px;
  background: rgba(240, 201, 119, 0.08);
  padding: 11px 12px;
}

.backup-custody-callout strong {
  color: #fff7df;
  font-size: 12px;
}

.backup-custody-callout p {
  margin: 0;
  color: #d9e2df;
  line-height: 1.5;
}

.backup-custody-callout a,
.policy-link-grid a {
  color: #9ee1ce;
  font-weight: 850;
}

.policy-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.policy-link-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(116, 183, 166, 0.42);
  border-radius: 5px;
  background: rgba(116, 183, 166, 0.08);
  padding: 8px 10px;
  text-decoration: none;
}

.policy-link-grid a:hover,
.policy-link-grid a:focus-visible {
  border-color: #9ee1ce;
  background: rgba(116, 183, 166, 0.16);
}

.backup-action-grid,
.backup-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.backup-action-grid > button,
.backup-action-grid > .file-button {
  width: 100%;
  min-height: 36px;
}

.backup-action-grid > button {
  border: 1px solid #49615e;
  border-radius: 5px;
  background: #172522;
  color: #edf5f2;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.backup-action-grid > button:first-child:not(.danger) {
  border-color: rgba(46, 198, 155, 0.56);
  background: rgba(46, 198, 155, 0.14);
}

.backup-action-grid > button:disabled,
.backup-recovery-settings select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #49615e;
  border-radius: 5px;
  background: #172522;
  color: #edf5f2;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
}

.file-button:hover,
.file-button:focus-within {
  border-color: #74b7a6;
  background: #1e302c;
}

.file-button.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.backup-action-grid .danger,
.restore-confirmation {
  border-color: rgba(225, 126, 117, 0.45);
}

.backup-state-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-top: 1px solid rgba(118, 163, 153, 0.24);
  padding-top: 8px;
}

.backup-state-grid strong {
  color: #c9d8d4;
  font-size: 10px;
  text-transform: uppercase;
}

.backup-state-grid span {
  overflow-wrap: anywhere;
  color: #f0f5f3;
  font-size: 11px;
}

.enterprise-setting-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enterprise-setting-summary div {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(240, 201, 119, 0.18);
  border-radius: 7px;
  background: rgba(240, 201, 119, 0.06);
  padding: 10px;
}

.enterprise-setting-summary strong {
  color: #fffaf0;
  font-size: 12px;
  font-weight: 950;
}

.enterprise-setting-summary span {
  color: #d9cda8;
  font-size: 11px;
  line-height: 1.4;
}

.account-setup-settings .account-setup-grid article,
.account-setup-settings .account-setup-grid button,
.flow-control-panel .flow-control-grid div {
  border-color: rgba(105, 220, 184, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.account-setup-settings .account-setup-grid button.active {
  border-color: rgba(105, 220, 184, 0.72);
  background:
    linear-gradient(135deg, rgba(46, 198, 155, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.06);
}

.account-setup-settings .account-setup-grid strong,
.flow-control-panel .flow-control-grid strong {
  color: #f1fbf7;
}

.account-setup-settings .account-setup-grid span,
.flow-control-panel .flow-control-grid span {
  color: #b8c8c4;
}

.flow-control-panel {
  background:
    linear-gradient(180deg, rgba(46, 198, 155, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.account-scope-detail {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid rgba(105, 220, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.account-scope-detail strong {
  color: #f8fffc;
  font-size: 12px;
  font-weight: 950;
}

.account-scope-detail p {
  margin: 0;
  color: #b9cac6;
  font-size: 12px;
  line-height: 1.45;
}

.enterprise-control-panel {
  background:
    linear-gradient(180deg, rgba(66, 84, 98, 0.18), transparent 360px),
    #101b22;
}

.enterprise-control-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  border-bottom-color: rgba(124, 196, 214, 0.2);
  background:
    linear-gradient(135deg, rgba(34, 94, 111, 0.24), rgba(80, 61, 105, 0.13)),
    rgba(255, 255, 255, 0.03);
}

.enterprise-control-hero > div:first-child {
  display: grid;
  gap: 5px;
}

.enterprise-control-hero span,
.enterprise-gate-card em {
  color: #8ed8e8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.enterprise-control-hero h2 {
  margin: 0;
  color: #f4fbfb;
  font-size: 18px;
  line-height: 1.18;
}

.enterprise-control-metrics,
.enterprise-gate-grid,
.enterprise-policy-grid,
.enterprise-registry-grid,
.fidelity-grid {
  display: grid;
  gap: 8px;
}

.enterprise-control-metrics {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.enterprise-control-metrics button,
.enterprise-gate-card,
.enterprise-policy-grid div,
.asset-rights-list article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
}

.enterprise-control-metrics button {
  display: grid;
  gap: 3px;
  padding: 10px;
  text-align: left;
}

.enterprise-control-metrics strong {
  color: #f8fffc;
  font-size: 20px;
  line-height: 1;
}

.enterprise-control-metrics span {
  color: #b7c9c9;
  font-size: 11px;
  text-transform: none;
}

.enterprise-gate-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.enterprise-gate-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.enterprise-policy-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.enterprise-registry-grid,
.fidelity-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.enterprise-registry-grid.security {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.enterprise-gate-card,
.enterprise-policy-grid div,
.asset-rights-list article {
  display: grid;
  gap: 7px;
  padding: 10px;
}

.enterprise-gate-card {
  border-left: 3px solid #8c9aa1;
}

.enterprise-gate-card.ready {
  border-left-color: #47c28f;
  background: rgba(63, 170, 125, 0.08);
}

.enterprise-gate-card.attention {
  border-left-color: #d8b25a;
  background: rgba(216, 178, 90, 0.08);
}

.enterprise-gate-card.blocked {
  border-left-color: #c96c5a;
  background: rgba(201, 108, 90, 0.09);
}

.enterprise-gate-card.review {
  border-left-color: #8f8bd8;
  background: rgba(143, 139, 216, 0.08);
}

.enterprise-gate-card div,
.asset-rights-list article {
  min-width: 0;
}

.enterprise-gate-card strong,
.enterprise-policy-grid strong,
.asset-rights-list strong {
  color: #f2f9f7;
  font-size: 12px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.enterprise-gate-card span,
.enterprise-policy-grid span,
.asset-rights-list span,
.asset-rights-list small {
  min-width: 0;
  color: #b9cac7;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.enterprise-gate-card p {
  color: #aebfba;
  font-size: 11px;
  line-height: 1.4;
}

.enterprise-gate-card small {
  color: #d2c49a;
  font-size: 10px;
  line-height: 1.35;
}

.enterprise-gate-card.ready em {
  color: #75e4b9;
}

.enterprise-gate-card.attention em {
  color: #f0cf78;
}

.enterprise-gate-card.blocked em {
  color: #f0a18f;
}

.enterprise-gate-card.review em {
  color: #c8c5ff;
}

.asset-rights-list {
  display: grid;
  gap: 8px;
}

.asset-rights-list:empty::before {
  content: "No project assets yet.";
  color: #aebfba;
  font-size: 12px;
}

.setup-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.setup-choice-block {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.setup-mode-grid,
.setup-template-grid,
.setup-theme-grid,
.setup-cover-grid {
  display: grid;
  gap: 8px;
}

.setup-mode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.setup-theme-grid,
.setup-cover-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.setup-mode-card,
.setup-template-card,
.setup-theme-card,
.setup-cover-card {
  min-width: 0;
  border: 1px solid #ccd6d4;
  border-radius: 7px;
  background: #ffffff;
  color: #1c292c;
  padding: 10px;
  text-align: left;
}

.setup-mode-card.active,
.setup-template-card.active,
.setup-theme-card.active,
.setup-cover-card.active {
  border-color: #0f866f;
  box-shadow: inset 0 0 0 1px #0f866f;
}

.setup-mode-card strong,
.setup-mode-card small,
.setup-template-card strong,
.setup-template-card small,
.setup-cover-card strong {
  display: block;
}

.setup-mode-card strong,
.setup-template-card strong,
.setup-cover-card strong {
  font-size: 12px;
}

.setup-mode-card small,
.setup-template-card small {
  margin-top: 5px;
  color: #657573;
  font-size: 10px;
  line-height: 1.35;
}

.setup-template-card span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 5px;
  background: #edf3f1;
  color: #127964;
  font-size: 10px;
  font-weight: 950;
}

.setup-theme-card {
  display: grid;
  place-items: center;
  min-height: 70px;
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.setup-theme-card span {
  font-size: 22px;
  line-height: 1;
}

.setup-theme-card small {
  color: inherit;
  font-size: 10px;
  opacity: 0.78;
}

.setup-cover-card {
  display: grid;
  gap: 7px;
  min-height: 106px;
  background: #fbfcfc;
}

.cover-mini {
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  border: 1px solid var(--cover-accent);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--cover-accent) 48%, transparent), transparent 35%),
    linear-gradient(145deg, var(--cover-bg), color-mix(in srgb, var(--cover-bg) 76%, #000 24%));
}

.preview-setup {
  background: #eef2f1;
}

.setup-cover-preview {
  display: grid;
  align-items: end;
  width: min(280px, 100%);
  aspect-ratio: 0.68;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 72%, #111 28%);
  border-radius: 7px;
  background:
    radial-gradient(circle at 50% 24%, color-mix(in srgb, var(--cover-accent) 40%, transparent), transparent 28%),
    linear-gradient(155deg, var(--cover-bg), color-mix(in srgb, var(--cover-bg) 72%, #000 28%));
  color: var(--cover-fg);
  box-shadow: 0 22px 48px rgba(21, 31, 35, 0.24);
}

.setup-cover-preview div {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 34px 24px 26px;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 75%, transparent);
  text-align: center;
}

.setup-cover-preview strong,
.setup-cover-preview span,
.setup-cover-preview em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.setup-cover-preview strong {
  align-self: center;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.04;
  text-transform: uppercase;
}

.setup-cover-preview span {
  color: color-mix(in srgb, var(--cover-fg) 78%, var(--cover-accent) 22%);
  font-size: 12px;
}

.setup-cover-preview em {
  align-self: end;
  color: color-mix(in srgb, var(--cover-fg) 72%, var(--cover-accent) 28%);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.generated-pages .checkline,
.publishing-account-list p {
  margin: 0;
}

.publishing-account-list p {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: #263335;
  font-size: 12px;
}

.publishing-account-list p span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18866f;
}

.format-artifacts-card img,
.design-library img,
.asset-board-gallery img {
  display: block;
  width: 100%;
  border: 1px solid #d3dcda;
  border-radius: 7px;
  background: #ffffff;
  object-fit: contain;
}

.setup-modal-footer {
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 18px;
  border-top: 1px solid #d8dfde;
  background: #ffffff;
}

.setup-modal-footer span {
  min-width: 0;
  overflow: hidden;
  color: #60706e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setup-modal-footer div {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.setup-secondary,
.setup-primary {
  height: 34px;
  border-radius: 5px;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 900;
}

.setup-secondary {
  border: 1px solid #c7d0ce;
  background: #ffffff;
  color: #263235;
}

.setup-primary {
  border: 1px solid #0d7c67;
  background: #0d7762;
  color: #ffffff;
}

.design-library {
  background: linear-gradient(180deg, rgba(236, 244, 241, 0.08), rgba(16, 27, 34, 0));
}

.design-flow-lane {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.design-flow-lane span {
  min-width: 0;
  border: 1px solid rgba(105, 220, 184, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #d7e6e2;
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.visual-asset-shelf {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.visual-shelf-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.visual-shelf-title > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.visual-shelf-title strong {
  min-width: 0;
  color: #f3fbf7;
  font-size: 13px;
  font-weight: 950;
}

.visual-shelf-title span {
  color: #9fb1ac;
  font-size: 11px;
  line-height: 1.3;
}

.visual-shelf-expand {
  flex: 0 0 auto;
  min-height: 29px;
  border: 1px solid rgba(105, 220, 184, 0.28);
  border-radius: 999px;
  background: rgba(46, 198, 155, 0.08);
  color: #9eeacb;
  padding: 0 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.visual-shelf-expand:hover {
  border-color: rgba(105, 220, 184, 0.62);
  background: rgba(46, 198, 155, 0.16);
}

.visual-asset-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 168px);
  gap: 8px;
  overflow-x: auto;
  padding: 1px 0 6px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(105, 220, 184, 0.38) rgba(255, 255, 255, 0.045);
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.visual-asset-shelf.expanded .visual-asset-strip {
  grid-auto-flow: row;
  grid-auto-columns: unset;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  max-height: min(58vh, 720px);
  overflow: auto;
  padding: 3px;
  scroll-snap-type: none;
}

.visual-asset-shelf.expanded .visual-asset-tile {
  min-height: 226px;
}

.visual-asset-strip::-webkit-scrollbar {
  height: 7px;
}

.visual-asset-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(105, 220, 184, 0.3);
}

.visual-asset-tile {
  display: grid;
  grid-template-rows: 116px auto auto auto auto;
  gap: 5px;
  min-width: 0;
  min-height: 234px;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    #111d24;
  color: #eef8f5;
  padding: 8px;
  font: inherit;
  text-align: left;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
}

.visual-asset-tile:hover {
  border-color: rgba(105, 220, 184, 0.5);
  background:
    linear-gradient(180deg, rgba(46, 198, 155, 0.13), rgba(255, 255, 255, 0.03)),
    #111d24;
}

.visual-asset-tile:active {
  cursor: grabbing;
}

.visual-asset-tile img {
  width: 100%;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #f7f8f5;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.visual-asset-tile strong {
  overflow: hidden;
  color: #f7fbf8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-asset-tile small,
.visual-asset-tile span,
.visual-asset-tile em {
  color: #aebfba;
  font-size: 10px;
  font-style: normal;
  line-height: 1.28;
}

.visual-asset-tile span {
  min-height: 26px;
}

.visual-asset-tile em {
  justify-self: start;
  border: 1px solid rgba(105, 220, 184, 0.22);
  border-radius: 999px;
  color: #9eeacb;
  padding: 4px 7px;
  font-weight: 900;
}

.builtin-asset-library {
  background: linear-gradient(180deg, rgba(11, 25, 31, 0.15), rgba(255, 255, 255, 0.02));
}

.design-library-boards {
  display: grid;
  gap: 10px;
}

.design-library-boards figure,
.asset-board-gallery figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.design-library-boards figcaption,
.asset-board-gallery figcaption {
  color: #c7d5d2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.asset-board-gallery {
  display: grid;
  gap: 11px;
}

.asset-board-gallery figure {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.asset-board-gallery figcaption {
  display: grid;
  gap: 2px;
}

.asset-board-gallery figcaption strong {
  color: #f1fbf7;
  font-size: 12px;
}

.asset-board-gallery figcaption span {
  color: #9fb1ac;
  font-size: 11px;
  line-height: 1.35;
}

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

.asset-category-grid button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid rgba(46, 198, 155, 0.2);
  border-radius: 7px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #101b23;
  color: #eff8f5;
  padding: 10px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.asset-category-grid button:hover {
  border-color: rgba(46, 198, 155, 0.56);
  background: linear-gradient(140deg, rgba(25, 126, 101, 0.3), rgba(16, 27, 35, 0.98));
}

.asset-category-grid button.active {
  border-color: rgba(105, 220, 184, 0.72);
  background:
    linear-gradient(140deg, rgba(46, 198, 155, 0.34), rgba(16, 27, 35, 0.98)),
    #101b23;
  box-shadow: inset 0 0 0 1px rgba(105, 220, 184, 0.22);
}

.asset-category-grid strong {
  font-size: 12px;
  font-weight: 900;
}

.asset-category-grid span {
  color: #aebfba;
  font-size: 11px;
  line-height: 1.35;
}

.asset-focus-note {
  margin: 0;
  border: 1px solid rgba(46, 198, 155, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #c1d2ce;
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.design-command-bar {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(360px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.cover-diversity-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-color: rgba(202, 166, 91, 0.34);
  background: rgba(202, 166, 91, 0.055);
}

.cover-diversity-control > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cover-diversity-control span {
  color: #d8bd7f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cover-diversity-control strong {
  color: #f4eee1;
  font-size: 13px;
}

.cover-diversity-control small {
  color: #aeb9b6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.cover-diversity-control p {
  margin: 2px 0 0;
  color: #b9c6c2;
  font-size: 10px;
  line-height: 1.4;
}

.cover-diversity-control button {
  min-height: 40px;
  border: 1px solid rgba(202, 166, 91, 0.58);
  border-radius: 5px;
  background: rgba(202, 166, 91, 0.12);
  color: #f4e8cc;
  padding: 0 14px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.design-command-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.design-command-title h2,
.design-command-title p {
  margin: 0;
}

.design-command-title p {
  overflow: hidden;
  color: #9fb1ac;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-mode-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  overflow: hidden;
  border: 1px solid rgba(105, 220, 184, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.design-mode-tabs button {
  min-height: 34px;
  border: 0;
  border-left: 1px solid rgba(105, 220, 184, 0.2);
  background: transparent;
  color: #becfca;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.design-mode-tabs button:first-child {
  border-left: 0;
}

.design-mode-tabs button:hover,
.design-mode-tabs button.active {
  background: rgba(46, 198, 155, 0.18);
  color: #f4fbf8;
}

.design-mode-tabs button.active {
  box-shadow: inset 0 -2px 0 #2ec69b;
}

.design-command-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.design-command-actions button,
.design-import-command,
.design-browser-heading > button,
.design-browser-heading .asset-workspace-actions button,
.uploaded-element-card button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46, 198, 155, 0.32);
  border-radius: 6px;
  background: rgba(46, 198, 155, 0.1);
  color: #eef8f5;
  padding: 6px 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.design-import-command.primary {
  border-color: #2ec69b;
  background: #19866f;
  color: #ffffff;
}

.composer-kicker {
  color: #79dbbb;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.design-browser {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(105, 220, 184, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px;
}

.design-browser-heading,
.element-browser-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.design-browser-heading > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.design-browser-heading strong {
  color: #f3fbf7;
  font-size: 12px;
  font-weight: 900;
}

.design-browser-heading span,
.element-browser-toolbar > span {
  color: #9fb1ac;
  font-size: 10px;
  line-height: 1.35;
}

.element-browser-toolbar label {
  display: grid;
  grid-template-columns: auto minmax(220px, 430px);
  gap: 8px;
  align-items: center;
  width: min(100%, 560px);
  color: #bed0cb;
  font-size: 10px;
  font-weight: 850;
}

.element-browser-toolbar input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: #101a21;
  color: #f4fbf8;
  padding: 0 10px;
  font: inherit;
  font-size: 11px;
}

.design-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.design-category-tabs button {
  min-height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #b8cac5;
  padding: 0 10px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.design-category-tabs button.active {
  border-color: rgba(105, 220, 184, 0.72);
  background: rgba(46, 198, 155, 0.2);
  color: #f3fbf7;
}

.design-element-grid,
.uploaded-element-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(126px, 146px);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 1px 1px 7px;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
}

.design-element-card {
  display: grid;
  grid-template-rows: 82px auto auto;
  gap: 4px;
  min-width: 0;
  min-height: 132px;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #111d24;
  color: #f3faf7;
  padding: 7px;
  font: inherit;
  text-align: left;
  cursor: grab;
}

.design-element-card:hover {
  border-color: rgba(105, 220, 184, 0.58);
  background: #14262a;
}

.design-element-card img {
  width: 100%;
  height: 82px;
  border-radius: 5px;
  background: #f7f7f4;
  object-fit: contain;
}

.design-element-card.builtin > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  align-self: center;
  justify-self: center;
  border-radius: 7px;
  background: linear-gradient(145deg, #f8df8d, #87652f);
  color: #15211c;
  font-size: 13px;
  font-weight: 950;
}

.design-element-card strong,
.uploaded-element-card > strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-element-card small {
  color: #9fb1ac;
  font-size: 9px;
}

.uploaded-element-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #111d24;
  padding: 8px;
}

.uploaded-element-card > img,
.uploaded-element-card > .asset-file-placeholder {
  width: 100%;
  height: 84px;
  border-radius: 5px;
  background: #f7f7f4;
  object-fit: contain;
}

.uploaded-element-card > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.uploaded-element-card button {
  min-height: 28px;
  padding: 4px 6px;
  font-size: 9px;
}

.upload-empty-state {
  display: grid;
  min-height: 132px;
  align-content: center;
  gap: 4px;
  border: 1px dashed rgba(105, 220, 184, 0.35);
  border-radius: 7px;
  color: #d8e6e2;
  padding: 16px;
}

.upload-empty-state span {
  color: #9fb1ac;
  font-size: 10px;
  line-height: 1.4;
}

.asset-folder-grid.compact {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  overflow-x: auto;
}

.design-composer {
  overflow: hidden;
  border-color: rgba(46, 198, 155, 0.2);
  background:
    linear-gradient(180deg, rgba(46, 198, 155, 0.08), rgba(255, 255, 255, 0.02)),
    #0b151c;
}

.design-composer.expanded {
  position: fixed;
  inset: 78px 18px 44px;
  z-index: 90;
  overflow: auto;
  border-color: rgba(105, 220, 184, 0.42);
  box-shadow: 0 28px 120px rgba(0, 0, 0, 0.54);
}

.design-composer.expanded .composer-workspace {
  grid-template-columns: minmax(360px, 0.9fr) minmax(280px, 0.55fr);
}

.design-composer.expanded .asset-object-catalog {
  grid-template-columns: repeat(5, minmax(138px, 1fr));
  height: min(190px, 24vh);
  min-height: 150px;
}

.design-composer.expanded .cover-canvas {
  width: min(48vw, 520px);
}

.composer-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.composer-header p {
  max-width: 660px;
}

.cover-format-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px 10px;
}

.cover-format-bar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 164px;
}

.cover-format-bar strong {
  color: #f2f8f5;
  font-size: 11px;
  font-weight: 900;
}

.cover-format-bar span {
  color: #aebfba;
  font-size: 10px;
}

.cover-format-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  min-width: min(100%, 390px);
  overflow: hidden;
  border: 1px solid rgba(46, 198, 155, 0.28);
  border-radius: 5px;
}

.cover-format-switch button {
  min-height: 34px;
  border: 0;
  border-left: 1px solid rgba(46, 198, 155, 0.2);
  background: rgba(46, 198, 155, 0.06);
  color: #c5d6d1;
  padding: 0 9px;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}

.cover-format-switch button:first-child {
  border-left: 0;
}

.cover-format-switch button.active {
  background: #2ec69b;
  color: #071813;
}

.composer-actions,
.layer-order-actions,
.canvas-tool-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.composer-actions button,
.layer-order-actions button,
.nudge-grid button,
.alignment-grid button,
.canvas-tool-strip button,
.template-strip button {
  min-height: 32px;
  border: 1px solid rgba(46, 198, 155, 0.26);
  border-radius: 6px;
  background: rgba(46, 198, 155, 0.1);
  color: #eef8f5;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.composer-actions button:hover,
.layer-order-actions button:hover,
.nudge-grid button:hover,
.alignment-grid button:hover,
.canvas-tool-strip button:hover,
.template-strip button:hover {
  border-color: rgba(46, 198, 155, 0.62);
  background: rgba(46, 198, 155, 0.18);
}

.canvas-tool-strip .canvas-delete-action,
.layer-order-actions .canvas-delete-action {
  margin-left: auto;
  border-color: rgba(242, 139, 130, 0.72);
  background: rgba(128, 34, 34, 0.36);
  color: #fff4f2;
}

.canvas-tool-strip .canvas-delete-action:hover,
.layer-order-actions .canvas-delete-action:hover {
  border-color: #f28b82;
  background: rgba(157, 38, 38, 0.58);
}

.canvas-tool-strip .canvas-delete-action:focus-visible,
.layer-order-actions .canvas-delete-action:focus-visible {
  outline: 3px solid #f5d777;
  outline-offset: 2px;
}

.template-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.template-strip button {
  display: grid;
  gap: 4px;
  min-height: 66px;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(245, 215, 119, 0.12), rgba(46, 198, 155, 0.08)),
    rgba(255, 255, 255, 0.045);
  text-align: left;
}

.template-strip strong,
.canvas-tool-strip button {
  font-size: 11px;
  font-weight: 900;
}

.template-strip span {
  color: #b8cac5;
  font-size: 10px;
  line-height: 1.25;
}

.asset-object-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  height: min(308px, 38vh);
  min-height: 156px;
  max-height: 308px;
  overflow: auto;
  padding-right: 2px;
}

.asset-object-card {
  display: grid;
  grid-template-rows: 38px auto auto 1fr;
  gap: 5px;
  min-height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background:
    radial-gradient(circle at 22% 10%, rgba(245, 215, 119, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.045);
  color: #eff8f5;
  padding: 9px;
  font: inherit;
  min-width: 0;
  text-align: left;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
}

.asset-object-card:hover {
  border-color: rgba(245, 215, 119, 0.48);
  background:
    radial-gradient(circle at 22% 10%, rgba(245, 215, 119, 0.24), transparent 34%),
    rgba(46, 198, 155, 0.09);
}

.asset-object-card:active {
  cursor: grabbing;
}

.asset-object-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: linear-gradient(145deg, #f8df8d, #87652f);
  color: #15211c;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.asset-object-card strong {
  color: #f7fbf8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.16;
}

.asset-object-card small,
.asset-object-card em {
  color: #aebfba;
  font-size: 10px;
  font-style: normal;
  line-height: 1.28;
}

.asset-object-card em {
  color: #d3dfdb;
}

.composer-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(220px, 0.75fr);
  gap: 12px;
  align-items: start;
}

.cover-canvas {
  position: relative;
  width: min(100%, 320px);
  min-height: 0;
  aspect-ratio: 2 / 3;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(245, 215, 119, 0.36);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 215, 119, 0.28), transparent 24%),
    radial-gradient(circle at 76% 78%, rgba(46, 198, 155, 0.22), transparent 30%),
    linear-gradient(145deg, #12231f 0%, #24473f 54%, #ead6a0 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.cover-canvas.format-ebook {
  aspect-ratio: 5 / 8;
}

.cover-canvas.format-paperback {
  aspect-ratio: 2 / 3;
}

.cover-canvas.format-jacket {
  width: min(100%, 520px);
  aspect-ratio: 17 / 11;
}

.cover-canvas.format-audiobook {
  width: min(100%, 390px);
  aspect-ratio: 1;
}

.design-composer.expanded .cover-canvas.format-jacket {
  width: min(66vw, 760px);
}

.cover-canvas.drop-ready {
  border-color: rgba(46, 198, 155, 0.9);
  box-shadow:
    0 0 0 5px rgba(46, 198, 155, 0.14),
    0 24px 70px rgba(0, 0, 0, 0.28);
}

.cover-drop-hint {
  top: 50%;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -50%);
}

.cover-safe-area {
  position: absolute;
  inset: 8%;
  z-index: 2;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  pointer-events: none;
}

.cover-canvas.format-audiobook .cover-safe-area {
  inset: 10%;
  border-radius: 50%;
}

.cover-canvas.format-jacket .cover-safe-area {
  inset: 6%;
}

.cover-jacket-guides {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 850;
  pointer-events: none;
}

.cover-canvas.format-jacket .cover-jacket-guides {
  display: block;
}

.cover-jacket-guides::before,
.cover-jacket-guides::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(255, 255, 255, 0.34);
  content: "";
}

.cover-jacket-guides::before {
  left: 46%;
}

.cover-jacket-guides::after {
  left: 54%;
}

.cover-jacket-guides span {
  position: absolute;
  bottom: 3%;
  transform: translateX(-50%);
  border-radius: 3px;
  background: rgba(4, 14, 12, 0.58);
  padding: 3px 5px;
}

.cover-back-label {
  left: 25%;
}

.cover-spine-label {
  left: 50%;
}

.cover-front-label {
  left: 75%;
}

.canvas-layer {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #fff8e2;
  padding: 0;
  font: inherit;
  line-height: 1.05;
  overflow: hidden;
  transform-origin: center;
  touch-action: none;
  cursor: grab;
  transition: outline-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.canvas-layer:active {
  cursor: grabbing;
}

.asset-object-card:focus-visible,
.cover-canvas:focus-visible,
.canvas-layer:focus-visible,
.canvas-resize-handle:focus-visible {
  outline: 3px solid #f5d777;
  outline-offset: 3px;
}

.asset-object-card:focus-visible {
  border-color: #f5d777;
  box-shadow: 0 0 0 4px rgba(245, 215, 119, 0.16);
}

.cover-canvas:focus-within {
  border-color: rgba(46, 198, 155, 0.78);
}

.canvas-layer:focus-visible {
  z-index: 1001 !important;
  overflow: visible;
  box-shadow: 0 0 0 6px rgba(245, 215, 119, 0.18);
}

.canvas-layer:focus-visible .canvas-resize-handle {
  border-color: #f5d777;
}

.canvas-layer.locked,
.canvas-layer.locked:active {
  cursor: not-allowed;
}

.canvas-layer.locked::after {
  border-color: #493913;
  background: #f5d777;
}

.canvas-layer:hover,
.canvas-layer.selected {
  outline: 2px solid rgba(46, 198, 155, 0.92);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(46, 198, 155, 0.12);
  filter: saturate(1.06);
}

.canvas-layer.selected {
  z-index: 1000 !important;
  overflow: visible;
}

.canvas-layer.selected::before,
.canvas-layer.selected::after {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border: 1px solid #09221b;
  border-radius: 999px;
  background: #2ec69b;
  content: "";
}

.canvas-layer.selected::before {
  top: -5px;
  left: -5px;
}

.canvas-layer.selected::after {
  right: -5px;
  bottom: -5px;
}

.canvas-layer span {
  display: block;
  max-width: 100%;
  padding: 4px;
  overflow-wrap: anywhere;
  text-align: center;
}

.canvas-layer .canvas-resize-handle {
  position: absolute;
  z-index: 8;
  display: block;
  width: 28px;
  height: 28px;
  max-width: none;
  border: 2px solid #09221b;
  border-radius: 999px;
  background: #2ec69b;
  box-shadow: 0 0 0 3px rgba(46, 198, 155, 0.22);
  padding: 0;
  pointer-events: auto;
  touch-action: none;
}

.canvas-layer .canvas-resize-handle.hidden {
  display: none;
}

.canvas-layer .canvas-resize-handle.nw {
  top: -12px;
  left: -12px;
  cursor: nwse-resize;
}

.canvas-layer .canvas-resize-handle.ne {
  top: -12px;
  right: -12px;
  cursor: nesw-resize;
}

.canvas-layer .canvas-resize-handle.sw {
  bottom: -12px;
  left: -12px;
  cursor: nesw-resize;
}

.canvas-layer .canvas-resize-handle.se {
  right: -12px;
  bottom: -12px;
  cursor: nwse-resize;
}

@media (pointer: coarse) {
  .project-command,
  .support-command,
  .mobile-menu-toggle,
  .menu-group > button,
  .layout-switcher button,
  .flow-step,
  .setup-modal button,
  .setup-modal input:not([type="checkbox"]):not([type="radio"]),
  .setup-modal select,
  .design-mode-tabs button,
  .canvas-tool-strip button,
  .composer-actions button {
    min-height: 44px;
  }

  .asset-object-card {
    min-height: 148px;
  }

  .canvas-layer .canvas-resize-handle {
    width: 28px;
    height: 28px;
  }

  .canvas-layer .canvas-resize-handle.nw {
    top: -12px;
    left: -12px;
  }

  .canvas-layer .canvas-resize-handle.ne {
    top: -12px;
    right: -12px;
  }

  .canvas-layer .canvas-resize-handle.sw {
    bottom: -12px;
    left: -12px;
  }

  .canvas-layer .canvas-resize-handle.se {
    right: -12px;
    bottom: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .canvas-layer,
  .cover-canvas,
  .asset-object-card,
  .canvas-resize-handle {
    scroll-behavior: auto;
    transition: none;
  }
}

.canvas-layer img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: contain;
  pointer-events: none;
}

.canvas-layer.asset-image-cover img,
.canvas-layer.asset-image-person img,
.canvas-layer.asset-image-type img {
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.canvas-layer.cover-scene-image img {
  border-radius: 0;
  filter: none;
  object-fit: cover;
}

.canvas-layer.cover-scene-shade {
  background: linear-gradient(
    180deg,
    rgba(4, 11, 11, 0.82) 0%,
    rgba(4, 11, 11, 0.2) 34%,
    rgba(4, 11, 11, 0.06) 54%,
    rgba(4, 11, 11, 0.76) 100%
  );
  color: transparent;
}

.canvas-layer.cover-genre-title {
  align-items: flex-start;
  font-size: clamp(18px, 2.25vw, 32px);
  line-height: 1.02;
}

.canvas-layer.cover-genre-subtitle {
  background: rgba(248, 241, 221, 0.82);
}

.canvas-layer.cover-genre-author {
  justify-content: flex-start;
}

.canvas-layer.asset-image-frame img,
.canvas-layer.asset-image-print img,
.canvas-layer.asset-image-mark img,
.canvas-layer.asset-image-object img,
.canvas-layer.asset-image-shape img {
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.24));
}

.canvas-layer.asset-foil-title,
.canvas-layer.asset-embossed-serif {
  color: #f5d777;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.1vw, 30px);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(48, 32, 4, 0.42), 0 14px 28px rgba(0, 0, 0, 0.38);
}

.canvas-layer.asset-chrome-title {
  color: #dfe8e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 29px);
  font-weight: 900;
  text-shadow: 0 1px 0 #ffffff, 0 14px 28px rgba(0, 0, 0, 0.4);
}

.canvas-layer.asset-neon-script {
  color: #83f2cc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2vw, 29px);
  font-style: italic;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(131, 242, 204, 0.72);
}

.canvas-layer.asset-author-lockup {
  color: #f7ead0;
  font-size: clamp(11px, 1.4vw, 18px);
  font-weight: 850;
  text-transform: uppercase;
}

.canvas-layer.asset-foil-frame {
  border: 2px solid #f2d68c;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(83, 62, 20, 0.42), 0 22px 42px rgba(0, 0, 0, 0.28);
}

.canvas-layer.asset-vellum-panel,
.canvas-layer.asset-quote-card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.72);
  color: #183029;
  font-weight: 800;
}

.canvas-layer.asset-workid-seal,
.canvas-layer.asset-series-badge {
  border: 2px solid #17231f;
  border-radius: 999px;
  background: #fffaf0;
  color: #17231f;
  font-size: 12px;
  font-weight: 950;
}

.canvas-layer.asset-barcode-box,
.canvas-layer.asset-qr-mark {
  border: 2px solid #17231f;
  background:
    repeating-linear-gradient(90deg, #17231f 0 3px, transparent 3px 7px),
    #fffaf0;
  color: #17231f;
  font-size: 10px;
  font-weight: 950;
}

.canvas-layer.asset-qr-mark {
  background:
    linear-gradient(90deg, #17231f 16%, transparent 16% 34%, #17231f 34% 48%, transparent 48% 70%, #17231f 70%),
    #fffaf0;
}

.canvas-layer.asset-portrait-frame,
.canvas-layer.asset-silhouette,
.canvas-layer.asset-narrator-avatar,
.canvas-layer.asset-researcher-avatar {
  border: 2px solid rgba(247, 232, 183, 0.82);
  border-radius: 22%;
  background:
    radial-gradient(circle at 50% 32%, #f8e5bd 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 78%, #f8e5bd 0 34%, transparent 35%),
    linear-gradient(145deg, #365c55, #122821);
  color: transparent;
}

.canvas-layer.asset-book-stack,
.canvas-layer.asset-typewriter,
.canvas-layer.asset-quill-pen,
.canvas-layer.asset-glass-globe,
.canvas-layer.asset-microphone,
.canvas-layer.asset-headphones,
.canvas-layer.asset-waveform,
.canvas-layer.asset-spine-label,
.canvas-layer.asset-dust-jacket,
.canvas-layer.asset-flap-bio {
  border: 1px solid rgba(247, 232, 183, 0.56);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(245, 215, 119, 0.3), rgba(23, 42, 37, 0.82));
  color: #fff8e2;
  font-size: clamp(10px, 1.2vw, 18px);
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.canvas-layer.asset-watercolor-wash,
.canvas-layer.asset-marble-shape,
.canvas-layer.asset-smoke-overlay,
.canvas-layer.asset-map-pin {
  border-radius: 45% 55% 48% 52%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, rgba(121, 183, 168, 0.88), rgba(232, 213, 165, 0.62));
  color: transparent;
  filter: blur(0.2px);
}

.canvas-layer.asset-smoke-overlay {
  background: radial-gradient(circle, rgba(73, 89, 90, 0.7), rgba(17, 26, 30, 0.04) 70%);
}

.canvas-layer.asset-map-pin {
  border-radius: 50% 50% 50% 12%;
  background: #f5d777;
}

.layer-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.layer-panel h3,
.layer-controls h3 {
  margin: 0;
  color: #eef8f5;
  font-size: 12px;
  font-weight: 900;
}

.layer-list,
.layer-controls {
  display: grid;
  gap: 8px;
}

.layer-list {
  max-height: 220px;
  overflow: auto;
}

.layer-list button {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #eff8f5;
  padding: 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.layer-list button.active,
.layer-list button:hover {
  border-color: rgba(46, 198, 155, 0.52);
  background: rgba(46, 198, 155, 0.11);
}

.layer-list strong {
  font-size: 11px;
  font-weight: 900;
}

.layer-list span {
  color: #aebfba;
  font-size: 10px;
}

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

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

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

.selected-layer-editor {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.selected-layer-editor strong {
  min-width: 0;
  overflow: hidden;
  color: #f7fbf8;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.layer-controls label {
  display: grid;
  gap: 5px;
}

.layer-controls label span {
  color: #cbdad6;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.layer-controls input[type="range"] {
  width: 100%;
  accent-color: #2ec69b;
}

.selected-layer-editor input[type="text"] {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(46, 198, 155, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbf8;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
}

.pricing-grid,
.store-readiness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pricing-grid div,
.store-readiness-grid div,
.store-policy-callout {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.pricing-grid strong,
.store-readiness-grid strong,
.store-policy-callout strong {
  color: #eff7f4;
  font-size: 12px;
  font-weight: 900;
}

.pricing-grid span,
.store-readiness-grid span,
.store-policy-callout span,
.channel-note {
  color: #aebfba;
  font-size: 11px;
  line-height: 1.4;
}

.pricing-grid span,
.store-readiness-grid span {
  overflow-wrap: anywhere;
}

.store-policy-callout {
  margin-top: 10px;
  border-color: rgba(46, 198, 155, 0.25);
  background: rgba(46, 198, 155, 0.08);
}

.channel-note {
  margin: 10px 0 0;
}

.artifact-grid,
.author-profile-list {
  display: grid;
  gap: 8px;
}

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

.artifact-grid div,
.author-profile-list article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.artifact-grid strong,
.author-profile-list strong {
  color: #eff7f4;
  font-size: 12px;
}

.artifact-grid span,
.author-profile-list span,
.author-profile-list small {
  color: #aebfba;
  font-size: 11px;
  line-height: 1.35;
}

.install-steps {
  display: grid;
  gap: 9px;
}

.install-steps div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.install-steps strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 198, 155, 0.2);
  color: #61e0b5;
  font-size: 11px;
}

.install-steps span {
  color: #c8d6d2;
  font-size: 12px;
  line-height: 1.4;
}

.help-panel code {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: #081017;
  color: #cfeee6;
  padding: 10px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.bottom-bar {
  gap: 18px;
  min-width: 0;
  padding: 0 max(14px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(14px, env(safe-area-inset-left));
  color: #cbdad6;
  font-size: 12px;
}

.bottom-bar span {
  white-space: nowrap;
}

.bottom-bar strong {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: #e5f5ed;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  body {
    overflow: auto;
  }

  .app-frame {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    grid-template-rows: auto auto auto;
  }

  .top-bar {
    grid-template-rows: auto auto;
    min-height: 82px;
    padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }

  .app-menu-strip,
  .command-strip {
    min-height: 34px;
  }

  .workflow-command-strip {
    flex-wrap: wrap;
    align-items: start;
    gap: 8px;
  }

  .project-actions {
    flex: 0 0 auto;
  }

  .document-switcher {
    flex: 1 1 260px;
    max-width: 360px;
  }

  .flow-steps {
    order: 4;
    flex: 0 0 100%;
    min-width: 0;
  }

  .support-actions {
    flex: 1 1 360px;
    justify-content: flex-end;
    min-width: 0;
  }

  .top-status {
    margin-left: 0;
  }

  .workspace {
    grid-template-columns: 300px 6px minmax(0, 1fr);
  }

  .workspace.home-active {
    grid-template-columns: 300px 6px minmax(0, 1fr);
  }

  .right-resizer {
    display: none;
  }

  .workspace.layout-focus,
  .workspace.layout-typewriter,
  .workspace.layout-mechanical-typewriter {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace.layout-clarity {
    grid-template-columns: minmax(260px, 300px) 6px minmax(0, 1fr) 0 0;
  }

  .workspace.layout-proof,
  .workspace.layout-planning {
    grid-template-columns: minmax(0, 1fr);
  }

  .publish-pane {
    grid-column: 1 / -1;
    min-height: 720px;
  }

  .setup-body {
    grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.15fr);
  }

  .preview-setup {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .preview-setup .setup-section-title,
  .preview-setup .setup-cover-preview {
    grid-column: 1;
  }

  .preview-setup .generated-pages,
  .preview-setup .publishing-account-list,
  .preview-setup .format-artifacts-card {
    grid-column: 2;
  }

  .home-command-grid,
  .home-command-grid.secondary,
  .home-command-grid.tertiary {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-system-grid,
  .design-flow-lane {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .enterprise-model-grid,
  .enterprise-settings-grid,
  .enterprise-setting-summary,
  .enterprise-control-metrics,
  .enterprise-registry-grid,
  .fidelity-grid,
  .clarity-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-registry-grid.security,
  .enterprise-gate-grid,
  .enterprise-gate-grid.compact,
  .enterprise-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  html,
  body,
  .app-frame {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .book-switcher,
  .book-switcher select,
  .system-menu,
  .command-strip {
    width: 100%;
  }

  .app-menu-strip {
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .brand-lockup {
    width: auto;
    min-width: 160px;
  }

  .top-status {
    order: 0;
    width: auto;
    flex: 0 0 220px;
  }

  .system-menu,
  .command-strip {
    flex: 0 0 100%;
    max-width: calc(100vw - 24px);
    flex-wrap: wrap;
    overflow: hidden;
    gap: 6px;
    padding-bottom: 2px;
  }

  .app-menu-strip .system-menu {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .top-actions {
    flex: 0 0 auto;
  }

  .workflow-command-strip {
    align-items: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
  }

  .project-actions,
  .document-switcher,
  .support-actions,
  .flow-steps {
    flex: 0 0 auto;
    max-width: none;
    align-self: center;
  }

  .project-actions {
    flex-wrap: nowrap;
    overflow: visible;
  }

  .document-switcher {
    width: 238px;
    min-width: 220px;
  }

  .flow-steps {
    order: 0;
    width: auto;
    min-width: max-content;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .flow-steps::-webkit-scrollbar {
    display: none;
  }

  .workflow-command-strip .support-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    min-width: max-content;
    overflow: visible;
  }

  .editor-toolbar {
    max-width: 100vw;
    flex-wrap: wrap;
    overflow: hidden;
  }

  .editor-pane {
    grid-template-rows: auto minmax(0, 1fr) 36px;
  }

  .layout-switcher {
    flex: 0 0 auto;
    justify-content: space-between;
    min-width: 150px;
  }

  .system-menu .menu-group {
    flex: 0 1 auto;
  }

  .editor-toolbar select,
  .editor-toolbar button {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-workspace {
    padding: 10px;
  }

  .home-command-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .home-command-cover .cover-thumb {
    width: 64px;
    height: 88px;
  }

  .home-command-copy h1 {
    font-size: 20px;
    white-space: normal;
  }

  .home-command-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .home-command-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enterprise-readiness-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-model-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .clarity-support-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-readiness-actions {
    justify-content: start;
  }

  .clarity-support-actions {
    justify-content: start;
  }

  .home-import-strip,
  .enterprise-readiness-grid,
  .enterprise-model-grid,
  .clarity-support-grid,
  .enterprise-settings-grid,
  .enterprise-setting-summary,
  .home-format-grid,
  .identity-register,
  .print-option-list,
  .design-showcase-grid,
  .flow-system-grid,
  .design-flow-lane,
  .home-command-grid,
  .home-command-grid.secondary,
  .home-command-grid.tertiary {
    grid-template-columns: minmax(0, 1fr);
  }

  .backup-recovery-settings > label:not(.toggle-row) {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-group > button,
  .menu-row button {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.06);
  }

  .menu-popover {
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
  }

  .workspace {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .publish-pane {
    grid-template-columns: minmax(0, 1fr);
    order: 1;
    width: 100%;
  }

  .pane-splitter {
    display: none;
  }

  .left-rail,
  .editor-pane,
  .publish-pane {
    grid-column: 1;
  }

  .editor-pane {
    order: 2;
    width: 100%;
  }

  .layout-clarity .editor-scroll {
    padding: 24px 14px;
  }

  .layout-clarity .chapter-title-input {
    font-size: 29px;
  }

  .layout-clarity .writing-area {
    min-height: 62vh;
    padding: 22px;
  }

  .layout-typewriter .editor-scroll,
  .layout-mechanical-typewriter .editor-scroll {
    padding: 22px 12px 70px;
  }

  .layout-typewriter .chapter-title-input,
  .layout-typewriter .writing-area,
  .layout-mechanical-typewriter .chapter-title-input,
  .layout-mechanical-typewriter .writing-area {
    max-width: 100%;
  }

  .layout-typewriter .chapter-title-input,
  .layout-mechanical-typewriter .chapter-title-input {
    min-height: 94px;
    padding: 32px 22px 10px;
    font-size: 27px;
  }

  .layout-typewriter .writing-area,
  .layout-mechanical-typewriter .writing-area {
    min-height: 74vh;
    padding: 0 22px 56px;
    font-size: max(var(--editor-size), 17px);
  }

  .layout-mechanical-typewriter .writing-area {
    min-height: 34vh;
  }

  .typewriter-machine {
    position: relative;
    bottom: auto;
    margin-top: 0;
  }

  .typewriter-carriage {
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    padding: 7px 9px;
  }

  .typewriter-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 12px;
  }

  .typewriter-lever {
    min-height: 48px;
  }

  .typewriter-action {
    min-height: 210px;
  }

  .typewriter-manual-keyboard {
    padding: 8px;
    overflow-x: auto;
  }

  .typewriter-key-row {
    min-width: 480px;
  }

  .typewriter-manual-key.wide {
    min-width: 86px;
  }

  .workspace.home-active .editor-pane {
    order: 1;
  }

  .workspace.home-active .publish-pane {
    order: 2;
  }

  .workspace.home-active .left-rail {
    order: 3;
  }

  .left-rail {
    order: 3;
    width: 100%;
    min-height: 560px;
  }

  .publish-pane {
    display: flex;
    flex-direction: column;
    grid-template-rows: auto minmax(0, auto) auto;
    overflow: visible;
  }

  .workflow-header {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 8px;
    padding-bottom: 8px;
  }

  .workflow-title {
    min-height: 48px;
  }

  .workflow-rail {
    padding-bottom: 4px;
  }

  .workflow-step {
    flex-basis: 136px;
  }

  .designer-stage {
    order: 3;
    min-height: 620px;
  }

  .side-panel {
    order: 2;
    min-height: 0;
    overflow: visible;
  }

  .panel-scroll {
    height: auto;
    overflow: visible;
  }

  .settings-grid,
  .integration-grid,
  .store-grid,
  .service-grid,
  .isbn-grid,
  .handoff-actions,
  .production-action-row,
  .channel-readiness-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .language-issue {
    grid-template-columns: minmax(0, 1fr);
  }

  .language-issue span {
    justify-self: start;
  }

  .mindmap-canvas {
    grid-template-columns: minmax(0, 1fr);
    margin: 10px;
    padding: 22px 16px;
  }

  .editor-scroll {
    padding: 28px 20px;
  }

  .chapter-title-input {
    font-size: 34px;
  }

  .writing-area {
    min-height: 520px;
    font-size: 17px;
  }

  .book-preview {
    overflow-x: hidden;
    padding: 16px 8px;
  }

  .book-page {
    width: min(calc(100vw - 32px), var(--page-width));
    padding: 34px 26px 30px;
  }

  .setup-overlay {
    align-items: stretch;
    padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .setup-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .setup-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
  }

  .setup-tabs button {
    min-height: 44px;
    padding-inline: 10px;
  }

  .setup-tabs button:nth-child(2n) {
    border-right: 0;
  }

  .setup-tabs button:nth-child(n + 3) {
    border-top: 1px solid #e1e6e5;
  }

  .setup-focus-note,
  .setup-error {
    padding: 8px 16px;
  }

  .setup-body,
  .preview-setup {
    display: block;
  }

  .setup-column + .setup-column {
    border-left: 0;
    border-top: 1px solid #dde4e2;
  }

  .setup-title-grid,
  .setup-mode-grid,
  .setup-template-grid,
  .setup-theme-grid,
  .setup-cover-grid,
  .setup-governance-grid,
  .account-setup-grid,
  .flow-control-grid,
  .artifact-grid,
  .asset-category-grid,
  .asset-object-catalog,
  .alignment-grid,
  .template-strip,
  .enterprise-control-metrics,
  .enterprise-gate-grid,
  .enterprise-gate-grid.compact,
  .enterprise-policy-grid,
  .enterprise-registry-grid,
  .enterprise-registry-grid.security,
  .fidelity-grid,
  .pricing-grid,
  .store-readiness-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-shelf-title {
    display: grid;
  }

  .visual-shelf-title span {
    text-align: left;
  }

  .visual-asset-strip {
    grid-auto-columns: minmax(134px, 152px);
  }

  .composer-header {
    display: grid;
  }

  .cover-format-bar {
    display: grid;
  }

  .cover-format-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .cover-format-switch button:nth-child(3) {
    border-top: 1px solid rgba(46, 198, 155, 0.2);
    border-left: 0;
  }

  .cover-format-switch button:nth-child(4) {
    border-top: 1px solid rgba(46, 198, 155, 0.2);
  }

  .composer-actions {
    width: 100%;
  }

  .composer-actions button,
  .canvas-tool-strip button {
    flex: 1;
  }

  .composer-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-canvas {
    width: min(100%, 300px);
  }

  .setup-cover-preview {
    max-width: 260px;
  }

  .setup-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .setup-modal-footer div {
    width: 100%;
  }

  .setup-secondary,
  .setup-primary {
    flex: 1;
  }

  .bottom-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 9px max(12px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .bottom-bar strong {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 1180px) {
  .design-command-bar,
  .workflow-focused .assets-panel > .design-command-bar {
    grid-template-columns: minmax(150px, auto) minmax(320px, 1fr);
  }

  .design-command-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .asset-folder-grid.compact {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }
}

@media (max-width: 780px) {
  .design-command-bar,
  .workflow-focused .assets-panel > .design-command-bar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .design-mode-tabs {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    overflow-x: auto;
  }

  .design-command-actions {
    grid-column: auto;
    justify-content: stretch;
  }

  .design-command-actions > * {
    flex: 1;
  }

  .cover-diversity-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .cover-diversity-control button {
    width: 100%;
  }

  .design-browser-heading,
  .element-browser-toolbar {
    display: grid;
  }

  .element-browser-toolbar label {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-element-grid,
  .uploaded-element-grid {
    grid-auto-columns: minmax(122px, 142px);
  }

  .asset-folder-grid.compact {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 78vw);
  }
}
