/* Shared layout refinement: more room for records and consistent reading sizes. */
:root { --ink:#24344b; --muted:#68778d; --line:#e2e7ef; --bg:#f3f5f9; }
body { line-height:1.5; }
button:disabled { cursor:not-allowed; }
.sidebar { width:200px; padding:24px 14px 20px; }
.sidebar .brand { padding:0 12px; gap:9px; }
.sidebar .brand img { width:32px; height:32px; }
.sidebar .brand strong { font-size:25px; }
.brand-caption { padding:8px 0 24px 53px; color:#748198; }
.sidebar .nav { gap:5px; }
.nav button { min-height:42px; padding:10px 13px; font-size:13px; color:#5c6c82; }
.nav button.active { box-shadow:inset 3px 0 #345cff; border-radius:5px; }
.nav-label { font-size:11px; margin:21px 13px 7px; color:#7b879a; }
.sidebar-bottom { padding-top:24px; }
.mini-help { padding:0 12px 16px; border:0; border-radius:0; margin-bottom:16px; border-bottom:1px solid var(--line); }
.mini-help .small-title,.mini-help p { display:none; }
.profile { padding:0 10px; }
.profile p { color:#748198; font-size:11px; }
.main { margin-left:200px; width:calc(100% - 200px); min-width:0; }
.topbar { height:60px; padding:0 24px; position:sticky; top:0; z-index:15; background:#fff; }
.breadcrumb { font-size:12px; }
.top-right { gap:14px; }
.connection { color:#68778d; }
.main-inner { max-width:none; padding:24px; }
.page-heading { margin-bottom:20px; align-items:center; }
.page-heading h1 { font-size:24px; line-height:1.3; }
.page-heading p { color:#68778d; font-size:13px; margin-top:6px; line-height:1.6; }
.heading-actions { flex-shrink:0; }
.btn { min-height:36px; font-size:13px; border-radius:6px; box-shadow:none; }
.btn.small { min-height:32px; font-size:12px; padding:5px 11px; }
.btn.primary { box-shadow:none; }
.text-link { font-size:12px; }
.panel { border-color:var(--line); border-radius:8px; }
.panel-head { padding:17px 20px 14px; gap:12px; }
.panel-head h2 { font-size:15px; }
.panel-head .muted { font-size:12px; color:#718096; }
.table-tools { justify-content:flex-start; flex-wrap:wrap; padding:12px 20px; background:#fcfdff; border-bottom:1px solid var(--line); }
.table-tools .search-box { flex:0 1 340px; min-width:200px; border:1px solid #dbe2ed; border-radius:6px; padding:0 10px; height:36px; background:#fff; }
.table-tools .search-box input { width:100%; min-width:0; height:100%; font-size:12px; color:var(--ink); }
.table-tools .search-box:focus-within { outline:2px solid #b5c2ff; }
.table-tools select { height:36px; font-size:12px; padding:0 10px; color:#53637c; border-color:#dbe2ed; border-radius:6px; }
.tabs { gap:24px; }
.tab { font-size:12px; }
.tab span { font-size:11px; }
table { font-size:12px; }
th { color:#60718a; font-size:12px; font-weight:500; background:#f5f7fb; }
td { padding:14px 12px; }
.table-foot { color:#68778d; font-size:12px; padding:12px 20px; gap:10px; flex-wrap:wrap; }
.empty { padding:34px 24px 38px; }
.empty p { max-width:470px; font-size:12px; color:#68778d; }
.empty h3 { font-size:15px; }
.bottom-note,.library-footnote { color:#748198; font-size:11px; line-height:1.8; }
.account-schedule { padding:12px 16px; gap:12px; margin-bottom:14px; border-color:#dce5f5; background:#f0f4fc; border-radius:7px; }
.schedule-symbol { width:34px; height:34px; border:0; border-radius:6px; }
.schedule-symbol svg { width:21px; height:21px; }
.account-schedule strong { font-size:13px; }
.account-schedule p { font-size:12px; color:#68778d; margin-top:3px; }
.library-overview { gap:0; margin-bottom:18px; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.library-overview>div { border:0; border-radius:0; border-right:1px solid var(--line); padding:14px 20px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 16px; }
.library-overview>div:last-child { border-right:0; }
.library-overview span { font-size:12px; color:#596b84; grid-column:1; }
.library-overview small { font-size:11px; color:#748198; grid-column:1; line-height:1.6; }
.library-overview strong { font-size:26px; grid-column:2; grid-row:1/3; align-self:center; }
.replacement-overview .replacement-next { font-size:18px; }
.library-policy { padding:12px 16px; margin-bottom:18px; border-radius:7px; }
.library-policy strong { font-size:13px; }
.library-policy small { color:#68778d; }
.account-name strong { font-size:13px; }
.account-name small,.account-sub { color:#748198; font-size:11px; line-height:1.6; }
.accounts-table td,.replacement-table td { padding-top:15px; padding-bottom:15px; }
.replacement-url { font-size:11px; }
.replacement-actions { gap:9px; }
.page-settings .settings-grid,.page-rules .page-panel { max-width:1200px; }
.setting-card { border-radius:8px; padding:22px; }
.setting-card p { color:#68778d; font-size:13px; line-height:1.75; }
.field>span { font-size:13px; margin-bottom:7px; }
.field input,.field select,.field textarea { font-size:13px; padding:9px 11px; }
.field small { color:#748198; font-size:11px; }
.hint { color:#657591; font-size:12px; }

/* The monitoring sheet uses the available window instead of a fixed short box. */
.sheet-main .page-heading h1 { font-size:24px; }
.sheet-main .page-heading { margin-bottom:17px; }
.sheet-context { margin-bottom:12px; gap:12px; }
.sheet-summary { gap:20px; font-size:12px; }
.sheet-summary b { font-size:18px; }
.sheet-connection { font-size:12px; }
.sheet-quick { margin-bottom:14px; }
.sheet-link-input input { font-size:13px; }
.sheet-quick .btn { height:40px; font-size:12px; padding:0 16px; }
.sheet-toolbar { padding:12px 16px; }
.sheet-view-title h2 { font-size:15px; }
.sheet-view-title>span { font-size:11px; color:#748198; }
.sheet-density,.sheet-fields { font-size:12px; }
.sheet-density select,.sheet-pagination select { font-size:12px; min-height:30px; }
.sheet-tabs button { font-size:12px; padding:10px 9px; }
.sheet-tabs button>span { font-size:11px; }
.sheet-filters { padding:11px 16px; gap:8px; background:#fcfdff; }
.sheet-search { max-width:360px; border-radius:5px; flex-basis:250px; }
.sheet-search input { font-size:12px; height:34px; }
.sheet-filters select { font-size:12px; height:36px; color:#53637c; }
.sheet-clear { font-size:12px; color:#68778d; }
.monitor-sheet td { height:76px; padding-top:10px; padding-bottom:10px; }
.monitor-sheet th,.monitor-sheet th>button { font-size:12px; height:40px; }
.monitor-sheet .sheet-title { font-size:13px; }
.sheet-work-sub,.monitor-sheet td small,.sheet-person small { font-size:11px; color:#748198; }
.sheet-rule-title,.sheet-detail { font-size:12px; }
.sheet-original { font-size:11px; }
.sheet-rule-title b { font-size:12px; }
.sheet-muted { font-size:11px; color:#748198; }
.sheet-footer { padding:10px 16px; color:#68778d; font-size:12px; }
.sheet-pagination .btn { font-size:11px; }
.sheet-legend { padding:8px 16px; font-size:11px; color:#748198; gap:6px 16px; }
.sheet-footnote { margin:10px 0 0; color:#748198; }
@media(min-width:901px) {
  .sheet-main { height:calc(100dvh - 60px); min-height:700px; display:flex; flex-direction:column; padding:22px 24px 16px; }
  .sheet-main:has(.demo-banner) { min-height:760px; }
  .sheet-main>.page-heading,.sheet-main>.demo-banner { flex-shrink:0; }
  .monitor-workspace { display:flex; flex-direction:column; flex:1; min-height:0; }
  .sheet-context,.sheet-quick,.sheet-toolbar,.sheet-tabs,.sheet-filters,.sheet-legend,.sheet-footer,.sheet-footnote { flex-shrink:0; }
  .sheet-panel { display:flex; flex-direction:column; flex:1; min-height:420px; }
  #monitor-table { display:flex; flex-direction:column; flex:1; min-height:232px; }
  .sheet-scroll { flex:1; min-height:180px; max-height:none; }
}

/* Staff input and replacement opinions share the same compact rhythm. */
.employee-header { padding:15px max(24px,calc((100vw - 1180px)/2)); min-height:70px; }
.employee-header .brand { padding:0; }
.employee-body { max-width:1228px; padding:26px 24px; }
.employee-forms { gap:18px; }
.employee-forms .setting-card { padding:20px; }
.employee-forms .setting-title { margin-bottom:9px; }
.employee-forms .setting-card>p { margin-bottom:16px; font-size:12px; }
.employee-form textarea { min-height:86px; }
.employee-form>.btn { min-width:150px; }
.employee-history { margin-top:20px; }
.employee-history-filters { padding:0 20px 14px; }
.employee-history-note { padding:0 20px 14px; color:#748198; }
.employee-links-table .submitted-url { color:#345cff; font-size:12px; }
.change-notices { margin:18px 0; }
.notice-explanation,.notice-empty { padding:0 20px 15px; font-size:12px; color:#68778d; }
.notice-list { padding:0 20px 20px; gap:14px; grid-template-columns:repeat(auto-fit,minmax(min(100%,370px),1fr)); }
.notice-card { padding:18px; border-radius:8px; background:#fff; border-color:#e3e7ee; }
.notice-card p { color:#68778d; line-height:1.75; }
.notice-card .notice-opinion p { color:#574a3b; font-size:13px; }
.notice-title { font-size:14px; }
.notice-title small,.subtle { font-size:11px; }
.notice-opinion { margin-top:12px; }
.notice-deadline { margin-top:12px; font-size:12px; }
.notice-replacement-form { margin-top:15px; }
.notice-replacement-form .field { margin-bottom:12px; }
.notice-actions { justify-content:flex-start; gap:8px; }
.notice-entry.has-pending { border-color:#edbe81; color:#995318; }
.notice-marker { padding:7px 0 0; }
.notice-marker>span:last-child { font-size:12px; }
.notice-card,.change-notices,.notice-history tr { scroll-margin-top:84px; }

@media(min-width:601px) and (max-width:1000px) {
  .sidebar { width:72px; padding:20px 10px; }
  .sidebar .brand { padding:0; justify-content:center; }
  .sidebar .brand strong,.brand-caption,.nav-label,.sidebar .nav span,.sidebar-bottom { display:none; }
  .sidebar .nav { margin-top:25px; gap:7px; }
  .sidebar .nav button { padding:13px; justify-content:center; }
  .main { margin-left:72px; width:calc(100% - 72px); }
  .main-inner { padding:20px; }
  .topbar { padding:0 20px; }
  .library-overview>div { padding:13px 15px; }
  .replacement-overview>div { grid-template-columns:1fr; }
  .replacement-overview strong { grid-column:1; grid-row:auto; }
}
@media(max-width:900px) {
  .sheet-scroll { max-height:60dvh; min-height:240px; }
  .sheet-legend { font-size:11px; }
  .sheet-context { align-items:center; flex-wrap:wrap; }
  .sheet-view-title>span { display:none; }
  .sheet-main .page-heading { align-items:flex-start; }
  .sheet-main .page-heading p { max-width:300px; }
  .sheet-sort-note { display:none; }
}
@media(max-width:600px) {
  .shell { display:block; }
  .sidebar { position:sticky; top:0; z-index:18; width:100%; height:54px; min-height:54px; padding:0 8px; flex-direction:row; border-right:0; border-bottom:1px solid var(--line); overflow:hidden; }
  .sidebar .brand,.brand-caption,.nav-label,.sidebar-bottom { display:none; }
  .sidebar .nav { display:flex; overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap; gap:3px; margin:0; width:100%; height:54px; justify-content:flex-start; scrollbar-width:none; }
  .sidebar .nav::-webkit-scrollbar { display:none; }
  .sidebar .nav button { flex-shrink:0; gap:6px; padding:0 10px; min-height:44px; font-size:12px; border-radius:0; white-space:nowrap; }
  .sidebar .nav button>span { display:inline; }
  .sidebar .nav svg { width:15px; height:15px; }
  .sidebar .nav button.active { box-shadow:inset 0 -3px #345cff; background:#f3f6ff; }
  .sidebar .nav .count { display:inline-block; margin-left:0; }
  .sidebar .nav .count[hidden] { display:none; }
  .main { margin:0; width:100%; }
  .topbar { top:54px; min-height:48px; height:auto; padding:8px 14px; gap:10px; }
  .breadcrumb { font-size:11px; gap:6px; }
  .top-right { gap:7px; }
  .top-right .connection,.top-right>[data-nav="alerts"] { display:none; }
  .top-right .btn.small { font-size:11px; padding:5px 8px; min-height:30px; }
  .main-inner,.main-inner.sheet-main { padding:18px 12px; }
  .page-heading { align-items:flex-start; gap:12px; margin-bottom:16px; }
  .page-heading h1,.sheet-main .page-heading h1 { font-size:21px; }
  .page-heading p { font-size:12px; }
  .heading-actions .btn { font-size:12px; padding:7px 10px; }
  .table-tools { padding:12px; gap:8px; }
  .table-tools .search-box { flex:1 1 100%; min-width:0; }
  .table-tools select { flex:1; min-width:0; }
  .panel-head { padding:15px 14px 12px; flex-wrap:wrap; }
  .panel-head .muted { font-size:11px; }
  .table-foot { padding:12px 14px; font-size:11px; }
  .table-foot span:last-child { display:inline; }
  .account-schedule { padding:12px; display:grid; grid-template-columns:34px minmax(0,1fr); gap:8px 12px; align-items:start; }
  .account-schedule .badge { margin-left:0; grid-column:2; justify-self:start; }
  .account-schedule p { font-size:11px; }
  .library-overview>div { display:flex; flex-direction:column; align-items:flex-start; padding:12px; gap:4px; }
  .library-overview strong { font-size:24px; }
  .library-overview small { font-size:11px; }
  .replacement-overview .replacement-next { font-size:14px; }
  .library-policy { padding:12px; }
  .library-policy strong { font-size:12px; }
  .library-policy .btn { margin-top:10px; }
  .sheet-summary { gap:10px 17px; font-size:12px; }
  .sheet-summary b { font-size:16px; }
  .sheet-context { align-items:flex-start; gap:10px; }
  .sheet-link-input { padding:0 9px; }
  .sheet-link-input input { font-size:12px; }
  .sheet-quick .btn { padding:0 11px; }
  .sheet-toolbar { padding:12px; gap:8px; }
  .sheet-view-title h2 { font-size:14px; }
  .sheet-view-tools { gap:8px; }
  .sheet-density { font-size:0; }
  .sheet-density select { font-size:11px; }
  .sheet-fields { font-size:11px; }
  .sheet-filters { padding:10px; }
  .sheet-filters .sheet-search { flex:1 1 100%; max-width:none; min-width:0; }
  .sheet-filters select { min-width:0; max-width:none; flex:1; padding:0 6px; font-size:11px; }
  .sheet-clear { font-size:11px; }
  .sheet-scroll { min-height:220px; max-height:56dvh; }
  .sheet-pagination { flex-wrap:wrap; justify-content:space-between; gap:8px; }
  .sheet-pagination label { margin-right:0; }
  .sheet-legend { padding:10px; }
  .employee-header { padding:12px 14px; min-height:66px; gap:10px; }
  .employee-header .brand img { width:29px; height:29px; }
  .employee-header .brand strong { font-size:22px; display:block; }
  .employee-header .brand { gap:6px; }
  .employee-header>.inline-gap { gap:7px; font-size:11px; }
  .employee-header>.inline-gap>.badge { display:none; }
  .employee-body { padding:20px 12px; }
  .employee-forms { grid-template-columns:1fr; gap:14px; }
  .employee-forms .setting-card { padding:17px; }
  .notice-list { padding:0 12px 14px; grid-template-columns:1fr; }
  .notice-card { padding:15px; }
  .notice-explanation,.notice-empty { padding:0 14px 14px; }
  .notice-actions .btn { width:auto; flex:1 1 150px; white-space:normal; }
  .notice-card,.change-notices,.notice-history tr { scroll-margin-top:120px; }
  .employee-history-filters { padding:0 14px 12px; }
  .employee-history-note { padding:0 14px 12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }
/* In wide workspaces, pair each opinion with its response instead of stretching the form. */
.notice-list { grid-template-columns:1fr; container-type:inline-size; container-name:notice-list; }
@container notice-list (min-width:760px) {
  .notice-card { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr); column-gap:24px; align-items:start; }
  .notice-card>.notice-title,.notice-card>p,.notice-card>.notice-url,.notice-card>.notice-opinion,.notice-card>.notice-deadline,.notice-card>small { grid-column:1; }
  .notice-card>p { margin:8px 0; }
  .notice-card>.notice-replacement-form { grid-column:2; grid-row:1/8; margin:0; padding:4px 0 4px 24px; border-left:1px solid var(--line); align-self:stretch; display:flex; flex-direction:column; justify-content:center; }
  .notice-card .notice-actions { margin-top:6px; }
}
@media(max-width:420px) {
  .employee-header>.inline-gap>span:not([data-notice-entry]) { display:none; }
  .employee-header>.inline-gap { flex-wrap:nowrap; }
}

/* Administrator employee directory shares the account table's data hierarchy. */
.staff-table { min-width:960px; width:100%; }
.staff-table th,.staff-table td { padding:16px; vertical-align:top; }
.staff-table th { white-space:nowrap; }
.staff-roster { min-width:1050px; }
.staff-roster th:not(:first-child),.staff-roster td:not(:first-child) { text-align:center; }
.staff-roster td { vertical-align:middle; }
.staff-person { display:flex; align-items:center; gap:12px; border:0; background:none; padding:0; color:var(--ink); text-align:left; cursor:pointer; width:100%; min-width:160px; }
.staff-person strong { font-size:14px; display:block; }
.staff-person small { display:block; margin-top:4px; color:var(--muted); }
.staff-person>svg { margin-left:auto; color:var(--muted); }
.staff-avatar { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border-radius:10px; color:#345cff; background:#eef1ff; font-weight:700; }
.staff-count { border:0; background:none; cursor:pointer; color:var(--ink); font-size:16px; font-weight:650; font-variant-numeric:tabular-nums; padding:6px 12px; border-radius:6px; }
.staff-count:hover,.staff-person:hover strong { color:#345cff; }
.staff-count:hover { background:#eef1ff; }
.staff-count.attention { color:#a86512; background:#fff5df; }
.staff-detail-head { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-bottom:18px; }
.staff-detail-head>.btn svg { transform:rotate(180deg); }
.staff-detail-head>div { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.staff-detail-head strong { font-size:18px; }.staff-detail-head div>span:not(.badge) { color:var(--muted); font-size:12px; }
.staff-sections { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); background:#fff; border:1px solid #e2e7ef; border-radius:10px; overflow:hidden; margin-bottom:20px; }
.staff-sections button { border:0; border-right:1px solid #e8ecf3; padding:17px 16px; background:none; color:#68778d; text-align:left; cursor:pointer; box-shadow:inset 0 -3px transparent; }
.staff-sections button:last-child { border-right:0; }
.staff-sections strong { display:block; margin-top:7px; color:#24344b; font-size:26px; font-weight:650; font-variant-numeric:tabular-nums; }
.staff-sections button:hover { background:#f8faff; }.staff-sections button.active { background:#f0f3ff; box-shadow:inset 0 -3px #345cff; color:#345cff; }.staff-sections button.active strong { color:#345cff; }
.staff-sections button.attention strong { color:#a86512; }
.staff-table .replacement-url { max-width:300px; }.staff-library td:first-child { min-width:260px; max-width:340px; }
.staff-work { text-align:left; line-height:1.6; font-weight:600; }.staff-table .number { font-variant-numeric:tabular-nums; white-space:nowrap; }
.staff-reason { max-width:300px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; margin:0; }
.staff-library-summary { display:flex; flex-wrap:wrap; align-items:center; gap:16px 28px; padding:16px; border-top:1px solid #edf0f5; background:#fafbfe; color:#68778d; font-size:12px; }
.staff-library-summary b { color:#24344b; font-size:16px; margin-left:6px; }.staff-library-summary small { margin-left:6px; }
.page-employees .panel-head { flex-wrap:wrap; gap:12px; }.page-employees .panel-head>.btn { margin-left:auto; }
.page-employees .search-box { max-width:440px; }
.staff-person:focus-visible,.staff-count:focus-visible,.staff-sections button:focus-visible { outline:2px solid #345cff; outline-offset:-2px; }
@media(max-width:1000px) { .staff-sections { grid-template-columns:repeat(3,minmax(0,1fr)); }.staff-sections button:nth-child(-n+3) { border-bottom:1px solid #e8ecf3; }.staff-sections button:nth-child(3) { border-right:0; } }
@media(max-width:600px) { .staff-sections button { padding:13px 10px; font-size:11px; }.staff-sections strong { font-size:23px; }.staff-detail-head { gap:12px; }.page-employees .search-box { max-width:none; }.staff-library-summary { gap:12px 18px; }.staff-library-summary>span { flex-basis:calc(50% - 18px); }.staff-library-summary small { display:block; margin:3px 0 0; } }

/* Daily publishing reports are distinct from sampled work metrics. */
#admin-daily { flex-shrink:0; }
.daily-board { margin-bottom:18px; }
.daily-board .panel-head { padding:14px 18px 10px; gap:12px; flex-wrap:wrap; }
.daily-board h2 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:15px; }
.daily-board h2 small { font-size:11px; color:#748198; font-weight:400; }
.daily-completion { font-size:12px; color:#68778d; }
.daily-overview { display:grid; grid-template-columns:minmax(250px,.85fr) minmax(0,1.6fr); padding:0 18px 13px; gap:20px; }
.daily-totals { padding-right:20px; border-right:1px solid #e8edf4; }
.daily-totals>div { display:grid; grid-template-columns:62px 1fr 1fr; gap:10px; align-items:center; padding:8px 0; font-size:12px; }
.daily-totals>div>strong { font-weight:600; }
.daily-totals span { display:flex; align-items:baseline; gap:8px; color:#68778d; white-space:nowrap; }
.daily-totals b { color:#24344b; font-size:21px; font-weight:650; font-variant-numeric:tabular-nums; }.daily-totals small { font-size:11px; }
.daily-totals>p { font-size:11px; margin:6px 0 0; color:#748198; }
.daily-people { display:grid; gap:10px; align-content:start; padding-top:5px; }
.daily-people>div { display:grid; grid-template-columns:82px minmax(0,1fr); gap:12px; align-items:baseline; }
.daily-people>div>strong { font-size:12px; font-weight:500; color:#68778d; }.daily-people strong b { margin-left:5px; color:#24344b; }
.daily-people>div>.daily-missing { color:#a86512; }.daily-missing b { color:#a86512!important; }
.daily-people>div>div { display:flex; flex-wrap:wrap; gap:6px; max-height:90px; overflow:auto; }
.daily-person { padding:5px 8px; border:1px solid #f0d6ac; background:#fff9ed; color:#87571b; border-radius:5px; font-size:12px; cursor:pointer; }
.daily-person small { margin-left:5px; color:#9a7d55; font-size:10px; }
.daily-person:hover { border-color:#c99b59; }
.daily-leave-person { display:flex; flex-wrap:wrap; align-items:center; gap:6px; background:#f3f5f9; border-radius:5px; padding:5px 8px; font-size:12px; }
.daily-leave-person small { font-size:10px; color:#68778d; }
.daily-board-note { border-top:1px solid #edf0f5; padding:8px 18px; margin:0; color:#748198; font-size:11px; line-height:1.7; }
.daily-detail { border-top:1px solid #edf0f5; }.daily-detail .table-tools { padding:12px 18px; }.daily-detail .search-box { max-width:360px; }
.daily-table-scroll { max-height:320px; overflow:auto; }.daily-roster { min-width:920px; width:100%; }.daily-roster th { position:sticky; top:0; z-index:1; background:#f7f9fc; white-space:nowrap; }.daily-roster td { padding:12px 16px; vertical-align:top; }.daily-roster .number { font-variant-numeric:tabular-nums; }.daily-detail-note { padding:8px 18px; margin:0; font-size:11px; color:#748198; }
.daily-employee { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:20px; }
.daily-employee>.setting-card { padding:20px; min-width:0; }.daily-employee .setting-title { gap:9px; margin-bottom:9px; }.daily-employee .setting-title h2 { flex:1; }.daily-employee .setting-card>p { margin:0 0 17px; font-size:12px; }
.daily-input-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; }.daily-input-grid .field { margin:0; }
.daily-input-grid input { font-size:18px; font-variant-numeric:tabular-nums; height:43px; }
.daily-form-note { margin:10px 0 14px; color:#748198; font-size:11px; line-height:1.7; }
.daily-rest-hint { padding:10px 12px; background:#f3f5f9; border:1px solid #e5e9f0; border-radius:6px; font-size:12px; line-height:1.7; margin-bottom:13px; }
.daily-history { margin-top:18px; border-top:1px solid #e9edf3; padding-top:13px; font-size:12px; }.daily-history summary { color:#68778d; cursor:pointer; }.daily-history .table-scroll { margin-top:10px; max-height:240px; }.daily-history table { min-width:430px; }
.daily-leave-list { margin:16px 0 12px; max-height:170px; overflow:auto; }.daily-leave-list>div { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-top:1px solid #e9edf3; }.daily-leave-list strong { display:block; font-size:12px; font-weight:500; }.daily-leave-list small { display:block; margin-top:4px; font-size:12px; color:#748198; }
@media(min-width:901px) {
 .sheet-main:has(.daily-board) { height:auto; min-height:calc(100dvh - 60px); }
 .sheet-main:has(.daily-board) .monitor-workspace { flex:none; }
 .sheet-main:has(.daily-board) .sheet-panel { min-height:480px; }
 .sheet-main:has(.daily-board) .sheet-scroll { max-height:55dvh; }
}
@media(max-width:1000px) { .daily-overview { grid-template-columns:1fr; gap:12px; }.daily-totals { border-right:0; border-bottom:1px solid #e8edf4; padding:0 0 12px; display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }.daily-totals>div { grid-template-columns:50px 1fr 1fr; }.daily-totals>p { grid-column:1/-1; }.daily-employee { grid-template-columns:1fr; } }
@media(max-width:600px) { .daily-board .panel-head { padding:13px 12px 10px; }.daily-board h2 { font-size:14px; }.daily-board h2 small { display:block; }.daily-completion { font-size:11px; }.daily-overview { padding:0 12px 12px; }.daily-totals { grid-template-columns:1fr; }.daily-totals>div { grid-template-columns:62px 1fr 1fr; padding:5px 0; }.daily-people>div { grid-template-columns:72px minmax(0,1fr); gap:7px; }.daily-person small { display:none; }.daily-board-note,.daily-detail-note { padding:8px 12px; }.daily-employee { gap:14px; }.daily-employee>.setting-card { padding:17px; }.daily-employee .form-grid { grid-template-columns:1fr; gap:0; }.daily-input-grid { gap:12px; } }

/* Employee workspace: one task per destination, with persistent navigation. */
.employee-workspace { min-height:100dvh; }
.employee-sidebar { position:fixed; inset:0 auto 0 0; width:220px; padding:28px 16px 20px; background:#fff; border-right:1px solid var(--line); display:flex; flex-direction:column; z-index:25; }
.employee-brand { display:grid; grid-template-columns:34px 1fr; align-items:center; column-gap:9px; padding:0 10px 24px; }
.employee-brand img { width:34px; height:34px; }.employee-brand strong { font-size:26px; letter-spacing:-1px; color:#345cff; }.employee-brand>span { grid-column:2; font-size:11px; color:var(--muted); margin-top:4px; }
.employee-menu { flex:1; overflow:auto; }
.employee-menu-group+ .employee-menu-group { margin-top:25px; }
.employee-menu-group>p { color:#7b879a; font-size:11px; margin:0 13px 9px; }
.employee-menu button { display:flex; align-items:center; gap:10px; text-align:left; width:100%; padding:12px 13px; min-height:46px; margin:3px 0; border:0; border-radius:6px; background:transparent; color:#5c6c82; font:inherit; font-size:14px; cursor:pointer; white-space:nowrap; }
.employee-menu button svg { flex-shrink:0; }.employee-menu button:hover { background:#f5f7fc; color:#345cff; }.employee-menu button.active { background:#edf2ff; color:#345cff; box-shadow:inset 3px 0 #345cff; font-weight:600; }
.employee-menu button:focus-visible { outline:2px solid #345cff; outline-offset:-2px; }
.employee-notice-count { margin-left:auto; padding:1px 6px; border-radius:12px; color:#fff; background:#c46b16; font-size:11px; min-width:20px; text-align:center; }
.employee-notice-count[hidden] { display:none; }
.employee-identity { border-top:1px solid var(--line); padding:18px 8px 0; margin-top:20px; display:flex; align-items:center; gap:10px; min-width:0; }
.employee-avatar { width:34px; height:34px; border-radius:50%; background:#edf2ff; color:#345cff; display:grid; place-items:center; font-size:13px; flex-shrink:0; }
.employee-identity>div { min-width:0; }.employee-identity strong { display:block; font-size:12px; overflow-wrap:anywhere; }.employee-identity small { display:block; margin-top:3px; color:var(--muted); font-size:10px; overflow-wrap:anywhere; }
.employee-main { margin-left:220px; min-width:0; }
.employee-toolbar { min-height:64px; padding:12px 30px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:14px; position:sticky; top:0; z-index:20; }
.employee-toolbar-context { display:flex; align-items:center; gap:16px; min-width:0; flex-wrap:wrap; }
.employee-toolbar .workspace-return { flex-shrink:0; color:#345cff; background:#edf2ff; border-color:#d9e2ff; white-space:nowrap; }
.workspace-return svg { transform:rotate(180deg); }
.employee-toolbar .breadcrumb { display:flex; align-items:center; gap:9px; }.employee-toolbar .breadcrumb strong { font-weight:500; color:#53637c; }
.employee-page { padding:30px; max-width:1400px; }
.employee-page .page-heading { margin-bottom:24px; }.employee-page .page-heading p { max-width:75ch; }#employee-page-title:focus { outline:none; }
.employee-page .daily-single { display:block; max-width:820px; margin:0; }
.employee-page .daily-single>.setting-card { padding:26px; }.employee-page .daily-input-grid { gap:20px; }.employee-page .daily-input-grid input { min-height:48px; font-size:19px; font-variant-numeric:tabular-nums; }
.employee-page .daily-single .setting-title { margin-bottom:12px; }.employee-page .daily-single .daily-history { margin-top:26px; }
.employee-entry { max-width:820px; padding:26px; border-radius:8px; }
.employee-entry-meta { display:flex; align-items:center; gap:7px; color:#68778d; font-size:12px; padding-bottom:20px; margin-bottom:23px; border-bottom:1px solid #e8edf4; flex-wrap:wrap; }
.employee-entry-meta strong { color:#24344b; font-weight:500; }.employee-entry-meta>span { color:#8994a7; font-size:11px; margin-left:auto; }
.employee-entry .employee-form textarea { min-height:130px; line-height:1.8; font-size:13px; }.employee-entry .field>span { font-size:13px; }.employee-entry .field input,.employee-entry .field select { min-height:43px; font-size:13px; }
.employee-submit { margin-top:24px; display:flex; align-items:center; gap:15px; flex-wrap:wrap; }.employee-submit .btn { min-width:160px; }.employee-submit>span { color:#7c899e; font-size:11px; }
.employee-page .employee-history,.employee-page .change-notices { margin-top:0; }.employee-page .notice-card { scroll-margin-top:85px; }
@media(max-width:1050px) and (min-width:701px) {
 .employee-sidebar { width:200px; padding-left:12px; padding-right:12px; }.employee-main { margin-left:200px; }.employee-toolbar { padding:12px 22px; }.employee-page { padding:24px 22px; }.employee-menu button { font-size:13px; }
}
@media(max-width:700px) {
 .employee-sidebar { position:sticky; inset:auto; top:0; width:100%; height:auto; padding:0; border-right:0; border-bottom:1px solid var(--line); }
 .employee-brand { padding:10px 14px 7px; display:flex; gap:7px; height:49px; }.employee-brand img { width:27px; height:27px; }.employee-brand strong { font-size:22px; }.employee-brand>span { margin:0 0 0 auto; font-size:11px; }
 .employee-menu { display:flex; overflow-x:auto; overflow-y:hidden; padding:0 8px; scrollbar-width:none; }.employee-menu::-webkit-scrollbar { display:none; }.employee-menu-group { display:contents; }.employee-menu-group>p,.employee-identity { display:none; }
 .employee-menu button { width:auto; flex-shrink:0; margin:0; padding:11px 12px; min-height:47px; font-size:12px; gap:6px; border-radius:0; }.employee-menu button svg { width:16px; height:16px; }.employee-menu button.active { box-shadow:inset 0 -3px #345cff; }
 .employee-main { margin-left:0; }.employee-toolbar { top:97px; min-height:53px; padding:9px 14px; gap:8px; flex-wrap:wrap; }.employee-toolbar-context:has(.workspace-return) .breadcrumb { display:none; }.employee-toolbar .breadcrumb>span,.employee-toolbar .breadcrumb>svg { display:none; }.employee-toolbar .breadcrumb { font-size:11px; }.employee-toolbar>.inline-gap { gap:6px; }.employee-toolbar .btn.small { font-size:11px; padding:5px 8px; }
 .employee-page { padding:22px 14px; }.employee-page .page-heading { margin-bottom:18px; }.employee-page .page-heading h1 { font-size:22px; }.employee-page .page-heading p { font-size:12px; }
 .employee-page .daily-single>.setting-card,.employee-entry { padding:18px; }.employee-page .daily-input-grid { gap:12px; }.employee-page .daily-input-grid input { font-size:17px; min-height:44px; }.employee-page .daily-single .form-grid,.employee-entry .form-grid { grid-template-columns:1fr; }
 .employee-entry-meta { margin-bottom:20px; padding-bottom:17px; gap:6px; }.employee-entry-meta>span { flex-basis:100%; margin-left:23px; }.employee-submit { gap:12px; margin-top:20px; }.employee-submit>.btn { width:100%; }
 .employee-page .change-notices,.employee-page .notice-card { scroll-margin-top:170px; }
}
/* Employee daily history and spreadsheet exports. */
.staff-export-tools { display:flex; align-items:center; gap:10px; margin-left:auto; flex-wrap:wrap; }
.staff-export-tools label { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); }
.staff-export-tools input { width:145px; min-height:34px; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:var(--surface,#fff); color:var(--text); font:inherit; }
.staff-daily-panel { margin:20px 0 24px; }
.staff-daily-panel>.panel-head { flex-wrap:wrap; gap:12px; }
.staff-daily-summary { display:flex; align-items:center; flex-wrap:wrap; gap:10px 22px; padding:14px 20px; background:#f8faff; font-size:12px; color:#65728a; border-bottom:1px solid var(--line); }
.staff-daily-summary b { color:#263c67; margin:0 3px; font-variant-numeric:tabular-nums; }
.staff-daily-total { margin-left:auto; }
.staff-daily-scroll { max-height:415px; overflow:auto; }
.staff-daily-table { min-width:810px; width:100%; }
.staff-daily-table th { position:sticky; top:0; z-index:1; background:#f5f7fb; }
.staff-daily-table th:not(:first-child):not(:nth-child(2)),.staff-daily-table td.number { text-align:right; }
.staff-daily-table td { padding:12px 20px; font-size:13px; }
.staff-daily-table .is-today { background:#f5f8ff; }
.staff-today { display:inline-block; margin-left:8px; color:#345cff; font-size:10px; }
.staff-daily-note { margin:0; padding:12px 20px; font-size:11px; line-height:1.8; color:var(--muted); border-top:1px solid var(--line); }
@media(max-width:700px) {
 .staff-export-tools { width:100%; margin-left:0; gap:8px; }.staff-export-tools label { flex:1; }.staff-export-tools input { width:135px; }
 .staff-daily-summary { padding:12px 14px; gap:9px 15px; }.staff-daily-summary>span:first-child { width:100%; }.staff-daily-total { margin-left:0; }
 .staff-daily-panel { margin-top:16px; }.staff-daily-note { padding:12px 14px; }
}

/* Account-specific permissions */
.user-permission-modal{width:min(900px,calc(100vw - 32px));max-width:900px}
.permission-editor{margin-top:24px;border-top:1px solid #e5e9f2;padding-top:22px}
.permission-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.permission-heading h3{font-size:16px;margin:0 0 7px}.permission-heading h3 span{font-size:12px;font-weight:500;color:#6b7890;margin-left:8px}
.permission-heading p,.permission-note{font-size:12px;line-height:1.7;color:#738097;margin:0}
.permission-tools{display:flex;flex-wrap:wrap;gap:16px;padding-top:3px}.permission-tools button{font-size:12px}
.permission-group{border:0;padding:0;margin:0 0 20px;min-width:0}.permission-group legend{font-size:12px;font-weight:700;color:#56657d;margin-bottom:10px}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.permission-option{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid #e5e9f2;border-radius:10px;cursor:pointer;background:#fff}
.permission-option:has(input:checked){border-color:#bdcaff;background:#f5f7ff}
.permission-option input{width:16px;height:16px;flex:0 0 auto;margin:2px 0;accent-color:#4a6bfa}
.permission-option strong{font-size:13px;line-height:1.5;display:block;color:#25334a}.permission-option small{display:block;margin-top:4px;line-height:1.6;color:#768299;font-size:11px}
.permission-note{padding:13px 15px;background:#f6f8fc;border-radius:9px}
.permission-groups-list{padding:24px;display:flex;flex-wrap:wrap;gap:10px}
.employee-menu .employee-manage-entry { margin-top:18px; border-top:1px solid #e9edf4; padding-top:20px; color:#4664db; }
@media(max-width:700px) { .employee-menu .employee-manage-entry { margin-top:0; border-top:0; padding:11px 12px; } }
@media(max-width:650px){.permission-grid{grid-template-columns:1fr}.user-permission-modal{width:calc(100vw - 20px)}.permission-heading{gap:8px}.permission-tools{width:100%;justify-content:space-between}.permission-option{padding:12px}.permission-note{padding:12px}}

/* Own-account directory: links and people, with operational details in the drawer. */
.accounts-table.own-accounts-table { min-width:850px; width:100%; table-layout:fixed; }
.own-accounts-table th:nth-child(1) { width:33%; }.own-accounts-table th:nth-child(2) { width:23%; }.own-accounts-table th:nth-child(3) { width:13%; }.own-accounts-table th:nth-child(4) { width:19%; }.own-accounts-table th:nth-child(5) { width:12%; }
.account-homepage { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; overflow-wrap:anywhere; white-space:normal; line-height:1.7; }
.own-accounts-table .account-name { width:100%; }.own-accounts-table .account-name>span:last-child { min-width:0; }.own-accounts-table .account-name strong { max-width:100%; }
.own-accounts-table .badge { max-width:100%; white-space:normal; overflow-wrap:anywhere; }.own-accounts-table .contributor-summary { margin:0; }
.account-detail-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.contributor-summary .contributor-role,.contributor-role{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:3px 9px;border:1px solid transparent;border-radius:6px;font-size:12px;font-weight:700;line-height:1.6;letter-spacing:.03em;white-space:nowrap}
.contributor-summary .role-full-time,.role-full-time{color:#1949b6;background:#e7efff;border-color:#b9ceff}
.contributor-summary .role-part-time,.role-part-time{color:#8f4900;background:#fff0d4;border-color:#f1ce8b}
.contributor-summary>span{align-items:center;gap:9px}
.automatic-account-group{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 12px;background:#f4f7ff;border:1px solid #d5e0fb;border-radius:7px;color:#284d91;font-size:13px}

.account-copy{display:inline-block;margin-top:7px;font-size:11px;font-weight:600}.drawer .account-copy{margin-left:14px}

/* Direct navigation for owned account categories. */
.account-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}
.account-category{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 16px;min-height:86px;padding:18px 22px;text-align:left;background:#fff;border:1px solid #dce3ed;border-radius:8px;color:#53637c;cursor:pointer}
.account-category strong{display:block;font-size:17px;line-height:1.5;color:#263751}.account-category small{display:block;margin-top:4px;font-size:12px;color:#718096}.account-category b{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}
.account-category:hover{border-color:#9babca}.account-category:focus-visible{outline:3px solid #aebfff;outline-offset:2px}
.account-category.category-partTime.active{background:#f0faf5;border-color:#63ad89;box-shadow:inset 4px 0 #23855b}.account-category.category-partTime.active strong,.account-category.category-partTime.active b{color:#176b47}
.account-category.category-employee.active{background:#eff4ff;border-color:#88a8ee;box-shadow:inset 4px 0 #345cff}.account-category.category-employee.active strong,.account-category.category-employee.active b{color:#1949b6}
@media(max-width:700px){.account-categories{gap:10px;margin-bottom:14px}.account-category{min-height:78px;padding:13px 14px;gap:8px}.account-category strong{font-size:16px}.account-category small{font-size:11px;line-height:1.6}.account-category b{font-size:24px}}

/* Platform totals stay visible alongside the overall and category totals. */
.account-platform-counts,.library-overview .account-platform-counts{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;grid-column:1/-1}
.account-category .account-platform-counts{padding-top:11px;border-top:1px solid #dce3ed80}
.account-platform-count,.library-overview .account-platform-count{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:5px;font-size:12px;line-height:1.5;white-space:nowrap;color:#35445e;background:#eef1f6}
.account-platform-count em{font-style:normal;font-weight:700;font-variant-numeric:tabular-nums}
.account-platform-count.platform-xiaohongshu,.library-overview .platform-xiaohongshu{color:#a52d48;background:#fff0f3}
.library-overview .account-platform-counts{margin-top:5px}
@media(max-width:700px){.account-category .account-platform-counts{padding-top:9px;gap:6px}.account-platform-count,.library-overview .account-platform-count{font-size:11px;padding:3px 6px;gap:3px}}

.replacement-manual{margin:0 0 20px;padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:8px}
.replacement-manual-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.replacement-manual h2{font-size:16px;margin:0 0 7px}.replacement-manual p{font-size:12px;line-height:1.7;color:#65728a;margin:5px 0}
.replacement-manual small{display:block;font-size:11px;line-height:1.8;color:#738097}.replacement-manual .btn{white-space:nowrap}
.replacement-job{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}.replacement-job>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#3556a8}
.replacement-job progress{width:100%;height:8px;margin:12px 0 4px;accent-color:#345cff}.replacement-manual .replacement-pending{color:#a76716;max-width:none}
@media(max-width:700px){.replacement-manual{padding:16px 14px}.replacement-manual-heading{align-items:stretch;flex-direction:column;gap:10px}.replacement-manual-heading .btn{width:100%;justify-content:center}}

/* Yesterday is secondary to today's publication counts; roster stays today. */
.daily-city-count { min-width:0; }
.daily-totals .daily-yesterday-count { display:block; margin-top:2px; color:#748198; font-size:11px; line-height:1.5; font-weight:400; font-variant-numeric:tabular-nums; }
.daily-totals>p.daily-yesterday-note { margin-top:3px; font-size:10px; }

/* Role-specific permission choices must stay hidden despite layout display rules. */
.permission-editor [hidden]{display:none!important}
@media(min-width:1000px){.role-summary{grid-template-columns:repeat(3,minmax(0,1fr));}}

/* Upulse visual system — UI/UX Pro Max direction, Impeccable refinement.
   Preserve the blue identity and task layout; make hierarchy and controls consistent. */
:root {
  --blue:#3155df; --blue-bg:#edf2ff; --ink:#202e45; --muted:#607087;
  --line:#dfe6ef; --bg:#f5f7fb; --green:#18745d; --orange:#96560e;
  --surface:#fff; --surface-soft:#f8fafd; --text-secondary:#53647d;
  --radius-panel:12px; --radius-control:8px; --control-border:#bbc7d7;
  --shadow-popover:0 12px 36px #192b4624; --ease-ui:cubic-bezier(.2,.8,.2,1);
}
body { line-height:1.6; -webkit-font-smoothing:antialiased; }
::selection { background:#dce6ff; color:#172b65; }
input,textarea { caret-color:var(--blue); }
input::placeholder,textarea::placeholder { color:#68768b; opacity:1; }
button,a,input,select,textarea,summary { scroll-margin-block:130px 28px; }
button,a,summary { transition:background-color 160ms var(--ease-ui),border-color 160ms var(--ease-ui),color 160ms var(--ease-ui); }
button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible {
  outline:2px solid var(--blue); outline-offset:3px;
}
button:disabled { opacity:.55; cursor:not-allowed; }
.sidebar { background:var(--surface-soft); padding-top:28px; }
.sidebar .brand { padding:0 13px; }
.sidebar .brand strong { font-size:27px; letter-spacing:-.035em; }
.brand-caption { color:var(--text-secondary); padding-bottom:28px; }
.sidebar .nav { gap:6px; }
.sidebar .nav button { min-height:44px; border-radius:8px; font-size:14px; font-weight:500; color:var(--text-secondary); }
.sidebar .nav button:hover:not(.active) { background:#eaf0f8; color:var(--ink); }
.sidebar .nav button.active { color:var(--blue); background:#e5ecff; box-shadow:none; font-weight:650; }
.sidebar .nav button.active svg { stroke-width:1.9; }
.nav-label { font-size:11px; font-weight:600; color:var(--text-secondary); margin-top:28px; }
.sidebar-bottom .mini-help { margin-bottom:16px; }
.sidebar .profile { padding:0 10px; }
.profile strong,.employee-identity strong { font-size:13px; }
.profile p,.employee-identity small { font-size:11px; color:var(--text-secondary); }
.avatar,.employee-avatar { background:#e4ebfb; color:#3b548a; }
.topbar,.employee-toolbar { border-bottom-color:var(--line); background:var(--surface); }
.breadcrumb { color:var(--muted); }
.breadcrumb b,.employee-toolbar .breadcrumb strong { color:var(--ink); font-weight:600; }
.connection { color:var(--text-secondary); font-size:12px; }
.top-right { gap:12px; }
.top-right .icon-btn { width:38px; height:38px; display:grid; place-items:center; color:var(--blue); background:var(--blue-bg); border-radius:8px; }
.top-right .icon-btn:hover { background:#dfe7ff; }
.top-right [data-action="logout"] { color:var(--text-secondary); }
.main-inner { padding:26px 28px 32px; }
.page-heading { margin-bottom:24px; }
.page-heading h1,.sheet-main .page-heading h1 { color:var(--ink); font-size:26px; font-weight:650; letter-spacing:-.025em; line-height:1.35; }
.page-heading p { font-size:13px; color:var(--text-secondary); margin-top:7px; }
.heading-actions { align-items:center; }
.btn { min-height:40px; padding:9px 15px; border-radius:var(--radius-control); border-color:var(--control-border); font-size:13px; font-weight:550; box-shadow:none; }
.btn:hover:not(:disabled) { color:var(--blue); background:#f6f8ff; border-color:#8ba1d3; }
.btn.primary { background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:none; }
.btn.primary:hover:not(:disabled) { color:#fff; background:#2345c5; border-color:#2345c5; }
.btn.primary:active:not(:disabled) { background:#1d3aab; }
.btn.danger { color:#a53245; }
.btn.danger:hover:not(:disabled) { background:#fff3f5; border-color:#dca3ad; color:#902d3d; }
.btn.small { min-height:34px; border-radius:7px; font-size:12px; padding:6px 11px; }
.text-link { font-size:12px; font-weight:550; text-underline-offset:3px; }
.text-link:hover { text-decoration:underline; }
.panel,.setting-card,.sheet-panel,.employee-entry,.replacement-manual,.library-overview,.staff-sections { border-color:var(--line); border-radius:var(--radius-panel); box-shadow:none; }
.panel-head { padding:18px 22px 16px; }
.panel-head h2,.sheet-view-title h2 { font-size:16px; font-weight:650; color:var(--ink); }
.panel-head .muted { color:var(--text-secondary); }
.panel-head .inline-gap { flex-wrap:wrap; }
.table-tools,.sheet-filters { background:var(--surface-soft); border-color:var(--line); gap:10px; padding:14px 20px; }
.table-tools .search-box,.sheet-search { border-color:var(--control-border); border-radius:var(--radius-control); background:#fff; height:38px; padding:0 12px; }
.table-tools .search-box input,.sheet-search input { color:var(--ink); font-size:13px; height:36px; }
.table-tools select,.sheet-filters select { color:var(--text-secondary); font-size:13px; height:38px; padding:0 11px; border:1px solid var(--control-border); border-radius:var(--radius-control); }
.sheet-filters .sheet-clear { color:var(--text-secondary); font-size:12px; padding:7px 4px; }
.table-foot,.sheet-footer { font-size:12px; color:var(--text-secondary); padding:14px 20px; }
table { font-size:13px; }
th { color:var(--text-secondary); font-size:12px; font-weight:600; background:#f4f7fb; border-color:var(--line); }
td { color:#36465e; border-color:#e7ecf3; }
.table-scroll tbody tr:hover td { background:#f5f8fe; }
.account-name strong,.staff-person strong { font-size:14px; font-weight:600; }
.account-name small,.account-sub,.staff-person small { color:var(--muted); font-size:12px; }
.account-avatar { background:#eaf0ff; color:#3155a6; border-radius:12px; }
.accounts-table td { padding-block:18px; }
.contributor-summary { font-size:13px; color:#384a63; gap:8px; }
.contributor-summary small { font-size:11px; }
.employment-badge { font-size:11px; border-radius:5px; padding:2px 7px; }
.employment-active { color:#166246; background:#eaf6ef; }
.employment-unknown { color:#57677e; background:#edf1f6; }
.employment-inactive { color:#8b4c14; background:#fff2df; }
.badge { font-size:11px; line-height:1.6; border-radius:5px; padding:3px 8px; }
.badge.gray { background:#edf1f6; color:#52627a; }
.badge.blue { background:#eaf0ff; color:#2d50bc; }
.badge.green { background:#eaf6ef; color:#166246; }
.badge.orange { background:#fff3df; color:#8b4c14; }
.account-schedule { background:#edf3fd; border-color:#dce6f7; border-radius:10px; padding:14px 18px; margin-bottom:18px; }
.account-schedule strong { color:#30466c; font-size:14px; }
.account-schedule p { color:#566987; font-size:12px; }
.library-overview { margin-bottom:20px; }
.library-overview>div { padding:18px 22px; }
.library-overview strong { font-size:28px; font-weight:650; letter-spacing:-.025em; }
.library-overview span { color:var(--text-secondary); font-size:13px; }
.library-overview small { color:var(--muted); font-size:12px; }
.account-categories { gap:16px; margin-bottom:20px; }
.account-category { padding:20px 22px; border-radius:12px; border-color:var(--control-border); }
.account-category strong { font-size:17px; font-weight:650; }
.account-category small { color:var(--text-secondary); }
.account-category b { font-size:30px; letter-spacing:-.025em; font-weight:650; }
.account-category.category-partTime.active { background:#f0f8f4; border-color:#63a686; box-shadow:none; }
.account-category.category-employee.active { background:#edf2ff; border-color:#8099df; box-shadow:none; }
.account-platform-count,.library-overview .account-platform-count { color:#354762; background:#edf1f7; border-radius:6px; }
.account-category .account-platform-counts { padding-top:14px; }

/* Daily counts read as one report. Today's numbers lead; yesterday stays secondary. */
.daily-board { margin-bottom:22px; }
.daily-board .panel-head { padding:18px 20px 14px; }
.daily-board h2 { font-size:16px; gap:10px; }
.daily-board h2>svg { color:var(--blue); }
.daily-board h2 small { font-size:12px; color:var(--muted); }
.daily-completion { color:var(--text-secondary); font-size:12px; }
.daily-overview { grid-template-columns:minmax(340px,1.05fr) minmax(0,1.2fr); padding:0 20px 16px; gap:24px; }
.daily-totals { padding-right:24px; }
.daily-totals>div { grid-template-columns:65px 1fr 1fr; gap:12px; padding:10px 0; border-bottom:1px solid #edf1f6; }
.daily-totals>div:nth-child(2) { border-bottom:0; }
.daily-totals>div>strong { font-size:13px; color:#3b4c67; }
.daily-totals span { color:var(--text-secondary); gap:8px; font-size:12px; }
.daily-totals b { font-size:27px; font-weight:650; color:var(--ink); line-height:1.2; letter-spacing:-.025em; }
.daily-totals .daily-yesterday-count { color:var(--muted); font-size:12px; margin-top:4px; }
.daily-totals>p { font-size:11px; color:var(--muted); margin-top:8px; }
.daily-totals>p.daily-yesterday-note { font-size:11px; }
.daily-people { padding-top:10px; gap:18px; }
.daily-people>div { grid-template-columns:78px minmax(0,1fr); gap:12px; }
.daily-people>div>strong { font-size:13px; color:var(--text-secondary); }
.daily-people>div>.daily-missing,.daily-missing b { color:#90530f!important; }
.daily-person { padding:6px 10px; border-radius:7px; background:#fff7e9; border-color:#ead6b7; color:#81501a; }
.daily-people .daily-missing-list { align-content:flex-start; align-items:flex-start; gap:8px; max-height:150px; padding:2px; overflow-y:auto; scrollbar-gutter:stable; }
.daily-missing-list .daily-person { flex:0 0 auto; max-width:100%; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.daily-missing-list:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.daily-leave-person { padding:6px 10px; background:#f0f3f8; border-radius:7px; color:#4c5d76; }
.daily-leave-person small,.daily-people .subtle { color:var(--muted); font-size:12px; }
.daily-tomorrow>strong small { display:block; margin-top:3px; font-size:11px; font-weight:400; color:var(--muted); }
.daily-tomorrow-list { align-items:flex-start; align-content:flex-start; padding:2px; scrollbar-gutter:stable; }
.daily-tomorrow-list .daily-leave-person { max-width:100%; overflow-wrap:anywhere; }
.daily-tomorrow-list:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.daily-board-note { padding:9px 20px; font-size:11px; color:var(--muted); background:#fafbfd; border-radius:0 0 12px 12px; }

/* Data workspace: quiet dividers, legible labels, stable numbers. */
.sheet-context { padding:0 2px; margin:0 0 16px; align-items:center; }
.sheet-summary { gap:18px; color:var(--text-secondary); font-size:12px; }
.sheet-summary b { color:var(--ink); font-size:20px; font-weight:650; margin-left:5px; }
.sheet-summary button { font-weight:550; }
.sheet-toolbar { padding:16px 20px 12px; }
.sheet-view-title>svg { color:var(--blue); }
.sheet-view-title>span { color:var(--muted); font-size:12px; }
.sheet-density,.sheet-fields { color:var(--text-secondary); font-size:12px; }
.sheet-density select,.sheet-fields summary,.sheet-pagination select { border-color:var(--control-border); border-radius:7px; min-height:34px; padding:6px 9px; }
.sheet-field-menu { border-radius:10px; border-color:var(--line); box-shadow:var(--shadow-popover); padding:16px; gap:14px 10px; }
.sheet-field-menu strong { color:var(--muted); font-size:12px; }
.sheet-tabs { padding-inline:12px; gap:8px; }
.sheet-tabs button { padding:10px 10px 12px; color:var(--text-secondary); font-size:12px; }
.sheet-tabs button.active { color:var(--blue); border-bottom-color:var(--blue); }
.sheet-tabs button>span { background:#eef2f7; color:#5c6c82; font-size:11px; border-radius:5px; }
.sheet-tabs button.active>span { color:var(--blue); background:#e5ecff; }
.sheet-scroll { border-color:var(--line); }
.monitor-sheet th,.monitor-sheet th>button { height:44px; font-size:12px; font-weight:600; }
.monitor-sheet th { color:#53647d; background:#f2f5fa; }
.monitor-sheet th,.monitor-sheet td { border-right-color:#edf1f6; border-bottom-color:#e6ecf4; }
.monitor-sheet td { height:80px; padding:12px 14px; }
.monitor-sheet .sheet-title { color:#253952; font-size:14px; font-weight:600; }
.monitor-sheet .sheet-work-sub,.monitor-sheet td small { color:var(--muted); font-size:12px; }
.monitor-sheet .sheet-number { color:#253952; font-size:16px; font-weight:650; }
.monitor-sheet tbody tr:nth-child(even)>td { background:#fafcfe; }
.monitor-sheet tbody tr:hover>td,.monitor-sheet tbody tr:focus-within>td { background:#eff4fe; }
.monitor-sheet .sheet-index { color:#64758b; background:#f7f9fc; }
.monitor-sheet th[aria-sort=ascending],.monitor-sheet th[aria-sort=descending] { color:#2949b6; background:#e8efff; }
.sheet-data-bar { height:3px; background:#edf1f7; border-radius:3px; }
.sheet-data-bar span { background:#8ba1eb; border-radius:3px; }
.sheet-city { font-size:11px; padding:3px 7px; border-radius:5px; background:#edf5f1; color:#346a55; }
.sheet-muted { color:var(--muted); font-size:12px; }
.sheet-legend { padding:10px 20px; color:var(--muted); font-size:11px; }
.sheet-footnote,.bottom-note,.library-footnote { color:var(--muted); font-size:12px; line-height:1.8; }
.monitor-sheet.compact td { height:60px; padding-block:8px; }
.monitor-sheet.compact .sheet-title { font-size:13px; }
.monitor-sheet.compact .sheet-number { font-size:15px; }

/* One control vocabulary throughout staff input, settings, and dialogs. */
.setting-card { padding:24px; }
.setting-title { align-items:center; gap:10px; }
.setting-title h2 { color:var(--ink); font-size:17px; font-weight:650; }
.setting-title>svg { color:var(--blue); }
.setting-card p { font-size:13px; line-height:1.8; color:var(--text-secondary); }
.field>span { font-size:13px; color:#36465e; font-weight:550; }
.field input,.field select,.field textarea { background:#fff; border-color:var(--control-border); border-radius:8px; padding:11px 12px; font-size:14px; color:var(--ink); }
.field input,.field select { min-height:44px; }
.field small,.hint,.form-note,.daily-form-note,.employee-submit>span,.employee-entry-meta,.employee-entry-meta>span { color:var(--muted); font-size:12px; line-height:1.7; }
.field:focus-within>span { color:var(--blue); }
.field input:focus,.field select:focus,.field textarea:focus { outline:2px solid #a8bafb; outline-offset:1px; }
.form-error:not(:empty) { color:#a42b3d; padding:10px 12px; background:#fff3f5; border:1px solid #f0c6ce; border-radius:7px; margin-block:12px; font-size:13px; }
.modal,.drawer { border-color:var(--line); box-shadow:var(--shadow-popover); }
.modal { border-radius:14px; }
.modal-head { padding:22px 24px 18px; border-bottom:1px solid var(--line); }
.modal-head h2 { font-size:20px; letter-spacing:-.02em; }
.modal-body { padding:24px; }
.form-actions { gap:10px; padding-top:18px; }
.empty h3 { font-size:17px; color:#334761; }
.empty p { color:var(--muted); font-size:13px; line-height:1.8; }
.notice-card { border-radius:10px; border-color:var(--line); }
.notice-card p,.notice-explanation,.notice-empty { color:var(--text-secondary); font-size:13px; }
.notice-deadline { border-radius:7px; color:#8b4c14; background:#fff4e3; }
.notice-count { color:#53647d; background:#edf1f7; }
.notice-entry.has-pending .notice-count { color:#fff; background:#a85b12; }
.employee-sidebar { background:var(--surface-soft); }
.employee-menu button { border-radius:8px; min-height:46px; font-weight:500; color:var(--text-secondary); }
.employee-menu button.active { color:var(--blue); background:#e5ecff; box-shadow:none; font-weight:650; }
.employee-menu button:hover:not(.active) { background:#eaf0f8; }
.employee-menu-group>p { color:var(--text-secondary); font-weight:600; }
.employee-page { padding:28px 32px; }
.employee-page .employee-entry,.employee-page .daily-single>.setting-card { border-radius:12px; padding:28px; }
.employee-entry-meta { padding-bottom:18px; margin-bottom:22px; }
.employee-entry .employee-form textarea { min-height:140px; font-size:14px; }
.employee-entry .field input,.employee-entry .field select { font-size:14px; min-height:44px; }
.employee-page .daily-input-grid input { font-size:24px; font-weight:600; min-height:56px; }
.employee-page .daily-input-grid .field>span { color:#53647d; font-weight:500; }
.employee-submit .btn,.daily-single .btn.primary { min-height:44px; }
.login { background:var(--bg); }
.login .auth-card { width:420px!important; border-radius:16px; padding:36px; border-color:var(--line); }
.login .auth-card .brand { margin-bottom:30px; padding:0; }
.login .brand img { width:38px; height:38px; }
.login .brand strong { font-size:30px; letter-spacing:-.03em; }
.login .field { margin-bottom:22px; }
.login .btn.primary { min-height:46px; margin-top:4px; }
.login .mobile-install-entry { color:var(--text-secondary); font-size:12px; margin-top:18px; }
@media(min-width:1001px) {
 .sidebar { width:216px; padding-inline:14px; }
 .main { margin-left:216px; width:calc(100% - 216px); }
 .topbar { padding-inline:28px; }
 .sheet-main { padding:26px 28px 20px; }
}
@media(min-width:701px) and (max-width:1100px) {
 .main-inner,.main-inner.sheet-main { padding:22px 20px; }
 .daily-overview { grid-template-columns:1fr; gap:16px; }
 .daily-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; padding:0 0 14px; border-right:0; border-bottom:1px solid var(--line); }
 .daily-totals>div { grid-template-columns:50px 1fr 1fr; border-bottom:0; }
 .daily-totals>p { grid-column:1/-1; }
 .daily-people { grid-template-columns:1fr 1fr; padding-top:0; gap:16px; }
 .daily-people>div:first-child { grid-column:1/-1; }
 .daily-totals b { font-size:24px; }
 .sheet-summary { flex-wrap:wrap; gap:10px 16px; }
}
@media(min-width:701px) and (max-width:1000px) {
 .sidebar .nav button { padding:13px; }
 .sidebar .nav svg { width:20px; height:20px; }
 .sidebar .brand { padding:0; }
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Secondary text must remain readable in notices, rules, and empty states. */
.notice { border-radius:12px; padding:22px; }
.notice h3 { font-size:15px; font-weight:600; }
.notice p { color:var(--text-secondary); font-size:13px; line-height:1.85; }
.notice-footer { color:var(--muted); font-size:12px; }
.notice.read { opacity:1; background:#fafbfd; }
.notice.read .notice-head h3 { color:var(--text-secondary); }
.rule-card p,.stage-summary p { color:var(--text-secondary); font-size:13px; }
.stage-summary small { color:var(--muted); font-size:12px; }
.rules-overview-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.rules-overview-head h2 { font-size:20px; margin:0 0 8px; }
.rule-overview-meta { display:flex; flex-wrap:wrap; gap:8px 18px; color:var(--muted); font-size:12px; }
.rule-overview-stages { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:16px; }
.rule-overview-stage { min-width:0; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); padding:20px; }
.rule-overview-stage-head { display:flex; align-items:center; gap:10px; }
.rule-overview-stage-head h3 { margin:0; flex:1; font-size:20px; font-weight:650; }
.rule-step { width:28px; height:28px; border-radius:8px; display:grid; place-items:center; background:#e7edff; color:var(--blue); font-size:12px; font-weight:700; }
.rule-overview-thresholds { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:24px 0; }
.rule-overview-thresholds span { display:block; font-size:12px; color:var(--muted); margin-bottom:8px; }
.rule-overview-thresholds strong { font-size:25px; font-weight:650; font-variant-numeric:tabular-nums; }
.rule-advanced { border-top:1px solid var(--line); }
.rule-advanced>summary { list-style:none; display:flex; align-items:center; gap:10px; padding:13px 0; cursor:pointer; color:var(--text-secondary); font-size:12px; }
.rule-advanced>summary::-webkit-details-marker { display:none; }
.rule-advanced>summary>span { flex-shrink:0; font-weight:600; }
.rule-advanced>summary small { flex:1; min-width:0; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.rule-advanced>summary>svg { margin-left:auto; flex-shrink:0; transition:transform .15s; }
.rule-advanced[open]>summary>svg { transform:rotate(90deg); }
.rule-overview-details { margin:0; padding:0 0 4px; display:grid; gap:10px; font-size:12px; }
.rule-overview-details>div { display:flex; justify-content:space-between; gap:20px; }
.rule-overview-details dt { color:var(--muted); flex-shrink:0; }
.rule-overview-details dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.rule-modal { max-width:760px; }
.rule-edit-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:22px; }
.rule-edit-heading>span:last-child { font-size:12px; color:var(--muted); }
.rule-modal .rule-stage { padding:14px 18px 0; margin-bottom:16px; background:#fcfdff; }
.rule-stage legend { font-size:13px; }
.rule-stage-toolbar { display:flex; justify-content:flex-end; margin:-7px 0 8px; }
.rule-stage-basics { display:grid; grid-template-columns:1.2fr 1fr 1fr 1.05fr; gap:12px; }
.rule-stage-basics .field { min-width:0; margin-bottom:16px; }
.rule-stage-basics .time-input { gap:5px; }
.rule-stage-basics .field .time-input select { width:67px; padding-inline:9px; }
.rule-stage-basics .field input,.rule-stage-basics .field select { width:100%; min-width:0; }
.rule-stage-basics .time-input input { width:0; flex:1; }
.rule-stage .rule-advanced-body { padding-top:4px; }
.rule-stage .rule-advanced-body .field { margin-bottom:18px; }
.rule-add-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0 0 20px; }
.rule-add-actions>.text-link { display:flex; align-items:center; gap:5px; padding:9px 4px; }
.rule-add-actions>[data-rule-count] { margin-left:auto; font-size:11px; color:var(--muted); }
.rule-add-actions button:disabled { opacity:.45; cursor:default; }
.rule-shared-advanced .field { max-width:320px; margin-bottom:0; }
.rule-shared-advanced .rule-advanced-body { padding:0 0 12px; }
@media(max-width:600px) {
 .rules-overview-head { align-items:flex-start; gap:12px; }
 .rules-overview-head .btn { flex-shrink:0; padding-inline:12px; }
 .rule-overview-stages { grid-template-columns:1fr; }
 .rule-overview-stage { padding:17px; }
 .rule-modal .modal-body { padding:18px 16px; }
 .rule-modal .rule-stage { padding:12px 12px 0; }
 .rule-stage-basics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .rule-stage-time,.rule-stage-logic { grid-column:1/-1; }
 .rule-stage-basics .time-input input { width:auto; }
 .rule-stage-advanced>summary { flex-wrap:wrap; gap:6px 9px; }
 .rule-stage-advanced>summary small { font-size:10px; }
 .rule-stage .rule-advanced-body { grid-template-columns:1fr 1fr; }
}
.source-tools { color:var(--text-secondary); }
.work-tag { font-size:11px; }
.time-tag { color:var(--text-secondary); }
.contributor-fields>p { color:var(--muted); font-size:12px; }
.page-alerts>.notice-list { padding-inline:0; }
.modal-head p,.detail-header p,.source-tools .muted { color:var(--muted); font-size:12px; line-height:1.7; }
@media(min-width:701px) and (max-width:1000px) {
 .sidebar .nav button>span:not(.count) { display:inline; position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}

/* Independent grouped work-link exports. */
.export-filters form{padding:22px 24px}.export-filters fieldset{border:0;margin:0;padding:0;min-width:0}.export-dates{display:flex;flex-wrap:wrap;gap:20px;align-items:center}.export-dates .field{flex:0 1 260px;margin-bottom:16px;min-width:0}.export-dates p{font-size:12px;line-height:1.7;color:var(--muted,#718099)}.export-group-label{font-size:13px;font-weight:600;margin:4px 0 12px}.export-group-label span{font-size:12px;font-weight:400;color:var(--muted,#718099);margin-left:8px}.export-groups{display:flex;flex-wrap:wrap;gap:10px}.export-groups label{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid var(--border,#dfe5ef);border-radius:8px;font-size:13px;cursor:pointer;overflow-wrap:anywhere}.export-groups label:has(input:checked){background:#edf2ff;border-color:#8ca7ef;color:#254dc2}.export-groups input{width:16px;height:16px;accent-color:#345cff;flex-shrink:0}.export-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.export-results{margin-top:22px}.export-summary{display:flex;flex-wrap:wrap;gap:18px;padding:18px 24px;border-bottom:1px solid var(--border,#e2e7ef);font-size:13px;color:var(--muted,#718099)}.export-summary b{font-size:21px;color:var(--text,#25334b);margin:0 5px}.export-table-scroll{overflow:auto;max-height:560px}.export-table{width:100%;min-width:780px;border-collapse:collapse;font-size:13px}.export-table th{text-align:left;background:#f5f7fb;position:sticky;top:0;z-index:1}.export-table td,.export-table th{padding:16px 22px;border-bottom:1px solid #eaf0f7}.export-table td:first-child{max-width:380px;overflow-wrap:anywhere}.export-empty{text-align:center;padding:42px 22px;color:var(--muted,#718099);font-size:14px}.export-empty p{font-size:12px;margin-top:10px;line-height:1.7}.export-help{font-size:12px;color:var(--muted,#718099);line-height:1.85;padding:14px 2px}.export-notice{padding:0 24px;color:#9c6015;font-size:12px;line-height:1.7}.export-filters .panel-head{gap:12px;flex-wrap:wrap}.export-filters .panel-head p{margin:8px 0 0}.export-filters .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:640px){.export-filters form{padding:18px 16px}.export-dates{gap:12px}.export-dates .field{flex:1 1 calc(50% - 12px);margin-bottom:0}.export-dates input{min-width:0;width:100%}.export-dates p{flex-basis:100%;margin:0 0 14px}.export-dates p br{display:none}.export-groups label{min-height:44px}.export-actions .btn{flex:1 1 auto;justify-content:center}.export-summary{padding:16px;gap:10px 18px}.export-table td,.export-table th{padding:14px 16px}}

.export-kind-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}.export-kind-tabs .btn{min-height:42px}.export-date-note{font-size:12px;line-height:1.7;color:var(--muted,#718099);margin:0 0 18px}.export-dates select{width:100%}@media(max-width:640px){.export-kind-tabs .btn{flex:1 1 140px;justify-content:center;min-height:44px}}


/* Upulse identity: one U-shaped signal, paired with the custom vector wordmark. */
.brand,.employee-brand { gap:10px; }
.brand>strong,.employee-brand>strong { line-height:0; }
.brand img.brand-wordmark,.employee-brand img.brand-wordmark { display:block; width:114px; height:auto; max-width:none; }
.sidebar .brand>img,.employee-brand>img { width:36px; height:36px; flex-shrink:0; }
.sidebar .brand { gap:10px; }
.brand-caption { padding-left:59px; padding-top:7px; font-size:11px; letter-spacing:.04em; }
.employee-brand { grid-template-columns:36px 1fr; column-gap:10px; }
.login .brand { gap:12px; }
.login .brand img.brand-wordmark { width:128px; height:auto; }
@media(min-width:701px) and (max-width:1000px) {
 .sidebar .brand>strong { display:none; }
 .sidebar .brand>img { width:34px; height:34px; }
}

/* Homepage manual collection: keep progress separate from table controls. */
.monitor-toolbar-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.monitor-refresh-status{display:flex;flex-direction:column;gap:7px;padding:10px 20px;border-top:1px solid var(--border,#e5eaf2);font-size:12px;color:var(--muted,#66758f);background:#fafcff;overflow-wrap:anywhere}
.monitor-refresh-status:empty{display:none}
.monitor-refresh-summary{display:flex;gap:8px 18px;align-items:center;flex-wrap:wrap}
.monitor-refresh-summary strong{color:#334a76}
.monitor-refresh-status progress{width:100%;height:5px;accent-color:#4166f5}
.monitor-refresh-errors summary{cursor:pointer}
.monitor-refresh-errors[open]{display:flex;flex-direction:column;gap:6px}
.monitor-refresh-errors button{display:block;max-width:100%;text-align:left;white-space:normal;margin:6px 0}
@media(max-width:680px){.monitor-toolbar-actions{width:100%;justify-content:space-between;gap:8px}.monitor-refresh-status{padding:10px 12px}.monitor-toolbar-actions .sheet-view-tools{margin-left:auto}}

/* Global collection switch stays visible on desktop and mobile. */
.collection-control{white-space:nowrap;flex-shrink:0}
.collection-paused-banner{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;padding:14px 18px;margin-bottom:18px;border:1px solid #eacb83;border-radius:10px;background:#fff8e9;color:#765215;font-size:13px;line-height:1.6}
.collection-paused-banner strong{font-size:14px}
@media(max-width:700px){.topbar .top-right{flex-wrap:wrap;justify-content:flex-end;gap:6px}.collection-paused-banner{padding:12px 14px}.collection-paused-banner span{font-size:12px}}

/* Independent detail/playback controls wrap on phone screens. */
#monitor-refresh-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.monitor-refresh-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:680px){#monitor-refresh-control{width:100%;justify-content:flex-start}.monitor-refresh-buttons{width:100%}.monitor-refresh-buttons .btn{flex:1;justify-content:center}}

/* Daily publication totals: cities across the top, platforms down the left. */
.daily-totals.daily-totals-matrix { display:block; min-width:0; }
.daily-publish-matrix { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; }
.daily-publish-matrix .daily-platform-column { width:64px; }
.daily-publish-matrix th,.daily-publish-matrix td { padding:10px 6px; text-align:center; vertical-align:middle; border:0; background:transparent; }
.daily-publish-matrix th { font-size:13px; font-weight:600; color:#3b4c67; }
.daily-publish-matrix thead th { padding-top:0; padding-bottom:10px; border-bottom:1px solid var(--line); }
.daily-publish-matrix tbody th { padding-left:0; text-align:left; white-space:nowrap; }
.daily-publish-matrix tbody tr+tr>* { border-top:1px solid #edf1f6; }
.daily-publish-matrix .daily-city-count>span { justify-content:center; }
.daily-publish-matrix .daily-yesterday-count { text-align:center; white-space:nowrap; }
/* Recent library advice uses the existing blue workspace palette. */
.advice-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;margin-bottom:20px;border:1px solid #dbe4ff;border-radius:14px;background:linear-gradient(115deg,#f2f5ff,#fff)}
.advice-entry h2{margin:5px 0 8px;font-size:20px;color:#253652}.advice-entry p{margin:0;color:#62718a;font-size:13px;line-height:1.7}.advice-entry>.btn{flex-shrink:0}
.advice-eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#5469a5}.advice-modal{width:min(980px,calc(100vw - 40px));max-width:980px}.advice-modal .modal-head h2{margin-top:7px}.advice-modal .modal-body{padding:24px}
.advice-options{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:14px;align-items:end;border:0;padding:0;margin:0}.advice-options .field{margin:0}.advice-options>.btn{height:40px}.advice-image-option{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;font-size:13px;color:#394a66;padding:3px 0}.advice-image-option input{accent-color:#4164ff;margin-top:3px}.advice-image-option small{display:block;margin-top:3px;color:#7c889c;font-size:11px}
.advice-coverage{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e7ebf3;border:1px solid #e7ebf3;border-radius:10px;overflow:hidden;margin:22px 0 10px}.advice-coverage>div{display:flex;align-items:baseline;gap:9px;background:#f8faff;padding:16px}.advice-coverage strong{color:#2c4165;font-size:26px;line-height:1.1;font-variant-numeric:tabular-nums}.advice-coverage span{font-size:11px;color:#718199}
.advice-note{color:#7a879b;font-size:12px;line-height:1.8;margin:10px 0}.advice-actions{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:16px 0;margin-bottom:8px;border-bottom:1px solid #e9edf4}.advice-actions>div{flex:1}.advice-actions small{margin-left:8px;color:#7a879b;font-size:11px}.advice-actions p{font-size:12px;line-height:1.7;color:#768398;margin:8px 0 0}.advice-actions>.btn{flex-shrink:0}.advice-error{display:block;margin:12px 0}
.advice-report{margin-top:24px;border:1px solid #e1e7f2;border-radius:12px;overflow:hidden}.advice-report>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;background:#f7f9fe;border-bottom:1px solid #e1e7f2}.advice-report h3{font-size:17px;margin:6px 0}.advice-report header p{font-size:11px;color:#78869b;line-height:1.8;margin:5px 0 0}.advice-report>.hint{margin:16px 22px 0}.advice-prose{padding:8px 24px 20px;color:#3c4c64;font-size:14px;line-height:1.95;overflow-wrap:anywhere}.advice-prose h3{margin:24px 0 10px;font-size:16px;color:#253e69}.advice-prose p{white-space:pre-wrap;margin:12px 0}.advice-prose a{color:#4164df;text-decoration:none;font-variant-numeric:tabular-nums}.advice-prose a:hover{text-decoration:underline}
.advice-sources{margin-top:20px;border:1px solid #e7ebf3;border-radius:10px;padding:15px 18px}.advice-sources summary{cursor:pointer;font-size:13px;color:#465a7d;font-weight:600}.advice-sources ol{list-style:none;padding:0;margin:8px 0 0}.advice-sources li{padding:12px 0;border-bottom:1px solid #eef1f7;overflow-wrap:anywhere}.advice-sources li:last-child{border-bottom:0}.advice-sources a{font-size:13px;color:#4261ca;text-decoration:none}.advice-sources small{display:block;font-size:11px;color:#8190a5;line-height:1.8;margin-top:6px}.advice-limits{margin-top:20px}
@media(max-width:640px){.advice-entry{align-items:flex-start;flex-direction:column;padding:18px;gap:15px}.advice-entry>.btn{width:100%}.advice-modal{width:calc(100vw - 20px)}.advice-modal .modal-body{padding:16px}.advice-options{grid-template-columns:1fr 1fr;gap:12px}.advice-coverage>div{padding:12px 8px;display:block}.advice-coverage strong{font-size:24px;display:block;margin-bottom:6px}.advice-coverage span{font-size:10px}.advice-actions{flex-direction:column;align-items:stretch;gap:14px}.advice-report>header{align-items:flex-start;padding:16px;gap:8px}.advice-report>header .btn{white-space:nowrap}.advice-report h3{font-size:14px}.advice-prose{padding:4px 16px 16px;font-size:13px}.advice-prose h3{font-size:15px}.advice-sources{padding:14px}.advice-image-option small{line-height:1.6}}

/* Selectable viral content exports, shared by library and monthly export. */
.export-content-options,.export-filters .export-content-options{position:relative;margin:22px 0 16px;padding:18px;border:1px solid var(--line,#dce3ef);border-radius:12px;min-width:0}
.export-content-options legend{padding:0 7px;font-size:14px;font-weight:650}.export-content-options legend span{margin-left:6px;font-size:12px;font-weight:400;color:var(--muted,#64748b)}
.export-content-all{display:flex;gap:8px;align-items:center;margin:0 0 12px;font-size:13px;cursor:pointer;width:fit-content}.export-content-options input{width:17px;height:17px;accent-color:var(--primary,#3961fa);flex:none;margin:2px 0 0}
.export-content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.export-content-grid>label{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line,#dce3ef);border-radius:9px;padding:14px 12px;cursor:pointer;min-width:0;background:var(--surface,#fff)}
.export-content-grid>label:has(input:checked){background:#f0f4ff;border-color:#8ea5ff}.export-content-grid strong{display:block;font-size:14px;color:var(--text,#223047)}.export-content-grid small{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:var(--muted,#64748b)}
.export-content-note{font-size:12px;line-height:1.8;color:var(--muted,#64748b);margin:12px 0 0}.library-export-modal{width:min(680px,100%)}
@media(max-width:600px){.export-content-grid{grid-template-columns:1fr}.export-content-options{padding:14px}.export-content-grid>label{padding:11px 12px}.export-content-grid small{margin-top:3px}}

/* Compact navigation after removal of the brand subtitle. */
.sidebar>.brand{margin-bottom:28px}
.monitor-refresh-status:empty{display:none}

/* One-off playback lookup; the result is separate from the monitoring table. */
.single-playback-modal{max-width:560px}
.single-playback-modal textarea{width:100%;min-height:106px;resize:vertical;line-height:1.7;font-size:14px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:var(--surface,#fff)}
.single-playback-modal textarea:focus{outline:2px solid var(--primary,#345cff);outline-offset:2px}
.single-playback-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.single-playback-actions>span{font-size:12px;color:var(--muted,#6f7c90)}
.single-playback-result{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:10px;background:#f5f8ff}
.single-playback-number>span{font-size:13px;color:#60708a}
.single-playback-number strong{display:block;margin-top:6px;font-size:40px;font-weight:700;line-height:1.25;letter-spacing:-1px;color:#2545b7;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.single-playback-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:16px;font-size:12px;color:#6c7890}
.single-playback-meta a{display:inline-flex;align-items:center;gap:5px}
@media(max-width:560px){.single-playback-actions{align-items:stretch;flex-direction:column}.single-playback-actions .btn{width:100%}.single-playback-number strong{font-size:36px}.single-playback-result{padding:16px}}

/* Dedicated two-hour work monitoring. */
.work-watch-page{display:grid;gap:22px}
.work-watch-add form{padding:20px 24px 14px}
.work-watch-add textarea{width:100%;min-height:88px;padding:12px 14px;resize:vertical;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.6;font-family:inherit;color:var(--text,#223047);background:#fff}
.work-watch-add textarea:focus{outline:2px solid var(--primary,#345cff);outline-offset:2px}
.work-watch-add-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;color:var(--text,#223047)}
.work-watch-add-footer small{display:block;margin-top:5px;color:var(--muted,#6f7c90);font-size:12px}
.work-watch-summary{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 24px;border-bottom:1px solid var(--line);font-size:13px;color:var(--muted,#6f7c90)}
.work-watch-summary b{color:var(--text,#223047);font-size:18px;margin-left:6px;font-variant-numeric:tabular-nums}
.work-watch-summary .subtle{margin-left:auto}
.work-watch-scroll{overflow:auto;max-width:100%;scrollbar-gutter:stable}
.work-watch-table{width:100%;min-width:920px;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:13px}
.work-watch-table th{padding:14px 16px;background:#f5f7fc;color:#75829a;font-size:12px;font-weight:600;white-space:nowrap}
.work-watch-table td{padding:18px 16px;border-top:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}
.work-watch-table th:first-child{width:28%}.work-watch-table th:nth-last-child(2){width:145px}.work-watch-table th:last-child{width:115px}
.work-watch-title{display:inline-flex;align-items:center;gap:6px;color:var(--text,#223047);font-weight:650;line-height:1.6;overflow-wrap:anywhere;text-decoration:none}
.work-watch-title:hover{color:var(--primary,#345cff)}.work-watch-title svg{flex:none}
.work-watch-url{font-size:11px;line-height:1.6;color:var(--muted,#6f7c90);margin-top:5px;word-break:break-all}
.work-watch-table small{display:block;font-size:11px;color:var(--muted,#6f7c90);line-height:1.6;margin-top:6px}
.work-watch-number strong{font-size:17px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums;color:var(--text,#223047)}
.work-watch-actions{display:flex;gap:8px 12px;flex-wrap:wrap}.work-watch-actions button{font-size:12px}.work-watch-actions .danger-link{color:#a65363}
.work-watch-error{color:#a76028;font-size:12px;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}
#work-watch-results>.work-watch-error{padding:8px 24px}
.work-watch-history{max-width:760px}.work-watch-history .work-watch-scroll{margin-top:18px;max-height:65vh}.work-watch-history .work-watch-table{min-width:550px;table-layout:auto}.work-watch-history th:first-child{width:25%}.work-watch-history th:nth-last-child(2),.work-watch-history th:last-child{width:auto}
@media(max-width:600px){.work-watch-page{gap:14px}.work-watch-add form{padding:16px}.work-watch-add textarea{font-size:16px}.work-watch-add-footer{align-items:stretch;flex-direction:column}.work-watch-add-footer .btn{width:100%}.work-watch-summary{padding:14px 16px;gap:10px 16px}.work-watch-summary .subtle{margin-left:0}.work-watch-table td{padding:15px 12px}.work-watch-table th{padding:12px}.work-watch-actions{gap:5px 12px}.work-watch-actions button{min-height:36px}}

/* Metric history curves use saved observations only. */
.work-watch-metric{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:5px;padding:3px 0;background:none;cursor:pointer;color:var(--primary,#345cff);text-align:left}
.work-watch-metric strong{color:inherit}.work-watch-metric svg{opacity:.6;flex:none}.work-watch-metric:hover{text-decoration:underline;text-underline-offset:4px}.work-watch-metric:focus-visible{outline:2px solid currentColor;outline-offset:4px}.work-watch-metric:disabled{opacity:.55;cursor:wait}
.work-watch-chart-modal{max-width:800px}.work-watch-chart{margin-top:22px}.work-watch-chart-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}.work-watch-chart-summary>div{padding:15px 16px;border:1px solid var(--line);border-radius:10px;background:#f8faff;min-width:0}
.work-watch-chart-summary span,.work-watch-chart-summary small{display:block;font-size:12px;line-height:1.6;color:var(--muted,#6f7c90)}.work-watch-chart-summary strong{display:block;margin:5px 0;color:var(--text,#223047);font-size:24px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.work-watch-chart-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:10px;background:#fff}.work-watch-chart-svg{display:block;width:100%;min-width:560px;height:auto;font-family:inherit}.work-watch-chart-point:focus{outline:none;stroke:#1c3eb5;stroke-width:3}.work-watch-chart-axis{font-variant-numeric:tabular-nums}
.work-watch-chart-note{margin:12px 0;color:var(--muted,#6f7c90);font-size:12px;line-height:1.7}.work-watch-chart-empty{padding:40px 20px;text-align:center;color:var(--muted,#6f7c90);font-size:14px}
.work-watch-chart-details{margin-top:18px;border-top:1px solid var(--line);padding-top:16px;font-size:13px}.work-watch-chart-details summary{cursor:pointer;color:var(--primary,#345cff);font-weight:600}.work-watch-chart-table-wrap{max-height:260px;overflow:auto;margin-top:12px}.work-watch-chart-details table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;font-variant-numeric:tabular-nums}.work-watch-chart-details th{position:sticky;top:0;background:#f5f7fc;color:var(--muted,#6f7c90)}.work-watch-chart-details th,.work-watch-chart-details td{padding:10px 12px;border-bottom:1px solid var(--line)}
@media(max-width:600px){.work-watch-metric{min-height:36px}.work-watch-chart{margin-top:18px}.work-watch-chart-summary{gap:8px}.work-watch-chart-summary>div{padding:10px}.work-watch-chart-summary strong{font-size:20px}.work-watch-chart-summary small{font-size:10px}.work-watch-chart-modal .modal-body{padding:18px 16px}}
@media(max-width:600px){.work-watch-chart-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.work-watch-chart-summary>div:last-child{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:8px 10px}.work-watch-chart-summary>div:last-child strong{margin:0}.work-watch-chart-summary>div:last-child small{margin-left:auto}.work-watch-chart-svg{min-width:0}.work-watch-chart-svg text{font-size:18px}}

/* Homepage publication history */
.daily-board-actions,.daily-date-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.daily-board-actions { margin-left:auto; }
.daily-date-controls label { font-size:12px; color:var(--text-secondary); }
.daily-date-controls input { min-width:145px; max-width:170px; padding:7px 10px; border:1px solid var(--border); border-radius:7px; background:var(--surface,#fff); color:var(--text); font:inherit; font-size:13px; color-scheme:light; }
.daily-date-controls input:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.daily-date-message { padding:12px 20px 20px; color:var(--muted); font-size:13px; display:flex; align-items:center; gap:14px; }
.daily-date-message.error { color:#b34536; }
@media(max-width:700px) { .daily-board-actions { width:100%; margin-left:0; gap:10px 14px; }.daily-date-controls { width:100%; }.daily-date-controls input { flex:1; }.daily-board-actions>.btn { margin-left:auto; } }

.daily-history-board .daily-people>div { grid-template-columns:96px minmax(0,1fr); }
.daily-history-board .daily-people>div>strong { white-space:nowrap; }

@media(max-width:640px){.export-dates .export-submitter-field{flex-basis:100%}}

/* Homepage work categories keep each group's ranking and totals separate. */
.sheet-group-tabs { display:flex; gap:8px; padding:16px 20px 0; flex-shrink:0; }
.sheet-group-tabs button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:40px; padding:8px 18px; border:1px solid var(--line,#e2e8f0); border-radius:9px; background:#fff; color:var(--text-secondary,#607087); font-size:14px; font-weight:650; white-space:nowrap; }
.sheet-group-tabs button>span { min-width:24px; padding:2px 6px; border-radius:6px; background:#eef2f7; font-size:12px; font-variant-numeric:tabular-nums; }
.sheet-group-tabs button.active { border-color:var(--blue); background:#edf2ff; color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); }
.sheet-group-tabs button.active>span { background:#dce6ff; }
.sheet-group-tabs button:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
@media (max-width:600px) { .sheet-group-tabs { padding:12px 12px 0; } .sheet-group-tabs button { flex:1; padding:8px 12px; } }

.daily-correction-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; }
.daily-correction-secondary { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:12px; }
.daily-total-corrected { margin-left:8px; vertical-align:middle; }

.account-category.category-archive.active{background:#f1f3f8;border-color:#98a5be;box-shadow:inset 4px 0 #65758e}
.account-archive-table{width:100%;min-width:550px}.account-archive-table a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:clamp(120px,18vw,320px)}
@media(max-width:700px){.account-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.account-category.category-archive{grid-column:1/-1;min-height:52px}.category-archive .account-platform-counts{display:none}}
