/* Scoped broker daily report preview. Existing portal cards and photo links stay intact. */
.portal-welcome-with-photo{display:grid;grid-template-columns:minmax(260px,1fr) minmax(250px,300px) minmax(250px,300px);gap:22px}
.portal-welcome-copy h1{font-size:31px}.portal-report-action,.portal-photo-action{min-width:0;max-width:100%}
.portal-report-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:15px 17px;border:1px solid #bed3d9;border-radius:10px;background:#eff6f6;color:var(--navy);transition:background .15s,border-color .15s,box-shadow .15s}
.portal-report-link:hover{background:#e0eeee;border-color:#739ba6;box-shadow:0 3px 12px #0834480d}.portal-report-link:focus-visible{outline:3px solid #91b7c2;outline-offset:3px}
.portal-report-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:10px;background:white;color:#1d5a6c}.portal-report-icon svg{width:28px;height:28px}
.portal-report-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.portal-report-copy strong{font-size:19px;font-weight:650;letter-spacing:.03em}.portal-report-copy>span{font-size:12px;color:#52747d}.portal-report-arrow{margin-left:auto;font-size:21px;color:#326b7b}
.portal-welcome .portal-report-hint{margin-top:8px;font-size:12px;line-height:1.5;text-align:center;color:var(--muted)}
.report-preview-banner{padding:12px 18px;background:#fff6e9;border:1px solid #efdec2;border-radius:9px;color:#82582d;font-size:14px;margin-bottom:22px}.report-preview-banner strong{font-weight:650}.report-preview-banner span{display:block;font-size:12px;margin-top:3px}
.daily-report-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.daily-report-layout>.panel+.panel{margin:0}.report-sheet{padding:27px}.report-side{padding:21px;position:sticky;top:18px}
.report-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}.report-section-heading h2{font-size:21px}.report-day-label{color:var(--muted);font-size:13px}.report-form-meta{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:13px;padding:18px 0 22px;border-bottom:1px solid var(--line)}
.report-selection-copy{font-size:12px;color:var(--muted);margin:13px 0 25px}.report-fields{display:grid;gap:22px}.report-field-label{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:650;color:var(--navy)}.report-field-label small{font-weight:400;font-size:12px;color:var(--muted)}.report-field-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:3px 0 7px}.report-fields textarea{font-size:15px;line-height:1.8;min-height:108px;padding:12px 14px}.report-fields textarea[name=completed]{min-height:150px}
.report-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:19px}.report-save-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:26px -27px -27px;padding:19px 27px;background:#f5f8f8;border-radius:0 0 13px 13px;border-top:1px solid var(--line)}.report-save-copy{font-size:12px;color:var(--muted);max-width:290px}.report-save-buttons{display:flex;gap:10px;flex-wrap:wrap}.report-save-buttons .btn{min-width:112px}
.report-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:5px 9px;border-radius:5px;background:#eef1f3;color:#5f7682;white-space:nowrap}.report-status.submitted{background:#e9f3ec;color:#3c7054}.report-status.draft{background:#fff0df;color:#936029}.report-status.unsaved{background:#f2f4f5;color:#697c86}
.report-side .panel-head{margin-bottom:13px}.report-side h2{font-size:20px}.report-history-controls{display:flex;gap:7px;margin-bottom:16px}.report-history-controls input{font-size:13px}.report-history-controls .btn{padding-left:10px;padding-right:10px;white-space:nowrap}.report-history-list{display:flex;flex-direction:column;gap:10px}.report-history-card{width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:8px;padding:13px;display:grid;gap:6px}.report-history-card:hover,.report-history-card.active{border-color:#7c9ca7;background:#f0f6f7}.report-history-card .report-history-top{display:flex;gap:8px;align-items:center;justify-content:space-between}.report-history-card strong{font-size:15px;color:var(--navy)}.report-history-card .report-history-person{font-size:13px;color:#547482}.report-history-summary{font-size:12px;line-height:1.7;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.report-history-count{font-size:12px;color:var(--muted);margin:14px 0 0}.report-side-note{margin-top:21px;padding-top:17px;border-top:1px solid var(--line);font-size:12px;line-height:1.8;color:var(--muted)}
.report-saved-notice{font-size:13px;color:#3a6a50;margin-top:14px;padding:10px 12px;background:#edf6ef;border-radius:7px}.report-inline-warning{font-size:13px;color:#936029;margin-top:12px}
@media(max-width:1100px){.portal-welcome-with-photo{grid-template-columns:1fr 1fr;gap:20px}.portal-welcome-copy{grid-column:1/-1}.portal-photo-action,.portal-report-action{width:100%}.daily-report-layout{grid-template-columns:minmax(0,1fr) 275px}.report-sheet{padding:22px}.report-save-row{margin-left:-22px;margin-right:-22px;margin-bottom:-22px;padding:17px 22px}.report-form-meta{grid-template-columns:1fr 1fr}.report-form-meta>.btn{grid-column:1/-1;justify-self:start}.report-field-pair{grid-template-columns:1fr}}
@media(max-width:760px){.daily-report-layout{grid-template-columns:1fr}.report-side{position:static}.report-sheet{padding:19px}.report-save-row{margin-left:-19px;margin-right:-19px;margin-bottom:-19px;padding:17px 19px}.report-save-copy{max-width:none}.report-save-buttons{width:100%}.report-save-buttons .btn{flex:1}.report-form-meta{gap:11px}.report-fields{gap:21px}.report-field-label{font-size:15px}}
@media(max-width:680px){.portal-welcome-with-photo{grid-template-columns:1fr;gap:18px}.portal-welcome-copy{grid-column:auto}.portal-welcome-copy h1{font-size:25px}.portal-report-link{padding:14px 16px}.report-section-heading{align-items:flex-start}.report-form-meta{grid-template-columns:1fr}.report-form-meta>.btn{justify-self:stretch}.report-preview-banner{font-size:13px}.report-field-pair{gap:21px}.report-fields textarea{min-height:130px}}
.report-comparison{margin-top:52px;padding:18px;background:#f8f8f3;border:1px solid #d5dcd9;border-radius:8px}.report-comparison h3{margin-top:0}.report-comparison fieldset{border:0;border-top:1px solid var(--line);padding:14px 0;margin:0}.report-comparison legend{font-size:14px;font-weight:650;padding-right:10px}.report-compare-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.report-compare-pair label{display:block;border:1px solid var(--line);border-radius:7px;padding:12px;background:white}.report-compare-pair label>span{font-size:13px}.report-compare-pair input{width:auto;margin-right:4px}.report-compare-pair p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto}.report-comparison>.btn{margin-top:10px}@media(max-width:680px){.report-compare-pair{grid-template-columns:1fr}}
.report-work-reference{margin:0 0 25px;padding:16px 18px;border:1px solid #c9dfe2;border-left:4px solid #5c919b;border-radius:9px;background:#f2f8f8;color:#315a68;font-size:13px;line-height:1.75;overflow-wrap:anywhere}
.report-reference-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.report-reference-head strong{color:var(--navy);font-size:15px}.report-work-reference p{margin:8px 0 0}.report-work-reference .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.report-reference-warning{color:#915d2b}.report-reference-message{color:#285d50}.report-reference-note{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 20px}
.report-reference-details{margin-top:13px;border-top:1px solid #d2e1e5;padding-top:11px}.report-reference-details summary{cursor:pointer;color:var(--navy)}.report-reference-details h4{font-size:13px;margin:15px 0 6px}.report-reference-details pre{font-family:inherit;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere;background:white;border-radius:6px;padding:12px;max-height:240px;overflow:auto;margin:0}
@media(max-width:680px){.report-work-reference{padding:13px 14px}.report-reference-head{align-items:flex-start;flex-direction:column;gap:8px}.report-work-reference .actions{align-items:stretch}.report-work-reference .actions .btn{flex:1;min-width:130px}}

/* A color-only layer for the current management UI. Original component geometry,
   typography, navigation and data handling are supplied by the release itself. */
:root {
  --desk-tone:#564c5b;
  --desk-wash:#e9e3e9;
  --desk-ink:#302e32;
  --desk-secondary:#58565b;
  --desk-paper:#f7f6f1;
  --desk-panel:#fffefa;
  --desk-line:#d2cfc8;
  --navy:var(--desk-tone);
  --deep:#373238;
  --coral:#765a62;
  --paper:var(--desk-paper);
  --text:var(--desk-ink);
  --muted:var(--desk-secondary);
  --line:var(--desk-line);
  --soft:#eeece7;
}
html[data-workday="0"] {--desk-tone:#55534e;--desk-wash:#e5e3df}
html[data-workday="1"] {--desk-tone:#44594b;--desk-wash:#dde5da}
html[data-workday="2"] {--desk-tone:#445967;--desk-wash:#dfe7eb}
html[data-workday="3"] {--desk-tone:#564c5b;--desk-wash:#e9e3e9}
html[data-workday="4"] {--desk-tone:#615642;--desk-wash:#eae5d9}
html[data-workday="5"] {--desk-tone:#674d53;--desk-wash:#ecdfe0}
html[data-workday="6"] {--desk-tone:#665143;--desk-wash:#eee1d6}
body {color:var(--desk-ink);background-color:var(--desk-paper)}
.site-header {background-color:#fff;border-color:var(--desk-line)}
.brand strong,.portal-home h1,.page-head h1,.back-link,.management-return .btn {color:var(--desk-tone)}
.brand small,.muted,.home-note,.page-head p {color:var(--desk-secondary)}
.panel,dialog,.portal-home .home-entry,.portal-home .home-tools {color:var(--desk-ink);border-color:var(--desk-line);background-color:var(--desk-panel)}
.panel h2,.panel h3,.panel h4,.portal-home .home-tools h2,.portal-home .home-entry strong {color:var(--desk-ink)}
.portal-home .home-entry:hover {background-color:#f1f0ea;border-color:var(--desk-tone)}
.portal-home .home-entry-icon {background-color:var(--desk-wash);color:var(--desk-tone)}
.portal-home .home-entry-count {background-color:#ecebe5;color:#555352}
.portal-home .home-entry-desc,.portal-home .home-tool-copy>span {color:var(--desk-secondary)}
.portal-home .home-entry-recruit {background-color:var(--desk-wash);color:var(--desk-tone);border-color:color-mix(in srgb,var(--desk-tone) 36%,var(--desk-wash))}
.portal-home .home-entry-recruit:hover {background-color:color-mix(in srgb,var(--desk-wash) 93%,var(--desk-tone));border-color:var(--desk-tone)}
.portal-home .home-entry-recruit .home-entry-icon {background-color:#fffaf4;color:var(--desk-tone)}
.portal-home .home-entry-recruit strong {color:var(--desk-tone)}
.portal-home .home-entry-recruit .home-entry-desc {color:var(--desk-secondary)}
.portal-home .home-entry-open {color:var(--desk-tone);background-color:#fffaf4}
.home-tool-report {--tool-bg:#e6ece7;--tool-line:#c5cfc7;--tool-ink:#45594c}
.home-tool-photo {--tool-bg:#eee2dd;--tool-line:#d6c4bd;--tool-ink:#695246}
.home-tool-md {--tool-bg:#eae5eb;--tool-line:#d0c8d4;--tool-ink:#5a4e63}
.home-tool-docs {--tool-bg:#e9e8de;--tool-line:#cecebf;--tool-ink:#585843}
.portal-home .home-tool {color:var(--desk-ink)}
.portal-home .home-tool-icon {color:var(--tool-ink);background-color:#fffefa}
:is(.btn-primary,.btn-coral) {color:white;background-color:var(--desk-tone);border-color:var(--desk-tone)}
:is(.btn-primary,.btn-coral):hover {color:white;background-color:var(--deep);border-color:var(--deep)}
:is(a,button,input,select,textarea):focus-visible {outline-color:#4d6371}
:is(.talent-filter-panel,.vd-search-panel,.case-filter-bar,.ops-filter-panel,.report-work-reference) {
  background-color:color-mix(in srgb,var(--desk-wash) 48%,var(--desk-panel));border-color:var(--desk-line)
}
:is(.talent-size-band,.ops-stat,.case-money-grid>div,.talent-money-stats>div,.talent-income-stats>div,.report-comparison,.classroom-steps>div,.report-save-row) {
  background-color:color-mix(in srgb,var(--desk-wash) 62%,var(--desk-panel));color:var(--desk-ink);border-color:var(--desk-line)
}
:is(.vd-list-item.active,.list-item.is-active,.talent-roster-card.is-active,.person-card.is-active) {
  border-color:var(--desk-tone);background-color:var(--desk-wash);color:var(--desk-tone)
}
.talent-profile-panel>.tabs .tab.active {color:var(--desk-tone);border-color:var(--desk-tone)}
:is(.case-record,.ops-course-card,.vd-section,.talent-profile-panel,.report-comparison,.classroom-workspace fieldset) {border-color:var(--desk-line)}
.report-work-reference,.report-work-reference strong,.classroom-workspace {color:var(--desk-tone)}

/* Workbench landing page. The management screens retain their own layout. */
body:has(.weekly-portal) {
  --wp-edge: max(clamp(20px, 4vw, 66px), calc((100% - 1480px) / 2));
}
body:has(.weekly-portal) .site-header {
  min-height: 68px;
  padding: 8px var(--wp-edge);
  flex-flow: row nowrap;
  align-items: center;
  gap: 12px;
  border-top: 3px solid var(--desk-ink);
}
body:has(.weekly-portal) .site-header .brand {gap: 12px}
body:has(.weekly-portal) .site-header .brand img {width: 58px; height: 48px}
body:has(.weekly-portal) .site-header .brand strong {font-size: 17px; line-height: 1.3}
body:has(.weekly-portal) .site-header .brand small {font-size: 10px}
#app:has(> .weekly-portal) {
  width: auto;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: clamp(22px, 3.6vh, 38px) var(--wp-edge) 24px;
}
.portal-home.weekly-portal {
  --wp-rule: color-mix(in srgb, var(--desk-tone) 26%, var(--desk-wash));
  --wp-gutter: clamp(20px, 2.6vw, 40px);
  color: var(--desk-ink);
}
.weekly-portal .wp-heading,
.weekly-portal .wp-date,
.weekly-portal .wp-agenda-head,
.weekly-portal .wp-agenda-head > div,
.weekly-portal .wp-footer,
.weekly-portal .wp-pager {display: flex; align-items: center}
.weekly-portal .wp-heading {
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 clamp(15px, 2.5vh, 25px);
  color: var(--desk-tone);
}
.portal-home.weekly-portal .wp-heading h1,
.weekly-portal .wp-date time {
  margin: 0;
  font-size: clamp(38px, 4.75vw, 69px);
  font-weight: 740;
  line-height: 1.14;
  letter-spacing: -.045em;
  color: inherit;
}
.weekly-portal .wp-start {
  display: inline-flex;
  align-items: center;
  gap: .18em;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.weekly-portal .wp-start-arrow {
  display: grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: var(--desk-wash);
  font: 500 clamp(16px, 1.5vw, 22px)/1 Arial, sans-serif;
  letter-spacing: normal;
}
.weekly-portal .wp-start-arrow::before {content: '→'}
.weekly-portal .wp-start:focus-visible .wp-start-arrow {background: var(--desk-tone); color: var(--desk-panel)}
.weekly-portal .wp-date {
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}
.weekly-portal .wp-date time {font-variant-numeric: tabular-nums; letter-spacing: -.065em}
.weekly-portal .wp-date span {font-size: clamp(14px, 1.2vw, 18px); font-weight: 650}
.weekly-portal .wp-columns {
  display: grid;
  grid-template-columns: minmax(0, 2.8fr) minmax(235px, 1fr);
  gap: var(--wp-gutter);
  align-items: stretch;
}
.weekly-portal .wp-agenda {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: clamp(295px, 40.6vh, 370px);
  padding: clamp(14px, 1.8vh, 20px) clamp(16px, 2vw, 30px);
  min-width: 0;
  background: var(--desk-wash);
  color: var(--desk-ink);
}
.weekly-portal :is(.wp-agenda, .wp-tools, .wp-directory) h2 {
  margin: 0;
  font-size: clamp(19px, 1.56vw, 23px);
  font-weight: 720;
  line-height: 1.35;
  letter-spacing: .015em;
  color: var(--desk-ink);
}
.weekly-portal .wp-agenda-head {
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--wp-rule);
}
.weekly-portal .wp-agenda-head > div {gap: 10px; flex-wrap: wrap}
.weekly-portal .wp-count, .weekly-portal .wp-range {
  color: var(--desk-tone);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.weekly-portal .wp-scroll {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--wp-rule) transparent;
  min-height: 0;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row {
  display: grid;
  grid-template-columns: clamp(70px, 8.2vw, 126px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  width: 100%;
  margin: 0;
  padding: 9px 4px 9px 0;
  border: 0;
  border-bottom: 1px solid var(--wp-rule, var(--desk-line));
  border-radius: 0;
  color: var(--desk-ink);
  background: transparent;
  font: inherit;
  text-align: start;
  text-decoration: none;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-time {
  font-size: 17px;
  color: var(--desk-tone);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-title {
  font-size: 16px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-kind {
  color: var(--desk-tone);
  font-size: 13px;
  text-align: end;
}
.weekly-portal .wp-status, #demo-dialog .wp-expanded .wp-status {
  margin: 0;
  padding: 18px 0;
  color: var(--desk-secondary);
  font-size: 14px;
}
.weekly-portal .wp-footer {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid var(--wp-rule);
}
.weekly-portal .wp-pager {justify-content: flex-end; gap: 6px}
.weekly-portal .wp-range {padding-inline-end: 4px}
.weekly-portal :is([data-wp-expand], [data-wp-prev], [data-wp-next]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 6px 13px;
  border: 1px solid color-mix(in srgb, var(--desk-tone) 52%, var(--desk-wash));
  border-radius: 3px;
  background: transparent;
  color: var(--desk-tone);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}
.weekly-portal :is([data-wp-prev], [data-wp-next]) {width: 38px; padding: 0; font-size: 18px}
.weekly-portal :is([data-wp-prev], [data-wp-next]):disabled {opacity: .42}
.weekly-portal .wp-tools {
  display: grid;
  grid-template-rows: auto;
  grid-auto-rows: minmax(min-content, 1fr);
  min-width: 0;
  border-top: 2px solid var(--desk-ink);
}
.weekly-portal .wp-tools h2 {padding: 10px 0 4px}
.weekly-portal .wp-directory {margin-top: clamp(20px, 3.4vh, 34px)}
.weekly-portal .wp-directory h2 {padding-bottom: 9px; border-bottom: 2px solid var(--desk-ink)}
.weekly-portal .wp-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--wp-gutter);
}
.portal-home.weekly-portal :is(.wp-tool, .wp-entry) {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 5px;
  border: 0;
  border-bottom: 1px solid var(--desk-line);
  border-radius: 0;
  box-shadow: none;
  color: var(--desk-ink);
  background: transparent;
  text-align: start;
  font: inherit;
  text-decoration: none;
}
.portal-home.weekly-portal .wp-entry {min-height: clamp(65px, 9vh, 85px)}
.portal-home.weekly-portal .wp-tool.home-tool-photo {
  background: var(--desk-wash);
  padding-inline: 12px;
}
.weekly-portal .wp-copy {display: grid; min-width: 0; gap: 2px}
.weekly-portal .wp-copy strong {font-size: 16px; font-weight: 700; line-height: 1.45}
.weekly-portal .wp-copy small {display: block; color: var(--desk-secondary); font-size: 13px; line-height: 1.45}
.weekly-portal .wp-arrow {flex: none; color: var(--desk-tone); font-size: 20px; line-height: 1}
@media (hover: hover) {
  .weekly-portal .wp-start:hover .wp-start-arrow {background: var(--desk-tone); color: var(--desk-panel)}
  .portal-home.weekly-portal :is(.wp-tool, .wp-entry):hover,
  .weekly-portal :is([data-wp-expand], [data-wp-prev], [data-wp-next]):enabled:hover,
  :is(.weekly-portal, #demo-dialog .wp-expanded) :is(a, button).wp-row:hover {
    background: color-mix(in srgb, var(--desk-wash) 80%, var(--desk-panel));
  }
}
.portal-home.weekly-portal .wp-entry[data-area="recruit"] {
  --recruit-accent: #915c53;
  position: relative;
  padding-inline-start: 15px;
  background: transparent;
}
.wp-entry[data-area="recruit"]::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  height: 19px;
  width: 3px;
  border-radius: 2px;
  background: var(--recruit-accent);
  transform: translateY(-50%);
  transition: transform .12s ease-out;
}
.weekly-portal .wp-entry[data-area="recruit"] strong {
  color: #734840;
  font-weight: 750;
}
.weekly-portal .wp-entry[data-area="recruit"] .wp-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--recruit-accent) 54%, var(--desk-paper));
  border-radius: 50%;
  color: var(--recruit-accent);
  font-size: 17px;
  transition: transform .12s ease-out, background-color .12s;
}
.wp-entry[data-area="recruit"]:is(:active, [data-opening])::before {
  transform: translateY(-50%) scaleY(1.6);
}
.weekly-portal .wp-entry[data-area="recruit"]:is(:active, [data-opening]) .wp-arrow {
  transform: translateX(3px);
  background: var(--recruit-accent);
  color: white;
}
@media (prefers-reduced-motion: reduce) {
  .wp-entry[data-area="recruit"]::before,
  .weekly-portal .wp-entry[data-area="recruit"] .wp-arrow {transition: none}
  .wp-entry[data-area="recruit"]:active::before {transform: translateY(-50%)}
  .weekly-portal .wp-entry[data-area="recruit"]:active .wp-arrow {transform: none}
}
.weekly-portal :is(a, button, .wp-scroll):focus-visible,
#demo-dialog .wp-expanded .wp-row:focus-visible {
  outline: 2px solid var(--desk-tone);
  outline-offset: -3px;
}
#demo-dialog:has(.wp-expanded) {width: min(720px, calc(100% - 24px)); max-height: 85dvh}
#demo-dialog:has(.wp-expanded) .dialog-top {align-items: center}
#demo-dialog .wp-expanded-list {border-top: 1px solid var(--desk-line)}
@media (min-width: 761px) and (max-height: 740px) {
  #app:has(> .weekly-portal) {padding-block: 17px}
  .weekly-portal .wp-heading {margin-bottom: 14px}
  .weekly-portal .wp-heading h1, .weekly-portal .wp-date time {font-size: clamp(38px, 4vw, 55px)}
  .weekly-portal .wp-agenda {height: 280px}
  .weekly-portal .wp-directory {margin-top: 18px}
  .portal-home.weekly-portal .wp-entry {min-height: 60px}
}
@media (max-width: 760px) {
  body:has(.weekly-portal) {--wp-edge: clamp(16px, 4vw, 28px)}
  .weekly-portal .wp-columns {grid-template-columns: minmax(0, 1fr); row-gap: 22px}
  .weekly-portal .wp-tools {grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; column-gap: 16px}
  .weekly-portal .wp-tools h2 {grid-column: 1 / -1; padding: 10px 0 4px}
  .weekly-portal .wp-tools .wp-tool {min-height: 64px}
  .weekly-portal .wp-entries {grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px}
  .weekly-portal .wp-agenda {height: 294px}
  .weekly-portal :is([data-wp-expand], [data-wp-prev], [data-wp-next]) {min-height: 44px}
  .weekly-portal :is([data-wp-prev], [data-wp-next]) {width: 44px}
}
@media (max-width: 600px) {
  body:has(.weekly-portal) .site-header .brand {gap: 5px}
  body:has(.weekly-portal) .site-header .brand img {width: 32px; height: 36px}
  body:has(.weekly-portal) .site-header .brand strong {font-size: 14px}
  body:has(.weekly-portal) .site-header .brand small {display: none}
  body:has(.weekly-portal) #workspace-switcher {min-height: 40px}
  #app:has(> .weekly-portal) {padding-block: 18px}
  .weekly-portal .wp-heading {gap: 8px; margin-bottom: 16px}
  .portal-home.weekly-portal .wp-heading h1 {font-size: clamp(31px, 8vw, 40px)}
  .weekly-portal .wp-date {gap: 5px}
  .weekly-portal .wp-date time {font-size: clamp(28px, 7.5vw, 38px)}
  .weekly-portal .wp-date span, .weekly-portal .wp-count, .weekly-portal .wp-range {font-size: 12px}
  .weekly-portal .wp-columns {row-gap: 16px}
  .weekly-portal .wp-agenda {height: 282px; padding: 12px}
  .weekly-portal .wp-directory {margin-top: 20px}
  .portal-home.weekly-portal .wp-entry, .weekly-portal .wp-tools .wp-tool {min-height: 58px}
  .weekly-portal .wp-agenda-head > div {gap: 5px}
  .weekly-portal .wp-footer {padding-top: 8px}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row {grid-template-columns: 50px minmax(0, 1fr) auto; gap: 6px}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-time {font-size: 15px}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-title {font-size: 15px}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-kind {font-size: 12px}
  .weekly-portal .wp-copy strong {font-size: 15px}
  .weekly-portal .wp-copy small {font-size: 12px}
  .portal-home.weekly-portal :is(.wp-tool, .wp-entry) {gap: 6px}
}

#workspace-switcher {
  margin-inline-start:auto;flex:0 0 auto;display:inline-flex;align-items:center;gap:9px;
  min-height:40px;padding:7px 13px;border:1px solid #a9aea6;border-radius:5px;
  color:#424a43;background:#fffefa;font:650 14px/1.5 "Microsoft JhengHei",sans-serif;
}
#workspace-switcher::after {content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg)}
#workspace-switcher[aria-expanded="true"]::after{transform:translateY(2px) rotate(225deg)}
#workspace-switcher:hover {background:#eceee7}
#workspace-switcher-list {
  position:fixed;inset:var(--wn-top,65px) var(--wn-right,10px) auto auto;margin:0;
  width:min(266px,calc(100vw - 16px));max-height:calc(100dvh - var(--wn-top,65px) - 10px);
  box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:9px;
  color:#2e3431;background:#fffefa;border:1px solid #b7beb5;border-radius:7px;box-shadow:0 12px 36px #2f36322b;
  text-align:start;font:400 15px/1.45 "Microsoft JhengHei",sans-serif;
}
#workspace-switcher-list>div+div {border-top:1px solid #d6d9cf;margin-top:5px;padding-top:4px}
#workspace-switcher-list .wn-group {display:block;color:#5b635d;font-size:12px;font-weight:650;padding:4px 9px}
#workspace-switcher-list .wn-item {
  display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;
  min-height:44px;width:100%;padding:7px 11px;margin:0;border:0;border-radius:3px;
  text-align:start;text-decoration:none;color:#2e3431;background:transparent;font:inherit;cursor:pointer;
}
#workspace-switcher-list .wn-item:hover {background:#edf0e9}
#workspace-switcher-list .wn-item[aria-current="page"] {background:#dfe7df;color:#334a38;font-weight:700;box-shadow:inset 3px 0 #617764}
#workspace-switcher-list .wn-item[aria-current="page"]::after {content:"✓";font-size:15px}
#workspace-switcher-list .wn-item:disabled {opacity:.55;cursor:default}
#workspace-switcher:focus-visible,#workspace-switcher-list .wn-item:focus-visible {outline:2px solid #496579;outline-offset:-2px}
@media(max-width:500px){#workspace-switcher {padding:5px 9px;gap:7px;font-size:13px;min-height:36px}}

/* The thin underline, status and arrow appear together on activation. */
.weekly-portal .wp-entry[data-area="recruit"]::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  width: min(100px, 50%);
  height: 2px;
  background: var(--recruit-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease-out;
}
.weekly-portal .wp-entry[data-area="recruit"][data-opening]::after {
  transform: scaleX(1);
}
.weekly-portal .wp-entry[data-area="recruit"][data-opening] .wp-copy small {
  color: #734840;
  font-weight: 700;
}
.weekly-portal .wp-entry[data-area="recruit"][data-opening] .wp-arrow {
  transform: translateX(4px);
  border-color: var(--recruit-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--recruit-accent) 18%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .weekly-portal .wp-entry[data-area="recruit"]::after {transition: none}
  .weekly-portal .wp-entry[data-area="recruit"][data-opening]::before {transform: translateY(-50%)}
  .weekly-portal .wp-entry[data-area="recruit"][data-opening] .wp-arrow {transform: none}
}

/* 招募入口的滑入提示限於細線與箭頭，整列保留底色。 */
@media (hover: hover) {
  .weekly-portal .wp-entry[data-area="recruit"]:is(:hover, :focus-visible):not(:active, [data-opening])::before {
    transform: translateY(-50%) scaleY(1.45);
  }
  .weekly-portal .wp-entry[data-area="recruit"]:is(:hover, :focus-visible):not(:active, [data-opening])::after {
    transform: scaleX(.72);
  }
  .weekly-portal .wp-entry[data-area="recruit"]:is(:hover, :focus-visible):not(:active, [data-opening]) .wp-arrow {
    transform: translateX(3px);
    border-color: var(--recruit-accent);
    background-color: var(--recruit-accent);
    color: white;
  }
}
@media (hover: none) {
  .weekly-portal .wp-entry[data-area="recruit"]:focus-visible:not(:active, [data-opening])::after {
    transform: scaleX(.72);
  }
  .weekly-portal .wp-entry[data-area="recruit"]:focus-visible:not(:active, [data-opening]) .wp-arrow {
    background-color: var(--recruit-accent);
    color: white;
  }
}
@media (prefers-reduced-motion: reduce) {
  .weekly-portal .wp-entry[data-area="recruit"]:is(:hover, :focus-visible):not(:active, [data-opening])::before {
    transform: translateY(-50%);
  }
  .weekly-portal .wp-entry[data-area="recruit"]:is(:hover, :focus-visible):not(:active, [data-opening]) .wp-arrow {
    transform: none;
  }
}


/* Homepage recruitment overview */
.weekly-portal .wp-metrics {
  margin-block: 0 16px;
  padding-block: 8px 6px;
  border-block: 1px solid var(--desk-line);
}
.weekly-portal .wp-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}
.weekly-portal .wp-metric-grid > div {
  display: flex;
  align-items: baseline;
  gap: clamp(8px, 1vw, 16px);
  padding-inline: clamp(8px, 1.5vw, 20px);
  border-inline-start: 1px solid var(--desk-line);
}
.weekly-portal .wp-metric-grid > div:first-child {border: 0; padding-inline-start: 0}
.weekly-portal .wp-metric-grid dt {color: var(--desk-ink); font-size: 14px; font-weight: 650}
.weekly-portal .wp-metric-grid dd {
  margin: 0;
  color: var(--desk-tone);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.2;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.weekly-portal .wp-metric-note {margin: 5px 0 0; color: var(--desk-secondary); font-size: 12px; line-height: 1.3}
.weekly-portal .wp-agenda-head {flex-wrap: wrap; row-gap: 6px}
.weekly-portal .wp-agenda-head > div.wp-agenda-controls {column-gap: 10px}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-period {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--desk-tone);
  border-radius: 4px;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-period button {
  min-height: 36px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  padding: 4px 12px;
  color: var(--desk-tone);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-period button[aria-pressed="true"] {
  background: var(--desk-tone);
  color: var(--desk-panel);
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-period button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-group h3 {
  margin: 0;
  padding: 8px 0 3px;
  color: var(--desk-tone);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-group + .wp-group {
  margin-block-start: 5px;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row {
  grid-template-columns: minmax(95px, 0.26fr) minmax(0, 1fr) auto;
  min-height: 45px;
  padding-block: 6px;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row-main {display: grid; min-width: 0}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row-main .wp-broker,
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-time small {
  display: block;
  color: var(--desk-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-time {white-space: nowrap; font-size: 15px}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-kind {
  justify-self: end;
  font-size: 12px;
  font-weight: 650;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-status {padding-block: 4px 10px}
.weekly-portal .wp-footer {justify-content: space-between; gap: 8px; padding-top: 7px}
.weekly-portal .wp-recruit-link, :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-date-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--desk-tone);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#demo-dialog .wp-expanded > .wp-period {margin-bottom: 12px}
@media (min-width: 761px) and (max-height: 800px) {
  #app:has(> .weekly-portal) {padding-top: 15px; padding-bottom: 12px}
  .weekly-portal .wp-heading {margin-bottom: 12px}
  .weekly-portal .wp-metrics {margin-bottom: 10px}
  .weekly-portal .wp-agenda {height: clamp(245px, calc(100vh - 454px), 322px)}
  .weekly-portal .wp-directory {margin-top: 14px}
  .portal-home.weekly-portal .wp-entry {min-height: 58px}
}
@media (max-width: 760px) {
  .weekly-portal .wp-heading {flex-wrap: wrap}
  .weekly-portal .wp-metric-grid > div {display: grid; gap: 2px}
  .weekly-portal .wp-metric-grid dt {font-size: 13px}
  .weekly-portal .wp-agenda {height: 342px}
  .weekly-portal .wp-agenda-head {align-items: flex-start}
  .weekly-portal .wp-agenda-head > div.wp-agenda-controls {column-gap: 6px}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-period button {min-height: 44px; padding-inline: 9px}
}
@media (max-width: 480px) {
  .weekly-portal .wp-agenda-head {display: grid; grid-template-columns: 1fr}
  .weekly-portal .wp-agenda-controls {justify-content: space-between}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row {grid-template-columns: 84px minmax(0, 1fr) auto; gap: 4px}
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-time {font-size: 13px}
  .weekly-portal .wp-date {margin-inline-start: auto}
}

/* The full profile sits in the agenda. Standalone activities retain their compact rows. */
.weekly-portal .wp-agenda .wp-day-heading,
#demo-dialog .wp-expanded .wp-day-heading {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 20px);
  line-height: 1.45;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.weekly-portal .wp-scroll,
#demo-dialog .wp-expanded-list { container-type: inline-size }
.weekly-portal.wp-has-interviews .wp-agenda {
  height: auto;
  align-self: start;
  grid-template-rows: auto minmax(0,auto) auto;
}
.weekly-portal.wp-has-interviews .wp-scroll {
  max-height: clamp(350px, 58vh, 720px);
}
@media (min-width: 1000px) {
  .weekly-portal.wp-has-interviews .wp-columns {
    grid-template-columns: minmax(0, 1fr) clamp(190px, 16vw, 255px);
    column-gap: clamp(17px, 1.7vw, 28px);
    align-items: start;
  }
  .weekly-portal.wp-has-interviews .wp-tools {grid-auto-rows: minmax(54px, auto)}
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin-block: 10px 3px;
}
@container (min-width: 810px) {
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-grid > .wp-row:not(.wp-interview-card) {grid-column: 1 / -1}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row.wp-interview-card {
  --portrait: clamp(58px,7.1cqw,92px);
  display: grid;
  grid-template-columns: max-content var(--portrait) minmax(0,1fr);
  align-items: start;
  align-content: start;
  gap: clamp(8px,1cqw,14px);
  min-width: 0;
  padding: clamp(11px,1.2cqw,18px);
  border: 1px solid var(--desk-line);
  border-radius: 3px;
  background: #fff;
  color: var(--desk-ink);
  line-height: 1.48;
}
@media (hover:hover) {
  :is(.weekly-portal, #demo-dialog .wp-expanded) a.wp-interview-card:hover {
    background: #fff;
    border-color: var(--desk-tone);
    box-shadow: inset 3px 0 var(--desk-tone);
  }
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-when {
  display: grid;
  align-content: start;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-when small,
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-applied,
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-card .wp-broker {
  font-size: 12px;
  color: var(--desk-secondary);
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-when .wp-time {
  font-size: clamp(19px,1.75vw,25px);
  line-height: 1.2;
  color: var(--desk-ink);
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-photo {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--desk-wash);
  color: var(--desk-tone);
  font-size: 24px;
  font-weight: 650;
}
.wp-interview-photo img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:center 28%;
}
.wp-interview-photo img[hidden] {display:none}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-info {display:grid; min-width:0; gap:6px; overflow-wrap:anywhere}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-heading {
  display:flex; justify-content:space-between; align-items:start; gap:6px; flex-wrap:wrap;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-card .wp-title {font-size:clamp(17px,1.35vw,21px);line-height:1.4;color:var(--desk-ink)}
.wp-interview-status {
  display:inline-block; background:var(--desk-wash); color:var(--desk-tone);
  padding:2px 6px; border-radius:2px; font-size:12px; font-weight:650; white-space:nowrap;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) .wp-interview-facts {
  display:flex; flex-wrap:wrap; column-gap:0.8em; row-gap:3px;
}
:is(.weekly-portal, #demo-dialog .wp-expanded) :is(.wp-interview-facts,.wp-interview-phone,.wp-interview-job) {font-size:14px}
.wp-interview-card .wp-fact-key {color:var(--desk-secondary);margin-inline-end:.35em}
.wp-interview-job {white-space:pre-line}
.wp-group .wp-loaded {font-size:12px;color:var(--desk-secondary);margin:6px 0}
dialog#demo-dialog:has(.wp-expanded .wp-interview-card) {width:min(1200px,96vw);max-width:96vw}
#demo-dialog .wp-expanded .wp-day-heading {margin:8px 0}
@container (max-width: 370px) {
  :is(.weekly-portal, #demo-dialog .wp-expanded) .wp-row.wp-interview-card {
    grid-template-columns: 62px minmax(0,1fr);
    gap: 8px 12px;
  }
  .wp-interview-card .wp-interview-when {
    grid-column:1/-1;display:flex;align-items:baseline;gap:8px;
  }
}

/* Keep the workspace links below the agenda within a desktop screen. */
@media (min-width: 1000px) {
  #app:has(> .weekly-portal.wp-has-interviews) {
    padding-block-start: 12px;
  }
  .weekly-portal.wp-has-interviews .wp-heading {
    margin-block-end: 10px;
  }
  .weekly-portal.wp-has-interviews .wp-metrics {
    padding-block: 5px 3px;
    margin-block-end: 10px;
  }
  .weekly-portal.wp-has-interviews .wp-agenda {
    max-height: clamp(368px, 43dvh, 386px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-block: 10px;
  }
  .weekly-portal.wp-has-interviews .wp-agenda-head {
    padding-block-end: 7px;
  }
  .weekly-portal.wp-has-interviews .wp-scroll {
    max-height: none;
  }
  #app .weekly-portal.wp-has-interviews .wp-agenda .wp-interview-grid {
    margin-block-start: 4px;
  }
  #app .weekly-portal.wp-has-interviews .wp-agenda .wp-interview-info {
    gap: 4px;
  }
  #app .weekly-portal.wp-has-interviews .wp-agenda .wp-row:not(.wp-interview-card) {
    padding-block: 2px;
  }
  #app .weekly-portal.wp-has-interviews .wp-agenda .wp-workday-preview h3 {
    padding-block: 4px 1px;
  }
  .weekly-portal.wp-has-interviews .wp-directory {
    margin-block-start: 12px;
  }
  .weekly-portal.wp-has-interviews .wp-directory h2 {
    padding-block-end: 6px;
  }
  .portal-home.weekly-portal.wp-has-interviews .wp-entry {
    min-height: 54px;
    padding-block: 5px;
  }
}
