/* Standalone business views mounted by the desktop hash router. */
html.gc-desktop #topbar { width: 100%; }
html.gc-desktop #topbar .top-meta { display: flex; align-items: center; white-space: nowrap; }
.gc-desktop #desktopHero { max-width: 1392px; margin: 24px auto 0; padding-inline: 24px; }
.gc-desktop #desktopHero h1 { color: var(--gc-text); font: var(--gc-page-title-weight) var(--gc-page-title-size) / var(--gc-leading-page-title) var(--gc-font); }
.gc-desktop #view { font-family: var(--gc-font); }
.gc-desktop #view :is(.card,.surface,.an-card,.cr-card) { background: var(--gc-surface); color: var(--gc-text); border-color: var(--gc-border); border-radius: var(--gc-card-radius); }
.gc-desktop #view :is(.card,.surface).gc-kpi--hero { background: var(--gc-surface-hero-kpi); }
.gc-desktop #view :is(.panel,.modal,.drawer,dialog) { border-radius: var(--gc-panel-radius); }
.gc-desktop #view [data-gc-role="control"] { border-radius: var(--gc-control-radius); min-height: var(--gc-control-height); }
.gc-desktop #view [data-gc-role="pill"] { border-radius: var(--gc-pill-radius); }
.gc-desktop #view [data-gc-role="section-title"] { color: var(--gc-text); font-family: var(--gc-font); font-size: max(22px,var(--gc-section-title-size)); font-weight: var(--gc-section-title-weight); }
.gc-desktop #view :is([data-gc-role="kpi-value"],[data-gc-role="hero-value"]) { font-family: var(--gc-font-western-serif); font-weight: var(--gc-kpi-value-weight); font-variant-numeric: tabular-nums; color: var(--gc-text); }
.gc-desktop #view [data-gc-role="kpi-value"] { font-size: var(--gc-kpi-value-size); }
.gc-desktop #view [data-gc-role="hero-value"] { font-size: var(--gc-hero-value-size); font-weight: var(--gc-hero-value-weight); }
.gc-desktop #view :is(.btn.primary,button.primary) { background: var(--gc-graphite); border-color: var(--gc-graphite); color: var(--gc-paper); box-shadow: none; }
.gc-desktop #view table { color: var(--gc-text); border-color: var(--gc-border); font-variant-numeric: tabular-nums; }
.gc-desktop #view [data-gc-role="table-head"] { background: var(--gc-surface-subtle); color: var(--gc-secondary); }
.gc-desktop #view [data-gc-role="table-cell"] { background: var(--gc-surface); }
.gc-desktop #view [data-gc-role="table-row"]:hover > [data-gc-role="table-cell"] { background: var(--gc-state-hover); }
.gc-desktop[data-theme="dark"] #view :is(.empty,.muted,small) { color: var(--gc-secondary); }

@media (max-width: 759px) {
  .gc-desktop #desktopHero { padding-inline: 16px; }
  .gc-desktop #view { min-width: 0; max-width: 100%; }
}

.gc-desktop #bellDrop { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); max-height: 400px; overflow: auto; border: 1px solid var(--gc-border); border-radius: var(--gc-panel-radius); box-shadow: var(--gc-shadow-raised); z-index: var(--gc-layer-popover); }
.gc-desktop #bellDrop .bell-item { display: grid; gap: 4px; width: 100%; min-height: var(--gc-control-height); padding: 8px 12px; border: 0; border-bottom: 1px solid var(--gc-border); background: transparent; color: var(--gc-text); text-align: left; cursor: pointer; }
.gc-desktop #bellDrop .bell-item[data-read="true"], .gc-desktop #bellDrop small { color: var(--gc-muted); }
.gc-desktop #bellDrop .bell-item:focus-visible { outline-offset: -3px; }
.gc-desktop #bellDrop .bell-item:hover { background: var(--gc-state-hover); }
.gc-desktop #bellDrop [data-bell-tasks]:not(:empty) { background: var(--gc-surface); }
.gc-desktop #bellDrop [data-bell-tasks] .bell-item { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.gc-desktop #bellDrop [data-bell-tasks] .bell-item small { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.gc-desktop #bellDrop .bell-task-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; }
.gc-desktop #bellDrop .bell-task-head strong { font-weight: 500; }
.gc-desktop #bellDrop a.bell-item { text-decoration: none; }
.gc-desktop #bellDrop .bell-task-summary { cursor: default; }
.gc-desktop #bellDrop .bell-task-error { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 8px; }
.gc-desktop #bellDrop .bell-task-empty { padding: 4px 12px 8px; color: var(--gc-muted); border-bottom: 1px solid var(--gc-border); }
.gc-desktop #bellDrop .bell-actions { display: flex; justify-content: center; padding: 8px; }
@media (max-width: 759px) {
  .gc-desktop #bellDrop { position: fixed; top: 48px; right: 8px; }
}

