/* Company workspace presentation, shared with the approved personal mint palette.
 * Opt-in scope only. No auth/personal/print selectors, permission display overrides,
 * drawing/map colors, tax-document canvas or data/route changes. */
@media screen {
  #app.workspace-theme {
    --eco-bg: #f4f7f8;
    --eco-ink: #153647;
    --eco-muted: #607581;
    --eco-primary: #078c79;
    /* Small white button labels need 4.5:1; approved mint is retained as accent. */
    --eco-action: #087e6e;
    --eco-soft: #eaf7f0;
    --eco-line: #e0e9ec;
    --line: #e0e9ec;
    --text: #153647;
    --muted: #607581;
    --bg: #f4f7f8;
    color: var(--eco-ink);
    background: var(--eco-bg);
    font-family: Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  }
  #app.workspace-theme .main { background: var(--eco-bg); min-width: 0; }
  #app.workspace-theme .content { padding: 24px 28px calc(24px + var(--native-safe-bottom, env(safe-area-inset-bottom, 0px))); }
  #app.workspace-theme .page { min-width: 0; }
  #app.workspace-theme .page > *,
  #app.workspace-theme .grid > *,
  #app.workspace-theme .page-head > *,
  #app.workspace-theme .form-grid > * { min-width: 0; }
  #app.workspace-theme :is(button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #087e6e; outline-offset: 3px;
  }
  #app.workspace-theme button { touch-action: manipulation; }
  #app.workspace-theme :is(button, input, select, textarea):disabled { cursor: not-allowed; }
  #app.workspace-theme :is(.primary, .ghost, .danger, .smallbtn) {
    border-radius: 11px; min-height: 44px; line-height: 1.4;
  }
  #app.workspace-theme .primary { background: var(--eco-action); color: #fff; }
  #app.workspace-theme .primary:hover { background: #087363; }
  #app.workspace-theme .ghost { background: #fff; color: #244b59; border-color: #cddfe2; }
  #app.workspace-theme .smallbtn { color: #244b59; border-color: #d7e4e6; }
  /* Keep warning/destructive colors meaningful rather than painting them mint. */
  #app.workspace-theme .danger { background: #c33434; color: #fff; }
  #app.workspace-theme .card:not(.important-notice-dashboard-card) {
    border-color: var(--eco-line); border-radius: 18px;
    box-shadow: 0 4px 16px #173a4b05;
  }
  #app.workspace-theme .card > h3,
  #app.workspace-theme .page-head h2 { color: var(--eco-ink); letter-spacing: -.5px; }
  #app.workspace-theme .page-head { gap: 14px; flex-wrap: wrap; align-items: flex-start; }
  #app.workspace-theme .page-head h2 { font-size: 26px; line-height: 1.35; }
  #app.workspace-theme .page-head p { font-size: 13px; line-height: 1.7; color: var(--eco-muted); }
  #app.workspace-theme .card > h3 { font-size: 18px; border-bottom-color: var(--eco-line); }
  #app.workspace-theme .form { padding: 22px; }
  #app.workspace-theme .form label { color: #385969; font-size: 13px; line-height: 1.6; }
  #app.workspace-theme :is(.form, .filter, .filter-row, .filters, .filter-bar, .page-head, .calendar-form-row)
    :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="file"]) {
    max-width: 100%; min-width: 0; min-height: 46px; padding: 12px;
    border: 1px solid #d6e1e5; border-radius: 10px; background: #fbfdfe;
    color: #1f4150; font-size: 15px; box-shadow: none;
  }
  #app.workspace-theme .form :is(input, textarea)::placeholder { color: #697f89; font-weight: 400; }
  #app.workspace-theme .form textarea { line-height: 1.6; resize: vertical; }
  #app.workspace-theme .form :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--eco-action); }
  #app.workspace-theme .list { padding: 16px; }
  #app.workspace-theme .list-item { border-color: var(--eco-line); border-radius: 14px; padding: 16px; }
  #app.workspace-theme .list-item h4 { color: var(--eco-ink); line-height: 1.5; overflow-wrap: anywhere; }
  #app.workspace-theme .list-item p { color: var(--eco-muted); line-height: 1.6; overflow-wrap: anywhere; }
  #app.workspace-theme .list-actions { flex-wrap: wrap; }
  #app.workspace-theme .table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
  #app.workspace-theme .table-wrap th { background: #f2f7f6; color: #47636f; font-weight: 700; }
  #app.workspace-theme .table-wrap :is(td, th) { border-bottom-color: #e6edef; }
  #app.workspace-theme .table-wrap td { line-height: 1.6; }
  #app.workspace-theme .tabs { background: #edf4f2; border-radius: 12px; }
  #app.workspace-theme .tabs button { min-height: 44px; color: #506b73; }
  #app.workspace-theme .tabs button.active { color: #087363; background: #fff; box-shadow: 0 2px 8px #1536470a; }
  #app.workspace-theme .notice:not([class*="important"]):not([class*="warning"]) {
    border-color: #dfe9ea; background: #f6faf9; color: #486674;
  }

  /* Member cards are not tables: preserve every private-info/assignment field
   * while fitting the card to its column instead of forcing a 900px canvas. */
  #app.workspace-theme #userTable.user-card-list { min-width: 0; width: 100%; }
  #app.workspace-theme .user-card-scroll { min-width: 0; max-width: 100%; scrollbar-gutter: auto; }
  #app.workspace-theme .user-member-card { border-color: var(--eco-line); box-shadow: 0 4px 16px #173a4b05; }
  #app.workspace-theme .user-member-card-head { flex-wrap: wrap; }
  #app.workspace-theme .user-member-identity :is(b, span) { overflow-wrap: anywhere; }
  #app.workspace-theme .user-member-identity b { color: var(--eco-ink); }
  #app.workspace-theme .user-member-identity span { color: var(--eco-muted); }
  #app.workspace-theme .user-member-info-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #app.workspace-theme .user-member-info { background: #f6faf9; }
  #app.workspace-theme .user-member-sites { grid-column: 1 / -1; background: #eef8f3; }
  #app.workspace-theme .user-member-actions { justify-content: flex-start; }

  /* Existing header and site selector retain their controls and sticky behavior. */
  #app.workspace-theme .ecoscore-topbar { background: #fff; border-color: var(--eco-line); box-shadow: none; }
  #app.workspace-theme .header-brand-copy strong { color: var(--eco-ink); }
  #app.workspace-theme .header-brand-copy span { color: var(--eco-muted); }
  #app.workspace-theme :is(.menuBtn, .header-notification-btn) {
    background: #fff; color: #426778; border: 1px solid #e0e9ec; border-radius: 12px;
    box-shadow: none; min-width: 44px; min-height: 44px;
  }
  #app.workspace-theme .current-site-strip { background: #fff; border-color: var(--eco-line); }
  #app.workspace-theme .current-site-strip select { color: var(--eco-ink); }
  #app.workspace-theme .header-site-group-btn { min-height: 36px; }
  #app.workspace-theme .header-site-group-btn.active { color: #087363; background: #eaf7f0; box-shadow: inset 0 0 0 1px #cce4dc; }
  #app.workspace-theme .header-site-group-btn.completed.active { color: #44526a; background: #edf1f5; box-shadow: inset 0 0 0 1px #d2dce3; }
  #app.workspace-theme .notification-panel { border-color: #dce8e8; border-radius: 18px; color: var(--eco-ink); }

  /* All sidebar destinations remain original, including owner/platform menus. */
  #app.workspace-theme #sidebar { background: #fff; color: var(--eco-ink); border-right: 1px solid var(--eco-line); }
  #app.workspace-theme #sidebar .brand { padding: 16px 12px 18px; text-align: left; }
  #app.workspace-theme #sidebar .brand .brand-icon.logo-image-box {
    width: 50px; height: 50px; border-radius: 15px; box-shadow: none;
    margin: 0 0 12px; background: #eaf7f0; border: 1px solid #d8ebe4;
  }
  #app.workspace-theme #sidebar .brand h1 { font-size: 25px; color: var(--eco-ink); }
  #app.workspace-theme #sidebar .brand h1 span { color: var(--eco-action); }
  #app.workspace-theme #sidebar .brand p { color: var(--eco-muted); font-size: 11px; margin-top: 8px; }
  #app.workspace-theme #sidebar .sidebar-by { color: #607581; font-size: 10px; }
  #app.workspace-theme #sidebar .role-box { margin: 0 4px 14px; background: #eaf7f0; border-color: #d6eae1; border-radius: 14px; }
  #app.workspace-theme #sidebar .role-box small { color: #4d716b; }
  #app.workspace-theme #sidebar .role-box strong { color: #087363; font-size: 18px; }
  #app.workspace-theme #sidebar .role-box span { color: #506d69; line-height: 1.6; }
  #app.workspace-theme #sidebar .grouped-nav { gap: 7px; }
  #app.workspace-theme #sidebar .nav button {
    color: #365867; min-height: 44px; border-radius: 11px; line-height: 1.5;
    white-space: normal; overflow-wrap: anywhere;
  }
  /* Specific !important here only counters historical sidebar text declarations;
   * never use it for display/visibility, so role and collapsed states still win. */
  #app.workspace-theme #sidebar .nav .nav-group-title,
  #app.workspace-theme #sidebar .grouped-nav > button:not(.nav-group-title) {
    color: #365867 !important; font-size: 15px !important; font-weight: 750 !important;
  }
  #app.workspace-theme #sidebar .nav .nav-group-title b { color: #6b827d; }
  #app.workspace-theme #sidebar .nav-group-items > button { color: #536d79 !important; font-weight: 500 !important; }
  #app.workspace-theme #sidebar .nav button:hover,
  #app.workspace-theme #sidebar .grouped-nav > button:not(.nav-group-title):hover,
  #app.workspace-theme #sidebar .nav .nav-group-title:hover { background: #f0f7f4 !important; color: #087363 !important; }
  #app.workspace-theme #sidebar .nav button.active,
  #app.workspace-theme #sidebar .nav-group-items > button.active,
  #app.workspace-theme #sidebar .grouped-nav > button:not(.nav-group-title).active {
    background: #eaf7f0 !important; color: #087363 !important; font-weight: 800 !important;
    box-shadow: inset 3px 0 #078c79;
  }
  #app.workspace-theme #sidebar .platform-nav-group { background: #f1f9f6; border-color: #cde7de; }
  #app.workspace-theme #sidebar .sitebox { background: #f7faf9; border-color: #e0e9e6; padding: 14px; border-radius: 14px; }
  #app.workspace-theme #sidebar .sitebox small { color: #607581; }
  #app.workspace-theme #sidebar .sitebox strong { color: #244b59; overflow-wrap: anywhere; }
  #app.workspace-theme #sidebar .sitebox-head span { background: #eaf2ef; color: #4e6b64; }
  #app.workspace-theme #sidebar .sitebox-current { border-color: #dce8e4; }
  #app.workspace-theme #sidebar .sitebox .bar { background: #dfebe7; }
  #app.workspace-theme #sidebar .side-site-tab { background: #fff; border-color: #d6e5df; color: #47675f; min-height: 40px; box-shadow: none; }
  #app.workspace-theme #sidebar .side-site-tab.active { background: var(--eco-action); border-color: var(--eco-action); color: #fff; }
  #app.workspace-theme #sidebar .side-site-tab-completed.active { background: #59667c; border-color: #59667c; }
  #app.workspace-theme #sidebar .sidebar-account { background: #fff; border-top-color: #e0e9ec; }
  #app.workspace-theme #sidebar .sidebar-user small,
  #app.workspace-theme #sidebar .sidebar-user span { color: #607581; }
  #app.workspace-theme #sidebar .sidebar-user strong { color: var(--eco-ink); white-space: normal; overflow-wrap: anywhere; }
  #app.workspace-theme #sidebar :is(.sidebar-settings, .sidebar-documents, .sidebar-personal-workspace) {
    min-height: 44px; padding: 12px; border: 1px solid #d9e7e2; background: #f5faf7;
    color: #246458; border-radius: 11px; font-size: 12px; text-align: left; line-height: 1.5;
  }
  #app.workspace-theme #sidebar .sidebar-logout { background: #fff5f4; border-color: #ebd3cf; color: #ad3434; min-height: 44px; font-size: 13px; }

  /* Home: hero and permission-filtered shortcuts, then original operational data. */
  #app.workspace-theme #dashboard > :is(.workspace-home-hero, .workspace-home-shortcuts, .workspace-upcoming-card, #companyCalendarCard, .workspace-weather-card, #workNoticeCard) { margin: 0 0 16px; }
  #app.workspace-theme .workspace-home-hero { position: relative; overflow: hidden; padding: 26px 28px; border-radius: 23px; background: linear-gradient(115deg,#e4f5ed,#eaf4f5); border: 1px solid #d9ece5; }
  #app.workspace-theme .workspace-home-hero::after { content: ""; position: absolute; width: 165px; height: 165px; border: 30px solid #d1e8df77; border-radius: 50%; right: -50px; top: 10px; pointer-events: none; }
  #app.workspace-theme .workspace-home-hero > * { position: relative; z-index: 1; }
  #app.workspace-theme .workspace-home-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 1.3px; color: #087363; }
  #app.workspace-theme .workspace-home-context { position: absolute; right: 25px; top: 22px; max-width: 42%; text-align: right; font-size: 12px; font-weight: 700; color: #087363; overflow-wrap: anywhere; }
  #app.workspace-theme .workspace-home-hero h1 { margin: 16px 0 0; color: var(--eco-ink); font-size: 31px; line-height: 1.4; letter-spacing: -1.1px; }
  #app.workspace-theme .workspace-home-hero h1 em { font-style: normal; color: #008677; }
  #app.workspace-theme .workspace-home-hero > p { margin: 12px 0 0; color: #496b73; font-size: 13px; line-height: 1.7; }
  #app.workspace-theme .workspace-home-site { display: flex; align-items: center; gap: 14px; border-top: 1px solid #c8dfd9; margin-top: 21px; padding-top: 15px; font-size: 12px; color: #4c6c73; }
  #app.workspace-theme .workspace-home-site > span { flex: 0 0 auto; }
  #app.workspace-theme .workspace-home-site strong { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; color: #244b59; overflow-wrap: anywhere; }
  #app.workspace-theme .workspace-home-site button { flex: 0 0 auto; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #086f61; font-size: 12px; font-weight: 700; padding: 6px; cursor: pointer; }
  #app.workspace-theme .workspace-home-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  #app.workspace-theme .workspace-home-shortcuts[hidden] { display: none; }
  #app.workspace-theme .workspace-home-shortcut { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--eco-line); border-radius: 18px; background: #fff; padding: 23px; text-align: left; cursor: pointer; box-shadow: 0 4px 14px #173a4b05; }
  #app.workspace-theme .workspace-home-shortcut:hover { border-color: #bdded2; background: #fcfefd; }
  #app.workspace-theme .workspace-shortcut-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: #e6f6ef; color: #128677; margin-bottom: 15px; }
  #app.workspace-theme .workspace-shortcut-icon.secondary { background: #e9f1f7; color: #264a66; }
  #app.workspace-theme .workspace-shortcut-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #app.workspace-theme .workspace-home-shortcut > strong { color: var(--eco-ink); font-size: 20px; letter-spacing: -.7px; line-height: 1.4; }
  #app.workspace-theme .workspace-shortcut-description { color: #607581; font-size: 12px; line-height: 1.7; margin-top: 8px; }
  #app.workspace-theme .workspace-shortcut-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 15px; color: #087363; font-size: 12px; font-weight: 700; line-height: 1.5; }
  #app.workspace-theme .workspace-shortcut-link > span { font-size: 25px; font-weight: 400; }
  #app.workspace-theme .workspace-home-all-menu { display: flex; gap: 10px; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 18px; padding: 13px; border: 1px solid #cddfe2; border-radius: 13px; background: #fff; color: #295d66; font-size: 14px; font-weight: 700; cursor: pointer; }
  #app.workspace-theme .workspace-upcoming-card,
  #app.workspace-theme .workspace-weather-card,
  #app.workspace-theme #companyCalendarCard { padding: 22px; background: #fff; border: 1px solid var(--eco-line); border-radius: 18px; box-shadow: 0 4px 16px #173a4b05; min-width: 0; }
  #app.workspace-theme .workspace-upcoming-card .calendar-schedule-head,
  #app.workspace-theme .workspace-weather-card .site-weather-head,
  #app.workspace-theme .dayoff-schedule-head { align-items: flex-start; gap: 12px; }
  #app.workspace-theme :is(.calendar-schedule-head, .dayoff-schedule-head) > div { flex-wrap: wrap; min-width: 0; }
  #app.workspace-theme :is(.calendar-schedule-head, .site-weather-head, .dayoff-schedule-head) b { color: var(--eco-ink); font-size: 18px; line-height: 1.5; letter-spacing: -.4px; }
  #app.workspace-theme :is(.calendar-schedule-head, .site-weather-head, .dayoff-schedule-head) small { color: #607581; font-size: 11px; line-height: 1.6; }
  #app.workspace-theme :is(.calendar-schedule-head, .site-weather-head, .dayoff-schedule-head) button { flex: 0 0 auto; min-height: 44px; border: 0; padding: 6px 3px; background: transparent; color: #087363; font-size: 12px; font-weight: 750; white-space: normal; }
  #app.workspace-theme .calendar-schedule-head { padding-bottom: 12px; border-color: #e5eeec; }
  #app.workspace-theme .calendar-schedule-list { max-height: 490px; }
  #app.workspace-theme .calendar-schedule-row { border: 0; border-bottom: 1px solid #e5eeec; min-height: 54px; color: var(--eco-ink); text-align: left; border-radius: 0; }
  #app.workspace-theme .calendar-schedule-row .schedule-title { font-size: 14px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
  #app.workspace-theme .calendar-list-section-title { color: #087363; }
  #app.workspace-theme :is(.calendar-list-empty, .dayoff-list-empty, .site-weather-state) { font-size: 13px; line-height: 1.7; color: #607581; background: #f6faf9; border-radius: 11px; }
  #app.workspace-theme .company-calendar-head { flex-wrap: wrap; gap: 12px; }
  #app.workspace-theme .company-calendar-head h3 { padding: 0; border: 0; font-size: 18px; line-height: 1.5; }
  #app.workspace-theme .company-calendar-head p { font-size: 12px; line-height: 1.6; color: #607581; }
  #app.workspace-theme .company-calendar-actions { gap: 8px; }
  #app.workspace-theme .calendar-action-btn { min-height: 44px; padding: 10px 13px; background: var(--eco-action); color: #fff; font-size: 12px; border-radius: 11px; }
  #app.workspace-theme :is(.calendar-action-btn.site, .calendar-action-btn.leave) { background: #eaf7f0; color: #087363; border: 1px solid #d2e9df; }
  #app.workspace-theme .company-calendar-layout { grid-template-columns: minmax(0,1fr); gap: 0; }
  #app.workspace-theme .company-calendar-toolbar { justify-content: center; gap: 8px; margin: 20px 0 14px; }
  #app.workspace-theme .company-calendar-toolbar strong { color: var(--eco-ink); font-size: 19px; }
  #app.workspace-theme :is(.calendar-nav-btn, .calendar-today-btn) { min-height: 44px; min-width: 44px; border: 1px solid #dbe8e3; border-radius: 10px; color: #2b6e62; background: #f2f8f5; }
  #app.workspace-theme :is(.company-calendar-weekdays, .company-calendar-grid) { grid-template-columns: repeat(7,minmax(0,1fr)); border: 0; gap: 5px; }
  #app.workspace-theme .company-calendar-weekdays span { padding: 9px 2px; background: transparent; font-size: 12px; }
  #app.workspace-theme .calendar-day { min-width: 0; min-height: 90px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: #f7fafb; }
  #app.workspace-theme .calendar-day.outside { background: #fbfcfc; color: #7b8a93; }
  #app.workspace-theme .calendar-day.today { border-color: #9ad3c4; background: #edf8f2; box-shadow: none; }
  #app.workspace-theme .calendar-day.today .calendar-day-number { background: var(--eco-action); color: #fff; }
  #app.workspace-theme .company-calendar-legend { flex-wrap: wrap; color: #607581; gap: 10px; }
  #app.workspace-theme .dayoff-schedule-section { margin-top: 20px; padding: 18px 0 0; border: 0; border-top: 1px solid #e0ebe7; border-radius: 0; }
  #app.workspace-theme .dayoff-schedule-card { border-color: #e0e9ec; background: #f8fbfa; border-radius: 12px; }
  #app.workspace-theme .calendar-guide { color: #607581; font-size: 11px; line-height: 1.8; margin-top: 16px; }
  #app.workspace-theme .site-weather-head small { white-space: normal; overflow-wrap: anywhere; max-width: none; }
  #app.workspace-theme .site-weather-list { gap: 7px; }
  #app.workspace-theme .site-weather-day { border-color: #e3ece9; border-radius: 11px; background: #f8fbfa; min-height: 49px; }
  #app.workspace-theme .site-weather-day.caution { background: #fff8eb; border-color: #ead7b4; }
  #app.workspace-theme .site-weather-guide { color: #607581; line-height: 1.7; font-size: 11px; margin: 13px 0 0; }
  #app.workspace-theme #dashboard .stats { gap: 14px; }
  #app.workspace-theme .stat h3 { color: #126756; }
  #app.workspace-theme #workerPersistentNav { border-color: #e0e9ec; background: #fffffff5; box-shadow: 0 -4px 16px #19355206; }
  #app.workspace-theme #workerPersistentNav button { color: #607581; }
  #app.workspace-theme #workerPersistentNav button.active { color: #087363; background: #eaf7f0; }
  #app.workspace-theme #workerWorkSections button.active { background: #eaf7f0; border-color: #acd8c9; color: #087363; }

  /* Company-owned modal shells only: member invite/auth/personal dialogs stay
   * untouched, as do document preview/print surfaces and colored technical maps. */
  body.company-workspace-theme :is(.calendar-modal-panel, .site-household-modal-panel,
    .site-workforce-modal-panel, .external-worker-modal-panel, .worker-document-modal-panel,
    .da-map-settings, .da-report-logo-dialog, .document-seal-generator-card) {
    color: #153647; background: #fff; border-color: #e0e9ec; border-radius: 20px;
    box-shadow: 0 18px 60px #15364726;
  }
  body.company-workspace-theme #calendarModal :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]) {
    min-width: 0; min-height: 46px; border: 1px solid #d6e1e5; border-radius: 10px;
    background: #fbfdfe; color: #1f4150; font-size: 15px;
  }
  body.company-workspace-theme #calendarModal .calendar-save-btn { min-height: 44px; background: #087e6e; color: #fff; border-radius: 11px; }
  body.company-workspace-theme :is(#calendarModal, #photoLedgerModal, #siteWorkforceSheetModal,
    #externalWorkerEditorModal, #myWorkerDocumentsModal, #digitalApartmentMapSettingsModal,
    #digitalApartmentReportLogoModal) :is(button, input, select, textarea):focus-visible { outline: 3px solid #087e6e; outline-offset: 3px; }

  @media (min-width: 1101px) {
    #app.workspace-theme #dashboard { max-width: 1280px; margin-inline: auto; }
    #app.workspace-theme .workspace-home-hero h1 br { display: none; }
    #app.workspace-theme .workspace-home-hero h1 em { margin-left: 8px; }
    #app.workspace-theme .workspace-home-shortcut { position: relative; padding-left: 86px; }
    #app.workspace-theme .workspace-shortcut-icon { position: absolute; left: 22px; top: 25px; }
    #app.workspace-theme .workspace-shortcut-link { padding-top: 10px; }
    #app.workspace-theme .company-calendar-head { align-items: center; }
  }
  @media (max-width: 900px) {
    #app.workspace-theme .content { padding: 20px 17px calc(24px + var(--native-safe-bottom, env(safe-area-inset-bottom, 0px))); }
    #app.workspace-theme #sidebar { box-shadow: 12px 0 48px #1536471a; }
    #app.workspace-theme #sidebar .brand { padding-top: max(16px, env(safe-area-inset-top)); }
    #app.workspace-theme .page-head h2 { font-size: 25px; }
    #app.workspace-theme .workspace-home-hero { padding: 24px 22px; }
    #app.workspace-theme .workspace-home-hero h1 { font-size: 28px; }
    #app.workspace-theme .workspace-home-context { top: 22px; right: 20px; }
    #app.workspace-theme .workspace-home-shortcut { padding: 20px 16px; }
    #app.workspace-theme :is(.workspace-upcoming-card, .workspace-weather-card, #companyCalendarCard) { padding: 18px 16px; }
    #app.workspace-theme :is(.calendar-schedule-head, .dayoff-schedule-head) > div { flex-direction: column; align-items: flex-start; gap: 3px; }
    #app.workspace-theme :is(.calendar-schedule-head, .site-weather-head, .dayoff-schedule-head) b { font-size: 17px; }
    #app.workspace-theme .calendar-day { min-height: 65px; padding: 4px 3px; }
    #app.workspace-theme .company-calendar-head { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    #app.workspace-theme .company-calendar-head p { display: block; }
    #app.workspace-theme .company-calendar-actions { align-items: center; }
    #app.workspace-theme .calendar-action-btn { flex: 1 1 auto; min-width: 90px; align-items: center; justify-content: center; }
    #app.workspace-theme .calendar-schedule-row { grid-template-columns: 8px 68px minmax(0,1fr); gap: 3px 7px; padding: 12px 0; }
    #app.workspace-theme .calendar-schedule-row .dot { grid-column: 1; grid-row: 1; }
    #app.workspace-theme .calendar-schedule-row time { grid-column: 2; grid-row: 1; font-size: 11px; }
    #app.workspace-theme .calendar-schedule-row .schedule-time { grid-column: 2; grid-row: 2; white-space: normal; font-size: 10px; }
    #app.workspace-theme .calendar-schedule-row .schedule-kind { grid-column: 3; grid-row: 2; font-size: 11px; }
    #app.workspace-theme .calendar-schedule-row .schedule-title { grid-column: 3; grid-row: 1; font-size: 13px; }
    #app.workspace-theme .dayoff-schedule-head button { max-width: 115px; text-align: right; }
    #app.workspace-theme .dayoff-schedule-list { display: grid; grid-template-columns: 1fr; overflow: visible; }
    #app.workspace-theme .dayoff-schedule-card { flex: none; }
    #app.workspace-theme .site-weather-day { grid-template-columns: 64px minmax(70px,1fr) 65px; gap: 5px; }
    #app.workspace-theme .site-weather-detail { grid-column: 2 / -1; }
    #app.workspace-theme .form { padding: 18px 16px; }
    #app.workspace-theme .form :is(input, select, textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) { font-size: 16px; }
    #app.workspace-theme .list { padding: 12px; }
    #app.workspace-theme .list-item { padding: 14px; }
    #app.workspace-theme .user-member-info-grid { grid-template-columns: minmax(0,1fr); }
    #app.workspace-theme .user-member-card { padding: 16px; }
    #app.workspace-theme .user-member-badges { justify-content: flex-start; }
    #app.workspace-theme .ecoscore-topbar { gap: 10px; }
    #app.workspace-theme .header-brand-block { justify-content: flex-start; }
    #app.workspace-theme .header-brand-copy { overflow: hidden; }
    #app.workspace-theme .header-brand-copy :is(strong, span) { overflow: hidden; text-overflow: ellipsis; }
  }
  @media (max-width: 400px) {
    #app.workspace-theme .workspace-home-shortcut > strong { font-size: 19px; }
    #app.workspace-theme .workspace-home-shortcut { padding: 18px 14px; }
    #app.workspace-theme .workspace-home-hero { padding: 22px 20px; }
    #app.workspace-theme .workspace-home-site { gap: 9px; }
    #app.workspace-theme .workspace-home-site > span { font-size: 11px; }
    #app.workspace-theme .workspace-home-site strong { font-size: 14px; }
    #app.workspace-theme .workspace-home-site button { font-size: 11px; }
    #app.workspace-theme .calendar-action-btn { padding-inline: 8px; font-size: 11px; }
  }
  @media (prefers-reduced-motion: reduce) {
    #app.workspace-theme :is(.sidebar, .nav-group-items, .nav-group-title b) { transition: none; }
  }
}
/* Theme-only additions never appear in exported/printed business documents. */
@media print {
  .workspace-home-hero, .workspace-home-shortcuts, .workspace-home-all-menu { display: none !important; }
}

