/* Shared workspace scale: readable data, restrained spacing, consistent controls. */
.workspace-shell{font-size:14px;line-height:1.6;--ink:#25344b;--muted:#627188;--line:#e3e8ef;--sidebar:184px;background:#f5f6f8;color:var(--ink)}
.workspace-shell main{padding:24px;max-width:2000px}
.workspace-shell .app-header{height:60px;background:#fff}
.workspace-shell .workspace-nav a{font-size:14px;min-height:42px;padding:10px 14px}
.workspace-shell .nav-group-label{font-size:12px;color:#6b778c;padding-top:18px}
.workspace-shell .sidebar-footer,.workspace-shell .identity,.workspace-shell .identity a{font-size:12px;color:#627188}
.workspace-shell .page-heading{min-height:0;margin-bottom:20px;gap:16px}
.workspace-shell .page-heading h1{font-size:24px;line-height:1.4;margin:2px 0 6px;font-weight:650}
.workspace-shell .page-heading p{font-size:14px;color:#627188;line-height:1.6}
.workspace-shell .eyebrow{font-size:12px;color:#627188}
.workspace-shell .panel{padding:20px;border-color:var(--line);border-radius:8px;box-shadow:none;margin-bottom:18px}
.workspace-shell h2,.workspace-shell .section-heading h2{font-size:16px;line-height:1.5;font-weight:600}
.workspace-shell .section-heading{margin-bottom:16px;gap:16px}
.workspace-shell .fine,.workspace-shell .muted{color:#627188}
.workspace-shell .fine{font-size:12px;line-height:1.65}
.workspace-shell label{font-size:13px;color:#46566d}
.workspace-shell input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.workspace-shell select,.workspace-shell textarea{font-size:14px;line-height:1.5;border-color:#d6dee9;border-radius:5px}
.workspace-shell input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),.workspace-shell select{min-height:36px}
.workspace-shell input::placeholder,.workspace-shell textarea::placeholder{color:#8995a7;opacity:1}
.workspace-shell :is(button,.button){font-size:14px;line-height:20px;min-height:36px;border-radius:5px}
.workspace-shell :is(button,.button):disabled{cursor:not-allowed;opacity:.5}
.workspace-shell .page-heading :is(button,.button){font-size:14px}
.workspace-shell .text-button{min-height:28px;padding:3px 6px}
.workspace-shell input[type=checkbox],.workspace-shell input[type=radio]{width:16px;height:16px;min-height:0;flex:none}
.workspace-shell input.file-input{width:1px!important;height:1px!important;min-height:0!important;max-width:1px!important;padding:0!important;border:0!important}
.workspace-shell table{font-size:14px}
.workspace-shell th{font-size:13px;font-weight:500;color:#526178;background:#f7f8fa;line-height:20px;padding:12px}
.workspace-shell td{font-size:14px;line-height:22px;padding:12px;vertical-align:middle;border-right:0;border-bottom:1px solid #e9edf2}
.workspace-shell tbody tr:hover td{background:#f8faff}
.workspace-shell .badge{font-size:12px;line-height:20px;padding:2px 7px;border-radius:4px}
.workspace-shell .pagination{font-size:13px;color:#627188;padding:16px 0;gap:12px}
.workspace-shell .stats{gap:16px;margin-bottom:20px}
.workspace-shell .stats article{padding:16px 20px;border-radius:8px;min-height:74px}
.workspace-shell .stats span{font-size:13px;color:#627188}
.workspace-shell .stats strong{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums}
.workspace-shell .notice{font-size:14px;line-height:1.7;padding:12px 16px;border-radius:6px}
.workspace-shell :is(.account-filters,.book-picker,.video-filter-bar,.demand-filters,.library-filters)>label{font-size:13px}
.workspace-shell :is(.account-filters,.book-picker,.video-filter-bar,.demand-filters,.library-filters) :is(input:not([type=checkbox]),select,.date-range-trigger,button,.button){font-size:14px}
.workspace-shell :is(.plan-config-grid,.plan-grid,.book-picker){gap:18px}
.workspace-shell .plan-config-grid label,.workspace-shell .plan-grid label{font-size:13px}
.workspace-shell .account-option,.workspace-shell .video-option{font-size:14px;padding:12px}
.workspace-shell .errorlist,.workspace-shell .error{font-size:13px}
/* Library: short fields stay narrow, descriptive content receives the space. */
.workspace-shell .library-layout{grid-template-columns:184px minmax(0,1fr);gap:16px}
.workspace-shell .book-directory{padding:16px 10px}
.workspace-shell .book-directory h2{font-size:14px;margin-bottom:12px}
.workspace-shell .book-directory input,.workspace-shell .book-link{font-size:13px;line-height:21px}
.workspace-shell .book-link{padding:9px 8px;color:#526178}
.workspace-shell .book-link.selected{color:#2464db;background:#edf3ff}
.workspace-shell .book-link small{font-size:12px;color:#627188}
.workspace-shell .library-filters.separated-search{display:grid;grid-template-columns:minmax(160px,1fr) minmax(190px,1.4fr) minmax(220px,1.3fr);gap:12px 16px;margin-bottom:16px;padding:0 0 16px}
.workspace-shell .library-filters.separated-search>label:nth-child(1),.workspace-shell .library-filters.separated-search>label:nth-child(2),.workspace-shell .library-filters.separated-search>label:nth-child(3){grid-column:auto}
.workspace-shell .library-filters.separated-search>:nth-child(n+4){grid-column:auto}
.workspace-shell .library-filters.separated-search{grid-template-columns:repeat(12,minmax(0,1fr))}
.workspace-shell .library-filters.separated-search>label:nth-child(-n+3){grid-column:span 4}
.workspace-shell .library-filters.separated-search>:nth-child(4){grid-column:span 4}
.workspace-shell .library-filters.separated-search>:nth-child(5),.workspace-shell .library-filters.separated-search>:nth-child(6){grid-column:span 3}
.workspace-shell .library-filters.separated-search>:nth-child(7){grid-column:span 2}
.workspace-shell .library-filters.separated-search>button{justify-self:start;min-width:108px}
.workspace-shell .library-bulk-actions{padding:10px 12px;gap:10px;background:#f7f9fc;border:1px solid var(--line);border-radius:6px}
.workspace-shell .library-bulk-actions :is(button,.button){font-size:13px;min-height:32px}
.workspace-shell .library-bulk-actions .fine{font-size:12px;white-space:normal}
.workspace-shell .library-content .asset-table{table-layout:fixed;min-width:1240px;width:100%;border-collapse:collapse}
.workspace-shell .library-content .asset-table :is(th,td){font-size:14px;padding:12px;line-height:22px;border-right:0;overflow-wrap:anywhere;background-clip:padding-box}
.workspace-shell .library-content .asset-table th{font-size:13px;background:#f7f8fa}
.workspace-shell .library-content .asset-table .selection-cell{width:40px;min-width:40px;max-width:40px;padding:10px;position:static}
.workspace-shell .library-content .asset-table th:nth-child(2),.workspace-shell .library-content .asset-table .book-cell{width:152px;min-width:152px;max-width:none;position:static}
.workspace-shell .library-content .asset-table th:nth-child(3),.workspace-shell .library-content .asset-table .material-cell{width:auto;min-width:260px;max-width:none}
.workspace-shell .library-content .asset-table th:nth-child(4){width:100px}
.workspace-shell .library-content .asset-table th:nth-child(5),.workspace-shell .library-content .asset-table .platform-cell{width:228px;min-width:228px;max-width:none}
.workspace-shell .library-content .asset-table th:nth-child(6),.workspace-shell .library-content .asset-table .spend-cell{width:106px;min-width:106px}
.workspace-shell .library-content .asset-table th:nth-child(7){width:128px}
.workspace-shell .library-content .asset-table th:nth-child(8){width:90px}
.workspace-shell .library-content .asset-table th:nth-child(9){width:106px}
.workspace-shell .library-content .asset-table .fine,.workspace-shell .library-content .asset-table .platform-id{font-size:12px;line-height:20px;color:#627188}
.workspace-shell .library-content .asset-table .book-name{font-size:13px;line-height:21px;color:#46566d;font-weight:400}
.workspace-shell .library-content .asset-table .asset-title{font-size:14px;font-weight:550;line-height:22px}
.workspace-shell .library-content .asset-table .material-thumbnail{width:48px;height:62px;flex-basis:48px;border-radius:4px;min-height:0}
.workspace-shell .library-content .asset-table .asset-actions :is(a,button){display:inline-block;width:auto;min-height:26px;line-height:20px;font-size:13px;padding:3px 5px;margin:0 2px 2px 0;border:0;background:transparent}
.workspace-shell .library-content .asset-table .asset-actions{white-space:normal}
.workspace-shell .asset-table .people-cell .fine{margin-top:3px}
/* Cover images are a simple file library. */
.workspace-shell .cover-workspace{max-width:none}
.workspace-shell .cover-upload summary{display:flex;gap:16px;align-items:center;font-size:16px;margin-bottom:16px}
.workspace-shell .cover-upload-fields{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.workspace-shell .cover-upload-fields>label:first-child{width:320px;max-width:100%;margin:0}
.workspace-shell .cover-upload-fields input{display:block;width:100%;margin:6px 0 0}
.workspace-shell .cover-upload-fields .button{margin:0;display:inline-flex;align-items:center;cursor:pointer}
.workspace-shell .cover-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.workspace-shell .cover-filters label{width:260px;max-width:100%;margin:0}
.workspace-shell .cover-filters input{width:100%;display:block;margin:6px 0 0}
.workspace-shell .library-content .cover-table{min-width:780px}
.workspace-shell .library-content .cover-table th:nth-child(2),.workspace-shell .library-content .cover-table .material-cell{width:auto;min-width:240px}
.workspace-shell .library-content .cover-table th:nth-child(3),.workspace-shell .library-content .cover-table .book-cell{width:190px;min-width:190px}
.workspace-shell .library-content .cover-table th:nth-child(4){width:160px}
.workspace-shell .library-content .cover-table th:nth-child(5){width:90px;min-width:90px}
.workspace-shell .library-content .cover-table th:nth-child(6){width:110px}
.workspace-shell .cover-table .material-thumbnail{object-fit:contain}
/* Demand selection is deliberately page-scoped. */
.workspace-shell .demand-list-panel{padding:0}
.workspace-shell .demand-bulk-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 24px}
.workspace-shell .demand-bulk-bar button{min-height:32px;font-size:13px}
.workspace-shell .danger-button{color:#c63838;border:1px solid #efcece;background:#fff}
.workspace-shell .demand-selectable th{width:auto!important}
.workspace-shell .demand-selectable th:nth-child(2){width:25%!important}
.workspace-shell .demand-selectable th:nth-child(4){width:16%!important}
.workspace-shell .demand-selectable th:nth-child(5){width:16%!important}
.workspace-shell .demand-selectable .demand-select-cell{width:42px!important;padding:10px;text-align:center}
.workspace-shell .demand-select-cell input{margin:0;vertical-align:middle}
.workspace-shell .demand-table td{padding:14px;font-size:14px}
.workspace-shell .demand-table th,.workspace-shell .demand-type-counts,.workspace-shell .demand-progress-values{font-size:13px}
.workspace-shell .demand-table tr:has([data-demand-select]:checked) td{background:#eef4ff}
@media(max-width:1200px){.workspace-shell{--sidebar:172px}.workspace-shell main{padding:20px}.workspace-shell .library-layout{grid-template-columns:164px minmax(0,1fr)}.workspace-shell .library-filters.separated-search{grid-template-columns:repeat(6,minmax(0,1fr))}.workspace-shell .library-filters.separated-search>label:nth-child(-n+3){grid-column:span 2}.workspace-shell .library-filters.separated-search>:nth-child(4){grid-column:span 2}.workspace-shell .library-filters.separated-search>:nth-child(5),.workspace-shell .library-filters.separated-search>:nth-child(6),.workspace-shell .library-filters.separated-search>:nth-child(7){grid-column:span 1}.workspace-shell .library-filters.separated-search>button{min-width:0;padding:7px}}
@media(max-width:760px){.workspace-shell{--sidebar:0px}.workspace-shell main{padding:16px 12px}.workspace-shell .workspace-nav a{font-size:13px;padding:8px 10px}.workspace-shell .panel{padding:16px}.workspace-shell .page-heading{flex-wrap:wrap}.workspace-shell .page-heading h1{font-size:22px}.workspace-shell .library-layout{grid-template-columns:1fr}.workspace-shell .book-directory{position:static}.workspace-shell .book-list{max-height:160px}.workspace-shell .library-filters.separated-search{grid-template-columns:1fr 1fr}.workspace-shell .library-filters.separated-search>label:nth-child(3){grid-column:1/-1}.workspace-shell .demand-list-panel{padding:0}.workspace-shell .stats{gap:8px}.workspace-shell .stats article{padding:12px}.workspace-shell .stats strong{font-size:22px}.workspace-shell .cover-filters label{flex:1 1 180px}.workspace-shell .cover-upload-fields>label:first-child{width:100%}.workspace-shell .notice{padding:12px}.workspace-shell .demand-bulk-bar{padding:12px 16px}}
@media(prefers-reduced-motion:reduce){.workspace-shell *{scroll-behavior:auto!important}}
@media(max-width:760px){.workspace-shell .library-filters.separated-search>:nth-child(n){grid-column:auto}.workspace-shell .library-filters.separated-search>label:nth-child(3){grid-column:1/-1}}
/* Keep cover controls balanced across the actual desktop workspace. */
@media (min-width: 1200px) {
  .workspace-shell .cover-upload {
    display: grid;
    grid-template-columns: minmax(235px, .36fr) minmax(0, 1fr);
    gap: 0 24px;
    align-items: center;
  }
  .workspace-shell .cover-upload summary { display: block; margin-bottom: 0; }
  .workspace-shell .cover-upload summary .fine { display: block; margin-top: 5px; font-size: 12px; }
  .workspace-shell .cover-upload-fields {
    display: grid;
    grid-template-columns: minmax(240px, 1.7fr) minmax(160px, .6fr) auto;
    gap: 12px;
    align-items: end;
    width: 100%;
  }
  .workspace-shell .cover-upload-fields > label:first-child {
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .workspace-shell .cover-upload-fields .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .workspace-shell .cover-upload #video-upload-error,
  .workspace-shell .cover-upload #upload-queue { grid-column: 1 / -1; }
  .workspace-shell .cover-filters {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto;
    align-items: end;
  }
  .workspace-shell .cover-filters label { width: auto; max-width: none; min-width: 0; }
  .workspace-shell .cover-filters #refresh-assets { min-width: 82px; }
}
.workspace-shell .cover-library:has(#asset-rows:empty) .library-bulk-actions,
.workspace-shell .cover-library:has(#asset-rows:empty) .table-column-tools,
.workspace-shell .cover-library:has(#asset-rows:empty) .table-wrap { display: none; }
.workspace-shell .cover-library #asset-empty {
  margin: 0 0 12px;
  padding: 32px 24px;
  border: 1px dashed #dbe4f4;
  border-radius: 10px;
  background: #fbfcff;
}