html.gc-desktop #topAvatar .t-avatar-fb { background: var(--gc-state-selected); color: var(--gc-ink); }
.gc-desktop #view .dashboard-stat-card { text-align: left; cursor: pointer; }
.gc-desktop #view .dashboard-stat-card .card-value { display: block; }
.gc-desktop #view .dashboard-calendar-segment button { min-height: 32px; border: 0; border-radius: var(--gc-pill-radius); padding: 4px 8px; background: transparent; color: var(--gc-text); cursor: pointer; white-space: nowrap; }
.gc-desktop #view .dashboard-calendar-segment button:hover { background: var(--gc-state-hover); }
.gc-desktop #view .dashboard-calendar-segment button:focus-visible { outline-offset: -2px; }


.gc-desktop #view .cr-task-nav :is(.cr-nav-parent,.cr-nav-child,.cr-nav-direct) { color: var(--gc-text); border-radius: var(--gc-pill-radius); box-shadow: none; }
.gc-desktop #view .cr-task-nav .cr-nav-parent { background: var(--gc-surface-subtle); }
.gc-desktop #view .cr-task-nav :is(.cr-nav-parent,.cr-nav-child,.cr-nav-direct):hover { background: var(--gc-state-hover); }
.gc-desktop #view .cr-task-nav :is(.cr-nav-child,.cr-nav-direct).on { background: var(--gc-state-selected); }
html.gc-desktop #view :is(.btn.primary,button.primary):hover { background: var(--gc-ink); border-color: var(--gc-ink); color: var(--gc-paper); }

.gc-desktop #view {
  --gc-calendar-shift-1: var(--gc-color-gold200);
  --gc-calendar-shift-2: var(--gc-color-gold400);
  --gc-calendar-shift-3: var(--gc-color-gold600);
  --gc-calendar-shift-4: var(--gc-graphite);
}
.gc-desktop #view .dashboard-shift-dot { display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: var(--gc-radius-pill); }
.gc-desktop #view .dashboard-month-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 8px; }
.gc-desktop #view .dashboard-shift-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-block-end: 8px; font-size: 12px; color: var(--gc-muted); }
.gc-desktop #view .dashboard-shift-legend i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 4px; border-radius: var(--gc-radius-xs); }
.gc-desktop #view :is(.dashboard-month-scroll,.dashboard-week-scroll) { overflow: auto; border-radius: var(--gc-card-radius); }
.gc-desktop #view .dashboard-week-scroll { max-height: 560px; }
.gc-desktop #view :is(.dashboard-month-weekdays,.dashboard-month-grid) { display: grid; gap: 6px; grid-template-columns: repeat(7,minmax(112px,1fr)); }
.gc-desktop #view .dashboard-month-weekdays { margin-block-end: 4px; font-size: 11px; color: var(--gc-muted); }
.gc-desktop #view .dashboard-month-day { display: flex; flex-direction: column; gap: 4px; min-height: 118px; min-width: 0; padding: 6px; border: 1px solid var(--gc-border); border-radius: var(--gc-control-radius); text-decoration: none; overflow: hidden; }
.gc-desktop #view .dashboard-month-day[data-calendar-date] { background: var(--gc-surface) !important; color: var(--gc-text) !important; }
.gc-desktop #view .dashboard-month-day.dashboard-month-out { color: var(--gc-muted); border-color: transparent; }
.gc-desktop #view .dashboard-month-day[data-calendar-date]:not([aria-current="date"]):hover { background: var(--gc-state-hover) !important; }
.gc-desktop #view .dashboard-month-day:focus-visible { outline-offset: -3px; }
.gc-desktop #view .dashboard-month-day-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.gc-desktop #view .dashboard-month-number { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: var(--gc-radius-pill); font: 400 15px / 1 var(--gc-font-western-serif); }
.gc-desktop #view .dashboard-month-day[aria-current="date"] .dashboard-month-number { background: linear-gradient(135deg,var(--gc-gold-300),var(--gc-gold-500)); color: var(--gc-foil-control-pill-active); }
.gc-desktop #view .dashboard-month-abnormal { display: inline-flex; align-items: center; gap: 4px; color: var(--gc-color-negative); font-size: 10px; white-space: nowrap; }
.gc-desktop #view :is(.dashboard-month-abnormal,.dashboard-week-abnormal)::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: var(--gc-radius-pill); background: var(--gc-color-negative); }
.gc-desktop #view .dashboard-month-day-details { display: grid; gap: 4px; }
.gc-desktop #view .dashboard-month-shift { display: grid; grid-template-columns: 4px minmax(0,1fr); gap: 4px; font-size: 12px; line-height: 16px; white-space: nowrap; }
.gc-desktop #view .dashboard-month-shift::before { content: ""; background: var(--gc-calendar-shift); border-radius: var(--gc-radius-xs); }
.gc-desktop #view .dashboard-month-shift span { overflow: hidden; text-overflow: ellipsis; }
.gc-desktop #view .dashboard-month-shift b { font-weight: 500; }
.gc-desktop #view .dashboard-month-more { padding-inline-start: 8px; font-size: 11px; color: var(--gc-muted); }