/* 222 home-only visual refresh. All real controls and authorized data stay in place. */
@media screen {
  #app.workspace-theme #dashboard { --eco-ink:#123e35; --eco-muted:#596b63; --eco-action:#145744; --eco-line:#e2e7df; background:#f7f7ef; border-radius:22px; padding:18px; }
  #app.workspace-theme #dashboard .workspace-home-hero { padding:16px 12px; border:0; border-radius:0; background:transparent; }
  #app.workspace-theme #dashboard .workspace-home-hero::after { content:none; }
  #app.workspace-theme #dashboard .workspace-home-hero h1 { font-size:27px; margin:8px 0; }
  #app.workspace-theme #dashboard .workspace-home-hero h1 br { display:none; }
  #app.workspace-theme #dashboard .workspace-home-hero h1 em:empty { display:none; }
  #app.workspace-theme #dashboard .workspace-home-eyebrow { color:#5b6c63; font-size:12px; letter-spacing:0; }
  #app.workspace-theme #dashboard .workspace-home-context { position:static; text-align:left; max-width:none; margin-top:8px; }
  #app.workspace-theme #dashboard .workspace-home-site { margin-top:12px; padding-top:10px; }
  #app.workspace-theme #dashboard .workspace-home-approvals { display:flex; flex-wrap:wrap; gap:12px; align-items:center; background:white; border:1px solid var(--eco-line); border-radius:18px; padding:14px 18px; margin-bottom:16px; }
  #app.workspace-theme #dashboard .workspace-home-approvals[hidden] { display:none; }
  #app.workspace-theme #dashboard .workspace-home-approvals > div { display:flex; flex-wrap:wrap; gap:8px; margin-left:auto; }
  #app.workspace-theme #dashboard .workspace-home-approvals .workspace-home-shortcut { min-height:44px; padding:8px 12px; border-radius:10px; box-shadow:none; }
  #app.workspace-theme #dashboard .workspace-home-approvals .workspace-home-shortcut > strong { font-size:13px; }
  #app.workspace-theme #dashboard .workspace-home-approvals :is(.workspace-shortcut-description,.workspace-shortcut-icon,.workspace-shortcut-link) { display:none; }
  #app.workspace-theme #dashboard .workspace-calendar-view { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:8px 0 10px; }
  #app.workspace-theme #dashboard .workspace-calendar-view button { min-height:44px; min-width:44px; padding:8px 12px; border:1px solid #cddbd1; border-radius:10px; background:#fff; color:#145744; }
  #app.workspace-theme #dashboard .workspace-calendar-view button[aria-pressed="true"] { background:#145744; color:#fff; }
  #app.workspace-theme #dashboard .workspace-calendar-view span { color:#596b63; font-size:11px; overflow-wrap:anywhere; flex:1; }
  #app.workspace-theme #dashboard .workspace-calendar-view [hidden],
  #app.workspace-theme #dashboard .calendar-day[hidden] { display:none; }
  #app.workspace-theme #dashboard [data-home-calendar-mode="week"] .calendar-day { min-height:76px; }
  #app.workspace-theme #dashboard .workspace-upcoming-card { margin:18px 0 0; padding:16px 0 0; border:0; border-top:1px solid var(--eco-line); box-shadow:none; }
  #app.workspace-theme #dashboard .workspace-home-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #app.workspace-theme #dashboard .workspace-home-shortcut { min-height:100px; padding:16px; }
  #app.workspace-theme #dashboard .workspace-shortcut-icon { position:static; width:32px; height:32px; margin-bottom:8px; }
  #app.workspace-theme #dashboard .workspace-home-shortcut > strong { font-size:16px; overflow-wrap:anywhere; }
  #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-shortcuts { margin-top:0; }
  #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-shortcut[data-workspace-target="photos"] { grid-column:1/-1; background:#145744; color:#fff; flex-direction:row; align-items:center; gap:12px; min-height:64px; }
  #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-shortcut[data-workspace-target="photos"] > strong { color:#fff; }
  #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-shortcut[data-workspace-target="photos"] :is(.workspace-shortcut-description,.workspace-shortcut-link) { display:none; }
  #app.workspace-theme #workerPersistentNav button { min-height:54px; }
  #app.workspace-theme #workerPersistentNav button.active { color:#145744; background:#eef4e9; }
  @media (max-width:600px) {
    #app.workspace-theme #dashboard { padding:10px 0; }
    #app.workspace-theme #dashboard .workspace-home-approvals { padding:12px; }
    #app.workspace-theme #dashboard .workspace-home-approvals > div { margin-left:0; }
    #app.workspace-theme #dashboard .workspace-calendar-view span { flex-basis:calc(100% - 112px); }
    #app.workspace-theme #dashboard .workspace-home-shortcut { padding:13px; }
  }
  @media (min-width:1101px) {
    #app.workspace-theme #dashboard .workspace-home-shortcuts { grid-template-columns:repeat(4,minmax(0,1fr)); }
    #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-shortcut[data-workspace-target="photos"] { grid-column:span 2; }
  }
}
@media screen {
  /* Seven44px date targets plus six5px gaps; scroll the calendar, never the page. */
  #app.workspace-theme #dashboard .company-calendar-main { overflow-x:auto; }
  #app.workspace-theme #dashboard :is(.company-calendar-weekdays,.company-calendar-grid) { min-width:338px; }
  #app.workspace-theme #dashboard .calendar-day { min-width:44px; }
}
/* Fidelity pass: compact original-reference hierarchy, presentation only. */
@media screen {
 #app.workspace-theme .ecoscore-topbar{min-height:58px;padding:6px 14px;gap:8px}
 #app.workspace-theme .header-brand-copy span{display:none}
 #app.workspace-theme .header-brand-copy strong{font-size:19px;letter-spacing:-.5px}
 #app.workspace-theme .ewn-back{min-height:44px;padding:6px;font-size:12px}
 #app.workspace-theme #mainContent>.ewn-switch-area{padding:4px 12px 6px;background:#f6f7ef}
 #app.workspace-theme .ewn-switch-tabs{grid-template-columns:minmax(0,1fr) 44px minmax(90px,.65fr);gap:5px;padding:0;background:transparent;border-radius:10px}
 #app.workspace-theme .ewn-switch-tabs [data-workspace-action="company"]{grid-column:1;grid-row:1}
 #app.workspace-theme .ewn-switch-tabs [data-workspace-action="choose"]{grid-column:2;grid-row:1}
 #app.workspace-theme .ewn-switch-tabs [data-workspace-action="personal"]{grid-column:3;grid-row:1}
 #app.workspace-theme .ewn-switch-tabs :is(.ewn-switch-button,.ewn-choose){min-height:44px;border-radius:9px;padding:6px 8px;font-size:13px}
 #app.workspace-theme .ewn-switch-area .ewn-current{font-size:11px;line-height:1.3;margin:4px 0 0}
 #app.workspace-theme .current-site-strip{padding:3px 12px;min-height:44px;gap:6px;font-size:12px}
 #app.workspace-theme .current-site-strip :is(button,select){min-height:44px}
 #app.workspace-theme .content{padding:8px 12px 90px;background:#f6f7ef}
 #app.workspace-theme #dashboard{padding:0;border-radius:0}
 #app.workspace-theme #dashboard .workspace-home-hero{padding:8px 2px 12px;display:flex;flex-direction:column;gap:3px;margin-bottom:8px}
 #app.workspace-theme #dashboard .workspace-home-hero h1{order:0;font-size:23px;line-height:1.3;margin:0}
 #app.workspace-theme #dashboard .workspace-home-eyebrow{order:1;font-size:12px;line-height:1.4}
 #app.workspace-theme #dashboard .workspace-home-context,
 #app.workspace-theme #dashboard #workspaceHomeDescription{display:none}
 #app.workspace-theme:not([data-workspace-role="worker"]) #dashboard .workspace-home-site{display:none}
 #app.workspace-theme #dashboard .workspace-home-approvals{gap:8px;padding:10px 12px;margin-bottom:10px;flex-wrap:nowrap;min-height:64px}
 #app.workspace-theme #dashboard .workspace-home-approvals>strong{font-size:13px;line-height:1.4;flex:1}
 #app.workspace-theme #dashboard .workspace-home-approvals>div{margin:0;gap:5px;flex-wrap:nowrap}
 #app.workspace-theme #dashboard .workspace-home-approvals .workspace-home-shortcut{padding:6px;min-height:44px}
 #app.workspace-theme #dashboard .workspace-home-approvals .workspace-home-shortcut>strong{font-size:11px}
 #app.workspace-theme #dashboard #companyCalendarCard{padding:12px;margin-bottom:10px}
 #app.workspace-theme #dashboard .company-calendar-head{gap:0;margin-bottom:3px}
 #app.workspace-theme #dashboard .company-calendar-head h3{font-size:16px;margin:0;line-height:1.4}
 #app.workspace-theme #dashboard #calendarCardDescription{display:none}
 #app.workspace-theme #dashboard .company-calendar-toolbar{margin:2px 0;gap:4px}
 #app.workspace-theme #dashboard .company-calendar-toolbar :is(button,strong){font-size:13px}
 #app.workspace-theme #dashboard .workspace-calendar-view{margin:0 0 4px;gap:3px}
 #app.workspace-theme #dashboard .workspace-calendar-view button{font-size:11px;padding:4px 7px}
 #app.workspace-theme #dashboard .workspace-calendar-view span{font-size:10px;flex-basis:auto}
 #app.workspace-theme #dashboard .company-calendar-weekdays span{padding:4px 0;font-size:11px}
 #app.workspace-theme #dashboard [data-home-calendar-mode="week"] .calendar-day{min-height:50px;padding:3px}
 #app.workspace-theme #dashboard [data-home-calendar-mode="week"] .calendar-day-items{display:none}
 #app.workspace-theme #dashboard .company-calendar-legend{margin:5px 0;font-size:10px;gap:6px}
 #app.workspace-theme #dashboard .workspace-upcoming-card{margin:6px 0 0;padding:8px 0 0;border-radius:0}
 #app.workspace-theme #dashboard .calendar-schedule-head b{font-size:13px}
 #app.workspace-theme #dashboard .calendar-schedule-head button{min-height:44px;font-size:11px;padding:5px}
 #app.workspace-theme #dashboard .calendar-schedule-list{max-height:150px;overflow:auto}
 #app.workspace-theme #dashboard .calendar-schedule-row{padding:6px 0}
 #app.workspace-theme #dashboard .workspace-calendar-tools{margin-top:5px;border-top:1px solid #e4e8df}
 #app.workspace-theme #dashboard .workspace-calendar-tools>summary{min-height:44px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#145744;cursor:pointer;list-style:none}
 #app.workspace-theme #dashboard .workspace-calendar-tools>summary::after{content:'⌄';margin-left:7px}
 #app.workspace-theme #dashboard .workspace-calendar-tools[open]>summary::after{content:'⌃'}
 #app.workspace-theme #dashboard .workspace-weather-card{padding:12px;margin-bottom:10px}
 #app.workspace-theme #dashboard .site-weather-head b{font-size:15px}
 #app.workspace-theme #dashboard .site-weather-guide{font-size:10px;margin-top:5px}
 #app.workspace-theme #dashboard .workspace-home-shortcuts{gap:8px;margin-bottom:10px}
 #app.workspace-theme #dashboard .workspace-home-shortcut{padding:10px;min-height:58px;flex-direction:row;align-items:center;gap:8px}
 #app.workspace-theme #dashboard .workspace-home-shortcut>strong{font-size:13px}
 #app.workspace-theme #dashboard .workspace-home-shortcut .workspace-shortcut-icon{width:26px;height:26px;margin:0;flex:0 0 26px}
 #app.workspace-theme #dashboard .workspace-home-shortcuts :is(.workspace-shortcut-description,.workspace-shortcut-link){display:none}
 #app.workspace-theme[data-workspace-role="worker"] #workerHomeProfile{display:none}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-hero{display:flex;background:#fff;border:1px solid var(--eco-line);border-radius:14px;padding:12px;margin-bottom:10px;gap:6px}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-hero h1{font-size:16px}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-eyebrow{display:none}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-site{order:1;margin:0;padding:0;border:0;gap:6px}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-site>span{display:none}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-site strong{font-size:18px}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-hero>[data-workspace-target="photos"]{order:2;display:flex;flex-direction:row;gap:10px;align-items:center;background:#175b3f;border-radius:9px;padding:8px 12px;min-height:48px;margin-top:3px}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-hero>[data-workspace-target="photos"]>strong{color:#fff;font-size:15px}
 #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-hero>[data-workspace-target="photos"] :is(.workspace-shortcut-description,.workspace-shortcut-link){display:none}
 #app.workspace-theme #dashboard .workspace-attendance-card{background:#fff;border:1px solid var(--eco-line);border-radius:14px;padding:12px;margin-bottom:10px}
 #app.workspace-theme #dashboard .workspace-attendance-card[hidden]{display:none}
 #app.workspace-theme #dashboard .workspace-attendance-card h2{font-size:15px;margin:0 0 8px}
 #app.workspace-theme #dashboard .workspace-attendance-card>.workspace-home-shortcut{width:100%;background:#175b3f;border-radius:9px;min-height:48px;justify-content:center;padding:8px}
 #app.workspace-theme #dashboard .workspace-attendance-card>.workspace-home-shortcut>strong{color:#fff;font-size:14px}
 #app.workspace-theme #dashboard .workspace-attendance-card :is(.workspace-shortcut-icon,.workspace-shortcut-description,.workspace-shortcut-link){display:none}
 @media(min-width:1101px){
  #app.workspace-theme #dashboard{max-width:1200px}
  #app.workspace-theme #dashboard .workspace-home-hero{padding:16px 8px}
  #app.workspace-theme #dashboard #companyCalendarCard{padding:20px}
  #app.workspace-theme #dashboard .workspace-weather-card{padding:20px}
 }
}
@media screen {
 #app.workspace-theme .ewn-switch-tabs :is(.ewn-switch-button,.ewn-choose){background:#fff!important;color:#0c4336!important}
 #app.workspace-theme .ewn-switch-tabs .ewn-switch-button[aria-pressed="true"]{background:#0c4336!important;color:#fff!important}
 #app.workspace-theme .ewn-switch-area .ewn-current{color:#446257}
 #app.workspace-theme .header-brand-copy strong{color:#0c4336}
 #app.workspace-theme .ecoscore-topbar .header-brand-block{flex:1;justify-content:center;min-width:0}
 #app.workspace-theme .header-notification-wrap{margin-left:auto}
}
/* Final compact mobile geometry, preserving expandable original controls. */
@media screen {
 #app.workspace-theme #dashboard [data-home-calendar-mode="week"] .company-calendar-toolbar button{display:none}
 #app.workspace-theme #dashboard .workspace-calendar-view{display:flex;flex-wrap:nowrap;gap:4px;justify-content:flex-end}
 #app.workspace-theme #dashboard .workspace-calendar-view button{flex:0 0 auto;min-height:44px;min-width:44px}
 #app.workspace-theme #dashboard .workspace-calendar-view span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 #app.workspace-theme #dashboard .company-calendar-toolbar{justify-content:center;min-height:24px}
 #app.workspace-theme #dashboard [data-home-calendar-mode="week"] .company-calendar-toolbar strong{line-height:24px}
 #app.workspace-theme #dashboard .calendar-schedule-list{max-height:100px}
 #app.workspace-theme #dashboard .workspace-calendar-tools .current-site-strip{padding:4px 0;flex-wrap:wrap}
 @media(max-width:600px){
  #app.workspace-theme .ecoscore-topbar{height:58px;min-height:58px;padding:4px 8px}
  #app.workspace-theme .ecoscore-topbar .menuBtn{width:44px;height:44px;min-width:44px;font-size:23px}
  #app.workspace-theme #mainContent>.ewn-switch-area{padding:3px 8px 5px}
  #app.workspace-theme .content{padding:5px 8px 90px}
  #app.workspace-theme #dashboard .workspace-home-hero{padding:4px 0 6px;gap:2px;margin-bottom:7px}
  #app.workspace-theme #dashboard #companyCalendarCard{padding:8px}
  #app.workspace-theme #dashboard .workspace-home-approvals{padding:8px;min-height:60px}
  #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-hero{padding:10px}
  #app.workspace-theme[data-workspace-role="worker"] #dashboard .workspace-home-site button{min-height:44px}
  #app.workspace-theme #dashboard .workspace-calendar-view button{padding:4px 8px}
 }
}
@media screen {
 #app.workspace-theme #dashboard #calendarCardTitle{display:flex;align-items:center;gap:7px}
 #app.workspace-theme #dashboard .workspace-calendar-heading-icon{width:20px;height:20px;fill:none;stroke:#0c4336;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 20px}
}
@media screen {
 #app.workspace-theme[data-company-context-compact="true"]>.main>.ewn-switch-area>.ewn-current,
 #app.workspace-theme[data-company-context-compact="true"] #mainContent>.ewn-switch-area>.ewn-current{display:none}
 #app.workspace-theme #dashboard .calendar-schedule-head{min-height:24px;line-height:24px;margin-bottom:3px}
 #app.workspace-theme #dashboard .calendar-schedule-head b{line-height:24px}
 #app.workspace-theme #dashboard .calendar-schedule-list{max-height:72px;overflow:auto}
 #app.workspace-theme #dashboard .workspace-calendar-tools[open]>#calendarScheduleMonth{display:block;font-size:11px;margin:5px 0}
 #app.workspace-theme #dashboard .workspace-calendar-tools>button{min-height:44px;margin:6px 0}
}
