/* Workspace refresh. The original business components remain available. */
:root {
  --wine: var(--brand-action);
  --wine2: var(--brand-ink);
  --rose: var(--brand-muted);
  --dusty: var(--brand-muted);
  --blush: var(--brand-soft);
  --text: var(--brand-ink);
  --muted: var(--brand-muted);
  --gray: var(--brand-muted);
  --bg: var(--brand-porcelain);
  --panel: var(--brand-white);
  --line: var(--brand-soft);
  --good: var(--brand-action);
  --warn: var(--brand-gold-ink);
  --bad: var(--brand-muted);
  --shadow: 0 8px 24px rgb(75 11 45 / 0.024);
  --radius: 12px;
}
[hidden] { display: none !important; }
body { min-width: 360px; background: var(--bg); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brand-action); outline-offset: 3px; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select, textarea { color: var(--text); background: var(--brand-white); border-color: var(--line); border-radius: 7px; font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-muted); box-shadow: 0 0 0 3px rgb(75 11 45 / 0.043); }
.btn { border-radius: 7px; border-color: var(--brand-border); background: var(--brand-white); color: var(--brand-ink); box-shadow: none; font-size: 13px; font-weight: 500; padding: 9px 14px; }
.btn:hover { background: var(--brand-soft); border-color: var(--brand-border-strong); }
.btn.primary { border-color: var(--wine); background: var(--wine); color: var(--brand-white); }
.btn.primary:hover { background: var(--wine2); }
.btn.compact { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.sidebar { width: 224px; padding: 29px 16px 18px; border-color: var(--line); background: var(--brand-white); box-shadow: none; }
.sidebar-brand { height: 35px; gap: 8px; }
.sidebar-brand .brand-logo { max-width: 90px; height: 27px; }
.sidebar-brand .office-logo { max-width: 80px; height: 25px; }
.sidebar-title { margin: 20px 9px 25px; font-size: 17px; font-weight: 650; letter-spacing: .5px; }
.sidebar-title > span { display: block; margin-top: 7px; font-size: 9px; font-weight: 500; color: var(--brand-muted); letter-spacing: 1.7px; }
.sidebar-toggle { right: -12px; top: 35px; width: 24px; height: 24px; border-color: var(--line); color: var(--brand-muted); box-shadow: 0 2px 5px rgb(75 11 45 / 0.031); }
.sidebar-workspace { padding-bottom: 16px; margin-bottom: 4px; }
.sidebar-workspace .tabs { display: grid; grid-template-columns: 1fr; gap: 5px; padding: 0; margin: 0; background: none; }
.sidebar-workspace .tab { height: 41px; padding: 9px 12px; border-radius: 7px; text-align: left; font-size: 13px; color: var(--brand-muted); font-weight: 500; }
.sidebar-workspace .tab span { display: inline-block; width: 23px; font-size: 17px; vertical-align: -1px; }
.sidebar-workspace .tab.active { background: var(--brand-soft); color: var(--brand-action); box-shadow: none; font-weight: 650; }
.side-nav { gap: 4px; flex: 1; align-content: start; }
.side-nav-item { min-height: 37px; padding: 8px 10px; grid-template-columns: 16px 1fr auto; border-radius: 7px; font-size: 12px; }
.side-nav-item:hover { background: var(--brand-soft); }
.side-nav-item.active { background: var(--brand-soft); color: var(--brand-action); box-shadow: none; }
.side-nav-item b { background: var(--brand-soft); color: var(--brand-muted); font-size: 10px; border-radius: 5px; padding: 1px 6px; }
.side-category-label { font-size: 12px; }
.side-category-label small { color: var(--brand-muted); font-size: 10px; }
.side-section-label { color: var(--brand-muted); font-size: 10px; letter-spacing: .9px; margin: 18px 10px 7px; }
.side-dot { width: 7px; height: 7px; border-radius: 2px; }
.side-dot.all { background: var(--wine); }
.sidebar-foot { margin-top: 18px; padding: 14px 9px 0; border-top: 1px solid var(--line); color: var(--brand-muted); font-size: 10px; }
.sidebar-foot span { background: var(--brand-muted); }
.ongoing-disclosure { margin: 15px 8px 0; }
.ongoing-disclosure > summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.side-topic-card b { font-size: 11px; }
.side-topic-card small { font-size: 10px; }
.main-shell, .schedule-view-active .main-shell, .schedule-view-active.resource-sidebar-collapsed .main-shell { margin-left: 224px; margin-right: 0; padding: 26px 32px 36px; min-width: 0; }
.topbar { align-items: center; gap: 20px; margin-bottom: 28px; min-height: 64px; }
.page-eyebrow { color: var(--brand-muted); font-size: 10px; letter-spacing: 1.5px; margin-bottom: 11px; }
.page-eyebrow span { margin: 0 9px; color: var(--brand-border-strong); }
.page-title-line { font-size: 22px; font-weight: 650; gap: 9px; letter-spacing: -.5px; }
#workspaceTitleDivider { color: var(--brand-border-strong); font-weight: 300; }
#pageTitle { font-size: 19px; }
.subtitle { font-size: 11px; color: var(--brand-muted); margin-top: 6px; }
.actions { flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.current-user { width: 100%; text-align: right; font-size: 11px; color: var(--brand-muted); margin-bottom: 3px; }
.actions a.primary { background: transparent; color: var(--wine); border-color: var(--brand-border-strong); }
.workspace-overview { padding: 25px 27px 0; border: 1px solid var(--brand-soft); border-radius: 12px; background: linear-gradient(105deg, var(--brand-soft), var(--brand-soft) 70%); margin-bottom: 20px; }
.overview-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.eyebrow { display: block; color: var(--brand-muted); font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.overview-heading h2 { font-size: 21px; font-weight: 500; letter-spacing: .5px; margin: 8px 0 0; }
.overview-date { font-size: 11px; color: var(--brand-muted); border: 1px solid var(--brand-border); border-radius: 20px; padding: 6px 12px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 23px -27px 0; border-top: 1px solid var(--brand-border); }
.kpi { padding: 19px 27px 21px; border: 0; border-radius: 0; background: transparent; box-shadow: none; border-right: 1px solid var(--brand-border); }
.kpi:last-child { border-right: 0; }
.kpi:before { display: none; }
.kpi-label { font-size: 11px; color: var(--brand-muted); }
.kpi-value { font-family: "Avenir Next", -apple-system, sans-serif; color: var(--brand-ink); font-size: 34px; font-weight: 550; line-height: 1.3; margin-top: 5px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.kpi.warn .kpi-value { color: var(--brand-gold-ink); }
.kpi-note { font-size: 10px; color: var(--brand-muted); margin-top: 4px; }
.workspace-attention { margin-bottom: 24px; }
.today-task-module { height: auto; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.today-task-heading { min-width: 94px; }
.today-task-heading b { font-size: 12px; font-weight: 650; }
.today-task-heading span { font-size: 10px; margin-top: 4px; }
.today-task-list { flex: 1; gap: 12px; overflow-x: auto; padding-bottom: 3px; }
.today-task { flex: 1 0 160px; min-width: 160px; max-width: 260px; border-color: var(--brand-soft); border-left: 2px solid var(--brand-muted); border-radius: 6px; }
.today-task > button:first-child { padding: 8px 10px; flex: 1; }
.today-task b { font-size: 11px; font-weight: 600; }
.today-task span { font-size: 10px; color: var(--brand-muted); }
.today-task.overdue { border-left-color: var(--brand-gold-ink); }
.today-task.today { border-left-color: var(--brand-muted); }
.today-remind { background: var(--brand-white); color: var(--brand-muted); border-color: var(--line); font-size: 10px; padding: 0 8px; }
.today-more { font-size: 11px; color: var(--wine); }
.workspace-toolbar { padding: 0; margin: 0; }
.toolbar-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.toolbar-topline h2 { margin: 0; font-size: 16px; font-weight: 650; }
.toolbar-topline h2 span { display: inline-block; vertical-align: 1px; padding: 2px 7px; margin-left: 9px; background: var(--brand-soft); color: var(--brand-muted); border-radius: 5px; font-size: 10px; font-weight: 400; }
.toolbar-topline p { font-size: 11px; color: var(--brand-muted); margin: 5px 0 0; }
#createMount { position: relative; }
.sidebar-create { padding: 0; margin: 0; border: 0; }
.sidebar-create > summary { list-style: none; font-size: 12px; padding: 9px 16px; }
.sidebar-create > summary::-webkit-details-marker { display: none; }
.sidebar-create > summary:before { content: "+"; font-size: 17px; margin-right: 7px; line-height: 1; }
.sidebar-create form { position: absolute; z-index: 30; right: 0; top: 45px; width: min(300px, 80vw); padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-white); box-shadow: 0 12px 40px rgb(75 11 45 / 0.125); display: grid; gap: 12px; }
.toolbar-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.project-search { display: flex; align-items: center; flex: 1; gap: 8px; min-width: 190px; background: var(--brand-white); border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; height: 36px; }
.project-search > span { color: var(--brand-muted); font-size: 22px; }
.project-search input { min-width: 0; width: 100%; outline: 0; box-shadow: none; border: 0; background: transparent; padding: 6px 0; font-size: 12px; }
.project-search:focus-within { outline: 2px solid var(--brand-muted); outline-offset: 2px; }
#filtersMount .filters { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; }
#workspaceFilters .data-field { display: none; }
#workspaceFilters .field { display: flex; gap: 5px; align-items: center; }
#workspaceFilters .field label { margin: 0; font-size: 10px; color: var(--brand-muted); white-space: nowrap; }
#workspaceFilters input, #workspaceFilters select { height: 36px; padding: 5px 8px; font-size: 12px; border: 1px solid var(--line); }
.toolbar-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0 10px; }
.dimension-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.dimension-stats .dimension-title { color: var(--brand-muted); font-size: 10px; }
.dimension-stats span:not(.dimension-title) { display: flex; flex-direction: row-reverse; align-items: center; gap: 5px; background: none; border: 0; padding: 0; color: var(--brand-muted); font-size: 10px; }
.dimension-stats b { color: var(--brand-ink); font-size: 11px; font-weight: 500; }
.timeline-legend { display: flex; gap: 12px; color: var(--brand-muted); font-size: 10px; }
.timeline-legend span { display: inline-flex; align-items: center; gap: 5px; }
.timeline-legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.legend-today { background: var(--brand-muted); }.legend-node { background: var(--brand-border); }
.resource-sidebar { width: 270px; top: 0; bottom: 0; background: var(--brand-white); border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgb(75 11 45 / 0.071); padding: 72px 18px 20px; z-index: 40; }
.resource-sidebar-collapsed .resource-sidebar { display: none; }
.resource-sidebar-toggle { right: 18px; left: auto; top: 22px; color: var(--wine); border-color: var(--line); box-shadow: none; }
.resource-sidebar-title { font-size: 18px; margin-bottom: 14px; }
.toolbox-tabs { background: var(--brand-soft); }
.toolbox-tabs button { color: var(--brand-muted); }
.toolbox-tabs button.active { background: var(--brand-white); color: var(--wine); }
.tool-group { border-color: var(--line); }
.schedule-main { min-width: 0; }
.schedule-horizontal-nav { margin: 0 0 7px; gap: 8px; }
.schedule-horizontal-nav button { color: var(--brand-muted); background: var(--brand-soft); border-color: var(--brand-soft); border-radius: 5px; }
.schedule-top-scroll::-webkit-scrollbar-track { background: var(--brand-soft); }
.schedule-top-scroll::-webkit-scrollbar-thumb { background: var(--brand-border-strong); }
.schedule { max-height: 65vh; overflow: auto; border-radius: 9px; border-color: var(--brand-border); scrollbar-color: var(--brand-border-strong) var(--brand-soft); scrollbar-width: thin; }
.schedule-row { grid-template-columns: 236px 1fr; min-height: 128px; border-color: var(--brand-soft); }
.schedule-item { position: sticky; left: 0; z-index: 3; padding: 14px 16px; border-color: var(--brand-border); box-shadow: 3px 0 8px rgb(75 11 45 / 0.016); }
.schedule-row.head { min-height: 60px; z-index: 6; }
.schedule-row.head .schedule-item { display: flex; align-items: center; font-size: 12px; }
.schedule-row.head .schedule-item, .days { color: var(--brand-muted); background: var(--brand-soft); }
.day, .days { height: 60px; }
.day { border-color: var(--brand-soft); font-size: 12px; }
.day small { color: var(--brand-muted); font-size: 9px; margin-top: 2px; }
.day b { font-weight: 500; }
.day.month-start { box-shadow: inset 1px 0 0 var(--brand-muted); background: var(--brand-soft); }
.month-label { color: var(--brand-muted); font-size: 9px; top: 3px; }
.day.is-today { background: var(--brand-soft); color: var(--brand-action); box-shadow: inset 0 -2px var(--brand-muted); }
.day.is-today small { color: var(--brand-ink); }
.day.is-weekend:not(.is-today) { background: var(--brand-soft); }
.cells { background: none; }
.cell { min-height: 128px; border-color: var(--brand-soft); padding: 14px 4px; }
.cell.today { background: var(--brand-soft); }
.cell[data-date$="-01"] { box-shadow: inset 1px 0 0 var(--brand-border-strong); }
.schedule-title-theme { color: var(--brand-muted); font-size: 10px; font-weight: 500; margin-bottom: 4px; }
.schedule-title-detail { color: var(--brand-ink); font-size: 13px; line-height: 1.6; font-weight: 600; }
.schedule-item-meta { font-size: 10px; color: var(--brand-muted); }
.schedule .chip { border-radius: 4px; font-size: 10px; padding: 3px 5px; }
.schedule .project-people .chip { background: var(--brand-soft); color: var(--brand-muted); border-color: var(--brand-soft); }
.schedule .person-name-link { font-weight: 400; }
.schedule .item-current-status .chip { background: var(--brand-soft); color: var(--brand-muted); border: 0; }
.icon-delete { opacity: .35; }.schedule-item:hover .icon-delete { opacity: 1; }
.workspace-empty { display: grid; justify-items: center; padding: 64px 20px; text-align: center; }
.workspace-empty > span { color: var(--brand-muted); font-size: 32px; }
.workspace-empty h3 { font-size: 15px; font-weight: 500; margin: 12px 0 4px; }
.workspace-empty p { font-size: 12px; color: var(--muted); margin: 0; }
.panel, .kanban-card, .topic-card { border-color: var(--line); border-radius: 10px; box-shadow: none; }
.panel { background: var(--brand-white); }
.panel h2 { color: var(--brand-ink); font-size: 16px; }
.panel p { color: var(--brand-muted); font-size: 12px; }
.detail-backdrop { background: rgb(75 11 45 / 0.333); backdrop-filter: blur(3px); }
.detail-sheet { border-radius: 16px; border: 1px solid var(--brand-soft); box-shadow: 0 28px 90px rgb(75 11 45 / 0.188); }
.detail-header { background: var(--brand-soft); border-color: var(--brand-border); padding: 28px 30px 22px; }
.detail-header h2 { color: var(--brand-ink); font-size: 23px; }
.detail-body { padding: 24px 30px 30px; }
.detail-section { border-color: var(--line); border-radius: 10px; }
.detail-close { border-color: var(--line); color: var(--brand-muted); background: var(--brand-white); }
.annual-task-panel, .annual-load-panel, .annual-team-panel { border-color: var(--line); }
.series-owner-badge { background: var(--brand-soft); color: var(--brand-muted); border-color: var(--brand-border); }
.toast { background: var(--brand-ink); color: var(--brand-white); border: 0; border-radius: 9px; box-shadow: 0 8px 24px rgb(75 11 45 / 0.125); }
.login-gate { grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); padding: 0; background: var(--brand-white); place-items: stretch; overflow: auto; }
.login-story { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 7vw, 110px); background: var(--brand-soft); color: var(--brand-ink); overflow: hidden; }
.login-story:after { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid var(--brand-border); border-radius: 50%; right: -270px; bottom: -270px; box-shadow: 0 0 0 50px rgb(75 11 45 / 0.314), 0 0 0 100px rgb(75 11 45 / 0.125); pointer-events: none; }
.login-story-kicker { letter-spacing: 3px; color: var(--brand-muted); font-size: 10px; }
.login-story h2 { margin: 27px 0 20px; font-size: clamp(34px, 4vw, 58px); line-height: 1.45; font-weight: 500; letter-spacing: 2px; }
.login-story p { font-size: 13px; line-height: 2.1; color: var(--brand-muted); }
.login-timeline { display: flex; align-items: center; margin-top: 50px; gap: 15px; font-size: 10px; color: var(--brand-muted); }
.login-timeline b { margin-left: 7px; color: var(--brand-muted); font-weight: 500; font-size: 11px; }
.login-timeline i { height: 1px; background: var(--brand-border-strong); width: 32px; }
.login-story-foot { position: absolute; bottom: 32px; color: var(--brand-muted); font-size: 10px; letter-spacing: 1px; }
.login-card { align-self: center; justify-self: center; width: min(350px, calc(100% - 64px)); padding: 0; border: 0; box-shadow: none; background: transparent; gap: 22px; }
.login-brand { margin-bottom: 25px; }
.login-brand img { width: 94px; }
.login-brand strong { font-size: 13px; font-weight: 500; }
.login-brand span { font-size: 10px; color: var(--brand-muted); }
.login-welcome .eyebrow { letter-spacing: 2px; }
.login-card h1 { margin: 9px 0 0; font-size: 27px; font-weight: 600; letter-spacing: -.6px; }
.login-card p { margin-top: -8px; font-size: 12px; color: var(--brand-muted); }
.login-card label { font-size: 12px; color: var(--brand-muted); gap: 9px; }
.login-card input { height: 46px; border: 1px solid var(--brand-border); background: var(--brand-white); font-size: 13px; }
.login-card .btn { height: 46px; font-size: 14px; }
.login-error { min-height: 0; margin: -8px 0; font-size: 12px; }
.login-error:empty { display: none; }
.login-help { text-align: center; color: var(--brand-muted); font-size: 10px; }
body[data-auth-state="login"] .app-shell { visibility: hidden; }
body[data-role="viewer"] .login-card { display: grid !important; }
body.sidebar-collapsed .sidebar { width: 64px; padding: 26px 8px 16px; }
body.sidebar-collapsed .main-shell { margin-left: 64px; }
body.sidebar-collapsed .sidebar-workspace { display: block !important; padding-top: 20px; }
body.sidebar-collapsed .sidebar-workspace .tabs { width: 48px; }
body.sidebar-collapsed .sidebar-workspace .tab { font-size: 0; padding: 8px 0; text-align: center; }
body.sidebar-collapsed .sidebar-workspace .tab span { font-size: 18px; }
body.sidebar-collapsed .ongoing-disclosure, body.sidebar-collapsed .side-category-label { display: none; }
body.sidebar-collapsed .side-nav { margin-top: 0; }
body.sidebar-collapsed .side-nav-item { font-size: 0; width: 40px; }
body.sidebar-collapsed .side-nav-item .side-icon { font-size: 16px; }
@media (max-width: 1250px) {
  .main-shell, .schedule-view-active .main-shell { padding: 24px; }
  .page-title-line { font-size: 19px; } #pageTitle { font-size: 17px; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .kpi { padding: 17px 20px; }.kpi-note { max-width: 145px; }
  .toolbar-controls { gap: 8px; } #workspaceFilters .field label { display: none; }
}
@media (max-width: 760px) {
  .main-shell, .schedule-view-active .main-shell, .schedule-view-active.resource-sidebar-collapsed .main-shell { padding: 20px 14px 30px; }
  .sidebar { width: 224px; box-shadow: 10px 0 60px rgb(75 11 45 / 0.133); }
  body:not(.sidebar-collapsed) .main-shell { margin-left: 64px; }
  .topbar { margin-bottom: 19px; } .page-eyebrow { font-size: 8px; }
  .page-title-line { flex-wrap: wrap; font-size: 17px; } #pageTitle { font-size: 16px; }
  .actions { width: 100%; justify-content: flex-start; } .current-user { text-align: left; }
  .workspace-overview { padding: 19px 17px 0; }
  .overview-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .overview-heading h2 { font-size: 18px; }.overview-date { font-size: 10px; }
  .kpis { grid-template-columns: repeat(2, 1fr); margin: 18px -17px 0; }
  .kpi { padding: 16px 17px; }.kpi:nth-child(2) { border-right: 0; }.kpi:nth-child(-n+2) { border-bottom: 1px solid var(--brand-border); }
  .kpi-value { font-size: 28px; }.kpi-note { font-size: 9px; }
  .today-task-module { flex-direction: column; align-items: stretch; gap: 10px; }
  .today-task-heading { flex-direction: row; align-items: center; justify-content: space-between; }
  .today-task-list { width: 100%; }
  .toolbar-topline p { max-width: 160px; font-size: 10px; }.toolbar-topline h2 { font-size: 14px; }
  .toolbar-topline h2 span { margin: 4px 0 0; display: block; width: fit-content; }
  .project-search { flex-basis: 100%; }.toolbar-footer { flex-wrap: wrap; }.timeline-legend { display: none; }
  .schedule-row { grid-template-columns: 162px 1fr; }.schedule-item { padding: 12px 9px; }.schedule-title-detail { font-size: 12px; }
  .schedule-item-meta { flex-wrap: wrap; }.schedule { max-height: 65vh; }
  .record-toolbar, .people-board-toolbar { flex-wrap: wrap; }
  .settings-grid, .annual-plan-layout, .detail-grid, .idea-form { grid-template-columns: 1fr; }
  .detail-sheet { width: calc(100% - 20px); max-height: 94vh; margin: 3vh auto; }
  .detail-header, .detail-body { padding: 22px 16px; }
  .login-gate { grid-template-columns: 1fr; }
  .login-story { display: none; }.login-card { min-height: auto; margin: 55px auto; width: min(350px, calc(100% - 48px)); }
  .resource-sidebar { width: min(280px, calc(100vw - 64px)); }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
