:root {
  --brand: #b695c0;
  --brand-dark: #71517d;
  --brand-light: #f2ebf5;
  --ink: #292730;
  --muted: #706478;
  --line: #e9e5ec;
  --bg: #f8f7fa;
  --green: #477965;
  --radius: 14px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
input,
select,
textarea {
  color: var(--ink);
  border: 1px solid #ded9e3;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  outline: none;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px #b695c022;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--brand-dark);
  width: 17px;
  height: 17px;
  box-shadow: none;
  flex-shrink: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 20px 0 8px;
}
label > input:not([type="checkbox"]):not([type="radio"]),
label > textarea,
label > select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
p {
  margin-top: 8px;
}
.muted {
  color: var(--muted);
}
.strong {
  font-weight: 650;
}
.block {
  display: block;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--brand-dark);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  min-height: 40px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  transform: translateY(-1px);
}
.button.primary {
  background: var(--brand);
  color: #2e2034;
  border-color: #ab88b6;
}
.button.primary:hover {
  background: #c1a2ca;
}
.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: #625c6c;
}
.button.secondary:hover {
  background: #f6f3f8;
}
.button.danger {
  background: #b53f53;
  color: #fff;
}
.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.button.full {
  width: 100%;
  margin-top: 16px;
  justify-content: space-between;
}
.button.small {
  min-height: 32px;
  padding: 6px 11px;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  color: inherit;
}
.danger-text {
  color: #ad4056 !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-button {
  border: 1px solid transparent;
  background: transparent;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #6d6573;
  border-radius: 7px;
  padding: 5px;
}
.icon-button:hover {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1.7px;
}
.brand-symbol {
  background: var(--brand);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-symbol svg {
  width: 23px;
  height: 23px;
  stroke: #38263f;
  stroke-width: 1.5;
  fill: none;
  stroke-linejoin: round;
}
.brand-dot {
  color: var(--brand-dark);
}
.topbar {
  height: 80px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 80px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.workspace-label {
  color: #69646d;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
}
.workspace-label span {
  display: block;
  color: #655e70;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 5px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 27px;
}
.plus {
  font-size: 20px;
  line-height: 1;
}
.profile-menu {
  position: relative;
}
.profile-menu > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0ebf3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #755681;
  font-weight: 650;
}
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 35px #28203318;
  width: 220px;
  padding: 7px;
  z-index: 30;
  text-align: left;
}
.dropdown a,
.dropdown button {
  display: block;
  padding: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
}
.dropdown a:hover,
.dropdown button:hover {
  background: var(--brand-light);
}
.dropdown small {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.admin-body {
  background: var(--bg);
}
.admin-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}
.sidebar {
  width: 222px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 17px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.sidebar-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: #69636f;
  padding: 0 13px;
  margin: 0 0 18px;
}
.section-label {
  margin-top: 30px;
}
.sidebar nav a {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #6b6372;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 550;
  border-radius: 8px;
  margin-bottom: 5px;
}
.sidebar nav a.active {
  color: var(--brand-dark);
  background: var(--brand-light);
}
.sidebar nav a:hover {
  background: #f7f4f9;
  color: var(--brand-dark);
}
.sidebar nav .icon {
  width: 18px;
  height: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 14px 10px;
  font-size: 10px;
  color: #696274;
  border-top: 1px solid var(--line);
}
.sidebar-bottom p {
  font-size: 10px;
  color: #69646d;
  margin-top: 10px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86a593;
  margin-right: 5px;
}
.main-content {
  padding: 44px 44px 22px;
  width: calc(100% - 222px);
  max-width: 1600px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 31px;
}
.page-heading h1 {
  margin-top: 9px;
}
.heading-dot {
  color: var(--brand);
}
.page-heading p {
  color: #6d6674;
  font-size: 12px;
  margin-top: 10px;
}
.heading-note {
  font-size: 11px;
  color: #6a6470;
  white-space: nowrap;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  margin-bottom: 28px;
}
.overview-primary {
  background: var(--brand-light);
  border: 1px solid #e3d8e9;
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.overview-primary > .icon {
  width: 43px;
  height: 43px;
  color: var(--brand-dark);
  stroke-width: 1.1;
}
.overview-primary strong {
  display: block;
  font-size: 40px;
  font-weight: 550;
  letter-spacing: -2px;
  line-height: 1.2;
  color: #60416d;
}
.overview-primary span {
  font-size: 11px;
  color: #725f7a;
}
.overview-primary .overview-mark {
  position: absolute;
  right: 22px;
  top: 5px;
  font-size: 82px;
  opacity: 0.14;
  font-weight: 300;
}
.overview-tip {
  padding: 25px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.overview-tip h3 {
  margin: 7px 0 4px;
}
.overview-tip p {
  font-size: 11px;
  color: #6a6571;
}
.overview-tip a {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 600;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 23px 24px 18px;
}
.panel-heading > span {
  font-size: 10px;
}
.count-pill {
  font-size: 10px;
  line-height: 20px;
  display: inline-block;
  min-width: 22px;
  background: #f2eef5;
  color: #75617d;
  border-radius: 6px;
  text-align: center;
  vertical-align: middle;
  margin-left: 8px;
  padding: 0 5px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 20px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 9px;
  max-width: 190px;
  color: #6d6575;
}
.filters .button {
  font-size: 11px;
  min-height: 36px;
  padding: 8px 12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 10px;
  flex: 1;
  min-width: 160px;
  max-width: 300px;
  color: #6d6574;
}
.search-field input {
  border: 0;
  box-shadow: none;
  max-width: none;
  width: 100%;
}
.search-field .icon {
  width: 15px;
  height: 15px;
}
.date-filter {
  position: relative;
  font-size: 11px;
  color: #6e6575;
}
.date-filter summary {
  cursor: pointer;
}
.date-filter > div {
  position: absolute;
  right: 0;
  top: 30px;
  padding: 14px;
  background: #fff;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.date-filter label {
  margin: 0 0 9px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #6b6373;
  padding: 12px 20px;
  background: #fcfbfd;
  border-top: 1px solid #f3f0f6;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 19px 20px;
  border-bottom: 1px solid #f0edf3;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.document-cell {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 190px;
}
.document-cell img,
.file-icon {
  width: 40px;
  height: 53px;
  border-radius: 4px;
  background: #f1ebf6;
  object-fit: cover;
  border: 1px solid #e3d9ea;
  flex-shrink: 0;
}
.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #785f81;
  font-size: 8px;
  font-weight: 650;
  text-transform: uppercase;
}
.document-title {
  font-size: 12px;
  font-weight: 600;
  display: block;
  max-width: 300px;
  overflow-wrap: anywhere;
}
.document-title:hover {
  color: var(--brand-dark);
}
.document-meta {
  font-size: 10px;
  color: #706577;
  margin-top: 4px;
  text-transform: capitalize;
}
.document-cell small {
  font-size: 9px;
  margin-top: 3px;
}
.badge {
  font-size: 10px;
  border-radius: 20px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f5f1f8;
  color: #75617e;
  white-space: nowrap;
}
.badge > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.published {
  background: #eaf3ee;
  color: #4e6f5b;
}
.badge.scheduled {
  background: #f1ebf7;
  color: #795b8c;
}
.badge.failed {
  background: #faeaed;
  color: #955260;
}
.badge.processing {
  background: #f9f2e7;
  color: #7a6339;
}
.visibility {
  font-size: 11px;
  color: #6e6478;
}
.table-date {
  font-size: 10px;
  color: #6d6575;
  white-space: nowrap;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
}
.align-right {
  text-align: right;
}
.row-menu {
  position: relative;
}
.row-menu summary {
  list-style: none;
  font-size: 20px;
  cursor: pointer;
}
.row-menu .dropdown {
  top: auto;
  bottom: 32px;
}
.pagination {
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #706577;
}
.pagination > div {
  display: flex;
  gap: 8px;
}
.empty-state {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty-state h3 {
  color: #6d6173;
  margin-top: 18px;
  font-size: 17px;
}
.empty-state p {
  font-size: 12px;
  margin: 9px 0 20px;
}
.empty-symbol {
  margin: 0 auto;
  border: 1px solid #e5d9eb;
  background: #f4eef7;
  width: 60px;
  height: 60px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #755d81;
  font-size: 30px;
}
.empty-symbol .icon {
  width: 30px;
  height: 30px;
}
.page-footnote {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #6d6573;
}
.page-footnote span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
}
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 12px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.notice.success {
  background: #eff6f1;
  border-color: #d7e9dc;
  color: #4a7158;
}
.notice.error {
  background: #fcf0f2;
  border-color: #efd4db;
  color: #a34a60;
}
.back-link {
  display: inline-block;
  color: #73637d;
  font-size: 11px;
  margin-bottom: 17px;
}
.form-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}
.form-panel {
  padding: 27px;
  margin-bottom: 22px;
}
.form-panel > p.muted {
  font-size: 11px;
  margin-top: 7px;
}
.form-panel h2 {
  font-size: 16px;
}
.section-number {
  font-size: 10px;
  letter-spacing: 1px;
  color: #73627a;
  margin-bottom: 8px;
}
.field-hint {
  font-size: 11px;
  color: #6e6576;
  line-height: 1.7;
  margin-top: 12px;
}
.required {
  color: #7e598b;
}
.upload-zone {
  border: 1px dashed #c8b1d1;
  border-radius: 10px;
  background: #fbf8fd;
  text-align: center;
  padding: 32px 20px;
  cursor: pointer;
}
.upload-zone .icon {
  display: block;
  margin: 0 auto 12px;
  width: 28px;
  height: 28px;
  color: #745e7c;
}
.upload-zone strong {
  display: block;
  font-size: 13px;
  color: #7a5b8a;
}
.upload-zone span {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: #716479;
  margin: 7px 0;
}
.upload-zone input {
  font-size: 11px;
  margin-top: 18px;
  background: white;
}
.option-card {
  display: flex;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 14px;
  margin-top: 13px;
  cursor: pointer;
}
.option-card:has(input:checked) {
  background: #faf7fc;
  border-color: #cdb9d7;
}
.option-card input {
  margin-top: 3px;
}
.option-card strong {
  display: block;
  font-size: 12px;
}
.option-card small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: #6d6175;
  margin-top: 4px;
  line-height: 1.5;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.time-inputs {
  display: flex;
  align-items: center;
  gap: 9px;
}
.time-inputs input,
.time-inputs select {
  width: 75px;
}
.form-save {
  padding: 0 10px;
}
.form-save p {
  color: #716477;
  font-size: 11px;
  text-align: center;
  line-height: 1.7;
}
.form-save > .button.full {
  justify-content: center;
  margin-top: 10px;
}
.publication-status {
  padding: 18px 22px;
  margin-bottom: 25px;
  color: #706379;
  font-size: 11px;
}
.publication-status > .badge {
  margin-right: 10px;
}
.link-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.link-bar input {
  flex: 1;
  font-size: 11px;
  min-width: 170px;
  background: #faf8fc;
}
.link-bar .button {
  font-size: 11px;
}
.subtle-link {
  font-size: 11px;
  color: #6e6177;
}
.auth-body {
  display: flex;
  min-height: 100vh;
  background: #fff;
}
.auth-art {
  width: 51%;
  background: #f0e7f4;
  position: relative;
  padding: 44px 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.auth-art::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #d7c3e050;
  border-radius: 50%;
  right: -230px;
  top: 15%;
  pointer-events: none;
}
.auth-message {
  margin: auto 0;
}
.auth-message > .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #7a5b87;
}
.auth-message h1 {
  font-size: 52px;
  letter-spacing: -2px;
  line-height: 1.1;
  font-weight: 550;
  margin-top: 24px;
}
.auth-message h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #815991;
}
.auth-message > p {
  color: #76617f;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 22px;
}
.auth-card > h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin-top: 16px;
}
.auth-card > p {
  font-size: 12px;
  line-height: 1.8;
  margin: 16px 0 30px;
}
.auth-main {
  width: 49%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 365px;
}
.auth-card label {
  font-size: 12px;
  margin-top: 21px;
}
.auth-card input {
  min-height: 44px;
  font-size: 12px;
}
.auth-card .button.full {
  margin-top: 25px;
  min-height: 46px;
}
.auth-link {
  display: block;
  margin-top: 23px;
  text-align: center;
  font-size: 11px;
  color: #73617b;
}
.twofactor {
  font-size: 10px;
  margin-top: 18px;
  color: #706179;
}
.twofactor summary {
  cursor: pointer;
}
.twofactor label {
  margin-top: 12px;
}
.auth-footer {
  position: absolute;
  bottom: 29px;
  font-size: 10px;
  color: #6b636f;
}
.art-footer {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #75617d;
  margin-top: 25px;
}
.auth-mobile-brand {
  display: none;
}
.book-art {
  display: flex;
  transform: rotate(-8deg);
  margin: 50px 0 35px 10px;
  filter: drop-shadow(12px 20px 20px #7d529e25);
  width: 360px;
  height: 225px;
}
.art-page {
  width: 50%;
  padding: 20px;
  position: relative;
  overflow: hidden;
  background: #faf6fb;
}
.art-page.left {
  background: #b695c0;
  border-radius: 4px 0 0 4px;
  box-shadow: inset -12px 0 17px #67417517;
  border-right: 1px solid #936aa570;
}
.art-page.left > span {
  font-size: 10px;
  font-weight: 650;
  color: #604466;
}
.art-page.left h3 {
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-top: 15px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.art-page.left small {
  position: absolute;
  bottom: 16px;
  font-size: 5px;
  letter-spacing: 1px;
  color: #62436f;
}
.art-orbit {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #dabfe3;
  position: absolute;
  right: -25px;
  bottom: 19px;
  border: 12px solid #a07cb090;
}
.art-page.right {
  border-radius: 0 5px 5px 0;
  box-shadow: inset 10px 0 17px #795e8615;
}
.art-lines {
  height: 36px;
  background: repeating-linear-gradient(
    to bottom,
    #cfc4d5 0px,
    #cfc4d5 1px,
    transparent 1px,
    transparent 7px
  );
  width: 100%;
  opacity: 0.6;
}
.art-lines.short {
  margin-top: 16px;
  height: 23px;
}
.art-image {
  height: 95px;
  margin-top: 17px;
  background:
    linear-gradient(30deg, #aa8cbf 33%, transparent 33%),
    linear-gradient(160deg, #e0d3e7 70%, #b49bc3 70%);
  border-radius: 1px;
}
dialog {
  border: 1px solid #e4dbea;
  border-radius: 16px;
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 30px 120px #30243830;
}
dialog::backdrop {
  background: #29202c66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
}
dialog p {
  font-size: 12px;
  color: #6e6179;
  margin-top: 12px;
}
dialog textarea {
  width: 100%;
  font-size: 12px;
  margin-top: 18px;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 25px;
  flex-wrap: wrap;
}
.dialog-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1e7f6;
  color: #7c5b8b;
  font-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dialog-icon.danger {
  background: #f9e8ed;
  color: #945568;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #423049;
  color: white;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.standalone {
  background: var(--bg);
  min-height: 100vh;
  padding: 30px;
}
.unavailable {
  text-align: center;
  max-width: 650px;
  margin: 110px auto 30px;
}
.unavailable .empty-symbol {
  margin: 25px auto;
}
.unavailable h1 {
  font-size: 32px;
}
.unavailable p {
  font-size: 14px;
  color: #6f6179;
}
.unavailable .button {
  margin-top: 30px;
}
.audit-filters input {
  max-width: 190px;
}
.audit-table {
  font-size: 10px;
}
.audit-table td {
  padding: 15px 16px;
  max-width: 240px;
  overflow-wrap: anywhere;
}
.event-action {
  color: #755d82;
  font-size: 10px;
  font-family: ui-monospace, monospace;
}
.audit-details summary {
  cursor: pointer;
  color: #72617d;
}
.audit-details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 320px;
  font-size: 10px;
  margin: 12px 0;
}
.audit-details small {
  display: block;
  font-size: 9px;
  color: #6d6374;
}
.totp-secret {
  display: block;
  font-size: 14px;
  word-break: break-all;
  background: #f4eff7;
  padding: 16px;
  margin-top: 18px;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8f3fb;
  padding: 15px;
  margin: 20px 0;
  font-size: 11px;
}
.reader-body {
  background: #eeeaf1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader-header {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 28px;
  height: 76px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2dbe6;
}
.brand.compact {
  font-size: 23px;
}
.brand.compact .brand-symbol {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand.compact .brand-symbol svg {
  width: 20px;
  height: 20px;
}
.reader-title {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  min-width: 0;
}
.reader-title strong {
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-title span {
  display: block;
  font-size: 10px;
  color: #73617b;
  margin-top: 3px;
}
.reader-header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.reader-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 45px;
  background: radial-gradient(ellipse at center, #f8f5fa, #eae3ee);
  overflow: hidden;
}
.reader-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: 1px solid #d8c9e0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #795b87;
  background: #ffffffb8;
  font-size: 30px;
  line-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.reader-arrow.prev {
  left: 20px;
}
.reader-arrow.next {
  right: 20px;
}
.reader-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
#book-wrap {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 15px 20px #65487520);
}
#book {
  margin: auto;
}
.book-page {
  background: white;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-page-body {
  position: relative;
  width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-page-body > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}
.hotspot {
  position: absolute;
  border: 1px solid transparent;
  z-index: 4;
  background: transparent;
}
.hotspot:hover,
.hotspot:focus {
  border-color: #b695c0;
  background: #b695c022;
  outline: none;
}
.reader-controls {
  height: 66px;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e4dce9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 0 20px;
}
.page-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #735f7c;
}
.page-navigation input {
  width: 56px;
  padding: 6px 8px;
  text-align: center;
  font-size: 11px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
  font-size: 10px;
  color: #75617d;
}
.reader-hint {
  font-size: 9px;
  color: #6f6377;
  margin-left: 10px;
}
.reader-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #7b5f85;
  z-index: 5;
  background: #f0eaf4;
  font-size: 12px;
}
.reader-loading[hidden] {
  display: none;
}
.loading-spinner {
  width: 25px;
  height: 25px;
  border: 2px solid #e5d8ec;
  border-top-color: #a785b7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.reader-loading p {
  margin-top: 15px;
}
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
  margin-top: 20px;
}
.thumbnail-grid button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #faf6fc;
  padding: 8px;
  color: #766081;
  font-size: 10px;
}
.thumbnail-grid img {
  width: 100%;
  display: block;
  margin-bottom: 5px;
}
.thumbnail-grid button:hover {
  border-color: var(--brand);
}
#contents-list > .button {
  justify-content: flex-start;
}
#zoom-dialog {
  max-width: 95vw;
  width: 95vw;
  height: 95dvh;
  padding: 25px;
  overflow: auto;
}
#zoom-image {
  display: block;
  max-width: none;
  width: 1200px;
  min-width: 100%;
  height: auto;
}
.zoom-close {
  position: sticky;
  left: 100%;
  top: 0;
  float: right;
  background: #fff;
  z-index: 3;
  font-size: 24px;
}
#epub-engine {
  position: fixed;
  left: -20000px;
  top: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  filter: none;
}
.epub-page {
  position: relative;
  display: block !important;
}
.epub-page iframe {
  border: 0;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  pointer-events: auto;
}
.epub-hotspot {
  position: absolute;
  background: #b695c02a;
  border-bottom: 1px solid #ad80bf;
  z-index: 5;
}
.epub-hotspot:hover {
  background: #b695c050;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}
.editor-canvas {
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  font-size: 11px;
  color: #735f81;
}
#editor-surface {
  position: relative;
  padding: 18px;
  background: #f3eef6;
  min-height: 300px;
  display: flex;
  justify-content: center;
}
.pdf-editor-page {
  position: relative;
  max-width: 650px;
  width: 100%;
  background: #fff;
  touch-action: none;
  user-select: none;
}
.pdf-editor-page > img {
  width: 100%;
  display: block;
  pointer-events: none;
}
.editor-rect {
  position: absolute;
  z-index: 2;
  border: 2px solid #a779b8;
  background: #b695c035;
  cursor: pointer;
  color: #7c5290;
  font-size: 9px;
  padding: 3px;
  overflow: hidden;
  text-align: left;
}
.editor-rect.drawing {
  pointer-events: none;
  border-style: dashed;
}
.editor-aside {
  padding: 22px;
  align-self: start;
}
.editor-aside h2 {
  font-size: 15px;
}
.editor-aside > .muted {
  font-size: 11px;
}
.editor-link {
  margin-top: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.editor-link strong {
  font-size: 11px;
}
.editor-link small {
  display: block;
  color: #716179;
  font-size: 9px;
  margin: 5px 0;
}
.editor-link > div {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.editor-link .button.small {
  font-size: 10px;
}
.editor-canvas .epub-container {
  background: #fff;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (min-width: 1500px) {
  .main-content {
    padding: 50px 60px;
  }
  .topbar {
    padding: 0 40px;
    gap: 110px;
  }
  .overview {
    grid-template-columns: 1fr 1.5fr;
  }
}
@media (max-width: 1100px) {
  .workspace-label {
    display: none;
  }
  .topbar {
    gap: 20px;
    padding: 0 24px;
  }
  .main-content {
    padding: 32px 25px;
  }
  .sidebar {
    width: 185px;
  }
  .main-content {
    width: calc(100% - 185px);
  }
  .documents-table th,
  .documents-table td {
    padding-left: 13px;
    padding-right: 13px;
  }
  .overview {
    grid-template-columns: 1fr 1.2fr;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-message h1 {
    font-size: 44px;
  }
  .book-art {
    width: 310px;
    height: 205px;
  }
  .auth-main {
    padding: 40px;
  }
  .form-columns {
    grid-template-columns: 1.1fr 1fr;
  }
  .form-panel {
    padding: 22px;
  }
  .heading-note {
    display: none;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
}
@media (max-width: 767px) {
  h1 {
    font-size: 29px;
  }
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .topbar .brand {
    font-size: 24px;
  }
  .brand-symbol {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .header-actions {
    gap: 11px;
  }
  .header-actions .button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .profile-name {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .main-content {
    width: 100%;
    padding: 28px 18px;
  }
  .admin-layout {
    min-height: calc(100vh - 68px);
  }
  .page-heading {
    margin-bottom: 24px;
    align-items: flex-start;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 8px;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .overview-primary {
    padding: 20px 23px;
  }
  .overview-primary strong {
    font-size: 34px;
  }
  .overview-tip {
    padding: 19px 23px;
  }
  .panel-heading {
    padding: 19px 16px;
  }
  .filters {
    padding: 0 16px 15px;
  }
  .filters select {
    flex: 1;
    min-width: 100px;
    max-width: none;
  }
  .search-field {
    flex-basis: 100%;
    max-width: none;
  }
  .pagination {
    padding: 15px 16px;
    gap: 8px;
  }
  .page-footnote span:last-child {
    display: none;
  }
  .form-columns {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .form-columns > div,
  .form-columns > section {
    width: 100%;
  }
  .form-panel {
    padding: 23px;
  }
  .form-save {
    margin-bottom: 24px;
  }
  .form-save .button {
    min-height: 44px;
  }
  .publication-status {
    padding: 15px;
  }
  .link-bar input {
    flex-basis: 100%;
  }
  .auth-art {
    display: none;
  }
  .auth-main {
    width: 100%;
    padding: 90px 25px 70px;
    min-height: 100dvh;
  }
  .auth-mobile-brand {
    display: flex;
    position: absolute;
    top: 30px;
    left: 25px;
  }
  .auth-card {
    max-width: 390px;
  }
  .auth-card h1 {
    font-size: 30px;
  }
  .auth-footer {
    font-size: 9px;
  }
  .standalone {
    padding: 23px;
  }
  .unavailable {
    margin-top: 80px;
  }
  .unavailable h1 {
    font-size: 27px;
  }
  .reader-header {
    padding: 0 15px;
    gap: 14px;
    height: 65px;
  }
  .reader-header .brand {
    font-size: 0;
    gap: 0;
  }
  .reader-title {
    padding-left: 14px;
  }
  .reader-title strong {
    font-size: 11px;
    max-width: 180px;
  }
  .reader-title span {
    font-size: 9px;
  }
  .reader-header-actions {
    gap: 1px;
  }
  .reader-header-actions .icon-button {
    width: 29px;
    height: 30px;
  }
  .reader-stage {
    padding: 8px 20px;
  }
  .reader-arrow {
    width: 27px;
    height: 35px;
    font-size: 25px;
    border-radius: 7px;
    background: #ffffff90;
  }
  .reader-arrow.prev {
    left: 2px;
  }
  .reader-arrow.next {
    right: 2px;
  }
  .reader-controls {
    height: 60px;
    gap: 16px;
    padding: 0 12px;
  }
  .reader-hint {
    display: none;
  }
  .reader-controls > #contents {
    font-size: 10px;
    padding: 6px 9px;
  }
  .reader-controls > #contents > span {
    display: none;
  }
  .zoom-controls {
    padding-left: 10px;
    gap: 2px;
  }
  .page-navigation {
    font-size: 9px;
    gap: 5px;
  }
  .page-navigation input {
    width: 43px;
    font-size: 10px;
    padding: 6px 4px;
  }
  .reader-header-actions .button {
    font-size: 9px;
    padding: 6px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-toolbar {
    padding: 12px;
    font-size: 10px;
  }
  .editor-toolbar .button {
    font-size: 10px;
  }
  .editor-aside {
    padding: 20px;
  }
  #editor-surface {
    padding: 10px;
  }
  .recovery-codes {
    font-size: 10px;
  }
  .audit-filters input {
    max-width: none;
    width: calc(50% - 4px);
  }
  dialog {
    padding: 23px;
  }
  .auth-message > p br {
    display: none;
  }
}

#book-wrap {
  width: 100%;
  height: 100%;
}
.empty-page {
  background: transparent;
}
.art-page.left > span,
.art-page.left small {
  color: #38253f;
}
