/* Visual adaptation of the supplied ui.tsx. Business layouts and handlers stay in
   their modules; this file owns shared colors, surfaces and responsive chrome. */
:root {
  --green:#2563eb;
  --muted:#64748b;
  --line:#e2e8f0;
  --bg:#f8fafc;
  color:#1e293b;
  background:var(--bg);
  font-family:Inter,"Segoe UI","Microsoft YaHei",system-ui,sans-serif;
}
.workspace-shell {
  --green:#2563eb; --muted:#64748b; --line:#e2e8f0;
  background:#f8fafc; color:#1e293b; font-size:14px;
}
.workspace-shell .sidebar {
  width:248px; padding:26px 16px 0;
  background:#0f172a; border-right:1px solid #1e293b; color:#cbd5e1;
}
.workspace-shell main { margin-left:248px; background:#f8fafc; }
.workspace-shell .sidebar .brand { color:#fff; font-size:23px; gap:12px; }
.workspace-shell .sidebar .brand img { width:36px; height:36px; border-radius:9px; }
.workspace-shell .sidebar .brand span { color:#94a3b8; font-size:8px; }
.workspace-shell .workspace-label { color:#94a3b8; margin:32px 12px 16px; font-size:11px; }
.workspace-shell .sidebar nav { margin-top:0; }
.workspace-shell .nav { color:#cbd5e1; border-radius:8px; padding:12px; margin-bottom:6px; gap:12px; font-size:14px; }
.workspace-shell .nav svg { width:19px; height:19px; }
.workspace-shell .nav:hover { background:#1e293b; color:#fff; }
.workspace-shell .nav.active { background:#2563eb; color:#fff; font-weight:600; box-shadow:0 3px 12px #02061720; }
.workspace-shell .nav-count { background:#ffffff18; color:#e2e8f0; border-radius:5px; }
.workspace-shell .profile { border-color:#334155; padding:20px 8px; gap:10px; }
.workspace-shell .profile strong { color:#f1f5f9; font-size:13px; }
.workspace-shell .profile small { color:#94a3b8; font-size:11px; }
.workspace-shell .profile .icon-button { color:#cbd5e1; }
.workspace-shell .profile .icon-button:hover { color:#fff; background:#334155; }
.workspace-shell .avatar { color:#2563eb; background:#dbeafe; font-weight:600; }
.workspace-shell .profile .avatar { color:#bfdbfe; background:#1e3a5f; }
.workspace-shell .topbar { height:64px; padding:0 32px; box-shadow:0 1px 3px #0f172a03; }
.workspace-shell .breadcrumb { color:#64748b; font-size:13px; }
.workspace-shell .breadcrumb strong { color:#334155; font-weight:500; }
.workspace-shell .top-actions { gap:8px; }
.workspace-shell .online-label { font-size:11px; color:#64748b; }
.workspace-shell .online-label::before { content:''; display:inline-block; width:6px; height:6px; margin-right:7px; border-radius:50%; background:currentColor; }
.workspace-shell .icon-button { color:#64748b; border-radius:7px; }
.workspace-shell .icon-button:hover { background:#eff6ff; color:#2563eb; }
.workspace-shell .content { padding:30px 32px 40px; max-width:none; }
.workspace-shell .page-heading { margin-bottom:26px; }
.workspace-shell .page-heading h1 { font-size:25px; font-weight:700; color:#0f172a; margin:0 0 8px; letter-spacing:-.4px; }
.workspace-shell .page-heading .muted { font-size:13px; color:#64748b; }
.workspace-shell .primary,.workspace-shell .secondary,
.primary,.secondary { border-radius:7px; font-size:13px; font-weight:500; padding:9px 14px; }
.workspace-shell .primary,.primary { background:#2563eb; border-color:#2563eb; color:#fff; box-shadow:0 1px 2px #0f172a12; }
.workspace-shell .primary:hover,.primary:hover { background:#1d4ed8; border-color:#1d4ed8; }
.workspace-shell .secondary,.secondary { color:#475569; border-color:#cbd5e1; background:#fff; }
.workspace-shell .secondary:hover,.secondary:hover { background:#f8fafc; border-color:#94a3b8; color:#1e293b; }
.workspace-shell .text-button,.text-button { color:#2563eb; }
.workspace-shell .danger,.danger { color:#dc2626; }
.workspace-shell input,.workspace-shell select,.workspace-shell textarea,
input,select,textarea { border-color:#dbe1ea; border-radius:7px; color:#334155; font-size:13px; padding:9px 11px; }
.workspace-shell .search-box input { padding-left:34px; }
.workspace-shell .search-box:not(:has(svg)) input { padding-left:12px; }
.workspace-shell .search-box input::placeholder { font-size:12px; color:#94a3b8; }
.workspace-shell .muted { color:#64748b; }
.workspace-shell .badge { padding:3px 9px; border-radius:20px; font-size:11px; font-weight:500; }
.workspace-shell .badge.todo { color:#64748b; background:#f1f5f9; }
.workspace-shell .badge.doing { color:#1d4ed8; background:#dbeafe; }
.workspace-shell .badge.done { color:#15803d; background:#dcfce7; }
.workspace-shell .priority { font-size:10px; border-radius:5px; padding:3px 7px; }
.workspace-shell .priority.high { color:#b91c1c; background:#fee2e2; }
.workspace-shell .priority.medium { color:#b45309; background:#fef3c7; }
.workspace-shell .priority.urgent { color:#1d4ed8; background:#dbeafe; }
.workspace-shell .priority.low { color:#475569; background:#f1f5f9; }
.workspace-shell .progress { height:6px; border-radius:6px; background:#e2e8f0; }
.workspace-shell .progress progress { background:#e2e8f0; accent-color:#2563eb; }
.workspace-shell .progress progress::-webkit-progress-bar { background:#e2e8f0; }
.workspace-shell .progress progress::-webkit-progress-value { background:#2563eb; }
.workspace-shell .progress progress::-moz-progress-bar { background:#2563eb; }
.workspace-shell .stats { padding:0; gap:18px; background:transparent; border:0; border-radius:0; margin-bottom:32px; }
.workspace-shell .stat {
  position:relative; min-width:0; border:1px solid #e2e8f0; border-radius:12px;
  padding:24px 20px 20px; background:#fff; box-shadow:0 2px 5px #0f172a03;
}
.workspace-shell .stat:last-child { border:1px solid #e2e8f0; }
.workspace-shell .stat>span { display:block; color:#64748b; font-size:12px; padding-left:58px; }
.workspace-shell .stat>span svg { position:absolute; left:20px; top:25px; width:44px; height:44px; padding:11px; border-radius:10px; color:#2563eb; background:#dbeafe; }
.workspace-shell .stat:nth-child(2)>span svg { color:#9333ea; background:#f3e8ff; }
.workspace-shell .stat:nth-child(3)>span svg { color:#16a34a; background:#dcfce7; }
.workspace-shell .stat:nth-child(4)>span svg { color:#ea580c; background:#ffedd5; }
.workspace-shell .stat strong { color:#0f172a; font-size:30px; font-weight:700; margin:6px 0 14px; padding-left:58px; font-variant-numeric:tabular-nums; }
.workspace-shell .stat.accented strong { color:#0f172a; }
.workspace-shell .stat strong small { color:#64748b; font-size:11px; }
.workspace-shell .stat p { font-size:11px; color:#64748b; margin:0; }
.workspace-shell .stat .progress { max-width:none; margin-bottom:10px; }
.workspace-shell .section-heading { margin-bottom:18px; }
.workspace-shell .section-heading h2 { font-size:17px; font-weight:600; color:#1e293b; }
.workspace-shell .section-heading h2 span { background:#e2e8f0; color:#64748b; }

/* Project directory and overview cards share the same information hierarchy. */
.projects-page { font-family:inherit; font-weight:400; }
.projects-layout { border-color:#e2e8f0; border-radius:12px; }
.project-departments { background:#fff; padding:16px 10px; border-color:#e2e8f0; }
.project-departments-heading strong { color:#475569; font-size:12px; font-weight:600; }
.project-department-filter { border-radius:6px; color:#475569; font-size:12px; padding:10px; }
.project-department-filter.active { background:#eff6ff; color:#1d4ed8; font-weight:500; }
.project-department-filter small { color:#64748b; }
.project-filters { gap:22px; }
.project-filter { font-size:13px; color:#64748b; }
.project-filter.active { color:#2563eb; border-bottom-color:#2563eb; font-weight:600; }
.project-filter span,.project-filter.active span { color:#64748b; }
.project-view-switch .active { color:#2563eb; background:#eff6ff; }
.workspace-shell .projects-page .projects-panel-top { min-height:58px; }
.workspace-shell .projects-page .project-search-toolbar { padding:16px; }
.workspace-shell .projects-page .project-list .project-card { min-height:78px; }
.workspace-shell .projects-page .project-card h3 { font-weight:500; color:#1e293b; }
.workspace-shell .projects-page .project-list .project-description { color:#64748b; font-size:11px; }
.project-card-department,.project-card-date,.projects-page .project-card-owner { color:#64748b; }
.workspace-shell .projects-page .project-list-heading { color:#64748b; background:#f8fafc; }
.workspace-shell .project-card:hover { background:#f8fbff; border-color:#93c5fd; }
.workspace-shell .project-cards .project-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.workspace-shell .project-cards .project-card { position:relative; display:flex; flex-direction:column; align-items:stretch; padding:22px; border:1px solid #e2e8f0; border-radius:12px; box-shadow:0 2px 5px #0f172a03; gap:15px; }
.workspace-shell .project-cards .project-card:hover { box-shadow:0 6px 18px #0f172a09; }
.workspace-shell .project-cards .project-card-main { align-items:flex-start; }
.workspace-shell .project-cards .project-symbol { background:#eff6ff; color:#2563eb; width:36px; height:36px; }
.workspace-shell .project-cards .project-card h3 { font-size:15px; color:#0f172a; font-weight:600; line-height:1.6; }
.workspace-shell .project-cards .project-description { -webkit-line-clamp:2; color:#64748b; font-size:12px; margin-top:5px; line-height:1.7; }
.workspace-shell .project-cards .project-card-owner { font-size:12px; }
.workspace-shell .project-cards .project-card-owner small { color:#64748b; }
.workspace-shell .project-cards .project-card-date { font-size:12px; text-align:left; }
.workspace-shell .project-cards .project-field-label { display:inline; margin-right:8px; color:#64748b; }
.workspace-shell .project-cards .project-card-progress { margin-top:auto; width:100%; }
.workspace-shell .project-cards .project-card .progress-label { color:#64748b; font-size:11px; }
.workspace-shell .project-cards .project-card .progress-label strong { color:#2563eb; }
.workspace-shell .project-cards .project-card>.badge { align-self:flex-start; }

/* Keep project title in the established left rail and preserve fullscreen sizing. */
.workspace-shell .sidebar-project { border-color:#334155; margin-top:20px; padding:18px 8px 8px; }
.sidebar-project-label { color:#94a3b8; }
.workspace-shell .sidebar-project h1 { color:#f1f5f9; font-weight:600; }
.sidebar-project-description,.sidebar-project-meta { color:#aab8ce; }
.workspace-shell .sidebar-project>.secondary { background:#1e293b; color:#e2e8f0; border-color:#475569; border-radius:6px; }
.workspace-shell .sidebar-project>.secondary:hover { background:#334155; }
.workspace-shell.project-workspace .content { height:calc(100dvh - 64px); padding:18px 22px 20px; }
.project-workbar { border-color:#e2e8f0; border-radius:10px 10px 0 0; padding-right:14px; gap:10px; }
.workspace-shell.project-workspace .project-workbar .tabs { border-radius:10px 0 0 0; }
.workspace-shell.project-workspace .tab { font-size:12px; font-weight:500; color:#64748b; padding:17px 14px; }
.workspace-shell.project-workspace .tab.active { color:#2563eb; border-bottom-color:#2563eb; }
.project-view-content { border-color:#e2e8f0; border-radius:0 0 10px 10px; background:#f8fafc; }
.workspace-shell.project-workspace .task-toolbar { border:0; border-bottom:1px solid #e2e8f0; padding:16px; }
.workspace-shell.project-workspace .board { border:0; background:#f8fafc; gap:20px; padding:20px; }
.workspace-shell.project-workspace .board-column { background:#f1f5f9; border:1px solid #e2e8f0; border-radius:10px; padding:14px; }
.workspace-shell.project-workspace .column-heading { padding:0 0 12px; border-bottom:1px solid #e2e8f0; }
.workspace-shell.project-workspace .column-heading h2 { color:#475569; font-size:13px; font-weight:600; }
.workspace-shell.project-workspace .column-heading h2 span { color:#64748b; background:#e2e8f0; }
.workspace-shell.project-workspace .task-card { padding:16px; border-radius:9px; border-color:#e2e8f0; box-shadow:0 1px 3px #0f172a05; }
.workspace-shell.project-workspace .task-card:hover { border-color:#93c5fd; box-shadow:0 2px 8px #2563eb09; }
.workspace-shell.project-workspace .task-title { font-size:14px; font-weight:500; color:#1e293b; }
.workspace-shell.project-workspace .task-card>p,.workspace-shell.project-workspace .task-bottom { color:#64748b; font-size:11px; }
.workspace-shell.project-workspace .status-control { color:#64748b; }
.workspace-shell.project-workspace .status-control select { color:#475569; }
.workspace-shell .status-dot.doing { background:#3b82f6; }
.workspace-shell .status-dot.done { background:#22c55e; }
.workspace-shell .table-wrap { border-color:#e2e8f0; border-radius:9px; }
.workspace-shell th { background:#f8fafc; color:#64748b; font-weight:500; }
.workspace-shell td { border-color:#edf2f7; color:#475569; }
.workspace-shell .task-link { color:#1e293b; }
.workspace-shell .task-link:hover { color:#2563eb; }
.workspace-shell .document-card,.workspace-shell .member-card { border-color:#e2e8f0; border-radius:10px; padding:20px; }
.workspace-shell .document-card:hover { border-color:#93c5fd; }
.workspace-shell .document-icon { color:#2563eb; background:#eff6ff; width:36px; height:36px; border-radius:8px; }
.workspace-shell .document-card h3,.workspace-shell .member-card h3 { color:#1e293b; font-size:14px; font-weight:600; }
.workspace-shell .document-card p,.workspace-shell .document-card small,.workspace-shell .member-card p,.workspace-shell .member-card small { color:#64748b; }
.workspace-shell .activity-list { border-color:#e2e8f0; }
.workspace-shell .activity-list p { color:#475569; }
.workspace-shell .activity-list small { color:#64748b; }
.workspace-shell .permission-note { background:#eff6ff; border:1px solid #dbeafe; border-radius:9px; }
.workspace-shell .permission-note h3 { color:#1e40af; }
.workspace-shell .permission-note p { color:#475569; }
.workspace-shell .empty { border-color:#cbd5e1; background:#fff; color:#475569; }
.workspace-shell .empty p { color:#64748b; }
.workspace-shell .empty-icon { color:#3b82f6; background:#eff6ff; }

/* Extend the reference palette to modules that were placeholders in ui.tsx. */
.workspace-shell .organization-panel,.workspace-shell .star-panel,.workspace-shell .knowledge-card { border-color:#e2e8f0; border-radius:12px; box-shadow:0 1px 3px #0f172a03; }
.workspace-shell .department-panel-heading h2,.workspace-shell .talent-panel-heading h2 { color:#1e293b; font-weight:600; }
.workspace-shell .org-company { color:#fff; background:#2563eb; box-shadow:0 3px 9px #2563eb18; }
.workspace-shell .org-company small { color:#dbeafe; }
.workspace-shell .org-node { border-color:#e2e8f0; box-shadow:0 2px 6px #0f172a04; }
.workspace-shell .org-node h3 { color:#1e293b; }
.workspace-shell .org-node small,.workspace-shell .org-node>p { color:#64748b; }
.workspace-shell .org-node.org-selected { border-color:#60a5fa; box-shadow:0 0 0 2px #dbeafe; }
.workspace-shell .org-company::after,.workspace-shell .org-node::before,
.workspace-shell .org-chart li::before,.workspace-shell .org-chart li::after,
.workspace-shell .org-chart li>ul::before { border-color:#cbd5e1; }
.workspace-shell .org-mark,.workspace-shell .org-person { background:#eff6ff; color:#2563eb; }
.workspace-shell .organization-panel .org-scroll { background:#f8fafc; border-color:#e2e8f0; }
.workspace-shell .org-fold { background:#f8fafc; color:#64748b; border-color:#cbd5e1; }
.workspace-shell .department-scope,.workspace-shell .department-select { color:#475569; }
.workspace-shell .department-scope.selected,.workspace-shell .department-row.selected { background:#eff6ff; color:#1d4ed8; }
.workspace-shell .department-scope:hover,.workspace-shell .department-row:hover { background:#f1f5f9; }
.workspace-shell .department-drag-tip,.workspace-shell .chart-help { color:#64748b; }
.workspace-shell .department-drop-active { background:#dbeafe; border-color:#3b82f6; box-shadow:0 0 0 2px #bfdbfe; }
.workspace-shell .people-divider span { background:#cbd5e1; width:5px; height:56px; }
.workspace-shell .people-divider:hover span,.workspace-shell .people-divider:focus-visible span { background:#2563eb; }
.people-divider:focus-visible { outline:2px solid #2563eb; }
.workspace-shell .people-expanded { background:#f8fafc; }
.workspace-shell .talent-table-scroll { border-color:#e2e8f0; }
.workspace-shell .talent-table th { background:#f8fafc; color:#64748b; }
.workspace-shell .talent-table td { color:#475569; }
.workspace-shell .talent-table tbody tr:hover { background:#f8fbff; }
.workspace-shell .talent-name { color:#1e293b; }
.workspace-shell .talent-tag,.workspace-shell .talent-kind { color:#475569; background:#f1f5f9; border-radius:5px; }
.workspace-shell .knowledge-card h3 { color:#1e293b; }
.workspace-shell .knowledge-card p,.workspace-shell .knowledge-card small { color:#64748b; }
.workspace-shell .star-panel { background:#fff; }
.workspace-shell .star-legend { background:#f8fafc; color:#2563eb; border-color:#e2e8f0; }
.workspace-shell .star-legend span:nth-child(2) { color:#9333ea; }
.workspace-shell .star-center circle { fill:#2563eb; stroke:#dbeafe; }
.workspace-shell .star-center .star-center-caption { fill:#64748b; }
.workspace-shell .star-node circle { fill:#eff6ff; stroke:#93c5fd; }
.workspace-shell .star-node.knowledge circle { fill:#faf5ff; stroke:#d8b4fe; }
.workspace-shell .star-node-symbol { fill:#2563eb; }
.workspace-shell .star-node.knowledge .star-node-symbol { fill:#9333ea; }
.workspace-shell .star-node-name,.workspace-shell .star-edge-label { fill:#475569; }
.workspace-shell .star-edge-label { stroke:#fff; }
.workspace-shell .star-line { stroke:#93c5fd; }
.workspace-shell .star-line.knowledge { stroke:#d8b4fe; }
.workspace-shell .star-relation { border-color:#e2e8f0; border-radius:9px; }
.workspace-shell .star-relation p { color:#64748b; }
/* Schedule module owns its calendar and task-card styling in schedule.css. */

/* Authentication uses the reference's centered card, retaining email/password. */
.login-layout { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px; min-height:100dvh; padding:44px 20px; background:#f8fafc; }
.login-story { display:block; min-height:0; background:transparent; color:#0f172a; padding:0; width:min(440px,100%); text-align:center; }
.login-story .brand { flex-direction:column; justify-content:center; font-size:28px; letter-spacing:-.5px; gap:14px; }
.login-story .brand img { width:52px; height:52px; border:0; border-radius:13px; box-shadow:0 5px 15px #2563eb20; }
.login-story>p { color:#64748b; font-size:13px; margin-top:12px; }
.login-story>.eyebrow,.login-story>h1,.login-story>.story-steps,.login-story>.story-art,.login-story>small { display:none; }
.login-panel { width:min(440px,100%); padding:32px; background:#fff; border:1px solid #e2e8f0; border-radius:14px; box-shadow:0 8px 30px #0f172a06; }
.login-form-wrap { max-width:none; }
.login-panel .eyebrow { color:#2563eb; font-size:10px; }
.login-panel h2 { color:#0f172a; font-size:22px; margin:7px 0; }
.login-panel .muted { color:#64748b; margin-bottom:24px; }
.login-panel label { color:#475569; font-size:13px; margin-bottom:18px; }
.login-panel input { color:#1e293b; border-color:#cbd5e1; border-radius:7px; padding:11px 12px; }
.login-panel .primary { margin:0; padding:11px 14px; border-radius:7px; }
.login-help { color:#64748b; font-size:11px; margin-top:20px; }
.login-panel>small { position:static; margin-top:24px; color:#94a3b8; }

/* Dialogs belong to the same design system, including the existing task drawer. */
#modal { --green:#2563eb; color:#334155; border-color:#e2e8f0; border-radius:12px; padding:26px; box-shadow:0 24px 80px #0f172a30; }
#modal::backdrop { background:#0f172a66; backdrop-filter:blur(3px); }
#modal .modal-heading h2 { color:#0f172a; font-size:19px; font-weight:600; }
#modal label { color:#475569; }
#modal input,#modal select,#modal textarea { color:#334155; border-color:#cbd5e1; border-radius:7px; font-size:13px; }
#modal .primary { background:#2563eb; border-radius:7px; font-weight:500; }
#modal .secondary { color:#475569; border-radius:7px; border-color:#cbd5e1; }
#modal.task-drawer { border-radius:0; }
#modal .comments article { background:#f8fafc; }
#modal .comments article p,#modal .talent-detail p { color:#475569; }
#toast { background:#0f172a; color:#fff; border-radius:9px; box-shadow:0 5px 20px #0f172a25; }
.workspace-shell :is(button,a,input,select,textarea):focus-visible,
#modal :is(button,a,input,select,textarea):focus-visible,
.login-layout :is(button,a,input,select):focus-visible { outline:2px solid #60a5fa; outline-offset:3px; }

@media(max-width:1250px) {
  .workspace-shell .sidebar { width:216px; padding-left:12px; padding-right:12px; }
  .workspace-shell main { margin-left:216px; }
  .workspace-shell .content { padding:26px 24px 32px; }
  .workspace-shell .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .workspace-shell .project-cards .project-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:950px) {
  .workspace-shell .sidebar { width:188px; padding:22px 10px 0; }
  .workspace-shell main { margin-left:188px; }
  .workspace-shell .sidebar .brand { font-size:21px; gap:9px; }
  .workspace-shell .nav { font-size:12px; padding:11px 10px; gap:9px; }
  .workspace-shell .content { padding:24px 18px; }
  .workspace-shell .topbar { padding:0 18px; }
  .workspace-shell .project-cards .project-grid { grid-template-columns:minmax(0,1fr); }
  .workspace-shell .page-heading h1 { font-size:22px; }
}
@media(max-width:640px) {
  .workspace-shell .sidebar { position:sticky; top:0; width:100%; padding:12px 14px 0; border-right:0; border-bottom:1px solid #334155; }
  .workspace-shell main { margin-left:0; }
  .workspace-shell .sidebar .brand { flex-direction:row; font-size:19px; gap:9px; padding:0; }
  .workspace-shell .sidebar .brand img { width:29px; height:29px; }
  .workspace-shell .sidebar .brand span { color:#94a3b8; }
  .workspace-shell .sidebar nav { margin-top:12px; gap:8px; padding-bottom:8px; }
  .workspace-shell .nav { flex-shrink:0; font-size:11px; padding:9px 10px; margin:0; border:0; border-radius:6px; gap:6px; }
  .workspace-shell .nav.active { background:#2563eb; color:#fff; }
  .workspace-shell .topbar { height:44px; padding:0 12px; }
  .workspace-shell .breadcrumb { font-size:10px; }
  .workspace-shell .online-label { font-size:9px; }
  .workspace-shell .online-label::before { margin-right:4px; width:5px; height:5px; }
  .workspace-shell .content { padding:22px 14px 28px; }
  .workspace-shell .page-heading { margin-bottom:20px; gap:10px; align-items:flex-start; }
  .workspace-shell .page-heading h1 { font-size:21px; }
  .workspace-shell .page-heading .muted { font-size:11px; }
  .workspace-shell .stats { gap:10px; margin-bottom:26px; }
  .workspace-shell .stat { padding:15px 12px; border-radius:10px; }
  .workspace-shell .stat>span { padding-left:0; font-size:10px; padding-right:20px; }
  .workspace-shell .stat>span svg { left:auto; right:10px; top:12px; width:22px; height:22px; padding:4px; border-radius:5px; }
  .workspace-shell .stat strong { padding-left:0; font-size:26px; margin:10px 0; }
  .workspace-shell .stat p { font-size:9px; }
  .workspace-shell .section-heading h2 { font-size:15px; }
  .workspace-shell .project-cards .project-grid { gap:14px; }
  .workspace-shell .project-cards .project-card { padding:18px; }
  .workspace-shell .project-cards .project-card h3 { font-size:14px; }
  .workspace-shell .projects-page .projects-panel-top { padding:0 12px; }
  .workspace-shell .projects-page .project-search-toolbar { padding:12px; }
  .project-filter { font-size:11px; }
  .workspace-shell .project-cards .project-card-owner { grid-column:auto; grid-row:auto; }
  .workspace-shell .sidebar-project { margin:0; padding:8px 0; }
  .workspace-shell .sidebar-project h1 { color:#e2e8f0; }
  .workspace-shell.project-workspace .content { height:calc(100dvh - 197px); padding:10px; }
  .workspace-shell.project-workspace .project-workbar .tab { font-size:11px; padding:12px 10px; }
  .workspace-shell.project-workspace .board { padding:12px; gap:14px; }
  .workspace-shell.project-workspace .task-toolbar { padding:12px; }
  .workspace-shell .primary,.workspace-shell .secondary { font-size:12px; padding:8px 11px; }
  .workspace-shell .directory-heading-actions { flex-wrap:wrap; }
  .login-layout { padding:28px 16px; gap:22px; }
  .login-panel { padding:24px; }
  #modal { padding:20px; }
}

/* Compact shell: page descriptions and global actions live at the lower left. */
.workspace-shell.compact-shell .content{padding:16px 20px 20px}
.workspace-shell.compact-shell .compact-page-actions{display:flex;justify-content:flex-end;align-items:center;padding:0;margin:0 0 12px;min-height:0;gap:8px}
.workspace-shell.compact-shell .directory-page-header{margin:0 0 12px}
.workspace-shell.compact-shell .directory-page-header .compact-page-actions{margin:0}
.workspace-shell.compact-shell .directory-heading-actions{margin:0;width:auto}
.workspace-shell.compact-shell .projects-page .compact-page-actions{padding:0;margin:0 0 12px}
.workspace-shell.compact-shell .sidebar{min-height:0}
.workspace-shell.compact-shell .sidebar>nav{flex-shrink:1;min-height:90px;overflow-y:auto}
.workspace-shell.compact-shell .sidebar-bottom{margin-top:auto;border-top:1px solid #334155;flex-shrink:0;max-height:55dvh;overflow:auto;padding-top:14px;scrollbar-width:thin;scrollbar-color:#475569 #0f172a}
.workspace-shell.compact-shell .sidebar-bottom-toggle{display:none}
.workspace-shell.compact-shell .sidebar-context{padding:0 8px 12px;min-width:0}
.workspace-shell.compact-shell .sidebar-page-copy .eyebrow{display:none}
.workspace-shell.compact-shell .sidebar-context h1{font-size:15px;line-height:1.6;color:#f1f5f9;letter-spacing:0;margin:0 0 6px;font-weight:600;overflow-wrap:anywhere}
.workspace-shell.compact-shell .sidebar-context .muted{font-size:10px;line-height:1.8;color:#94a3b8;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.workspace-shell.compact-shell .sidebar-context .stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0 0;padding:0;border:0}
.workspace-shell.compact-shell .sidebar-context .stat{padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0}
.workspace-shell.compact-shell .sidebar-context .stat::before,.workspace-shell.compact-shell .sidebar-context .stat::after,.workspace-shell.compact-shell .sidebar-context .stat svg,.workspace-shell.compact-shell .sidebar-context .stat p,.workspace-shell.compact-shell .sidebar-context .stat .progress{display:none}
.workspace-shell.compact-shell .sidebar-context .stat>span{font-size:9px;color:#94a3b8;padding:0;white-space:normal}
.workspace-shell.compact-shell .sidebar-context .stat strong{font-size:18px;line-height:1.3;color:#e2e8f0;padding:0;margin:4px 0 0;display:block}
.workspace-shell.compact-shell .sidebar-context .stat strong small{font-size:9px;color:#94a3b8;margin-left:3px}
.workspace-shell.compact-shell .sidebar-context .directory-page-summary{display:flex;gap:5px 10px;flex-wrap:wrap;margin-top:10px;color:#cbd5e1;font-size:10px}
.workspace-shell.compact-shell .sidebar-context .directory-page-summary>span{padding:0;border:0}
.workspace-shell.compact-shell .sidebar-counts{display:grid;gap:6px;margin-top:12px;font-size:10px;color:#94a3b8}
.sidebar-counts>span{display:flex;justify-content:space-between;gap:12px}.sidebar-counts strong{font-weight:500;color:#cbd5e1}
.workspace-shell.compact-shell .sidebar-context .sidebar-project{padding:0;margin:0;border:0;overflow:visible}
.workspace-shell.compact-shell .sidebar-context .sidebar-project h1{font-size:14px;color:#e2e8f0}
.workspace-shell.compact-shell .sidebar-context .sidebar-project-description{font-size:10px;max-height:90px;overflow:auto}
.workspace-shell.compact-shell .sidebar-tools{display:flex;align-items:center;gap:6px;padding:8px;border-top:1px solid #273449}
.workspace-shell.compact-shell .sidebar-tools .online-label{margin-right:auto;color:#94a3b8;font-size:10px;white-space:nowrap}
.workspace-shell.compact-shell .sidebar-tools .icon-button{width:28px;height:28px;color:#cbd5e1;font-size:20px}
.workspace-shell.compact-shell .sidebar-tools .icon-button:hover{background:#1e293b;color:#fff}
.workspace-shell.compact-shell .sidebar-tools svg{width:16px;height:16px}
.workspace-shell.compact-shell .sidebar-bottom .profile{display:flex;margin:0;padding:12px 4px;border-color:#273449;gap:8px}
.workspace-shell.compact-shell .sidebar-bottom .profile>div{flex:1;min-width:0}
.workspace-shell.compact-shell .sidebar-bottom .profile strong{font-size:11px;overflow-wrap:anywhere}
.workspace-shell.compact-shell .sidebar-bottom .profile small{font-size:9px}
.workspace-shell.compact-shell.project-workspace .content{height:100dvh;padding:12px 16px 16px}
.workspace-shell.compact-shell.project-workspace.workspace-fullscreen .content{padding:0}
.workspace-shell.compact-shell .directory-page .people-workspace{height:calc(100dvh - 100px);min-height:480px}
.workspace-shell.compact-shell .directory-page .people-workspace.people-expanded{height:100dvh;min-height:0}
.workspace-shell.compact-shell .schedule-main .week-scroll{max-height:calc(100dvh - 145px)}
.workspace-shell.compact-shell .schedule-main .schedule-timeline{max-height:calc(100dvh - 225px)}
@media(max-width:1100px){.workspace-shell.compact-shell .directory-page .people-workspace{height:auto;min-height:0}.workspace-shell.compact-shell .directory-page .people-workspace.people-expanded{height:100dvh}}
@media(max-width:640px){
 .workspace-shell.compact-shell main{padding-bottom:48px}
 .workspace-shell.compact-shell .content{padding:12px 12px 20px}
 .workspace-shell.compact-shell .sidebar>nav{min-height:0;overflow-y:hidden;flex-shrink:0}
 .workspace-shell.compact-shell .sidebar-bottom{position:fixed;bottom:0;left:0;right:0;margin:0;max-height:65dvh;padding:0 12px;background:#0f172a;border-top:1px solid #334155;box-shadow:0 -2px 10px #0f172a18;z-index:30}
 .workspace-shell.compact-shell .sidebar-bottom-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;padding:12px 4px;color:#e2e8f0;font-size:11px;cursor:pointer}
 .sidebar-bottom-toggle::-webkit-details-marker{display:none}.sidebar-bottom-toggle>span{font-size:9px;color:#94a3b8}
 .workspace-shell.compact-shell .sidebar-context{padding:4px 4px 12px}
 .workspace-shell.compact-shell .sidebar-context .stats{grid-template-columns:repeat(4,minmax(0,1fr))}
 .workspace-shell.compact-shell .sidebar-context .sidebar-project{display:block}
 .workspace-shell.compact-shell .sidebar-context .sidebar-project h1{white-space:normal}
 .workspace-shell.compact-shell .sidebar-context .sidebar-project-label,.workspace-shell.compact-shell .sidebar-context .sidebar-project-description,.workspace-shell.compact-shell .sidebar-context .sidebar-project-meta,.workspace-shell.compact-shell .sidebar-context .sidebar-project>progress{display:block}
 .workspace-shell.compact-shell .sidebar-context .sidebar-project-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));font-size:10px;gap:7px}
 .workspace-shell.compact-shell .sidebar-context .sidebar-project>.secondary{width:auto}
 .workspace-shell.compact-shell .directory-heading-actions{width:100%}
 .workspace-shell.compact-shell .directory-heading-actions .primary,.workspace-shell.compact-shell .directory-heading-actions .secondary{flex:1}
 .workspace-shell.compact-shell .compact-page-actions{margin-bottom:10px}
 .workspace-shell.compact-shell.project-workspace .content{height:calc(100dvh - 150px);min-height:300px;padding:10px}
 .workspace-shell.compact-shell.project-workspace.workspace-fullscreen main{padding-bottom:0}
 .workspace-shell.compact-shell.project-workspace.workspace-fullscreen .content{height:100dvh;padding:0;min-height:0}
 .workspace-shell.compact-shell .schedule-main .week-scroll{max-height:65dvh}
 .workspace-shell.compact-shell .schedule-main .schedule-timeline{max-height:65dvh}
}

/* Keep the navigation handle outside the sidebar so it remains reachable when hidden. */
.workspace-shell>.workspace-sidebar-toggle{position:fixed;left:248px;top:50%;transform:translateY(-50%);z-index:35;width:28px;min-height:104px;padding:9px 5px;border:1px solid #cbd5e1;border-radius:0 8px 8px 0;background:#fff;color:#475569;box-shadow:2px 2px 8px #0f172a18;font-size:12px;line-height:18px;writing-mode:vertical-rl;cursor:pointer}
.workspace-shell>.workspace-sidebar-toggle:hover{background:#eff6ff;color:#2563eb}
.workspace-shell>.workspace-sidebar-toggle:focus-visible{outline:3px solid #60a5fa;outline-offset:2px}
.workspace-shell.compact-shell.sidebar-hidden>.sidebar{display:none}
.workspace-shell.compact-shell.sidebar-hidden>main{margin-left:0;width:100%;padding-bottom:0}
.workspace-shell.compact-shell.sidebar-hidden>main>.content{max-width:none}
.workspace-shell.sidebar-hidden>.workspace-sidebar-toggle{left:0}
.workspace-shell.workspace-fullscreen>.workspace-sidebar-toggle,body[data-workspace-window] .workspace-sidebar-toggle{display:none}
@media(max-width:1250px){.workspace-shell>.workspace-sidebar-toggle{left:216px}}
@media(max-width:950px){.workspace-shell>.workspace-sidebar-toggle{left:188px}}
@media(max-width:640px){
 .workspace-shell>.workspace-sidebar-toggle{left:0;top:45%;min-height:92px;width:24px;font-size:11px}
 .workspace-shell.compact-shell.sidebar-hidden.project-workspace .content{height:100dvh;min-height:0}
}

/* Infrequent navigation stays last and visually secondary. */
.workspace-shell .sidebar .nav.nav-secondary{font-size:12px}
.workspace-shell .sidebar .nav.nav-secondary:not(.active){color:#94a3b8}
.workspace-shell .sidebar .nav.nav-secondary:hover{color:#fff}
.workspace-shell .sidebar .nav.nav-secondary svg{width:16px;height:16px}
@media(max-width:640px){.workspace-shell .sidebar .nav.nav-secondary{font-size:11px}}
.task-home-badge{display:inline-flex;align-items:center;flex:0 0 auto;gap:3px;padding:1px 5px;border:1px solid #c4b5fd;border-radius:4px;background:#ede9fe;color:#6d28d9;font-size:10px;font-weight:500;line-height:16px;white-space:nowrap;vertical-align:middle}
.workspace-shell.project-workspace .task-card.is-home-task{background:#f5f3ff;border-color:#c4b5fd;box-shadow:inset 3px 0 #8b5cf6}
.workspace-shell.project-workspace .task-card.is-home-task:hover{border-color:#8b5cf6}
.workspace-shell.project-workspace .task-tree-table tr.is-home-task>td{background:#f5f3ff}
.workspace-shell.project-workspace .task-tree-table tr.is-home-task>td:first-child{box-shadow:inset 3px 0 #8b5cf6}
.workspace-shell.project-workspace .mind-map-svg .mind-node.is-home-task:not(.is-selected):not(.is-located){background:#f5f3ff;border-color:#c4b5fd!important;border-left-color:#8b5cf6!important}
.mind-map-svg .mind-title .task-home-badge{margin-right:5px;font-size:10px;line-height:16px;text-decoration:none}
.workspace-shell.project-workspace .gantt-label-row.is-home-task:not(.gantt-selected){background:#f5f3ff;box-shadow:inset 3px 0 #8b5cf6}
.project-workspace .gantt-row-bg.is-home-task{fill:#f5f3ff}
.project-workspace .gantt-timeline g.is-home-task:not(.gantt-selected) .gantt-bar,.project-workspace .gantt-timeline g.is-home-task:not(.gantt-selected) .gantt-marker{stroke:#8b5cf6;stroke-width:2}

/* Global history remains reachable when compact pages hide the top bar. */
.workspace-history{position:fixed;left:260px;bottom:12px;z-index:39;display:flex;gap:1px;background:#fff;border:1px solid #dbe3ef;border-radius:8px;box-shadow:0 2px 8px #0f172a12;padding:3px}
.workspace-history button{border:0;background:transparent;color:#475569;padding:6px 9px;font:inherit;font-size:12px;border-radius:5px;cursor:pointer}
.workspace-history button:hover:enabled{background:#eff6ff;color:#2563eb}
.workspace-history button:disabled{opacity:.35;cursor:default}
.workspace-history button:focus-visible{outline:2px solid #2563eb;outline-offset:1px}
@media(max-width:1250px){.workspace-history{left:228px}}
@media(max-width:950px){.workspace-history{left:200px}}
@media(max-width:640px){.workspace-history{left:12px;bottom:54px}}
.sidebar-hidden>.workspace-history,.workspace-fullscreen>.workspace-history,body[data-workspace-window] .workspace-history{left:12px;bottom:12px}
.workspace-control-grip{touch-action:none;user-select:none;cursor:grab!important}
.workspace-control-dragging,.workspace-control-dragging .workspace-control-grip{cursor:grabbing!important}
.workspace-history .workspace-history-grip{padding:6px 4px;color:#94a3b8}

/* Keep navigation usable: secondary information expands in the sidebar flow. */
.workspace-shell.compact-shell .sidebar{padding-top:18px}
.workspace-shell.compact-shell .sidebar .brand{font-size:20px;gap:9px;padding-right:25px;white-space:nowrap}
.workspace-shell.compact-shell .sidebar .brand img{width:30px;height:30px}
.workspace-shell.compact-shell .workspace-label{margin:18px 10px 10px}
.workspace-shell.compact-shell .sidebar>nav{flex:1 1 auto;min-height:120px;scrollbar-width:thin;scrollbar-color:#475569 transparent}
.workspace-shell.compact-shell .sidebar .nav{padding:9px 10px;margin-bottom:3px;gap:9px;font-size:13px}
.workspace-shell.compact-shell .sidebar-bottom{position:static;flex:0 0 auto;max-height:none;overflow:visible;padding:0;margin-top:8px;box-shadow:none}
.workspace-shell.compact-shell .sidebar-info{min-width:0}
.workspace-shell.compact-shell .sidebar-bottom-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 6px;list-style:none;cursor:pointer;font-size:12px;color:#cbd5e1}
.workspace-shell.compact-shell .sidebar-bottom-toggle::-webkit-details-marker{display:none}
.workspace-shell.compact-shell .sidebar-bottom-toggle>span{font-size:12px;color:#cbd5e1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-shell.compact-shell .sidebar-bottom-toggle small{font-size:10px;color:#94a3b8;white-space:nowrap}
.workspace-shell.compact-shell .sidebar-bottom-toggle small::after{content:' ＋'}
.workspace-shell.compact-shell .sidebar-info[open]>.sidebar-bottom-toggle small::after{content:' −'}
.workspace-shell.compact-shell .sidebar-context{max-height:25dvh;overflow:auto;padding:4px 6px 10px;scrollbar-width:thin}
.workspace-shell.compact-shell .sidebar-tools{padding:6px 2px;gap:4px}
.workspace-shell.compact-shell .sidebar-bottom .profile{padding:8px 2px;gap:7px}
.workspace-shell.compact-shell .sidebar-bottom .profile .avatar{width:28px;height:28px;font-size:11px}
.workspace-shell>.workspace-sidebar-toggle{left:210px;top:19px;transform:none;width:26px;min-height:28px;height:28px;padding:0;border:0;border-radius:6px;background:#1e293b;color:#cbd5e1;box-shadow:none;font-size:22px;line-height:28px;writing-mode:horizontal-tb}
.workspace-shell.sidebar-hidden>.workspace-sidebar-toggle{left:8px;top:8px;background:#fff;color:#475569;border:1px solid #cbd5e1;font-size:17px}
.workspace-shell.compact-shell.sidebar-hidden>main{padding-top:40px}
@media(max-width:1250px){.workspace-shell>.workspace-sidebar-toggle{left:178px}}
@media(max-width:950px){.workspace-shell>.workspace-sidebar-toggle{left:150px}.workspace-shell.compact-shell .sidebar .brand{font-size:17px;gap:6px}.workspace-shell.compact-shell .sidebar .brand img{width:26px;height:26px}}
@media(max-width:640px){
 .workspace-shell.compact-shell .sidebar{position:relative;top:auto;padding:10px 12px 0}
 .workspace-shell.compact-shell .sidebar .brand{font-size:19px}
 .workspace-shell.compact-shell .sidebar>nav{min-height:0;flex:0 0 auto;overflow-y:hidden;margin-top:10px}
 .workspace-shell.compact-shell .sidebar .nav{font-size:11px;padding:8px;margin-bottom:0}
 .workspace-shell.compact-shell .sidebar-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;margin-top:0;padding:0;max-height:none}
 .workspace-shell.compact-shell .sidebar-info{grid-column:1/-1}
 .workspace-shell.compact-shell .sidebar-tools{grid-column:2;grid-row:2;border:0;gap:2px}
 .workspace-shell.compact-shell .sidebar-bottom .profile{display:none}
 .workspace-shell.compact-shell .sidebar-bottom-toggle{padding:7px 2px}
 .workspace-shell.compact-shell main{padding-bottom:0}
 .workspace-shell>.workspace-sidebar-toggle{left:auto;right:12px;top:11px;width:28px;min-height:28px;font-size:22px}
 .workspace-shell.sidebar-hidden>.workspace-sidebar-toggle{left:8px;right:auto;top:8px;font-size:17px}
}
.workspace-shell .sidebar-bottom>.workspace-history.history-docked{position:static;display:flex;align-items:center;justify-content:space-between;grid-column:1/-1;gap:4px;margin:0;padding:3px 2px;border:0;border-bottom:1px solid #273449;border-radius:0;background:transparent;box-shadow:none;transform:none;width:auto;min-height:28px;z-index:auto}
.workspace-shell .workspace-history.history-docked button{color:#94a3b8;background:transparent;font-size:11px;padding:3px 6px;min-height:24px}
.workspace-shell .workspace-history.history-docked button:hover{background:#1e293b;color:#fff}
.workspace-shell .workspace-history.history-docked button:disabled{opacity:.35}
@media(max-width:640px){.workspace-shell.compact-shell .sidebar-tools{grid-row:auto}}
.workspace-loading{padding:18px;min-height:420px;color:#334155}
.workspace-loading-heading{margin-bottom:20px}.workspace-loading-heading h1{font-size:20px;margin-bottom:8px}.workspace-loading-heading p{font-size:13px;color:#64748b;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.workspace-loading-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;min-height:360px}
.workspace-loading-layout>aside,.workspace-loading-layout>div{padding:18px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;min-width:0}
.workspace-loading-layout span{display:block;height:12px;border-radius:4px;background:#eef2f6}.workspace-loading-layout>aside span{margin:12px 0 26px}.workspace-loading-layout>aside span:nth-child(even){width:70%}
.workspace-loading-tools{display:flex;gap:18px;margin-bottom:22px}.workspace-loading-tools span:first-child{width:60%;height:32px}.workspace-loading-tools span:last-child{width:20%;height:32px}
.workspace-loading-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px;padding:20px 0;border-top:1px solid #f1f5f9}
.workspace-placeholder-bar{display:block;height:12px;border-radius:4px;background:#eef2f6}
.workspace-loading-stats .workspace-placeholder-bar{height:22px;width:60%;margin-top:20px}.workspace-loading-stats .workspace-placeholder-bar:last-child{height:12px;width:80%}
.startup-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;background:#f7f9fc;color:#334155}.startup-navigation{padding:28px 20px;background:#fff;border-right:1px solid #e2e8f0}.startup-navigation>strong{display:block;font-size:22px;color:#344b3b}.startup-navigation>small{display:block;color:#94a3b8;margin:14px 0}.startup-navigation nav{display:grid;gap:4px}.startup-navigation nav span{padding:11px 12px;font-size:14px}.startup-navigation nav span:first-child{background:#eef4ef;border-radius:6px}.startup-workspace>main{min-width:0;margin-left:0}.startup-workspace>main>header{display:flex;justify-content:space-between;gap:12px;padding:22px;border-bottom:1px solid #e2e8f0;background:#fff;font-size:13px}.startup-workspace>main>header span{color:#64748b}.startup-workspace .workspace-loading{max-width:none}
@media(max-width:640px){.startup-workspace{grid-template-columns:1fr}.startup-navigation{display:none}}
@media(max-width:640px){.workspace-loading{padding:12px}.workspace-loading-layout{grid-template-columns:minmax(0,1fr)}.workspace-loading-layout>aside{display:none}}
