/* Admin surfaces stay white; the wine palette remains on primary actions. */
body.admin-workspace {
  --brand:#632c2b;
  --brand-soft:#fff;
  --accent:#713735;
  --accent2:#8a4a43;
  --ink:#4a3025;
  --muted:#826b5e;
  --line:#d9d9d9;
  --panel:#fff;
  --bg:#fff;
  background:#fff!important;
  color:#4a3025;
  font-family:LandingSerif,Georgia,serif;
}
body.admin-workspace.logged {background:#fff!important}
.admin-workspace :is(button,input,textarea,select) {font-family:inherit}
.admin-workspace .rail {
  background:#3b241e!important;
  border-right:1px solid #6c4b40;
  box-shadow:8px 0 32px #3b241e1b;
}
.admin-workspace .rail .r-logo {border-bottom:1px solid #76554a!important}
.admin-workspace .rail .r-btn {
  color:#e7d6c9!important;
  border-radius:9px;
  font:15px LandingSerif,Georgia,serif!important;
  letter-spacing:.01em;
}
.admin-workspace .rail .r-btn svg {stroke-width:1.5}
.admin-workspace .rail .r-btn:hover {background:#59382f!important;color:#fff6ee!important}
.admin-workspace .rail .r-btn.on {background:#6b3935!important;color:#fffaf5!important;box-shadow:inset 3px 0 #d8b897}
.admin-workspace .rail .r-btn .r-label {font:15px LandingSerif,Georgia,serif}
.admin-workspace .rail .r-btn .r-bd,
.admin-workspace .rail .r-btn .r-bd.lay {background:#fff!important;color:#59302b!important}
.admin-workspace .wrap {max-width:1600px;padding-bottom:42px}
.admin-workspace .pagehead {
  background:#fff!important;
  border-bottom:1px solid #d9d9d9!important;
  box-shadow:0 3px 22px #5d36200a;
}
.admin-workspace .pagehead h1 {
  color:#4d3428!important;
  font:italic 400 clamp(30px,2.8vw,42px)/1.08 LandingSerif,Georgia,serif!important;
  letter-spacing:-.025em;
}
.admin-workspace .pagehead h1::before {
  display:none;
}
.admin-workspace .pagehead.books-page h1 {text-transform:uppercase}
.admin-workspace .pagehead.request-pagehead h1 {text-transform:uppercase}
.admin-workspace .pagehead.welcome-page h1 {text-transform:uppercase}
.admin-workspace :is(.r-list-count,.section-card p,.settings-option small,.detail-sub) {color:#80695d}
.admin-workspace #panel :is(.section-card,.admin-page>.card),
.admin-workspace #panel .rtable-wrap,
.admin-workspace #panel .r-empty {
  background:#fff!important;
  border:1px solid #d9d9d9!important;
  border-radius:3px!important;
  box-shadow:0 8px 28px #4c2d1e0d!important;
}
.admin-workspace #panel :is(.section-card,.admin-page>.card) {padding:clamp(18px,2vw,28px)}
.admin-workspace #panel :is(.section-card,.admin-page>.card) h2,
.admin-workspace #panel :is(.section-card,.admin-page>.card) h3,
.admin-workspace .settings-card-heading h2 {
  color:#4d3428;font-family:LandingSerif,Georgia,serif;
}
.admin-workspace #sectionView .section-card h2 {
  font:italic 400 clamp(25px,2vw,31px)/1.15 LandingSerif,Georgia,serif;
}
.admin-workspace #sectionView .section-card h3 {font-size:19px;font-weight:400}
.admin-workspace :is(.section-stat b,.welcome-preview h2) {color:#632c2b}
.admin-workspace .section-stat b {font:italic 400 40px/1 LandingSerif,Georgia,serif}
.admin-workspace #panel :is(.btn,.section-btn),
.admin-workspace .pagehead .btn,
.admin-workspace :is(.request-edit-button,.drawer-secondary,.drawer-primary) {
  min-height:40px;border:1px solid #d9d9d9!important;border-radius:99px!important;
  background:#fff!important;color:#6a3630!important;
  padding:8px 17px;font:15px LandingSerif,Georgia,serif!important;
  box-shadow:none!important;transition:background .15s,color .15s,border-color .15s;
}
.admin-workspace #panel :is(.btn,.section-btn):hover,
.admin-workspace .pagehead .btn:hover,
.admin-workspace :is(.request-edit-button,.drawer-secondary):hover {
  background:#fff!important;border-color:#8a4a43!important;color:#532722!important;
}
.admin-workspace #panel :is(.btn.primary,.section-btn.primary,.request-add-button),
.admin-workspace .pagehead .btn.primary,
.admin-workspace .drawer-primary {
  background:#713735!important;border-color:#713735!important;color:#fff8f1!important;
}
.admin-workspace #panel :is(.btn.primary,.section-btn.primary,.request-add-button):hover,
.admin-workspace .pagehead .btn.primary:hover,
.admin-workspace .drawer-primary:hover {background:#8b4742!important;border-color:#8b4742!important}
.admin-workspace :is(.section-tabs button,.rchip,.welcome-item,.settings-option,.tariff-card) {
  border-color:#d9d9d9!important;background:#fff!important;color:#5c4437!important;
}
.admin-workspace :is(.section-tabs button.active,.rchip.on,.welcome-item.active) {
  background:#fff!important;border-color:#d9d9d9!important;color:#632c2b!important;
}
.admin-workspace :is(.tag-soft,.request-status-chip,.settings-status) {background:#fff;color:#755044;border-color:#d9d9d9}
.admin-workspace :is(.welcome-preview,.invoice-options,.settings-option,.welcome-video) {background:#fff;border-color:#d9d9d9}
.admin-workspace :is(.settings-separator,.section-table th,.section-table td) {border-color:#d9d9d9}
.admin-workspace #panel :is(.section-table,.rtable,.pay-t,.an-t,.reel-tbl) {background:#fff;color:#4d3428}
.admin-workspace #panel :is(.section-table,.rtable,.pay-t,.an-t,.reel-tbl) th {
  background:#fff!important;color:#795f51!important;
  border-color:#d9d9d9!important;font:12px LandingSerif,Georgia,serif!important;
  letter-spacing:.08em;text-transform:uppercase;
}
.admin-workspace #panel :is(.section-table,.rtable,.pay-t,.an-t,.reel-tbl) td {
  background:#fff;color:#4d3428;border-color:#d9d9d9;
  font-family:LandingSerif,Georgia,serif;font-size:13px;
}
.admin-workspace #panel :is(.section-table,.rtable,.pay-t,.an-t,.reel-tbl) tbody tr:hover td {background:#fff!important}
.admin-workspace #panel .rtable .r-name {color:#5c302c;font-family:LandingSerif,Georgia,serif;font-size:15px}
.admin-workspace #panel .rtable tr.r-new td {background:#fff!important}
.admin-workspace #panel .rtable tr.r-new td:first-child {box-shadow:inset 4px 0 #9b5a4b}
.admin-workspace #panel :is(.r-stage .picker-button,.r-format .picker-button,.rtable .stg-col,.request-status-chip) {
  background:#fff!important;color:#694437!important;border-color:#d9d9d9!important;
}
.admin-workspace #panel :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
.admin-workspace :is(.request-editor-card,.local-card,.detail-card) :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=color]) {
  border:1px solid #d9d9d9!important;border-radius:4px!important;
  background:#fff!important;color:#4d3428!important;
  font:15px LandingSerif,Georgia,serif!important;
}
.admin-workspace :is(input,textarea,select):focus-visible,
.admin-workspace :is(button,a,summary):focus-visible {outline:2px solid #955447!important;outline-offset:3px}
.admin-workspace :is(input[type=checkbox],input[type=radio]) {accent-color:#713735}
.admin-workspace :is(.local-modal,.request-editor-overlay,.row-detail) {background:#281510ae}
.admin-workspace :is(.local-card,.request-editor-card,.detail-card) {
  background:#fff!important;color:#4d3428!important;
  border:1px solid #d9d9d9!important;border-radius:4px!important;
  box-shadow:0 24px 80px #28151055!important;
}
.admin-workspace :is(.local-card,.request-editor-card,.detail-card) h2 {
  color:#4d3428;font:italic 400 32px/1.1 LandingSerif,Georgia,serif;
}
.admin-workspace :is(.local-card,.request-editor-card,.detail-card) :is(button,.btn):not(.modal-x):not(.drawer-close) {
  border-radius:99px;border-color:#d9d9d9;background:#fff;color:#6a3630;
  font-family:LandingSerif,Georgia,serif;
}
.admin-workspace :is(.local-card,.request-editor-card,.detail-card) :is(.primary,[type=submit],.drawer-primary) {
  background:#713735!important;border-color:#713735!important;color:#fff8f1!important;
}
.admin-workspace .request-editor-overlay {background:#281510ae!important}
.admin-workspace .book-editor {
  --accent:#713735;--ink:#4a3025;--muted:#826b5e;--line:#d9d9d9;
  background:#fff;color:#4d3428;font-family:LandingSerif,Georgia,serif;
}
.admin-workspace .book-editor :is(.editor-top,.editor-tabs) {
  background:#fff;border-color:#d9d9d9;
}
.admin-workspace .book-editor .editor-title b {color:#4d3428;font:italic 400 24px LandingSerif,Georgia,serif}
.admin-workspace .book-editor :is(.editor-back,.editor-tools button,.editor-tabs button,.editor-exit) {
  color:#6a3630;border-color:#d9d9d9;background:#fff;
  font:14px LandingSerif,Georgia,serif;
}
.admin-workspace .book-editor :is(.editor-back,.editor-tools button):hover {background:#fff}
.admin-workspace .book-editor .editor-tools .editor-download {background:#713735;color:#fff8f1;border-color:#713735}
.admin-workspace .book-editor .editor-main-tabs button.active {color:#713735;border-bottom-color:#713735}
.admin-workspace .book-editor .editor-view-tabs button.active {background:#fff;color:#713735}
.admin-workspace .book-editor :is(.chapter-nav,.chapter-settings,.cover-settings) {
  background:#fff;color:#4d3428;border-color:#d9d9d9;
}
.admin-workspace .book-editor :is(.chapter-nav-head,.chapter-settings-head,.cover-settings-head) {
  background:#fff;color:#694b3d;border-color:#d9d9d9;
}
.admin-workspace .book-editor .chapter-nav-link.active {background:#fff;color:#713735}
.admin-workspace .book-editor :is(.chapter-stage,.cover-stage) {background:#fff}
.admin-workspace .book-presentation-workspace,
.admin-workspace .source-workspace,
.admin-workspace .source-plan,
.admin-workspace .source-review,
.admin-workspace .source-client-text[readonly],
.admin-workspace .source-proposal {background:#fff!important}
.admin-workspace .source-review,
.admin-workspace .source-proposal,
.admin-workspace .balance-warning,
.admin-workspace .balance-review-list,
.admin-workspace .legal-demo {background:#fff!important;border-color:#d9d9d9!important}
.admin-workspace .book-editor :is(.chapter-settings,.cover-settings) :is(input,select,textarea,button) {accent-color:#713735}
.admin-workspace .book-editor :is(.chapter-settings,.cover-settings) :is(input,select,textarea):focus {border-color:#9c5d4c}
.admin-workspace .book-editor :is(.chapter-nav,.chapter-settings,.cover-settings) :is(h2,h3,b,summary,label) {color:#583e31}
.admin-workspace .book-editor :is(.chapter-nav,.chapter-settings,.cover-settings) button {
  color:#6b3935;border-color:#d9d9d9;font-family:LandingSerif,Georgia,serif;
}
.admin-workspace .book-editor :is(.chapter-nav,.chapter-settings,.cover-settings) :is(button.primary,button.active,.editor-download-row button) {
  background:#713735!important;border-color:#713735!important;color:#fff8f1!important;
}
.admin-workspace .book-editor .editor-download,
.admin-workspace .book-editor .editor-tools .editor-download,
.admin-workspace .book-editor :is([data-book-download],[data-cover-download],#coverSettingsToggle,.source-btn.primary) {
  background:#713735!important;border-color:#713735!important;color:#fff8f1!important;
}

.admin-workspace .book-editor .moscow-book-export-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  margin: 14px 0 !important;
}

.admin-workspace .book-editor .moscow-cover-export-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  margin: 14px 0 !important;
}

.admin-workspace .book-editor :is(.moscow-book-export-buttons,.moscow-cover-export-buttons) button {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px 6px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  white-space: normal;
  line-height: 1.25 !important;
}
.admin-workspace .book-editor .chapter-group-title {background:#fff;color:#583e31}
.admin-workspace .book-editor .chapter-nav-item:has(.chapter-nav-link.active) {background:#fff}
.admin-workspace #sectionView #trfWrap.v2 {background:#fff;border-color:#d9d9d9;color:#4d3428}
.admin-workspace #sectionView #trfWrap.v2 .trf2-col {background:#fff;border-color:#d9d9d9;box-shadow:none}
.admin-workspace #sectionView #trfWrap.v2 .trf2-col.hl {background:#fff;border-color:#955e50}
.admin-workspace #sectionView #trfWrap.v2 .trf2-foot {background:#fff;border-color:#d9d9d9;color:#4d3428}
.admin-workspace #sectionView #trfWrap.v2 .trf2-help button {border-color:#713735;color:#713735;border-radius:99px}
.admin-workspace .pagehead {flex-wrap:nowrap;justify-content:space-between;gap:16px}
.admin-workspace .pagehead-main {display:flex;align-items:center;flex:1 1 auto;width:auto;gap:24px;min-width:0}
.admin-workspace .pagehead h1 {flex:none}
.admin-workspace .pagehead .r-list-tools {display:flex;align-items:center;flex:1 1 auto;width:auto;max-width:none;min-width:0;margin:0;gap:12px;flex-wrap:nowrap}
.admin-workspace .pagehead .r-search {box-sizing:border-box;flex:1 1 auto;width:auto;min-width:0;max-width:460px;border-color:#d9d9d9;background:#fff}
.admin-workspace .pagehead .r-search input {min-width:0;width:0;flex:1 1 auto;border:0!important;background:transparent!important;box-shadow:none!important}
body.admin-workspace #panel #search {
  min-width:0;width:0;flex:1 1 auto;min-height:0;padding:0;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;outline:none!important;
}
.admin-workspace .pagehead .r-list-count {flex:none;white-space:nowrap}
.admin-workspace .pagehead-actions {flex:none;margin-left:auto;flex-wrap:nowrap}
.admin-workspace .pagehead-actions .btn {white-space:nowrap}
.admin-workspace .request-edit-button {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:108px;max-width:100%;white-space:nowrap!important;word-break:keep-all!important;
  overflow-wrap:normal!important;line-height:1.15;
}
.admin-workspace .request-page-toolbar {flex:1 1 auto;width:auto;min-width:0}
.admin-workspace .request-page-toolbar .request-toolbar {display:flex;align-items:center;flex-wrap:nowrap;gap:12px}
.admin-workspace .request-page-toolbar .request-toolbar-controls {display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;margin-left:auto;gap:8px}
.admin-workspace .request-page-toolbar .request-summary {order:2;margin-left:12px}
.admin-workspace .request-page-toolbar .request-toolbar-controls {order:1}
.admin-workspace .request-toolbar-controls {min-width:0}
.admin-workspace .request-toolbar-controls input[data-request-search] {box-sizing:border-box;width:min(320px,100%);min-width:200px}
.admin-workspace #panel .request-table td:last-child {min-width:128px;width:128px!important}
.admin-workspace #panel .request-table th:last-child {width:128px!important}
@media(max-width:1280px) {
  .admin-workspace .request-pagehead {flex-wrap:wrap}
  .admin-workspace .request-pagehead .pagehead-main {flex:1 1 100%;width:100%}
  .admin-workspace .request-page-toolbar {flex:1 1 100%;width:100%}
  .admin-workspace .request-page-toolbar .request-toolbar {flex-wrap:wrap}
  .admin-workspace .request-page-toolbar .request-toolbar-controls {margin-left:0;flex-wrap:wrap;justify-content:flex-start}
  .admin-workspace .request-page-toolbar .request-summary {order:0;margin-left:0}
}
@media(max-width:1320px) {
  .admin-workspace .pagehead {flex-wrap:wrap}
  .admin-workspace .pagehead-main {flex:1 1 100%;width:100%}
  .admin-workspace .pagehead-actions {margin-left:0}
}
@media(max-width:1050px) {
  .admin-workspace .pagehead-main {flex-wrap:wrap;gap:12px}
  .admin-workspace .pagehead .r-list-tools {flex:1 1 100%;width:100%}
  .admin-workspace .pagehead .r-search {max-width:560px}
  .admin-workspace .pagehead-actions {flex-wrap:wrap}
}
@media(min-width:1200px) {
  .admin-workspace .request-table-wrap {overflow-x:auto}
  .admin-workspace .request-table {min-width:1080px;width:100%;table-layout:fixed}
  .admin-workspace .request-table :is(th,td) {overflow-wrap:normal;word-break:normal}
  .admin-workspace .request-table :is(th,td):nth-child(1) {width:5%}
  .admin-workspace .request-table :is(th,td):nth-child(2) {width:16%}
  .admin-workspace .request-table :is(th,td):nth-child(3) {width:17%}
  .admin-workspace .request-table :is(th,td):nth-child(4) {width:18%}
  .admin-workspace .request-table :is(th,td):nth-child(5) {width:18%}
  .admin-workspace .request-table :is(th,td):nth-child(6) {width:15%}
}
@media(max-width:1400px) {
  .admin-workspace #panel #tab-r .rtable-wrap {overflow-x:auto!important}
  .admin-workspace #panel #tab-r .rtable {min-width:1120px!important;width:100%!important}
  .admin-workspace #panel #tab-r .rtable :is(th,td) {overflow-wrap:normal!important;word-break:normal!important}
  .admin-workspace #panel #tab-r .rtable :is(.picker-button,.date-trigger) {white-space:nowrap!important}
}
@media(max-width:1200px) {
  .admin-workspace #panel .request-table-card {padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .admin-workspace .request-table-wrap {overflow:visible!important}
  .admin-workspace .request-table {display:block;min-width:0!important;width:100%!important}
  .admin-workspace .request-table thead {display:none}
  .admin-workspace .request-table tbody {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .admin-workspace .request-table tbody tr {display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:2px 12px;padding:14px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;box-shadow:0 6px 18px #4c2d1e0b}
  .admin-workspace .request-table tbody tr:has(.request-empty-row) {grid-column:1/-1;display:block}
  .admin-workspace #panel .request-table td {box-sizing:border-box;display:block;width:auto!important;min-width:0!important;padding:7px 0;border:0;text-align:left;overflow-wrap:anywhere}
  .admin-workspace .request-table td:nth-child(1) {grid-column:1;color:#a77b68;font-size:12px}
  .admin-workspace .request-table td:nth-child(2) {grid-column:2;font-size:17px;font-weight:600}
  .admin-workspace .request-table td:nth-child(n+3):nth-child(-n+5) {grid-column:1/-1;display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px;border-top:1px solid #d9d9d9!important}
  .admin-workspace .request-table td:nth-child(n+3):nth-child(-n+5)::before {flex:0 0 72px;color:#94796a;font-size:12px}
  .admin-workspace .request-table td:nth-child(3)::before {content:'Телефон'}
  .admin-workspace .request-table td:nth-child(4)::before {content:'Связь'}
  .admin-workspace .request-table td:nth-child(5)::before {content:'Дата'}
  .admin-workspace .request-table td:nth-child(6) {grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #d9d9d9!important}
  .admin-workspace .request-table td:nth-child(6)::before {content:'Статус';color:#94796a;font-size:12px}
  .admin-workspace .request-table td:nth-child(7) {grid-column:1/-1;text-align:right!important}
  .admin-workspace .request-table .request-phone-cell {justify-content:flex-end;min-width:0}
  .admin-workspace .request-table .request-edit-button {min-width:112px}
  .admin-workspace .request-table .request-empty-row {text-align:center!important}
}
@media(max-width:900px) {
  .admin-workspace .pagehead h1 {font-size:32px!important}
  .admin-workspace .rail .r-logo {border-bottom:0!important}
}
@media(max-width:760px) {
  body.admin-workspace.logged {background:#fff!important}
  .admin-workspace .pagehead {padding:14px!important}
  .admin-workspace .pagehead h1 {font-size:29px!important}
  .admin-workspace .pagehead .r-list-tools {display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px}
  .admin-workspace .pagehead .r-list-tools[hidden] {display:none!important}
  .admin-workspace .pagehead .r-list-count {justify-self:start}
  .admin-workspace .pagehead .r-list-tools .r-search {width:100%!important;max-width:100%;min-width:0;box-sizing:border-box}
  .admin-workspace .pagehead .r-search input {min-width:0;width:0;flex:1 1 auto}
  .admin-workspace #panel :is(.section-card,.admin-page>.card) {padding:16px}
  .admin-workspace .request-page-toolbar .request-toolbar-controls {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;gap:7px;
  }
  .admin-workspace .request-page-toolbar .request-toolbar-controls input[data-request-search] {
    grid-column:1/-1;width:100%!important;min-width:0!important;box-sizing:border-box;
  }
  .admin-workspace .request-page-toolbar .request-toolbar-controls select {width:100%;min-width:0}
  .admin-workspace .request-page-toolbar .request-toolbar-controls button {width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere}
  .admin-workspace .request-page-toolbar .request-toolbar-controls [data-request-add] {grid-column:1/-1}
  .admin-workspace .request-table tbody {grid-template-columns:minmax(0,1fr)}
  .admin-workspace .welcome-list {grid-template-columns:minmax(0,1fr)!important}
  .admin-workspace .welcome-item {min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
  .admin-workspace .welcome-item .drag {flex:none}
  .admin-workspace #panel #tab-r .rtable-wrap {overflow:visible!important;max-height:none!important;min-height:0;border:0!important;background:transparent!important;box-shadow:none!important}
  .admin-workspace #panel #tab-r .rtable {display:block;min-width:0!important;width:100%!important;background:transparent}
  .admin-workspace #panel #tab-r .rtable thead {display:none}
  .admin-workspace #panel #tab-r .rtable tbody {display:grid;gap:12px}
  .admin-workspace #panel #tab-r .rtable tbody tr {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;
    padding:13px;background:#fff;border:1px solid #d9d9d9;border-radius:4px;
    box-shadow:0 6px 18px #4c2d1e0b;
  }
  .admin-workspace #panel #tab-r .rtable tbody td {
    box-sizing:border-box;display:block;position:static!important;width:auto!important;min-width:0!important;
    padding:9px 0!important;border-bottom:1px solid #d9d9d9!important;
    background:transparent!important;box-shadow:none!important;white-space:normal;overflow-wrap:anywhere;
  }
  .admin-workspace #panel #tab-r .rtable tbody td:first-child {display:none!important}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(2),
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(3),
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(8),
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(9) {grid-column:1/-1}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(2) {padding-top:0!important}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(9) {border-bottom:0!important;text-align:left!important}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(n+3)::before {
    display:block;margin-bottom:5px;color:#94796a;font:11px LandingSerif,Georgia,serif;letter-spacing:.07em;text-transform:uppercase;
  }
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(3)::before {content:'Прогресс'}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(4)::before {content:'Этап'}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(5)::before {content:'Формат'}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(6)::before {content:'Получение'}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(7)::before {content:'В типографию'}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(8)::before {content:'Доставка'}
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(9)::before {content:'Стоимость'}
  .admin-workspace #panel #tab-r .rtable tbody :is(.picker-button,.date-trigger) {max-width:100%;white-space:normal!important}
}
@media print {
  .admin-workspace .book-editor :is(.chapter-stage,.cover-stage) {background:#fff}
}
@media(max-width:420px) {
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(6),
  .admin-workspace #panel #tab-r .rtable tbody td:nth-child(7) {grid-column:1/-1}
  .admin-workspace #panel #tab-r .rtable tbody :is(.date-trigger,.print-trigger) {width:100%;justify-content:flex-start}
  .admin-workspace .book-editor .editor-top {gap:6px;padding:7px}
  .admin-workspace .book-editor .editor-title {min-width:0;flex:1 1 auto;overflow:hidden}
  .admin-workspace .book-editor .editor-title b {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
  .admin-workspace .book-editor .editor-tools {flex:none;margin-left:0}
  .admin-workspace .book-editor .editor-tools .editor-download {max-width:none!important;min-width:max-content!important;white-space:nowrap!important;font-size:11px!important;padding:8px 9px!important}
}

/* Admin section titles and tariff actions follow the same page header system. */
.admin-workspace .pagehead:is(.payments-page,.tariffs-page) h1 {text-transform:uppercase}
@media(min-width:1281px){.admin-workspace .request-pagehead {column-gap:24px}}

/* Keep source actions in the editor's tab bar. */
.admin-workspace .source-tab-toolbar {display:none}
.admin-workspace .book-editor.source-mode .editor-tabs {
  position:relative;z-index:5;gap:16px;overflow:visible;
}
.admin-workspace .book-editor.source-mode .editor-view-tabs {display:none!important}
.admin-workspace .book-editor.source-mode .source-tab-toolbar {
  display:flex;align-items:center;gap:10px;margin-left:auto;
  font:14px LandingSerif,Georgia,serif;
}
.admin-workspace .source-top-actions {display:flex;align-items:center;gap:10px;flex:none;margin-left:auto}
.admin-workspace .source-top .source-tools {flex:none;margin:0}
.admin-workspace .source-nav .source-search {box-sizing:border-box;display:block;width:calc(100% - 24px);min-width:0}
.admin-workspace .source-tab-toolbar .source-btn,
.admin-workspace .source-top .source-tools .source-btn {
  min-height:38px;padding:7px 12px;white-space:nowrap;
  border:1px solid #d9d9d9;border-radius:8px;background:#fff;color:#6a3630;
  font:14px LandingSerif,Georgia,serif;cursor:pointer;
}
.admin-workspace .source-tab-toolbar .source-btn:hover,
.admin-workspace .source-top .source-tools .source-btn:hover {border-color:#8a4a43}
.admin-workspace .source-top .source-tools {
  position:relative;margin:0;border:0;border-radius:0;overflow:visible;background:transparent;
}
.admin-workspace .source-top .source-tools summary {
  display:flex;align-items:center;list-style:none;
}
.admin-workspace .source-top .source-tools summary::-webkit-details-marker {display:none}
.admin-workspace .source-top .source-tools summary::after {content:'⌄';margin-left:8px}
.admin-workspace .source-top .source-tool-actions {
  position:absolute;top:calc(100% + 8px);right:0;z-index:20;
  display:grid;gap:6px;min-width:230px;padding:10px;
  border:1px solid #d9d9d9;border-radius:10px;background:#fff;
  box-shadow:0 10px 30px #28151022;
}
.admin-workspace .source-top .source-tool-actions .source-btn {width:100%;text-align:left}
.admin-workspace .source-top .source-tool-actions .source-btn.primary {
  background:#713735;border-color:#713735;color:#fff;
}
.admin-workspace .source-top-actions>.source-btn.primary {
  background:#713735;border-color:#713735;color:#fff;
}
.admin-workspace .source-tab-toolbar .source-plan {
  display:flex;align-items:center;gap:7px;padding:0;margin:0;border:0;background:transparent!important;
}
.admin-workspace .source-tab-toolbar .source-plan label {white-space:nowrap;color:#4d3428}
.admin-workspace .source-tab-toolbar .source-pages {
  box-sizing:border-box;width:62px;min-height:38px;padding:6px;
  border:1px solid #d9d9d9;border-radius:8px;background:#fff;color:#4d3428;
}
@media(max-width:1250px) {
  .admin-workspace .book-editor.source-mode .editor-tabs {flex-wrap:wrap;padding:8px 14px}
  .admin-workspace .book-editor.source-mode .source-tab-toolbar {width:100%;margin-left:0}
  .admin-workspace .book-editor.source-mode .source-workspace {top:174px}
}
@media(max-width:700px) {
  .admin-workspace .book-editor.source-mode .source-tab-toolbar {flex-wrap:wrap;gap:6px}
  .admin-workspace .book-editor.source-mode .source-workspace {top:220px}
  .admin-workspace .source-top-actions {margin-left:0;flex-wrap:wrap}
}