.gc-desktop #view .dashboard-week-table { min-width: 960px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.gc-desktop #view .dashboard-week-table :is(th,td) { min-width: 120px; padding: 8px; text-align: left; vertical-align: top; border-block-end: 1px solid var(--gc-border); border-inline-end: 1px solid var(--gc-border); }
.gc-desktop #view .dashboard-week-table thead th { position: sticky; top: 0; z-index: 3; background: var(--gc-surface-subtle) !important; }
.gc-desktop #view .dashboard-week-table th:first-child { position: sticky; left: 0; z-index: 2; background: var(--gc-surface-subtle); }
.gc-desktop #view .dashboard-week-table thead th:first-child { z-index: 4; }
.gc-desktop #view .dashboard-week-table th a { display: inline-grid; gap: 4px; text-decoration: none; }
.gc-desktop #view .dashboard-week-table th b { display: flex; align-items: center; gap: 4px; font-weight: 500; }
.gc-desktop #view .dashboard-week-table th i { width: 8px; height: 8px; border-radius: var(--gc-radius-pill); }
.gc-desktop #view .dashboard-week-table th small { display: block; font-size: 11px; color: var(--gc-muted); }
.gc-desktop #view .dashboard-week-table [data-calendar-date] { background: var(--gc-surface) !important; color: var(--gc-text) !important; }
.gc-desktop #view .dashboard-week-table [data-calendar-state="today"] { background: var(--gc-state-selected) !important; }
.gc-desktop #view .dashboard-week-table [data-published="true"] { background-image: repeating-linear-gradient(135deg,transparent 0 6px,var(--gc-color-line) 6px 7px) !important; }
.gc-desktop #view .dashboard-week-lane { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 4px; align-items: start; padding-block: 4px; }
.gc-desktop #view .dashboard-week-lane + .dashboard-week-lane { border-block-start: 1px dashed var(--gc-border); }
.gc-desktop #view .dashboard-week-lane > div { display: flex; flex-wrap: wrap; gap: 4px; }
.gc-desktop #view .dashboard-week-role { min-height: 20px; text-align: center; border-radius: var(--gc-radius-xs); background: var(--gc-surface-subtle); color: var(--gc-text); }
.gc-desktop #view .dashboard-week-role[data-role="controller"] { background: var(--gc-graphite); color: var(--gc-paper); }
.gc-desktop #view :is(.dashboard-week-person,.dashboard-week-gap) { display: inline-flex; align-items: center; gap: 4px; min-height: 20px; padding: 0 6px; border: 1px solid var(--gc-border); border-radius: var(--gc-radius-pill); background: var(--gc-surface-subtle-strong); white-space: nowrap; }
.gc-desktop #view .dashboard-week-person.is-candidate { border-color: var(--gc-gold-500); background: transparent; }
.gc-desktop #view .dashboard-week-gap { border-style: dashed; background: transparent; color: var(--gc-muted); }
.gc-desktop #view .dashboard-week-abnormal { display: inline-flex; }
.gc-desktop #view :is(.dashboard-week-more,.dashboard-week-none) { color: var(--gc-muted); }

.gc-desktop .dashboard-detail-dialog.gc-shell-standalone { background: var(--gc-modal-mask); }
.gc-desktop .dashboard-detail-dialog .gc-modal { position: relative; width: min(520px,calc(100vw - 24px)); max-height: 86vh; overflow: auto; border-radius: var(--gc-panel-radius); }
.gc-desktop .dashboard-detail-dialog [data-dialog-close] { position: absolute; top: 12px; right: 12px; }
@media (max-width: 759px) {
  .gc-desktop #view .dashboard-toolbar { flex-wrap: wrap; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] :is(.dashboard-month-weekdays,.dashboard-month-grid) { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-day { align-items: center; justify-content: center; min-height: 44px; padding: 0; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-day[data-shift-day] { background: var(--gc-calendar-day-shift) !important; color: var(--gc-foil-control-pill-active) !important; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-day[data-join-previous] { border-start-start-radius: 0; border-end-start-radius: 0; margin-inline-start: -4px; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-day[data-join-next] { border-start-end-radius: 0; border-end-end-radius: 0; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-day-details { display: none; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-abnormal { position: absolute; top: 4px; right: 4px; font-size: 0; }
  .gc-desktop #view .dashboard-month-scroll[data-personal="true"] .dashboard-month-day { position: relative; }
}
