.workspace-active {
  --ws-ink:#11291f;
  --ws-green:#194a34;
  --ws-paper:#fbf7f0;
  --ws-line:#e6dccd;
  --ws-soft:#f6eee1;
  --ws-shadow:0 4px 13px #63462814;
  background:#f3ece1;
}
.ws-icon {display:inline-block;vertical-align:middle;flex:none;object-fit:contain}
.workspace-active #footer,.ws-mobile-menu,.ws-mobile-notify,.ws-bottom,.ws-mode-mobile {display:none}
#header.workspace-header {position:relative;z-index:5;background:#faf5ed;border-block-end:1px solid var(--ws-line);box-shadow:0 2px 8px #533a2410}
.ws-top {min-height:67px;display:grid;grid-template-columns:minmax(185px,1fr) minmax(230px,530px) minmax(250px,1fr);align-items:center;gap:1rem;
  margin-inline:auto;padding:.55rem 1.6rem;max-width:1690px}
#header.workspace-header .brand {min-width:0;justify-self:start}
#header.workspace-header .brand img {width:min(100%,205px);height:auto}
#header.workspace-header .brand small {line-height:1.2}
.ws-search {display:flex;align-items:center;gap:.45rem;background:#fffdfa;border:1px solid #e0d5c8;
  border-radius:14px;box-shadow:0 2px 6px #5f472325;overflow:hidden}
.ws-search input {min-width:0;flex:1;border:0;background:none;padding:.57rem .9rem;box-shadow:none}
.ws-search button {display:grid;place-items:center;min-inline-size:40px;align-self:stretch;border:0;background:none;cursor:pointer}
.ws-top-actions {display:flex;justify-content:flex-end;align-items:center;gap:clamp(.3rem,1vw,.8rem)}
.ws-top-actions>a {position:relative;display:grid;place-items:center;min-inline-size:34px;min-block-size:36px}
.workspace-header #notification-count {inset-inline-end:0}
.ws-top-actions .ws-mobile-notify {display:none}
.ws-search button,.ws-top-actions>a,.ws-mobile-menu>summary {position:relative;display:grid;place-items:center;min-width:42px;min-height:42px;border:0;color:inherit;background:none;cursor:pointer}
.ws-top-actions {display:flex;align-items:center;gap:.25rem;justify-content:flex-end}
.ws-account-menu {position:relative;margin-inline-start:.35rem}
.ws-account-menu summary {list-style:none;display:flex;gap:.45rem;align-items:center;min-height:40px;padding:.3rem .7rem;background:#efe7da;border-radius:22px;cursor:pointer;white-space:nowrap}
.ws-account-menu nav,.ws-mobile-menu nav {position:absolute;inset-inline-end:0;inset-block-start:calc(100% + 8px);min-width:180px;
  display:grid;padding:.45rem;background:var(--ws-paper);border:1px solid var(--ws-line);border-radius:12px;box-shadow:var(--ws-shadow)}
.ws-account-menu nav a,.ws-account-menu nav button,.ws-mobile-menu nav a {display:flex;align-items:center;gap:.45rem;padding:.42rem .55rem;text-align:start;
  border:0;border-radius:6px;background:none;color:var(--ws-ink);white-space:nowrap;cursor:pointer}
.ws-account-menu nav :is(a,button):hover,.ws-mobile-menu nav a:hover {background:var(--ws-soft)}
.ws-top a:focus-visible,.ws-frame :is(a,summary,button):focus-visible {outline:2px solid var(--ws-green);outline-offset:3px}
.ws-frame {display:grid;grid-template-columns:minmax(195px,238px) minmax(0,1fr);align-items:start;gap:1rem;
  max-width:1690px;margin-inline:auto;padding:1.15rem 1.35rem 2rem;color:var(--ws-ink)}
.ws-panel {background:var(--ws-paper);border:1px solid #ede4d7;border-radius:17px;box-shadow:var(--ws-shadow);min-width:0}
.ws-sidebar {padding:.6rem}
.ws-user {display:flex;align-items:center;gap:.7rem;min-height:68px;padding:.6rem;background:#f5eddf;border-radius:12px;font-weight:650;overflow-wrap:anywhere}
.ws-avatar {background:#66806e;border-radius:50%;display:grid;place-items:center;width:42px;height:42px;flex:none}
.ws-avatar img,.ws-hero>span img,.ws-sidebar [aria-current] img,.ws-gallery img,.workspace-active .ws-photo-submit img {filter:brightness(0) invert(1)}
.ws-sidebar nav {display:grid;gap:.12rem;margin-block:.65rem}
.ws-sidebar nav a,.ws-shortcuts a {position:relative;display:flex;align-items:center;gap:.6rem;min-height:39px;padding:.35rem .62rem;border-radius:10px;font-weight:550}
.ws-sidebar nav a:hover,.ws-shortcuts a:hover {background:#eee5d6}
.ws-sidebar nav [aria-current] {background:#163c2c;color:#fff}
.ws-sidebar nav [aria-current]:hover {background:#214d38}
.ws-sidebar nav a:nth-child(6) {border-block-start:1px solid var(--ws-line);margin-block-start:.35rem}
.ws-badge.notification-count {position:absolute;inset-block-start:0;inset-inline-end:0;min-width:17px;height:17px;display:grid;place-items:center;background:#ac3027;border:0;font-size:.67rem;color:#fff}
.ws-badge.notification-count[hidden],.workspace-active [hidden] {display:none!important}
.ws-sidebar .ws-badge {position:static;margin-inline-start:auto}
.ws-tips,.ws-shelf-tip {background:linear-gradient(to right,transparent 20%,#f7ead2 72%),url('/assets/account/banner.jpg') left center/auto 100% no-repeat #f7ead2;
  border-radius:12px;padding:.75rem .7rem;padding-inline-end:34%;min-height:95px}
.ws-tips summary,.ws-shelf-tip summary {font-weight:750;cursor:pointer}
.ws-tips p,.ws-shelf-tip p {margin:.4rem 0 0;font-size:.88rem;line-height:1.45}
.ws-main {min-width:0}
.ws-main>.shell {width:100%;margin:0}
.ws-main>.page {padding-block:0 1rem}
.ws-dashboard-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,286px);column-gap:1rem;row-gap:.75rem;align-items:start}
.ws-publish {overflow:hidden;grid-column:1;grid-row:1}
.ws-hero {display:flex;align-items:center;gap:.8rem;padding:1.45rem;min-height:112px;background:
  linear-gradient(to right,transparent 15%,#f7ebd9 41%,#fbf4e8),
  url('/assets/account/banner.jpg') left center/45% auto no-repeat #f7ebd9}
.ws-hero>span {display:grid;place-items:center;background:#174735;border-radius:14px;width:58px;height:58px;flex:none}
.ws-hero h2 {font-family:inherit;font-size:clamp(1.65rem,2.6vw,2.5rem);line-height:1.16;margin:0 0 .2rem;font-weight:800;letter-spacing:-.035em}
.ws-hero p {margin:0;font-size:.94rem}
.ws-maintenance,.ws-publish .account-confirm {margin:.7rem 1.15rem 0}
.ws-maintenance {font-size:.84rem;color:#674b2b;background:#f6ebda;border-radius:7px;padding:.4rem .6rem}
.ws-photo-form {padding:.88rem 1.2rem 1rem}
.ws-photo-form fieldset {padding:0;border:0;margin:0;min-width:0}
.ws-photo-form legend {font-weight:770;font-size:1.25rem;margin-block:.45rem .62rem;padding:0}
.ws-steps {display:flex;list-style:none;justify-content:space-between;align-items:center;margin:0;padding:0 0 .75rem;gap:.4rem;color:#5e625b;font-size:.86rem}
.ws-steps li {display:flex;align-items:center;gap:.5rem;white-space:nowrap}
.ws-steps li:not(:last-child)::after {content:"";display:block;inline-size:clamp(1rem,4vw,3rem);height:1px;background:#d8d0c1;margin-inline:.6rem 0}
.ws-steps b {width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#e4dbce;color:#43443b}
.ws-steps [aria-current] {color:var(--ws-green);font-weight:750}
.ws-steps [aria-current] b {background:var(--ws-green);color:white}
.ws-modes {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.ws-modes label {display:grid;grid-template-columns:auto minmax(0,1fr) minmax(48px,.9fr);align-items:center;gap:.43rem;
  min-height:104px;min-width:0;padding:.48rem;background:#f8f3eb;border:1px solid #dbd1c4;border-radius:12px;cursor:pointer}
.ws-modes label:has(:checked) {background:#eaf1e2;border-color:#285f44;box-shadow:inset 0 0 0 1px #285f4435}
.ws-modes label:focus-within {outline:2px solid var(--ws-green);outline-offset:2px}
.ws-modes input {margin:0;accent-color:var(--ws-green);width:17px;height:17px}
.ws-mode-text {align-self:center;line-height:1.35;min-width:0}
.ws-mode-text b,.ws-mode-text small {display:block}
.ws-mode-text small {margin-block-start:.28rem;font-size:.8rem;color:#454840}
.ws-mode-photo {display:block;width:100%;height:auto;aspect-ratio:1;border-radius:8px;object-fit:cover}
.ws-drop {display:grid;justify-items:center;text-align:center;gap:.23rem;margin-block:.85rem .4rem;padding:.85rem .65rem;
  border:1px dashed #a89379;border-radius:14px;background:#fbf4e9}
.ws-drop:focus-within {border-color:var(--ws-green)}
.ws-drop strong {font-size:1.02rem}
.ws-drop small,.ws-photo-help,.ws-file-status {color:#535850;font-size:.84rem}
.ws-file-status {overflow-wrap:anywhere;margin:.25rem 0;max-width:100%}
.ws-drop .form-error {margin:.15rem 0;grid-column:1/-1}
.ws-drop .form-error:empty {display:none}
.ws-picker-actions {display:flex;justify-content:center;gap:.45rem;margin-block:.45rem .1rem}
.ws-picker-actions .ws-camera {display:none}
.workspace-active .ws-gallery,.workspace-active .ws-photo-submit {background:var(--ws-green);color:white;border-radius:12px}
.workspace-active .ws-camera {border-radius:12px}
.ws-qr {text-align:center;font-size:.85rem;margin-block-start:.45rem}
.ws-qr summary {list-style:none;display:inline-flex;align-items:center;gap:.4rem;border:1px solid #8da291;border-radius:10px;padding:.25rem .65rem;cursor:pointer}
.ws-qr>img {display:block;margin:.45rem auto;max-width:100%}
.ws-qr>a {text-decoration:underline}
.ws-qr {text-align:center}
.ws-qr summary {display:inline-flex;justify-content:center;align-items:center;gap:.35rem;min-height:29px;
  padding:.23rem .65rem;border:1px solid #b2c2b3;border-radius:16px;color:#1d4f38;font-size:.83rem;font-weight:690;cursor:pointer}
.ws-photo-help {text-align:center;margin:.5rem 0 0}
.ws-overview {grid-column:2;grid-row:1 / span 2;display:grid;gap:.9rem}
.ws-overview>section,.ws-recent>section {padding:.85rem;min-width:0}
.ws-overview h2,.ws-recent h2 {display:flex;align-items:center;gap:.45rem;margin:0 0 .65rem;font-family:inherit;font-size:1.05rem;font-weight:750;line-height:1.28}
.ws-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem}
.ws-stats div {display:grid;justify-items:center;text-align:center;gap:.2rem;padding:.62rem .18rem;background:var(--ws-soft);border-radius:11px}
.ws-stats b {font-size:1.28rem;line-height:1}
.ws-stats small {font-size:.7rem}
.ws-shortcuts a {margin-block:.3rem;background:var(--ws-soft);font-size:.89rem}
.ws-shortcuts a img:last-child {margin-inline-start:auto}
.ws-recent {grid-column:1;grid-row:2;display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:.74rem}
.ws-recent-books {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
.ws-recent-books a,.ws-draft {display:flex;align-items:center;gap:.4rem;min-width:0;padding:.3rem;border-radius:8px;background:#f7efe4}
.ws-recent-books a>span,.ws-draft span {display:grid;min-width:0;gap:.2rem}
.ws-recent-books b,.ws-draft b {font-size:.78rem;line-height:1.24;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ws-book-cover {width:38px;height:54px;flex:none;object-fit:contain}
.ws-draft {margin-block:.3rem}
.ws-draft>img:last-child {margin-inline-start:auto}
.ws-draft small,.ws-empty {font-size:.78rem;color:#555950}
.ws-status {width:fit-content;font-size:.68rem;background:#eee4d6;border-radius:9px;padding:.08rem .25rem}
.ws-live {background:#e2eddb;color:#214d38}
.ws-text-links {display:flex;gap:.55rem;flex-wrap:wrap}
.ws-text-link {display:flex;align-items:center;gap:.25rem;font-size:.78rem;margin-block-start:.5rem;color:#193e2c;text-decoration:underline;text-underline-offset:2px}
.ws-mobile-welcome {position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1160px) {
  .ws-dashboard-grid {grid-template-columns:minmax(0,1fr)}
  .ws-overview {grid-column:1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr))}
  .ws-modes label {min-height:88px}
}
@media(max-width:820px) {
  #header.workspace-header {background:#143a2a;color:#fff;box-shadow:none;border-block-end:1px solid #2a5441}
  .ws-top {display:grid;grid-template-columns:45px minmax(0,1fr) 45px;padding:.15rem .55rem;gap:.2rem;min-height:56px}
  #header.workspace-header .brand {justify-self:center;max-width:150px}
  #header.workspace-header .brand img {filter:brightness(0) invert(1);width:145px}
  #header.workspace-header .brand small {color:#fff;font-size:.58rem}
  .ws-top-actions>a:not(.ws-cart),.ws-account-menu,.ws-search {display:none}
  .ws-top-actions>a.ws-mobile-notify {display:grid}
  .ws-top-actions:has(.ws-cart) .ws-mobile-notify {display:none}
  .ws-top-actions {justify-content:center}
  .ws-mobile-menu {display:block;position:relative}
  .ws-mobile-menu nav {inset-inline-start:0;inset-inline-end:auto}
  .ws-mobile-menu summary .ws-icon,.ws-cart .ws-icon,.ws-mobile-notify .ws-icon {filter:brightness(0) invert(1)}
  .ws-frame {display:block;padding:.55rem .57rem calc(5rem + env(safe-area-inset-bottom))}
  .ws-sidebar,.ws-top-actions .ws-desktop-action,.ws-top-actions .ws-account-menu {display:none!important}
  .ws-top-actions .ws-cart {display:grid}
  .ws-top-actions:not(:has(.ws-cart)) .ws-mobile-notify {display:grid}
  .ws-bottom {display:grid;position:fixed;inset:auto 0 0;z-index:10;grid-template-columns:repeat(5,minmax(0,1fr));
    min-height:62px;padding:.3rem .25rem calc(.25rem + env(safe-area-inset-bottom));background:#fffaf3;border-block-start:1px solid #e0d9cb;box-shadow:0 -4px 13px #4936230e}
  .ws-bottom a {position:relative;display:grid;justify-items:center;align-content:center;gap:.22rem;min-width:0;font-size:.7rem;font-weight:650}
  .ws-bottom a[aria-current] {color:#176044;font-weight:800}
  .ws-bottom a[href="/sell"] .ws-icon {border-radius:50%;background:#d7e5d9;padding:3px}
  .ws-bottom .ws-badge {inset-inline-end:calc(50% - 20px)}
  .ws-dashboard-grid {gap:.55rem}
  .ws-mobile-welcome {position:static;clip-path:none;inline-size:auto;block-size:auto;grid-column:1;grid-row:1;
    padding:.5rem .6rem .6rem;border-radius:10px;background:linear-gradient(to left,#f7eddd 48%,#f7edddaa 63%,#f7eddd00),url('/assets/account/banner.jpg') left center/auto 120% no-repeat}
  .ws-mobile-welcome h1 {font-family:inherit;font-size:1.3rem;margin:0;font-weight:800}
  .ws-mobile-welcome p {margin:.17rem 0 0;font-size:.81rem}
  .ws-publish {grid-row:2}
  .ws-recent {grid-row:3;grid-template-columns:minmax(0,1fr);gap:.55rem}
  .ws-overview {grid-row:4;grid-template-columns:minmax(0,1fr);gap:.55rem}
  .ws-hero {padding:.8rem .72rem .08rem;min-height:auto;gap:.4rem;background:transparent}
  .ws-hero>span {width:28px;height:28px;border-radius:7px}
  .ws-hero>span img {width:21px;height:21px}
  .ws-hero h2 {font-size:1.11rem;margin:0;letter-spacing:0}
  .ws-hero p,.ws-steps {display:none}
  .ws-photo-form {padding:.55rem .68rem .75rem}
  .ws-photo-form legend {font-size:.9rem;margin:.12rem 0 .4rem}
  .ws-modes {grid-template-columns:minmax(0,1fr);gap:.3rem}
  .ws-modes label {grid-template-columns:auto minmax(0,1fr) auto;min-height:53px;gap:.7rem;line-height:1.23;padding:.36rem .56rem}
  .ws-modes input {grid-column:3;grid-row:1}
  .ws-mode-mobile {display:block;grid-column:1;grid-row:1}
  .ws-mode-text {grid-column:2;grid-row:1;font-size:.89rem}
  .ws-mode-text small {font-size:.72rem;margin-block-start:.07rem}
  .ws-mode-photo,.ws-drop>img,.ws-drop>strong,.ws-drop>small {display:none}
  .ws-drop {display:block;border:0;background:none;padding:0;margin:.6rem 0 .2rem}
  .ws-picker-actions {margin:.3rem 0;display:grid;inline-size:100%;grid-template-columns:minmax(0,1fr);gap:.36rem}
  .ws-picker-actions .ws-camera {display:flex}
  .workspace-active .ws-gallery,.workspace-active .ws-camera,.workspace-active .ws-photo-submit,.ws-qr summary {width:100%;min-height:41px;justify-content:center}
  .ws-recent-books a {display:grid;align-content:start;justify-items:start}
}
