:root {
  --canvas: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #8e8e93;
  --line: rgba(0, 0, 0, 0.075);
  --line-strong: rgba(0, 0, 0, 0.12);
  --green: #267155;
  --green-bright: #34a476;
  --green-soft: #e8f4ed;
  --blue: #3478f6;
  --blue-soft: #eaf2ff;
  --amber: #a86608;
  --amber-soft: #fff3dd;
  --red: #c3423f;
  --red-soft: #fff0ef;
  --violet: #7255c8;
  --violet-soft: #f1edff;
  --shadow: 0 18px 55px rgba(24, 30, 27, 0.075), 0 2px 8px rgba(24, 30, 27, 0.03);
  --shadow-float: 0 24px 80px rgba(18, 24, 20, 0.16);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --sidebar: 236px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }
.boot-mark, .brand-mark, .hub-brand-mark { display: grid; place-items: center; color: white; background: linear-gradient(145deg, #1d5f47, #42a177); box-shadow: 0 12px 28px rgba(38, 113, 85, .24); font-weight: 760; }
.boot-mark { width: 52px; height: 52px; border-radius: 17px; font-size: 20px; }
.boot p { margin: 0; font-size: 13px; }

/* Hub */
.hub-page { min-height: 100vh; padding: max(26px, env(safe-area-inset-top)) 24px max(36px, env(safe-area-inset-bottom)); background: radial-gradient(circle at 75% 0%, rgba(188, 222, 204, .35), transparent 34%), var(--canvas); }
.hub-shell { width: min(1060px, 100%); margin: 0 auto; }
.hub-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hub-brand { display: flex; align-items: center; gap: 12px; }
.hub-brand-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 15px; }
.hub-brand b, .hub-brand small { display: block; }
.hub-brand b { font-size: 14px; letter-spacing: -.25px; }
.hub-brand small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.hub-profile { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px 5px 5px; background: rgba(255,255,255,.72); backdrop-filter: blur(18px); }
.hub-profile small { color: var(--muted); font-size: 10px; }
.hub-welcome { max-width: 680px; padding: 86px 0 34px; }
.hub-welcome > span, .eyebrow { color: var(--green); font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.hub-welcome h1 { margin: 11px 0 10px; font-size: clamp(38px, 6vw, 66px); line-height: .98; letter-spacing: -3.7px; font-weight: 720; }
.hub-welcome p { max-width: 520px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.app-tile { position: relative; min-height: 285px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.06); border-radius: 28px; padding: 26px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; cursor: pointer; }
.app-tile:hover { transform: translateY(-3px); box-shadow: 0 28px 70px rgba(24, 30, 27, .12); }
.app-tile.project { background: radial-gradient(circle at 95% 5%, #d9efe3 0, transparent 38%), #fff; }
.app-tile.guide { background: radial-gradient(circle at 95% 5%, #e8efff 0, transparent 38%), #fff; }
.tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.tile-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #1f654b, #43a579); box-shadow: 0 14px 30px rgba(38, 113, 85, .22); font-size: 22px; font-weight: 760; }
.guide .tile-icon { background: linear-gradient(145deg, #416fd0, #74a0fa); box-shadow: 0 14px 30px rgba(65, 111, 208, .22); }
.live-chip, .status-chip, .stage-chip, .source-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; white-space: nowrap; }
.live-chip { padding: 7px 10px; color: var(--green); background: rgba(255,255,255,.72); font-size: 10px; font-weight: 700; }
.live-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #32a775; box-shadow: 0 0 0 4px rgba(50,167,117,.12); }
.app-tile h2 { margin: auto 0 8px; font-size: 29px; letter-spacing: -1.2px; }
.app-tile p { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--subtle); font-size: 11px; }
.tile-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(0,0,0,.045); font-size: 17px; transition: transform .2s ease; }
.app-tile:hover .tile-arrow { transform: translateX(3px); }
.hub-footnote { margin: 22px 2px 0; color: var(--subtle); font-size: 10px; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0, #e6f2eb, transparent 38%), var(--canvas); }
.auth-card { width: min(460px, 100%); border: 1px solid var(--line); border-radius: 28px; padding: 34px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); text-align: center; }
.auth-card .boot-mark { margin: 0 auto 20px; }
.auth-card h1 { margin: 0 0 9px; font-size: 28px; letter-spacing: -1px; }
.auth-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-card .secondary-action { margin-top: 20px; }
.identity-card { width: min(620px, 100%); text-align: left; }
.identity-card .boot-mark { margin-left: 0; }
.identity-card > p { margin-top: 8px; }
.identity-search { height: 42px; display: flex; align-items: center; gap: 8px; margin-top: 20px; border: 1px solid var(--line-strong); border-radius: 13px; padding: 0 12px; background: #fff; }
.identity-search span { color: var(--subtle); }
.identity-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.identity-list { max-height: 360px; display: grid; gap: 7px; overflow-y: auto; margin-top: 10px; padding-right: 3px; }
.identity-option { min-height: 58px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: #fff; text-align: left; cursor: pointer; }
.identity-option:hover { border-color: rgba(38,113,85,.3); background: #f8fbf9; }
.identity-option b, .identity-option small { display: block; }
.identity-option b { font-size: 10px; }
.identity-option small { margin-top: 3px; color: var(--subtle); font-size: 8px; }
.identity-option i { color: var(--green); font-size: 16px; font-style: normal; }

/* Workspace shell */
.ws-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 24px 14px 18px; background: rgba(250,250,251,.82); backdrop-filter: saturate(180%) blur(22px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.brand b, .brand small { display: block; }
.brand b { font-size: 13px; letter-spacing: -.25px; }
.brand small { margin-top: 1px; color: var(--subtle); font-size: 9px; }
.nav-caption { margin: 4px 11px 8px; color: #9a9aa0; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.side-nav { display: grid; gap: 3px; }
.nav-button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 11px; padding: 0 11px; color: #66666b; background: transparent; text-align: left; font-size: 11px; font-weight: 630; cursor: pointer; }
.nav-button:hover { color: var(--ink); background: rgba(0,0,0,.035); }
.nav-button.active { color: #1f6048; background: #e8f2ec; }
.nav-symbol { width: 18px; color: #86868b; font-size: 15px; text-align: center; }
.nav-button.active .nav-symbol { color: var(--green); }
.nav-badge { margin-left: auto; min-width: 20px; border-radius: 99px; padding: 3px 6px; color: #77777c; background: rgba(255,255,255,.75); font-size: 8px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.back-hub { width: 100%; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; color: var(--muted); background: rgba(255,255,255,.62); font-size: 10px; cursor: pointer; }
.workspace-profile { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 9px; margin-top: 10px; padding: 7px; }
.workspace-profile b, .workspace-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-profile b { font-size: 10px; }
.workspace-profile small { margin-top: 2px; color: var(--subtle); font-size: 8px; }
.avatar { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; color: #1f6048; background: linear-gradient(145deg, #d9ece1, #f0f7f3); font-size: 9px; font-weight: 780; }
.avatar.small { width: 24px; height: 24px; border-radius: 8px; font-size: 7px; }

.main-area { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 30; height: 78px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 12px 28px; background: rgba(247,247,249,.78); backdrop-filter: saturate(180%) blur(22px); }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 19px; }
.topbar-title { margin-right: auto; }
.topbar-title h1 { margin: 0; font-size: 20px; letter-spacing: -.65px; }
.topbar-title p { margin: 3px 0 0; color: var(--subtle); font-size: 9px; }
.search-field { width: min(250px, 25vw); height: 37px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; padding: 0 11px; background: rgba(255,255,255,.8); }
.search-field span { color: var(--subtle); font-size: 15px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.content { width: min(1480px, 100%); padding: 26px 28px 50px; }
.public-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(52,120,246,.12); padding: 10px 28px; background: #eef5ff; }
.public-banner b, .public-banner small { display: block; }
.public-banner b { color: #315d9d; font-size: 9px; }
.public-banner small { margin-top: 2px; color: #6b7e98; font-size: 8px; }
.primary-action, .secondary-action, .ghost-action, .danger-action { min-height: 36px; border-radius: 11px; padding: 0 14px; font-size: 10px; font-weight: 690; cursor: pointer; }
.primary-action { border: 0; color: #fff; background: var(--green); box-shadow: 0 8px 20px rgba(38,113,85,.17); }
.primary-action:hover { background: #1f644a; }
.secondary-action { border: 1px solid var(--line-strong); color: #3f4642; background: #fff; }
.ghost-action { border: 0; color: var(--green); background: transparent; }
.danger-action { border: 0; color: var(--red); background: var(--red-soft); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Dashboard */
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.welcome-row h2 { margin: 7px 0 5px; font-size: 31px; letter-spacing: -1.35px; }
.welcome-row p { margin: 0; color: var(--muted); font-size: 11px; }
.week-chip { border: 1px solid var(--line); border-radius: 13px; padding: 9px 12px; background: rgba(255,255,255,.8); }
.week-chip small, .week-chip b { display: block; }
.week-chip small { color: var(--subtle); font-size: 8px; }
.week-chip b { margin-top: 3px; color: var(--green); font-size: 10px; }
.signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.signal-card { min-height: 99px; display: grid; grid-template-columns: 11px 1fr; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 17px; background: var(--surface-solid); }
.signal-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 5px var(--green-soft); }
.signal-card.amber .signal-dot { background: #d48a1b; box-shadow: 0 0 0 5px var(--amber-soft); }
.signal-card.red .signal-dot { background: #d35450; box-shadow: 0 0 0 5px var(--red-soft); }
.signal-card.gray .signal-dot { background: #939398; box-shadow: 0 0 0 5px #f0f0f2; }
.signal-card span, .signal-card strong, .signal-card small { display: block; }
.signal-card span { color: var(--muted); font-size: 9px; }
.signal-card strong { margin-top: 2px; font-size: 25px; letter-spacing: -.7px; }
.signal-card small { margin-top: 1px; color: var(--subtle); font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .72fr); gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-solid); }
.focus-panel { min-height: 320px; padding: 21px; background: radial-gradient(circle at 95% 0, #e7f4ec, transparent 34%), #fff; }
.panel-kicker { display: flex; align-items: center; gap: 7px; color: var(--green); font-size: 9px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.focus-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 19px; }
.focus-header small, .focus-header h3 { display: block; }
.focus-header small { color: var(--subtle); font-size: 8px; }
.focus-header h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.65px; }
.goal-text { max-width: 720px; min-height: 54px; margin: 15px 0 18px; color: #46504a; font-size: 13px; line-height: 1.45; }
.progress-row { display: flex; align-items: center; gap: 11px; }
.progress-track { flex: 1; height: 7px; overflow: hidden; border-radius: 99px; background: #e8eae9; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #287457, #53aa82); }
.progress-row b { min-width: 34px; color: var(--green); font-size: 10px; }
.day-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 19px; }
.day-step { min-height: 73px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(255,255,255,.75); }
.day-step b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; color: var(--subtle); background: #f0f0f2; font-size: 8px; }
.day-step.done b { color: white; background: var(--green); }
.day-step.doing { border-color: rgba(38,113,85,.42); box-shadow: inset 0 0 0 1px rgba(38,113,85,.2); }
.day-step p { margin: 9px 0 0; color: var(--muted); font-size: 8px; line-height: 1.35; }
.focus-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px -21px -21px; border-top: 1px solid var(--line); padding: 13px 21px; }
.focus-actions small { color: var(--muted); font-size: 9px; }
.attention-panel { overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; }
.panel-head span { color: var(--subtle); font-size: 8px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.panel-head h3 { margin: 5px 0 0; font-size: 14px; letter-spacing: -.25px; }
.panel-head em { min-width: 23px; border-radius: 99px; padding: 5px 7px; color: var(--muted); background: #f1f1f3; font-size: 8px; font-style: normal; text-align: center; }
.attention-list { padding: 0 8px 8px; }
.attention-item { width: 100%; min-height: 68px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border: 0; border-top: 1px solid var(--line); padding: 8px 10px; background: transparent; text-align: left; cursor: pointer; }
.attention-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--amber); background: var(--amber-soft); font-size: 10px; font-weight: 780; }
.attention-icon.red { color: var(--red); background: var(--red-soft); }
.attention-icon.gray { color: var(--subtle); background: #f0f0f2; }
.attention-item b, .attention-item small { display: block; }
.attention-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.attention-item small { margin-top: 4px; color: var(--subtle); font-size: 8px; line-height: 1.3; }
.attention-item > i { color: #aaaab0; font-size: 16px; font-style: normal; }
.workflow-strip { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 18px; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 17px 19px; background: linear-gradient(105deg, #eef6f1, #fff 55%); }
.workflow-strip h3 { margin: 5px 0 0; font-size: 13px; }
.workflow-steps { display: flex; align-items: center; justify-content: flex-end; gap: 8px; overflow-x: auto; }
.workflow-steps span { white-space: nowrap; color: #606861; font-size: 8px; font-weight: 680; }
.workflow-steps i { margin-left: 8px; color: #a7aaa8; font-style: normal; }

/* Personal work */
.guest-work { min-height: 460px; display: grid; place-content: center; justify-items: center; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 40px; background: radial-gradient(circle at 50% 0, #e6f2eb, transparent 44%), #fff; text-align: center; }
.guest-work h2 { max-width: 560px; margin: 16px 0 8px; font-size: 25px; letter-spacing: -.9px; }
.guest-work p { max-width: 540px; margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.my-work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.my-work-head h2 { margin: 7px 0 5px; font-size: 29px; letter-spacing: -1.1px; }
.my-work-head p { margin: 0; color: var(--muted); font-size: 10px; }
.my-task-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.my-task-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.my-task-group > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #f5f5f7; }
.my-task-group > header b { font-size: 10px; }
.my-task-group > header em { min-width: 23px; border-radius: 99px; padding: 4px 7px; color: var(--muted); background: #fff; font-size: 8px; font-style: normal; text-align: center; }
.my-task-group.blocked > header { color: var(--red); background: var(--red-soft); }
.my-task-group.overdue > header { color: var(--amber); background: var(--amber-soft); }
.my-task-row { min-height: 64px; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 8px 12px; }
.task-main { min-width: 0; flex: 1; display: grid; grid-template-columns: 9px 1fr; align-items: center; gap: 9px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.task-main b, .task-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-main b { font-size: 9px; }
.task-main small { margin-top: 4px; color: var(--subtle); font-size: 7px; }
.task-quick { display: flex; gap: 5px; }
.task-quick button { border: 1px solid var(--line); border-radius: 8px; padding: 5px 7px; color: var(--green); background: #fff; font-size: 7px; cursor: pointer; }
.empty-mini { padding: 22px 16px; color: var(--subtle); font-size: 8px; text-align: center; }

/* Portfolio */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.view-head h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.75px; }
.view-head p { margin: 0; color: var(--muted); font-size: 10px; }
.view-actions { display: flex; align-items: center; gap: 9px; }
.select-field { height: 36px; border: 1px solid var(--line-strong); border-radius: 11px; padding: 0 30px 0 10px; outline: 0; color: #4c514e; background: #fff; font-size: 9px; }
.portfolio-board { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 18px; scroll-snap-type: x proximity; }
.stage-column { width: 246px; min-width: 246px; min-height: 560px; border-radius: 16px; padding: 10px; background: #ececef; scroll-snap-align: start; }
.stage-column > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 3px 6px; }
.stage-column header div { display: flex; align-items: center; gap: 7px; }
.stage-column header b { font-size: 9px; }
.stage-column header em { min-width: 22px; border-radius: 99px; padding: 4px 6px; color: var(--muted); background: rgba(255,255,255,.74); font-size: 8px; font-style: normal; text-align: center; }
.stage-column > p { min-height: 27px; margin: 2px 3px 8px; color: var(--subtle); font-size: 7px; line-height: 1.3; }
.stage-dot { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; }
.stage-dot.discovery, .stage-dot.validation { background: #4f8ad8; }
.stage-dot.decision { background: #b36d13; }
.stage-dot.planning { background: #7255c8; }
.stage-dot.execution { background: #267155; }
.stage-dot.launch { background: #2c9a72; }
.stage-dot.outcome { background: #3a7a45; }
.column-list { display: grid; gap: 8px; }
.project-card { width: 100%; display: block; border: 1px solid rgba(0,0,0,.07); border-radius: 13px; padding: 12px; background: #fff; box-shadow: 0 3px 9px rgba(30,35,32,.025); text-align: left; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.project-card:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,35,32,.07); }
.card-code { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--subtle); font-size: 7px; }
.health-dot { width: 7px; height: 7px; border-radius: 50%; background: #a0a0a5; }
.health-dot.on_track { background: #2fa875; box-shadow: 0 0 0 4px rgba(47,168,117,.1); }
.health-dot.at_risk { background: #d48a1b; box-shadow: 0 0 0 4px rgba(212,138,27,.11); }
.health-dot.blocked { background: #d35450; box-shadow: 0 0 0 4px rgba(211,84,80,.1); }
.project-card h3 { margin: 6px 0 12px; font-size: 10px; line-height: 1.35; }
.card-owner { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; }
.card-next { margin: 10px -12px -12px; border-top: 1px solid var(--line); padding: 9px 12px; color: var(--muted); font-size: 7px; line-height: 1.35; }
.card-next b { color: #4e6d5c; }
.empty-column { min-height: 70px; display: grid; place-items: center; border: 1px dashed rgba(0,0,0,.14); border-radius: 12px; color: var(--subtle); font-size: 8px; }

/* Sprint and standups */
.sprint-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 23px; background: radial-gradient(circle at 92% 0, #dcefe4, transparent 38%), #fff; }
.sprint-hero small { color: var(--green); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.sprint-hero h2 { max-width: 850px; margin: 10px 0 8px; font-size: 24px; line-height: 1.22; letter-spacing: -.8px; }
.sprint-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.sprint-score { min-width: 110px; display: grid; place-content: center; justify-items: end; border-left: 1px solid var(--line); padding-left: 22px; }
.sprint-score strong { font-size: 34px; letter-spacing: -1.4px; }
.sprint-score span { color: var(--subtle); font-size: 8px; }
.task-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.task-column { min-height: 340px; border-radius: 16px; padding: 10px; background: #ececef; }
.task-column header { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 9px; }
.task-column header b { font-size: 9px; }
.task-column header em { color: var(--subtle); font-size: 8px; font-style: normal; }
.task-list { display: grid; gap: 8px; }
.task-card { border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: #fff; }
.task-card h4 { margin: 0; font-size: 9px; line-height: 1.4; }
.task-card small { display: block; margin-top: 8px; color: var(--subtle); font-size: 7px; }
.task-card.blocked { border-color: rgba(211,84,80,.24); background: #fffafa; }
.blocker-note { margin-top: 8px; border-radius: 9px; padding: 8px; color: #96504d; background: var(--red-soft); font-size: 7px; line-height: 1.4; }
.task-actions { display: flex; gap: 5px; margin-top: 10px; }
.task-actions button { flex: 1; min-height: 26px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #f8f8f9; font-size: 7px; cursor: pointer; }
.standup-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.standup-hero { border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px; color: #fff; background: linear-gradient(135deg, #174d38, #2f7a59 70%, #599574); box-shadow: 0 18px 38px rgba(31,103,73,.14); }
.standup-hero span { color: #b9ddc7; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.standup-hero h2 { margin: 10px 0 8px; font-size: 25px; letter-spacing: -.85px; }
.standup-hero p { max-width: 620px; margin: 0 0 18px; color: #d4e7da; font-size: 11px; line-height: 1.45; }
.standup-hero .primary-action { color: #205b43; background: #fff; }
.standup-rules { padding: 18px; }
.standup-rules ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.standup-rules li { display: grid; grid-template-columns: 24px 1fr; gap: 9px; }
.standup-rules li > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 760; }
.standup-rules b { display: block; font-size: 9px; }
.standup-rules small { display: block; margin-top: 3px; color: var(--subtle); font-size: 7px; line-height: 1.35; }
.feed { margin-top: 14px; overflow: hidden; }
.feed-item { display: grid; grid-template-columns: 34px 1fr; gap: 11px; border-top: 1px solid var(--line); padding: 15px 18px; }
.feed-head { display: flex; align-items: center; gap: 9px; }
.feed-head b { font-size: 9px; }
.feed-head span { color: var(--green); font-size: 8px; }
.feed-head time { margin-left: auto; color: var(--subtle); font-size: 7px; }
.feed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; }
.feed-grid p { margin: 0; border-radius: 10px; padding: 9px; color: var(--muted); background: #f5f5f7; font-size: 8px; line-height: 1.35; }
.feed-grid small { display: block; margin-bottom: 4px; color: var(--subtle); font-size: 7px; text-transform: uppercase; }
.feed-grid p.blocker { color: #92504c; background: var(--red-soft); }

/* Team */
.team-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 22px; background: linear-gradient(115deg, #edf6f1, #fff 65%); }
.team-hero h2 { margin: 7px 0 5px; font-size: 22px; letter-spacing: -.75px; }
.team-hero p { margin: 0; color: var(--muted); font-size: 10px; }
.role-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.role-card { min-height: 145px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.role-card > span { color: var(--green); font-size: 8px; font-weight: 760; }
.role-card h3 { margin: 14px 0 7px; font-size: 11px; }
.role-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.members-panel { margin-top: 14px; overflow: hidden; }
.employee-add, .project-person-add { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; padding: 10px 18px 14px; }
.employee-add input, .employee-add select, .project-person-add select { min-height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; outline: 0; background: #fff; font-size: 9px; }
.employee-directory { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); }
.employee-row { min-height: 57px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 18px; }
.employee-row b, .employee-row small { display: block; }
.employee-row b { font-size: 9px; }
.employee-row small { margin-top: 3px; color: var(--subtle); font-size: 7px; }
.link-pill { border-radius: 99px; padding: 5px 8px; color: var(--muted); background: #f0f0f2; font-size: 7px; white-space: nowrap; }
.link-pill.linked { color: var(--green); background: var(--green-soft); }
.link-pill.pending { color: var(--amber); background: var(--amber-soft); }
.approve-button { border: 0; border-radius: 9px; padding: 7px 9px; color: #fff; background: var(--green); font-size: 8px; cursor: pointer; }
.member-row { min-height: 58px; display: grid; grid-template-columns: 34px minmax(140px, 1fr) 120px 120px; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 8px 18px; }
.member-row b, .member-row small { display: block; }
.member-row b { font-size: 9px; }
.member-row small { margin-top: 3px; color: var(--subtle); font-size: 7px; }
.member-row select { width: 100%; }
.member-status { border-radius: 99px; padding: 5px 8px; color: var(--green); background: var(--green-soft); font-size: 7px; text-align: center; }
.member-status.pending { color: var(--amber); background: var(--amber-soft); }

/* Project sheet */
.overlay { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; background: rgba(25,28,26,.24); backdrop-filter: blur(5px); }
.project-sheet { width: min(760px, 100%); height: 100vh; overflow-y: auto; background: #fbfbfc; box-shadow: var(--shadow-float); animation: slide-in .2s ease; }
@keyframes slide-in { from { transform: translateX(24px); opacity: .55; } }
.sheet-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding: 20px 22px 15px; background: rgba(251,251,252,.9); backdrop-filter: blur(20px); }
.sheet-head small { color: var(--subtle); font-size: 8px; }
.sheet-head h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.8px; }
.close-button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: #ebebed; font-size: 20px; line-height: 1; cursor: pointer; }
.sheet-status { display: flex; flex-wrap: wrap; gap: 6px; padding: 13px 22px 0; }
.status-chip, .stage-chip, .source-chip { padding: 6px 9px; font-size: 8px; font-weight: 690; }
.stage-chip { color: #4f5e55; background: #e9ecea; }
.status-chip.on_track { color: var(--green); background: var(--green-soft); }
.status-chip.at_risk { color: var(--amber); background: var(--amber-soft); }
.status-chip.blocked { color: var(--red); background: var(--red-soft); }
.status-chip.unknown, .source-chip { color: var(--muted); background: #efeff1; }
.sheet-tabs { position: sticky; top: 68px; z-index: 4; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 13px 22px 10px; background: rgba(251,251,252,.92); backdrop-filter: blur(20px); }
.sheet-tabs button { border: 0; border-radius: 9px; padding: 8px 10px; color: var(--muted); background: transparent; font-size: 9px; cursor: pointer; }
.sheet-tabs button.active { color: var(--green); background: var(--green-soft); font-weight: 680; }
.sheet-body { padding: 18px 22px 90px; }
.snapshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.snapshot { min-height: 78px; border: 1px solid var(--line); border-radius: 13px; padding: 11px; background: #fff; }
.snapshot small, .snapshot b { display: block; }
.snapshot small { color: var(--subtle); font-size: 7px; }
.snapshot b { margin-top: 7px; font-size: 9px; line-height: 1.35; }
.section-card { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.project-people { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.project-person { min-height: 54px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.project-person b, .project-person small { display: block; }
.project-person b { font-size: 9px; }
.project-person small { margin-top: 3px; color: var(--subtle); font-size: 7px; }
.project-person button { width: 25px; height: 25px; border: 0; border-radius: 50%; color: var(--subtle); background: #f0f0f2; cursor: pointer; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.section-title span { color: var(--green); font-size: 8px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.section-title h3 { margin: 5px 0 0; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 650; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea, .field select, .modal input, .modal textarea, .modal select { width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; outline: 0; color: var(--ink); background: #fff; font-size: 9px; }
.field textarea, .modal textarea { min-height: 70px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus, .field select:focus, .modal input:focus, .modal textarea:focus, .modal select:focus { border-color: rgba(38,113,85,.55); box-shadow: 0 0 0 3px rgba(38,113,85,.08); }
.foundation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.foundation-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 9px; }
.foundation-item > span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; color: var(--amber); background: var(--amber-soft); font-size: 8px; font-weight: 760; }
.foundation-item.ready > span { color: #fff; background: var(--green); }
.foundation-item b, .foundation-item small { display: block; }
.foundation-item b { font-size: 8px; }
.foundation-item small { margin-top: 3px; color: var(--subtle); font-size: 7px; }
.gate-box { margin-top: 12px; border-radius: 13px; padding: 12px; color: #73501d; background: var(--amber-soft); font-size: 8px; line-height: 1.45; }
.gate-box.ready { color: #2c664d; background: var(--green-soft); }
.sheet-actions { position: fixed; right: 0; bottom: 0; width: min(760px, 100%); z-index: 6; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding: 12px 22px max(12px, env(safe-area-inset-bottom)); background: rgba(251,251,252,.92); backdrop-filter: blur(20px); }
.update-list { display: grid; gap: 8px; }
.history-row { display: grid; grid-template-columns: 8px 1fr; gap: 10px; }
.history-row > span { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #9b9ba0; }
.history-row b, .history-row small { display: block; }
.history-row b { font-size: 8px; }
.history-row p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.history-row small { margin-top: 4px; color: var(--subtle); font-size: 7px; }
.empty-state { display: grid; place-items: center; min-height: 180px; padding: 25px; text-align: center; }
.empty-state span { font-size: 24px; color: #97979c; }
.empty-state h3 { margin: 10px 0 5px; font-size: 12px; }
.empty-state p { margin: 0 0 14px; color: var(--subtle); font-size: 8px; }

/* Modal and toast */
.modal-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(25,28,26,.26); backdrop-filter: blur(5px); }
.modal { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 22px; padding: 21px; background: #fff; box-shadow: var(--shadow-float); }
.modal header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.modal header span { color: var(--green); font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.modal header h2 { margin: 5px 0 0; font-size: 21px; letter-spacing: -.7px; }
.modal label { display: grid; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 8px; font-weight: 650; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.error-box { margin-top: 10px; border-radius: 10px; padding: 9px; color: var(--red); background: var(--red-soft); font-size: 8px; line-height: 1.45; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 160; max-width: min(360px, calc(100% - 40px)); border-radius: 12px; padding: 11px 14px; color: #fff; background: #26362e; box-shadow: var(--shadow-float); font-size: 9px; }
.toast.error { background: #8f3d3a; }
.mobile-bottom { display: none; }
.menu-scrim { display: none; }

@media (max-width: 1180px) {
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .task-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hub-page { padding-inline: 14px; }
  .hub-welcome { padding-top: 58px; }
  .hub-welcome h1 { letter-spacing: -2.4px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-tile { min-height: 230px; padding: 21px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-scrim { position: fixed; inset: 0; z-index: 35; display: block; border: 0; background: rgba(25,28,26,.2); }
  .main-area { margin-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .topbar { height: 67px; padding: 9px 13px; }
  .mobile-menu { display: block; }
  .topbar-title h1 { font-size: 17px; }
  .topbar-title p { display: none; }
  .search-field { width: 36px; border: 0; padding: 0; background: transparent; }
  .search-field input { display: none; }
  .topbar .primary-action { min-width: 36px; padding: 0; font-size: 0; }
  .topbar .primary-action::after { content: "+"; font-size: 18px; }
  .content { padding: 17px 13px 30px; }
  .public-banner { align-items: flex-start; padding: 9px 13px; }
  .public-banner small { max-width: 420px; }
  .welcome-row h2 { font-size: 24px; }
  .week-chip { display: none; }
  .workflow-strip { grid-template-columns: 1fr; }
  .workflow-steps { justify-content: flex-start; }
  .day-steps { grid-template-columns: 1fr; }
  .day-step { min-height: 54px; display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 8px; }
  .day-step p { margin: 0; }
  .view-head { align-items: flex-start; flex-direction: column; }
  .view-actions { width: 100%; }
  .view-actions .select-field { flex: 1; }
  .standup-layout { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr 1fr; }
  .team-hero { align-items: flex-start; flex-direction: column; }
  .role-grid { grid-template-columns: repeat(2, 1fr); }
  .my-task-groups { grid-template-columns: 1fr; }
  .employee-directory { grid-template-columns: 1fr; }
  .employee-add, .project-person-add { grid-template-columns: 1fr 1fr; }
  .employee-add .primary-action, .project-person-add .primary-action { grid-column: 1 / -1; }
  .member-row { grid-template-columns: 34px 1fr 95px; }
  .member-row .member-status { display: none; }
  .mobile-bottom { position: fixed; inset: auto 0 0; z-index: 34; height: calc(58px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding: 4px 6px env(safe-area-inset-bottom); background: rgba(251,251,252,.9); backdrop-filter: saturate(180%) blur(22px); }
  .mobile-bottom button { display: grid; place-content: center; justify-items: center; gap: 2px; border: 0; color: var(--subtle); background: transparent; font-size: 7px; }
  .mobile-bottom button b { font-size: 16px; font-weight: 500; }
  .mobile-bottom button.active { color: var(--green); }
  .project-sheet { width: 100%; }
  .sheet-tabs { top: 66px; }
  .snapshot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hub-header { align-items: flex-start; }
  .hub-profile small { display: none; }
  .hub-welcome h1 { font-size: 42px; }
  .hub-welcome p { font-size: 13px; }
  .app-tile h2 { font-size: 24px; }
  .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .signal-card { min-height: 88px; padding: 13px 11px; }
  .signal-card strong { font-size: 22px; }
  .focus-panel { padding: 16px; }
  .focus-actions { margin: 16px -16px -16px; padding: 11px 16px; }
  .focus-actions small { max-width: 58%; }
  .task-board { grid-template-columns: 1fr; }
  .sprint-hero { grid-template-columns: 1fr; }
  .sprint-score { justify-items: start; border-top: 1px solid var(--line); border-left: 0; padding-top: 14px; padding-left: 0; }
  .feed-grid, .form-grid, .foundation-grid, .role-grid { grid-template-columns: 1fr; }
  .my-work-head { align-items: flex-start; flex-direction: column; }
  .my-task-row { align-items: flex-start; flex-direction: column; }
  .task-main { width: 100%; }
  .project-people { grid-template-columns: 1fr; }
  .employee-add, .project-person-add { grid-template-columns: 1fr; }
  .employee-add .primary-action, .project-person-add .primary-action { grid-column: auto; }
  .field.full { grid-column: auto; }
  .sheet-body { padding-inline: 15px; }
  .sheet-head, .sheet-tabs, .sheet-status { padding-inline: 15px; }
  .sheet-actions { padding-inline: 15px; }
  .member-row { grid-template-columns: 32px 1fr; }
  .member-row select { grid-column: 2; }
}


.hub-admin-entry { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:24px; padding:18px 20px; border:1px solid rgba(0,0,0,.08); border-radius:20px; background:rgba(255,255,255,.72); }
.hub-admin-entry span { display:flex; flex-direction:column; gap:4px; }
.hub-admin-entry small { color:#6e6e73; }
.error-box { color:#b42318; background:#fff1f0; }
@media (max-width: 640px) { .hub-admin-entry { align-items:flex-start; flex-direction:column; } }


/* Regular management */
.routine-today, .routine-manager, .routine-admin { display: grid; gap: 14px; }
.routine-signal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.routine-signal { min-height: 80px; display: grid; align-content: center; gap: 3px; border: 1px solid var(--line); border-radius: 15px; padding: 14px; background: #fff; }
.routine-signal span { color: var(--muted); font-size: 8px; }
.routine-signal b { font-size: 24px; letter-spacing: -.7px; }
.routine-signal.red { border-color: rgba(195,66,63,.22); background: var(--red-soft); color: var(--red); }
.routine-signal.amber { border-color: rgba(168,102,8,.2); background: var(--amber-soft); color: var(--amber); }
.routine-section { display: grid; gap: 9px; }
.routine-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.routine-section-head span, .routine-version-editor header span { color: var(--green); font-size: 8px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.routine-section-head h2 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.45px; }
.routine-section-head em { min-width: 24px; border-radius: 99px; padding: 5px 8px; color: var(--muted); background: #eeeef0; font-size: 8px; font-style: normal; text-align: center; }
.routine-card-list { display: grid; gap: 9px; }
.routine-card { border: 1px solid var(--line); border-radius: 17px; padding: 15px; background: #fff; }
.routine-status-overdue { border-color: rgba(195,66,63,.25); background: linear-gradient(120deg, #fff9f8, #fff); }
.routine-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.routine-kicker { color: var(--subtle); font-size: 8px; }
.routine-card h3 { margin: 5px 0 3px; font-size: 14px; letter-spacing: -.28px; }
.routine-card-head small { color: var(--subtle); font-size: 8px; }
.routine-card-meta { display: grid; justify-items: end; gap: 6px; text-align: right; }
.routine-card-meta b { color: var(--green); font-size: 10px; }
.routine-status { display: inline-flex; width: max-content; border-radius: 99px; padding: 4px 7px; color: var(--muted); background: #f0f0f2; font-size: 7px; white-space: nowrap; }
.routine-status-overdue .routine-status { color: var(--red); background: var(--red-soft); }
.routine-items { display: grid; gap: 2px; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 7px; }
.routine-item { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; min-height: 38px; padding: 7px 2px; cursor: pointer; }
.routine-item input { position: absolute; opacity: 0; pointer-events: none; }
.routine-checkmark { width: 17px; height: 17px; margin-top: 1px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; }
.routine-item input:checked + .routine-checkmark { border-color: var(--green); background: var(--green); }
.routine-item input:checked + .routine-checkmark::after { content: "✓"; display: grid; place-items: center; color: #fff; font-size: 11px; line-height: 15px; }
.routine-item input:focus + .routine-checkmark { outline: 3px solid rgba(38,113,85,.18); outline-offset: 2px; }
.routine-item input:disabled + .routine-checkmark { opacity: .55; }
.routine-item-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.routine-item-copy b { color: var(--ink); font-size: 9px; line-height: 1.35; }
.routine-item.done .routine-item-copy b { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(29,29,31,.25); }
.routine-item-copy small { width: 100%; color: var(--subtle); font-size: 7px; }
.control-mark { border-radius: 99px; padding: 3px 5px; color: #835316; background: var(--amber-soft); font-size: 6px; font-weight: 700; }
.routine-card-outcome { display: inline-flex; margin-top: 8px; border-radius: 8px; padding: 6px 8px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 700; }
.routine-empty, .routine-loading, .routine-error { display: grid; gap: 6px; min-height: 90px; align-content: center; padding: 18px; }
.routine-empty b, .routine-error b { font-size: 11px; }
.routine-empty span, .routine-error p { margin: 0; color: var(--subtle); font-size: 9px; line-height: 1.45; }
.routine-error { color: var(--red); background: var(--red-soft); }
.routine-error .secondary-action { width: max-content; }
.today-projects { display: grid; gap: 9px; }
.routine-my-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 14px 16px; }
.routine-my-summary div { display: grid; gap: 5px; }
.routine-my-summary b { font-size: 10px; }

.manager-range, .routine-inline-form, .routine-grid-form { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; }
.manager-range { grid-template-columns: minmax(110px, 160px) minmax(110px, 160px) auto; align-items: end; }
.manager-range label, .routine-inline-form label, .routine-grid-form label, .routine-grid-form fieldset { display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 650; }
.manager-range input, .routine-inline-form input, .routine-grid-form input, .routine-grid-form select, .routine-grid-form textarea { min-height: 34px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0 9px; background: #fff; font-size: 9px; }
.routine-admin-card { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.routine-table { display: grid; border-top: 1px solid var(--line); }
.routine-table article { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 10px 2px; }
.routine-table b, .routine-table small { display: block; }
.routine-table b { font-size: 9px; }
.routine-table small { margin-top: 4px; color: var(--subtle); font-size: 7px; }
.routine-table > .routine-empty { border-bottom: 0; }
.routine-note { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.routine-tabs, .routine-version-tabs { display: flex; gap: 5px; overflow-x: auto; }
.routine-tabs { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.routine-tabs button, .routine-version-tabs button { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 8px 10px; color: var(--muted); background: #f0f0f2; font-size: 8px; cursor: pointer; }
.routine-tabs button.active, .routine-version-tabs button.active { color: var(--green); background: var(--green-soft); font-weight: 700; }
.routine-inline-form { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto; align-items: end; }
.routine-grid-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.routine-grid-form footer, .routine-inline-form footer { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.routine-grid-form fieldset { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.routine-grid-form fieldset small { color: var(--subtle); font-size: 7px; }
.weekday-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.weekday { display: inline-flex !important; grid-template-columns: auto !important; align-items: center; gap: 4px !important; border-radius: 8px; padding: 5px 7px; background: #f4f4f5; font-size: 7px !important; }
.weekday input { min-height: auto !important; margin: 0; }
.routine-switch { display: flex !important; align-items: center; gap: 7px !important; padding-top: 18px; }
.routine-switch input { min-height: auto !important; margin: 0; }
.routine-readonly-value { display: flex; align-items: center; min-height: 34px; border-radius: 9px; padding: 0 9px; color: var(--muted); background: #f4f4f5; font-size: 8px; }
.routine-template-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 12px; }
.routine-template-list { display: grid; align-content: start; gap: 5px; }
.routine-template-list button { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; text-align: left; cursor: pointer; }
.routine-template-list button.active { border-color: rgba(38,113,85,.35); background: var(--green-soft); }
.routine-template-list b { font-size: 9px; }
.routine-template-list small { color: var(--subtle); font-size: 7px; line-height: 1.35; }
.routine-template-detail { display: grid; gap: 10px; }
.routine-version-editor { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 12px; }
.routine-version-editor header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.routine-version-editor h3 { margin: 5px 0 0; font-size: 13px; }
.routine-item-list { display: grid; gap: 5px; }
.routine-item-list > div { display: grid; gap: 3px; border-radius: 9px; padding: 8px; background: #f5f5f7; }
.routine-item-list span { color: var(--subtle); font-size: 7px; }
.routine-item-list b { font-size: 8px; }

@media (max-width: 820px) {
  .routine-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routine-table article { grid-template-columns: 1fr auto; align-items: start; }
  .routine-table article > span { display: none; }
  .manager-range, .routine-inline-form, .routine-grid-form, .routine-template-layout { grid-template-columns: 1fr; }
  .routine-inline-form .primary-action { width: 100%; }
  .routine-card-head { flex-direction: column; }
  .routine-card-meta { justify-items: start; text-align: left; }
}


/* Today UX polish and iOS-like routine shell */
:root {
  --surface-translucent: rgba(255, 255, 255, .78);
  --surface-elevated: rgba(255, 255, 255, .94);
  --border: rgba(29, 29, 31, .10);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #267155;
  --accent-overdue: #c3423f;
  --accent-warning: #a86608;
  --radius-panel: 22px;
  --motion-fast: 180ms;
  --motion-medium: 260ms;
  --motion-ease: cubic-bezier(.2, .75, .25, 1);
}

html, body { overflow-x: hidden; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(38, 113, 85, .28);
  outline-offset: 2px;
}

.hub-profile, .sidebar, .topbar, .mobile-bottom, .sheet-head, .sheet-tabs, .sheet-actions {
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.routine-today, .routine-manager, .routine-admin { gap: 18px; }
.routine-welcome { padding: 4px 2px 2px; }
.routine-welcome .eyebrow { display: block; font-size: 12px; }
.routine-welcome h2 { margin: 6px 0 0; color: var(--text-primary); font-size: clamp(29px, 8vw, 38px); letter-spacing: -1.45px; line-height: 1.04; }
.routine-welcome p { max-width: 510px; margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.42; }

.routine-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.routine-summary-card {
  min-height: 106px; position: relative; display: grid; align-content: space-between; justify-items: start;
  border: 1px solid var(--border); border-radius: var(--radius-panel); padding: 15px 16px;
  color: var(--text-primary); background: var(--surface-elevated); box-shadow: 0 8px 24px rgba(24, 30, 27, .035);
  cursor: pointer; transition: transform var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease);
}
.routine-summary-card:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(38, 113, 85, .28); background: #fff; }
.routine-summary-card strong { font-size: 34px; letter-spacing: -1.4px; line-height: .92; }
.routine-summary-card span { max-width: calc(100% - 20px); color: var(--text-secondary); font-size: 15px; line-height: 1.15; }
.routine-summary-card i { position: absolute; right: 15px; bottom: 14px; color: var(--accent); font-size: 18px; font-style: normal; transform: rotate(-90deg); }
.routine-summary-card:first-child:not(:disabled) { border-color: rgba(195, 66, 63, .22); background: linear-gradient(135deg, rgba(255, 240, 239, .9), rgba(255,255,255,.9)); }
.routine-summary-card:first-child:not(:disabled) strong { color: var(--accent-overdue); }
.routine-summary-empty { color: #8e8e93; background: rgba(255,255,255,.54); box-shadow: none; }
.routine-summary-empty strong, .routine-summary-empty i { color: #8e8e93; }

.routine-section-stack { display: grid; gap: 20px; }
.routine-section { scroll-margin-top: max(91px, calc(80px + env(safe-area-inset-top))); border-radius: var(--radius-panel); transition: background-color var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease); }
.routine-section-highlighted { background: rgba(52, 164, 118, .10); box-shadow: 0 0 0 5px rgba(52, 164, 118, .08); }
.routine-section-head { min-height: 46px; align-items: center; }
.routine-section-title { min-width: 0; display: grid; gap: 3px; text-align: left; }
.routine-section-title > span { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.routine-section-title h2 { margin: 0; font-size: 21px; letter-spacing: -.55px; }
.routine-section-title small { color: var(--text-secondary); font-size: 13px; }
.routine-section-head > em, .routine-section-toggle > em { min-width: 30px; padding: 6px 9px; color: var(--text-secondary); background: rgba(29,29,31,.055); font-size: 13px; }
.routine-section-toggle {
  width: 100%; min-height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto 25px; align-items: center; gap: 10px;
  border: 0; border-radius: 15px; padding: 2px 2px; color: inherit; background: transparent; cursor: pointer;
}
.routine-section-toggle:hover { background: rgba(255,255,255,.55); }
.routine-section-toggle > i { color: var(--text-secondary); font-size: 18px; font-style: normal; }
.routine-section-content { display: grid; gap: 10px; margin-top: 10px; }
.routine-section-content[hidden] { display: none; }
.routine-section-empty { min-height: 44px; display: flex; align-items: center; border: 1px dashed var(--border); border-radius: 16px; padding: 10px 14px; color: var(--text-secondary); font-size: 14px; }

.routine-card-list { gap: 11px; }
.routine-card {
  border-color: var(--border); border-radius: var(--radius-panel); padding: 17px;
  background: var(--surface-elevated); box-shadow: 0 7px 20px rgba(24, 30, 27, .028);
}
.routine-status-overdue { border-color: rgba(195,66,63,.25); background: linear-gradient(135deg, rgba(255, 244, 243, .94), rgba(255,255,255,.95)); }
.routine-card-head { align-items: center; }
.routine-card h3 { margin: 0; font-size: 18px; letter-spacing: -.38px; line-height: 1.22; }
.routine-card-head small { margin-top: 5px; color: var(--text-secondary); font-size: 14px; }
.routine-card-meta { gap: 6px; }
.routine-card-meta b { color: var(--accent); font-size: 15px; }
.routine-status { padding: 5px 8px; color: var(--text-secondary); font-size: 12px; }
.routine-status-overdue .routine-status { color: var(--accent-overdue); }
.routine-items { gap: 2px; margin-top: 15px; padding-top: 9px; }
.routine-item { grid-template-columns: 30px minmax(0, 1fr); align-items: center; min-height: 48px; gap: 11px; padding: 8px 2px; }
.routine-checkmark { width: 25px; height: 25px; margin: 0; border-radius: 8px; transition: transform var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease); }
.routine-item input:checked + .routine-checkmark { transform: scale(1.03); }
.routine-item input:checked + .routine-checkmark::after { font-size: 15px; line-height: 23px; }
.routine-item-copy b { font-size: 16px; line-height: 1.32; }
.routine-item-copy small { color: var(--text-secondary); font-size: 12px; }
.routine-card-outcome { margin-top: 10px; border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.routine-card-details { margin-top: 11px; border-top: 1px solid var(--border); padding-top: 9px; }
.routine-card-details summary { min-height: 34px; display: flex; align-items: center; width: max-content; color: var(--accent); font-size: 14px; font-weight: 650; cursor: pointer; }
.routine-card-details summary::marker { color: var(--accent); }
.routine-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.routine-detail-grid p { display: grid; gap: 3px; margin: 0; border-radius: 12px; padding: 10px; background: rgba(29,29,31,.035); }
.routine-detail-grid p span { color: var(--text-secondary); font-size: 12px; }
.routine-detail-grid p b { font-size: 13px; line-height: 1.35; }
.routine-detail-completion { grid-column: 1 / -1; }
.routine-detail-completion b { display: block; font-weight: 600; }
.routine-empty, .routine-loading, .routine-error { min-height: 100px; border-radius: var(--radius-panel); padding: 18px; }
.routine-empty b, .routine-error b { font-size: 16px; }
.routine-empty span, .routine-error p { font-size: 14px; }
.today-projects { gap: 12px; margin-top: 4px; padding-top: 6px; }
.today-projects .dashboard-grid { margin-top: 0; }
.today-projects .workflow-strip { display: none; }

.routine-efficiency-entry { border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface-translucent); overflow: hidden; }
.routine-efficiency-entry > button { width: 100%; min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; padding: 13px 16px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.routine-efficiency-entry span { display: grid; gap: 4px; }
.routine-efficiency-entry b { font-size: 17px; letter-spacing: -.25px; }
.routine-efficiency-entry small { color: var(--text-secondary); font-size: 13px; }
.routine-efficiency-entry i { color: var(--accent); font-size: 25px; font-style: normal; }
.routine-efficiency-open { overflow: hidden; }
.routine-efficiency-overlay {
  position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; justify-content: center;
  padding: 18px 12px 0; background: rgba(20, 25, 22, .28); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.routine-efficiency-sheet {
  width: min(650px, 100%); max-height: min(720px, calc(100vh - 18px)); overflow: auto;
  border: 1px solid rgba(255,255,255,.6); border-radius: 26px 26px 0 0; padding: 8px 18px max(20px, env(safe-area-inset-bottom));
  background: rgba(250,250,252,.93); box-shadow: var(--shadow-float); -webkit-backdrop-filter: saturate(180%) blur(26px); backdrop-filter: saturate(180%) blur(26px);
}
.routine-sheet-grabber { width: 36px; height: 5px; margin: 1px auto 13px; border-radius: 99px; background: rgba(29,29,31,.19); }
.routine-efficiency-sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.routine-efficiency-sheet header span { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.routine-efficiency-sheet h2 { margin: 5px 0 3px; font-size: 25px; letter-spacing: -.8px; }
.routine-efficiency-sheet header p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.routine-efficiency-sheet .close-button { min-width: 44px; min-height: 44px; border-radius: 50%; font-size: 25px; }
.routine-efficiency-loading { min-height: 184px; display: grid; place-items: center; color: var(--text-secondary); font-size: 15px; }
.routine-efficiency-body { display: grid; grid-template-columns: 148px 1fr; align-items: center; gap: 18px; margin: 20px 0; }
.routine-completion-ring { width: 136px; height: 136px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) var(--routine-progress), rgba(38,113,85,.12) 0); }
.routine-completion-ring::before { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(250,250,252,.98); }
.routine-completion-ring span { z-index: 1; display: grid; gap: 2px; text-align: center; }
.routine-completion-ring b { font-size: 25px; letter-spacing: -.8px; }
.routine-completion-ring small { color: var(--text-secondary); font-size: 12px; }
.routine-efficiency-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.routine-efficiency-metrics p { display: grid; gap: 4px; min-height: 60px; margin: 0; border: 1px solid var(--border); border-radius: 15px; padding: 10px; background: rgba(255,255,255,.63); }
.routine-efficiency-metrics span { color: var(--text-secondary); font-size: 12px; }
.routine-efficiency-metrics b { font-size: 20px; }
.routine-efficiency-sheet footer { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 13px; color: var(--text-secondary); font-size: 13px; line-height: 1.42; }

.routine-my-summary { border-radius: var(--radius-panel); padding: 16px 18px; background: var(--surface-translucent); }
.routine-my-summary b { font-size: 15px; }
.routine-signal-grid { gap: 10px; }
.routine-signal { min-height: 94px; border-radius: var(--radius-panel); padding: 15px; background: var(--surface-elevated); }
.routine-signal span { font-size: 13px; }
.routine-signal b { font-size: 29px; }
.routine-signal-button { width: 100%; border: 1px solid var(--border); text-align: left; cursor: pointer; }
.routine-signal-button:disabled { color: var(--ink); opacity: 1; cursor: default; }
.manager-range { display: block; border-radius: var(--radius-panel); padding: 0; overflow: hidden; background: var(--surface-translucent); }
.manager-range > summary { min-height: 48px; display: flex; align-items: center; padding: 0 16px; color: var(--accent); font-size: 15px; font-weight: 650; cursor: pointer; }
.manager-range form { display: grid; grid-template-columns: minmax(110px, 160px) minmax(110px, 160px) auto; gap: 10px; align-items: end; border-top: 1px solid var(--border); padding: 13px 16px 16px; }
.manager-range label, .routine-inline-form label, .routine-grid-form label, .routine-grid-form fieldset { font-size: 13px; }
.manager-range input, .routine-inline-form input, .routine-grid-form input, .routine-grid-form select, .routine-grid-form textarea { min-height: 44px; font-size: 15px; }
.routine-admin-card { border-radius: var(--radius-panel); padding: 18px; background: var(--surface-elevated); }
.routine-table article { min-height: 58px; padding: 10px 2px; }
.routine-table b { font-size: 15px; }
.routine-table small, .routine-note { font-size: 12px; }
.routine-tabs button, .routine-version-tabs button { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.routine-template-list button { min-height: 52px; border-radius: 14px; padding: 11px; }
.routine-template-list b { font-size: 14px; }
.routine-template-list small, .routine-item-list span { font-size: 12px; }
.routine-item-list b { font-size: 14px; }
.routine-version-editor { border-radius: 18px; }
.routine-version-editor h3 { font-size: 17px; }

@media (max-width: 820px) {
  .routine-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .routine-summary-card { min-height: 96px; padding: 14px; }
  .routine-summary-card strong { font-size: 31px; }
  .routine-summary-card span { font-size: 14px; }
  .routine-card { padding: 15px; }
  .routine-card-head { flex-direction: row; }
  .routine-card h3 { font-size: 17px; }
  .routine-card-meta { justify-items: end; text-align: right; }
  .routine-card-meta b { font-size: 14px; }
  .routine-section-title h2 { font-size: 20px; }
  .routine-detail-grid { grid-template-columns: 1fr; }
  .routine-efficiency-body { grid-template-columns: 1fr; justify-items: center; }
  .routine-efficiency-metrics { width: 100%; }
  .routine-efficiency-sheet { padding-inline: 15px; }
  .manager-range form { grid-template-columns: 1fr; }
  .manager-range form .secondary-action { width: 100%; }
}

@media (max-width: 360px) {
  .routine-summary-card { min-height: 88px; padding: 12px; }
  .routine-summary-card strong { font-size: 28px; }
  .routine-summary-card span { font-size: 13px; }
  .routine-card-head { align-items: flex-start; flex-direction: column; }
  .routine-card-meta { justify-items: start; text-align: left; }
  .routine-efficiency-metrics { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.routine-completion-ring { position: relative; }


/* Project workspace mobile readability polish */
.primary-action, .secondary-action, .ghost-action, .danger-action {
  min-height: 44px;
  border-radius: 13px;
  padding-inline: 16px;
  font-size: 14px;
}

.main-area, .content { min-width: 0; }
.content { overflow-x: hidden; overflow-x: clip; }
.mobile-bottom button { min-height: 44px; font-size: 11px; }
.mobile-bottom button b { font-size: 19px; }
.dashboard-grid, .my-task-groups, .standup-layout, .role-grid, .employee-directory,
.project-sheet, .sheet-body, .form-grid, .foundation-grid { min-width: 0; }

/* Today project focus and exceptions */
.today-projects .signal-grid { gap: 12px; }
.signal-card {
  min-height: 112px;
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-translucent, rgba(255,255,255,.82));
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.signal-card span { font-size: 13px; }
.signal-card strong { font-size: 31px; }
.signal-card small { margin-top: 4px; font-size: 12px; line-height: 1.35; }
.focus-panel, .attention-panel, .workflow-strip {
  border-color: var(--border, var(--line));
  border-radius: var(--radius-panel, 22px);
  background: var(--surface-translucent, rgba(255,255,255,.82));
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}
.focus-panel { min-height: 360px; padding: 23px; }
.panel-kicker { font-size: 12px; }
.focus-header { margin-top: 18px; }
.focus-header small { font-size: 12px; line-height: 1.35; }
.focus-header h3 { margin-top: 6px; font-size: 24px; line-height: 1.16; letter-spacing: -.75px; }
.goal-text { min-height: auto; margin: 17px 0 20px; font-size: 16px; line-height: 1.48; }
.progress-row b { min-width: 43px; font-size: 14px; }
.progress-track { height: 9px; }
.day-steps { gap: 9px; }
.day-step { min-height: 96px; border-radius: 16px; padding: 12px; }
.day-step b { width: 28px; height: 28px; border-radius: 9px; font-size: 12px; }
.day-step p { margin-top: 10px; font-size: 14px; line-height: 1.38; }
.focus-actions { margin: 20px -23px -23px; padding: 14px 23px max(14px, env(safe-area-inset-bottom)); }
.focus-actions small { font-size: 13px; line-height: 1.35; }
.panel-head { padding: 20px 20px 13px; }
.panel-head span { font-size: 12px; }
.panel-head h3 { margin-top: 6px; font-size: 20px; letter-spacing: -.45px; }
.panel-head em { min-width: 30px; padding: 6px 9px; font-size: 12px; }
.attention-list { padding: 0 10px 10px; }
.attention-item {
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  gap: 12px;
  padding: 11px 10px;
}
.attention-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 13px; }
.attention-item b {
  overflow: visible;
  white-space: normal;
  font-size: 15px;
  line-height: 1.3;
}
.attention-item small { margin-top: 5px; font-size: 12px; line-height: 1.4; }
.attention-item > i { font-size: 22px; }
.workflow-strip { grid-template-columns: 210px 1fr; padding: 19px 21px; }
.workflow-strip h3 { font-size: 18px; }
.workflow-steps { min-height: 44px; }
.workflow-steps span { font-size: 12px; }

/* My project tasks */
.my-work-head h2 { font-size: 31px; }
.my-work-head p { font-size: 14px; line-height: 1.45; }
.my-task-groups { gap: 14px; }
.my-task-group { border-radius: var(--radius-panel, 22px); background: var(--surface-elevated, #fff); }
.my-task-group > header { min-height: 54px; padding: 14px 17px; }
.my-task-group > header b { font-size: 15px; }
.my-task-group > header em { min-width: 30px; padding: 6px 9px; font-size: 12px; }
.my-task-row { min-height: 78px; gap: 12px; padding: 11px 14px; }
.task-main { grid-template-columns: 12px minmax(0, 1fr); gap: 11px; min-height: 44px; }
.task-main b, .task-main small { white-space: normal; }
.task-main b { font-size: 15px; line-height: 1.32; }
.task-main small { margin-top: 5px; font-size: 12px; line-height: 1.35; }
.task-quick { gap: 7px; }
.task-quick button { min-height: 44px; border-radius: 11px; padding: 0 12px; font-size: 13px; }
.empty-mini { min-height: 72px; display: grid; place-items: center; font-size: 13px; }

/* Portfolio */
.view-head h2 { font-size: 28px; }
.view-head p { max-width: 760px; font-size: 14px; line-height: 1.45; }
.view-actions { flex-wrap: wrap; }
.select-field { min-height: 44px; height: 44px; border-radius: 13px; padding-inline: 12px 34px; font-size: 14px; }
.portfolio-board { max-width: 100%; gap: 13px; overscroll-behavior-inline: contain; }
.stage-column {
  width: 300px;
  min-width: 300px;
  border: 1px solid var(--border, var(--line));
  border-radius: var(--radius-panel, 22px);
  padding: 14px;
  background: rgba(238,238,241,.72);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
}
.stage-column > header { min-height: 44px; padding: 4px 3px 8px; }
.stage-column header b { font-size: 15px; }
.stage-column header em { min-width: 30px; padding: 6px 9px; font-size: 12px; }
.stage-column > p { min-height: 34px; margin: 2px 3px 11px; font-size: 12px; line-height: 1.4; }
.stage-dot { width: 9px; height: 9px; }
.column-list { gap: 10px; }
.project-card {
  min-height: 156px;
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,.92);
}
.card-code { font-size: 12px; }
.project-card h3 { margin: 10px 0 14px; font-size: 17px; line-height: 1.3; letter-spacing: -.28px; }
.project-card .avatar.small { width: 32px; height: 32px; border-radius: 10px; font-size: 9px; }
.card-owner { gap: 9px; font-size: 13px; }
.card-next { margin: 14px -16px -16px; padding: 12px 16px; font-size: 13px; line-height: 1.42; }
.empty-column { min-height: 100px; border-radius: 16px; font-size: 13px; }

/* Sprint and tasks */
.sprint-hero {
  border-radius: var(--radius-panel, 22px);
  padding: 25px;
  background: radial-gradient(circle at 92% 0, rgba(220,239,228,.85), transparent 42%), var(--surface-elevated, #fff);
}
.sprint-hero small { font-size: 12px; }
.sprint-hero h2 { font-size: 29px; line-height: 1.18; }
.sprint-hero p { font-size: 14px; line-height: 1.45; }
.sprint-score strong { font-size: 39px; }
.sprint-score span { font-size: 12px; }
.task-board { gap: 14px; }
.task-column {
  min-height: 380px;
  border: 1px solid var(--border, var(--line));
  border-radius: 20px;
  padding: 13px;
  background: rgba(238,238,241,.72);
}
.task-column header { min-height: 44px; padding: 4px 4px 10px; }
.task-column header b { font-size: 15px; }
.task-column header em { font-size: 12px; }
.task-list { gap: 10px; }
.task-card { border-radius: 17px; padding: 15px; background: rgba(255,255,255,.94); }
.task-card h4 { font-size: 15px; line-height: 1.38; }
.task-card small { margin-top: 9px; font-size: 12px; line-height: 1.4; }
.blocker-note { margin-top: 10px; border-radius: 12px; padding: 11px; font-size: 13px; line-height: 1.45; }
.task-actions { gap: 7px; margin-top: 12px; }
.task-actions button { min-height: 44px; border-radius: 11px; padding: 0 10px; font-size: 13px; }

/* Standups */
.standup-hero { border-radius: var(--radius-panel, 22px); padding: 27px; }
.standup-hero span { font-size: 12px; }
.standup-hero h2 { font-size: 31px; line-height: 1.14; }
.standup-hero p { font-size: 15px; line-height: 1.5; }
.standup-rules { border-radius: var(--radius-panel, 22px); padding: 20px; }
.standup-rules ol { gap: 15px; }
.standup-rules li { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; }
.standup-rules li > span { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.standup-rules b { font-size: 15px; }
.standup-rules small { margin-top: 4px; font-size: 12px; line-height: 1.4; }
.feed { border-radius: var(--radius-panel, 22px); }
.feed-item { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding: 17px 20px; }
.feed-item > .avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 11px; }
.feed-head { flex-wrap: wrap; gap: 7px 10px; }
.feed-head b { font-size: 15px; }
.feed-head span { font-size: 12px; }
.feed-head time { font-size: 12px; }
.feed-grid { gap: 9px; }
.feed-grid p { min-height: 78px; border-radius: 14px; padding: 12px; font-size: 14px; line-height: 1.42; }
.feed-grid small { margin-bottom: 5px; font-size: 11px; }

/* Team */
.team-hero { border-radius: var(--radius-panel, 22px); padding: 25px; }
.team-hero h2 { font-size: 28px; }
.team-hero p { max-width: 760px; font-size: 14px; line-height: 1.45; }
.role-grid { gap: 12px; }
.role-card { min-height: 180px; border-radius: 20px; padding: 18px; background: var(--surface-elevated, #fff); }
.role-card > span { font-size: 12px; }
.role-card h3 { margin: 17px 0 9px; font-size: 17px; line-height: 1.3; }
.role-card p { font-size: 13px; line-height: 1.48; }
.members-panel { border-radius: var(--radius-panel, 22px); }
.employee-add, .project-person-add { gap: 10px; padding: 12px 20px 17px; }
.employee-add input, .employee-add select, .project-person-add select { min-height: 44px; border-radius: 13px; font-size: 15px; }
.employee-row { min-height: 76px; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 11px 20px; }
.employee-row > .avatar, .member-row > .avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 11px; }
.employee-row b, .member-row b { font-size: 15px; }
.employee-row small, .member-row small { margin-top: 4px; font-size: 12px; }
.link-pill, .member-status { padding: 7px 10px; font-size: 12px; }
.approve-button { min-height: 44px; border-radius: 11px; padding: 0 13px; font-size: 13px; }
.member-row { min-height: 76px; grid-template-columns: 42px minmax(160px, 1fr) 150px 130px; gap: 13px; padding: 11px 20px; }

/* Project detail and forms */
.project-sheet {
  width: min(820px, 100%);
  background: rgba(250,250,252,.95);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
}
.sheet-head { padding: 22px 24px 17px; }
.sheet-head small { font-size: 12px; }
.sheet-head h2 { margin-top: 6px; font-size: 28px; line-height: 1.16; }
.close-button { width: 44px; height: 44px; font-size: 25px; }
.sheet-status { gap: 8px; padding: 14px 24px 0; }
.status-chip, .stage-chip, .source-chip { min-height: 30px; padding: 7px 10px; font-size: 12px; }
.sheet-tabs { top: 74px; gap: 6px; padding: 14px 24px 11px; }
.sheet-tabs button { min-height: 44px; border-radius: 12px; padding: 8px 13px; font-size: 14px; }
.sheet-body { padding: 20px 24px 104px; }
.snapshot-grid { gap: 10px; }
.snapshot { min-height: 94px; border-radius: 17px; padding: 14px; }
.snapshot small { font-size: 12px; }
.snapshot b { margin-top: 8px; font-size: 15px; line-height: 1.4; }
.section-card { margin-top: 14px; border-radius: 20px; padding: 19px; background: var(--surface-elevated, #fff); }
.section-title { margin-bottom: 16px; }
.section-title span { font-size: 12px; }
.section-title h3 { margin-top: 6px; font-size: 20px; line-height: 1.28; }
.project-people { gap: 10px; }
.project-person { min-height: 76px; grid-template-columns: 42px minmax(0, 1fr) 44px; gap: 11px; border-radius: 16px; padding: 11px 12px; }
.project-person > .avatar { width: 40px; height: 40px; border-radius: 13px; font-size: 11px; }
.project-person b { font-size: 15px; }
.project-person small { margin-top: 4px; font-size: 12px; }
.project-person button { width: 44px; height: 44px; font-size: 20px; }
.field { gap: 7px; font-size: 13px; }
.field input, .field textarea, .field select, .modal input, .modal textarea, .modal select {
  min-height: 44px;
  border-radius: 13px;
  padding: 11px 12px;
  font-size: 15px;
}
.field textarea, .modal textarea { min-height: 104px; }
.foundation-grid { gap: 10px; }
.foundation-item { min-height: 72px; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; border-radius: 15px; padding: 12px; }
.foundation-item > span { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.foundation-item b { font-size: 14px; }
.foundation-item small { margin-top: 5px; font-size: 12px; line-height: 1.42; }
.gate-box { border-radius: 15px; padding: 14px; font-size: 13px; line-height: 1.5; }
.sheet-actions { width: min(820px, 100%); gap: 10px; padding: 13px 24px max(13px, env(safe-area-inset-bottom)); }
.update-list { gap: 11px; }
.history-row { grid-template-columns: 10px minmax(0, 1fr); gap: 12px; }
.history-row b { font-size: 14px; }
.history-row p { margin-top: 6px; font-size: 14px; line-height: 1.45; }
.history-row small { margin-top: 6px; font-size: 12px; }
.empty-state h3 { font-size: 18px; }
.empty-state p { max-width: 520px; font-size: 14px; line-height: 1.45; }
.modal { border-radius: 26px; padding: 23px; }
.modal header span { font-size: 12px; }
.modal header h2 { margin-top: 6px; font-size: 25px; }
.modal label { gap: 7px; margin-top: 13px; font-size: 13px; }
.modal footer { gap: 10px; }
.error-box { border-radius: 13px; padding: 12px; font-size: 13px; }
.toast { border-radius: 15px; padding: 13px 16px; font-size: 14px; }

@media (max-width: 820px) {
  .signal-card { min-height: 104px; padding: 15px; }
  .focus-panel { min-height: auto; padding: 19px; }
  .focus-actions { margin: 18px -19px -19px; padding-inline: 19px; }
  .day-steps { grid-template-columns: 1fr; }
  .day-step { min-height: 58px; grid-template-columns: 30px minmax(0, 1fr); }
  .workflow-strip { grid-template-columns: 1fr; }
  .portfolio-board { margin-inline: -13px; padding: 2px 13px 18px; }
  .stage-column { width: min(84vw, 330px); min-width: min(84vw, 330px); }
  .task-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-row { grid-template-columns: 42px minmax(0, 1fr) 132px; }
  .member-row .member-status { display: none; }
  .sheet-head, .sheet-tabs, .sheet-status, .sheet-actions { padding-inline: 17px; }
  .sheet-body { padding-inline: 17px; }
}

@media (max-width: 560px) {
  .today-projects .signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-card { min-height: 100px; }
  .focus-header { align-items: stretch; flex-direction: column; }
  .focus-header .ghost-action { width: 100%; }
  .focus-actions { align-items: stretch; flex-direction: column; }
  .focus-actions small { max-width: none; }
  .focus-actions .ghost-action { width: 100%; }
  .attention-item { grid-template-columns: 40px minmax(0, 1fr) 18px; }
  .my-task-row { align-items: stretch; }
  .task-quick { width: 100%; }
  .task-quick button { flex: 1; }
  .view-actions { align-items: stretch; flex-direction: column; }
  .view-actions .select-field, .view-actions .primary-action, .view-actions .secondary-action { width: 100%; }
  .task-board { grid-template-columns: 1fr; }
  .task-column { min-height: 180px; }
  .standup-hero { padding: 22px; }
  .standup-hero h2 { font-size: 27px; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .employee-row { grid-template-columns: 40px minmax(0, 1fr); }
  .employee-row .link-pill { grid-column: 2; justify-self: start; }
  .member-row { grid-template-columns: 40px minmax(0, 1fr); }
  .member-row select, .member-row .approve-button { grid-column: 2; width: 100%; }
  .snapshot-grid { grid-template-columns: 1fr 1fr; }
  .form-grid, .foundation-grid { grid-template-columns: 1fr; }
  .sheet-tabs { top: 72px; }
  .sheet-tabs button { flex: 0 0 auto; }
  .sheet-actions { align-items: stretch; flex-direction: column-reverse; }
  .sheet-actions button { width: 100%; }
  .modal footer { align-items: stretch; flex-direction: column-reverse; }
  .modal footer button { width: 100%; }
}

@media (max-width: 360px) {
  .today-projects .signal-grid, .snapshot-grid { grid-template-columns: 1fr; }
  .stage-column { width: 88vw; min-width: 88vw; }
}

/* Routine governance and controlled change requests */
.routine-proposal-action {
  min-height: 40px; margin-top: 10px; border: 0; padding: 0 2px;
  color: var(--accent); background: transparent; font-size: 13px; font-weight: 650; text-align: left; cursor: pointer;
}
.routine-proposal-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.routine-item-list > div { gap: 8px; }
.routine-item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.routine-item-actions .secondary-action { min-height: 38px; padding-inline: 12px; font-size: 12px; }
.routine-change-request-list { display: grid; gap: 12px; margin-top: 16px; }
.routine-change-request {
  border: 1px solid var(--border); border-radius: 18px; padding: 16px;
  background: rgba(255,255,255,.72); box-shadow: 0 5px 16px rgba(24,30,27,.025);
}
.routine-change-request > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.routine-change-request > header div { min-width: 0; }
.routine-change-request > header span { color: var(--accent); font-size: 12px; font-weight: 700; }
.routine-change-request > header h3 { margin: 5px 0 0; font-size: 17px; line-height: 1.3; }
.routine-change-request > header em { border-radius: 999px; padding: 5px 8px; color: var(--text-secondary); background: rgba(29,29,31,.055); font-size: 11px; font-style: normal; }
.routine-change-request > p { display: grid; gap: 4px; margin: 13px 0 0; color: var(--text-primary); font-size: 14px; line-height: 1.45; }
.routine-change-request > p b { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.routine-change-request > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; border-top: 1px solid var(--border); padding-top: 12px; }
.routine-change-request > footer > small { color: var(--text-secondary); font-size: 12px; }
.routine-change-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.routine-change-decision { margin-top: 12px !important; border-radius: 13px; padding: 10px 12px; background: rgba(29,29,31,.04); }
.routine-change-decision small { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 11px; }
.routine-change-approved { border-color: rgba(38,113,85,.20); }
.routine-change-rejected { opacity: .82; }
[data-change-request-target][hidden] { display: none; }

@media (max-width: 560px) {
  .routine-change-request > header, .routine-change-request > footer { align-items: stretch; flex-direction: column; }
  .routine-change-actions { justify-content: stretch; }
  .routine-change-actions button { flex: 1 1 100%; }
}

/* Agile project workspace */
.task-card-top { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-bottom:8px; }
.priority-chip { display:inline-flex; min-height:24px; align-items:center; padding:3px 8px; border-radius:999px; background:rgba(0,0,0,.045); font-size:11px; font-weight:700; }
.priority-chip.high { background:rgba(255,149,0,.12); }
.priority-chip.critical { background:rgba(255,59,48,.12); }
.task-result { margin:7px 0 9px; font-size:13px; line-height:1.45; color:var(--muted); }
.done-criteria { margin-top:9px; padding:9px 10px; border-radius:10px; background:rgba(52,199,89,.08); font-size:12px; line-height:1.4; }
.blocker-strip { margin-top:14px; padding:15px; border:1px solid rgba(255,59,48,.15); border-radius:var(--radius-xl); background:rgba(255,59,48,.035); }
.blocker-strip .task-card { margin-top:10px; }
.section-note { margin:-4px 0 14px; color:var(--muted); font-size:13px; line-height:1.5; }
.backlog-list { display:grid; gap:10px; margin-top:14px; }
.backlog-card { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.backlog-card h4 { margin:0 0 6px; font-size:15px; line-height:1.35; }
.backlog-card p { margin:0 0 6px; color:var(--muted); font-size:13px; line-height:1.45; }
.backlog-card small { color:var(--subtle); font-size:12px; }
.primary-action.compact { min-height:40px; padding:8px 12px; white-space:nowrap; }
.backlog-list.planned { opacity:.72; }
@media (max-width: 620px) {
  .backlog-card { align-items:stretch; flex-direction:column; }
  .backlog-card .primary-action.compact { width:100%; }
}

/* Agile project intake and stage gates */
.stage-gate-card { border: 1px solid rgba(0,0,0,.07); }
.stage-gate-card.ready { border-color: rgba(54,189,71,.22); }
.gate-count { flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; color: var(--muted); background: rgba(0,0,0,.045); font-size: 11px; font-weight: 700; }
.stage-gate-card.ready .gate-count { color: #2c664d; background: var(--green-soft); }
.gate-checklist { display: grid; gap: 8px; margin: 2px 0 14px; }
.gate-checklist > div { min-height: 44px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; border-radius: 13px; padding: 8px 10px; background: rgba(0,0,0,.028); }
.gate-checklist > div > span { color: var(--subtle); font-size: 18px; line-height: 1; }
.gate-checklist > div > b { font-size: 13px; line-height: 1.4; }
.stage-advance { width: 100%; margin-top: 12px; }
.stage-advance:disabled { opacity: .42; cursor: default; }

@media (max-width: 560px) {
  .stage-gate-card .section-title { align-items: flex-start; }
  .gate-count { margin-top: 2px; }
}

/* Agile backlog management */
.source-chip.unplanned { color: #8a5a00; background: rgba(255,149,0,.12); }
.backlog-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.backlog-order { display: flex; gap: 5px; }
.backlog-order button { width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: #f7f7f8; font-size: 18px; cursor: pointer; }
.backlog-order button:disabled { opacity: .32; cursor: default; }
.secondary-action.compact { min-height: 44px; padding: 8px 12px; white-space: nowrap; }
.backlog-return-action { color: #7a5a18 !important; background: rgba(255,149,0,.08) !important; }
.backlog-no-sprint { max-width: 130px; color: var(--subtle); font-size: 11px; line-height: 1.3; text-align: right; }
.backlog-history-card { opacity: .78; }
.backlog-archive { padding: 0; overflow: hidden; }
.backlog-archive summary { min-height: 52px; display: flex; align-items: center; padding: 14px 17px; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.backlog-archive[open] summary { border-bottom: 1px solid var(--line); }
.backlog-archive .backlog-list { padding: 0 17px 17px; }

@media (max-width: 720px) {
  .backlog-actions { width: 100%; justify-content: stretch; }
  .backlog-order { flex: 0 0 auto; }
  .backlog-actions > .primary-action,
  .backlog-actions > .secondary-action { flex: 1 1 120px; }
  .backlog-no-sprint { max-width: none; flex: 1 1 100%; text-align: left; }
}

/* Agile sprint planning */
.planning-week { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,.45fr); align-items: end; gap: 12px; margin-bottom: 14px; }
.planning-week > div { min-height: 58px; display: grid; align-content: center; gap: 3px; border-radius: 14px; padding: 10px 13px; background: var(--green-soft); }
.planning-week > div small { color: var(--muted); font-size: 11px; }
.planning-week > div b { font-size: 15px; }
.planning-summary { display: grid; gap: 4px; margin: 15px 0 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.planning-summary b { font-size: 14px; }
.planning-summary small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.planning-backlog { display: grid; gap: 10px; margin-bottom: 14px; }
.planning-item { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.92); }
.planning-item.not-ready { opacity: .72; background: rgba(0,0,0,.018); }
.planning-select { min-height: 44px; display: grid !important; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; margin: 0 !important; }
.planning-select input { width: 20px; height: 20px; margin: 0; }
.planning-select span { display: grid; gap: 3px; }
.planning-select b { font-size: 14px; line-height: 1.35; }
.planning-select small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.planning-item-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-left: 34px; }
.planning-item-fields label { margin: 0 !important; }
.date-field-wrap { display: flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 0 11px; background: #fff; }
.date-field-wrap input { display: block; width: 100%; min-width: 0; border: 0 !important; padding: 0 !important; background: transparent; }

@media (max-width: 560px) {
  .planning-week, .planning-item-fields { grid-template-columns: 1fr; }
  .planning-item-fields { padding-left: 0; }
}


/* Agile mobile employee project experience */
.employee-project-sheet { max-width: 680px; }
.employee-project-body { display: grid; gap: 14px; }
.employee-project-tabs { justify-content: stretch; overflow: visible; }
.employee-project-tabs button { flex: 1 1 0; text-align: center; }
.employee-sprint-focus { border: 1px solid rgba(54,189,71,.16); border-radius: 22px; padding: 20px; background: linear-gradient(145deg, rgba(54,189,71,.08), #fff 62%); }
.employee-sprint-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.employee-sprint-kicker span { color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.employee-sprint-kicker small { color: var(--subtle); font-size: 12px; text-align: right; }
.employee-sprint-focus h3 { max-width: 620px; margin: 14px 0 5px; font-size: 25px; line-height: 1.2; letter-spacing: -.55px; }
.employee-sprint-focus > p { margin: 0; color: var(--muted); font-size: 13px; }
.employee-progress { display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: center; gap: 14px; margin-top: 20px; }
.employee-progress > div:first-child { display: grid; }
.employee-progress b { font-size: 26px; letter-spacing: -.6px; }
.employee-progress small { color: var(--subtle); font-size: 11px; }
.employee-progress-bar { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(0,0,0,.07); }
.employee-progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.employee-sprint-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 16px; }
.employee-sprint-stats > span { min-height: 64px; display: grid; align-content: center; border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.78); }
.employee-sprint-stats b { font-size: 18px; }
.employee-sprint-stats small { margin-top: 2px; color: var(--subtle); font-size: 11px; }
.employee-sprint-stats .danger { color: var(--red); background: var(--red-soft); }
.employee-task-section { border-radius: 22px; padding: 18px; background: #fff; }
.employee-task-list { display: grid; gap: 10px; }
.employee-task-card { border: 1px solid var(--line); border-radius: 17px; padding: 15px; background: #fff; }
.employee-task-card.blocked { border-color: rgba(195,66,63,.2); background: linear-gradient(120deg,#fff8f7,#fff); }
.employee-task-card.review { border-color: rgba(37,99,235,.15); background: linear-gradient(120deg,#f8fbff,#fff); }
.employee-task-card.done { opacity: .7; }
.employee-task-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.employee-task-status { color: var(--muted); font-size: 12px; font-weight: 700; }
.employee-task-card h4 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; }
.employee-task-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.employee-task-meta { display: grid; gap: 4px; margin-top: 10px; color: var(--subtle); font-size: 12px; line-height: 1.4; }
.employee-task-actions { display: flex; gap: 8px; margin-top: 13px; }
.employee-task-actions button { min-height: 44px; flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; color: var(--muted); background: #f8f8f9; font-size: 13px; font-weight: 650; cursor: pointer; }
.employee-task-actions button:first-child { color: #fff; border-color: var(--green); background: var(--green); }
.employee-review-note { margin-top: 12px; border-radius: 12px; padding: 10px 12px; color: #315f90; background: rgba(37,99,235,.07); font-size: 12px; line-height: 1.45; }
.employee-next-action { display: grid; gap: 5px; border-radius: 17px; padding: 15px; background: rgba(0,0,0,.035); }
.employee-next-action.primary { margin-bottom: 16px; background: var(--green-soft); }
.employee-next-action small { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.employee-next-action b { font-size: 15px; line-height: 1.4; }
.employee-next-action span { color: var(--muted); font-size: 12px; }
.employee-project-info, .employee-next { display: grid; gap: 12px; }
.employee-info-card { border: 1px solid var(--line); border-radius: 18px; padding: 17px; background: #fff; }
.employee-info-card small, .employee-project-facts small { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.employee-info-card h3 { margin: 8px 0 0; font-size: 19px; line-height: 1.35; }
.employee-info-card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.employee-project-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.employee-project-facts > span { display: grid; gap: 6px; border-radius: 16px; padding: 14px; background: rgba(0,0,0,.035); }
.employee-project-facts .wide { grid-column: 1/-1; }
.employee-project-facts b { font-size: 14px; line-height: 1.4; }
.employee-manage-entry { width: 100%; margin-top: 6px; }
.employee-next-list { display: grid; gap: 8px; }
.employee-next-list article { min-height: 62px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; padding: 10px 12px; background: #fff; }
.employee-next-list article > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 750; }
.employee-next-list b { display: block; font-size: 14px; }
.employee-next-list small { display: block; margin-top: 4px; color: var(--subtle); font-size: 12px; line-height: 1.4; }
.employee-project-empty { min-height: 260px; display: grid; place-items: center; align-content: center; padding: 28px 20px; text-align: center; }
.employee-project-empty.compact { min-height: 150px; }
.employee-project-empty > span { font-size: 26px; color: var(--green); }
.employee-project-empty h3 { margin: 10px 0 5px; font-size: 18px; }
.employee-project-empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 560px) {
  .employee-project-sheet .sheet-status { padding-top: 10px; }
  .employee-project-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; overflow: visible; }
  .employee-project-tabs button { width: 100%; padding-inline: 6px; }
  .employee-project-body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .employee-sprint-focus { border-radius: 19px; padding: 17px; }
  .employee-sprint-kicker { align-items: flex-start; flex-direction: column; gap: 4px; }
  .employee-sprint-kicker small { text-align: left; }
  .employee-sprint-focus h3 { font-size: 22px; }
  .employee-progress { grid-template-columns: 72px minmax(0,1fr); }
  .employee-sprint-stats > span { min-height: 60px; padding: 9px; }
  .employee-sprint-stats b { font-size: 17px; }
  .employee-sprint-stats small { font-size: 10px; }
  .employee-task-section { border-radius: 19px; padding: 15px; }
  .employee-task-card { padding: 14px; }
  .employee-task-actions { align-items: stretch; flex-direction: column; }
  .employee-project-facts { grid-template-columns: 1fr; }
  .employee-project-facts .wide { grid-column: auto; }
}


/* Agile PM sprint workspace */
.pm-sprint-actions { margin-top: 12px; }
.pm-sprint-metrics { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; margin-top: 12px; }
.pm-sprint-metrics article { min-height: 92px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 16px; padding: 13px; background: #fff; }
.pm-sprint-metrics article.attention { border-color: rgba(37,99,235,.16); background: rgba(37,99,235,.045); }
.pm-sprint-metrics article.danger { border-color: rgba(195,66,63,.2); background: var(--red-soft); }
.pm-sprint-metrics small { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pm-sprint-metrics b { margin-top: 5px; font-size: 23px; letter-spacing: -.5px; }
.pm-sprint-metrics span { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
.pm-review-panel, .pm-blocker-panel { margin-top: 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.pm-review-panel { border-color: rgba(37,99,235,.16); background: linear-gradient(145deg,rgba(37,99,235,.045),#fff 45%); }
.pm-review-panel.empty { border-color: var(--line); background: #fff; }
.pm-review-panel.empty > p { margin: -2px 20px 18px; color: var(--muted); font-size: 13px; }
.pm-review-list, .pm-blocker-list { display: grid; gap: 9px; padding: 0 16px 16px; }
.pm-review-card, .pm-blocker-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: rgba(255,255,255,.92); }
.pm-review-card h4, .pm-blocker-card h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.pm-review-card p, .pm-blocker-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.pm-review-card small, .pm-blocker-card small { display: block; margin-top: 7px; color: var(--subtle); font-size: 12px; line-height: 1.4; }
.pm-review-actions, .pm-blocker-actions { min-width: 150px; display: grid; gap: 7px; }
.pm-review-actions button, .pm-blocker-actions button { min-height: 44px; }
.pm-blocker-panel { border-color: rgba(195,66,63,.2); background: linear-gradient(145deg,var(--red-soft),#fff 48%); }
.pm-board-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 0 3px; }
.pm-board-head span { color: var(--green); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.pm-board-head h3 { margin: 5px 0 0; font-size: 20px; }
.pm-board-head small { color: var(--subtle); font-size: 12px; }
.task-actions .task-accept { color: #fff; border-color: var(--green); background: var(--green); }
.task-actions .task-unblock { color: #fff; border-color: var(--green); background: var(--green); }

@media (max-width: 1100px) {
  .pm-sprint-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .pm-sprint-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pm-review-card, .pm-blocker-card { grid-template-columns: 1fr; }
  .pm-review-actions, .pm-blocker-actions { min-width: 0; grid-template-columns: 1fr 1fr; }
  .pm-board-head { align-items: flex-start; flex-direction: column; }
}


/* Agile sprint review and history */
.sprint-close-action { border-color: rgba(29,29,31,.16); }
.source-chip.carryover { color: #315f90; background: rgba(37,99,235,.08); }
.planning-item.carryover { border-color: rgba(37,99,235,.18); background: rgba(37,99,235,.035); }
.sprint-between-weeks { min-height: 250px; display: grid; place-items: center; align-content: center; border: 1px solid var(--line); border-radius: 22px; padding: 28px; text-align: center; background: radial-gradient(circle at 50% 0, var(--green-soft), transparent 48%), #fff; }
.sprint-between-weeks > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #2c664d; background: var(--green-soft); font-size: 21px; }
.sprint-between-weeks h3 { margin: 13px 0 6px; font-size: 22px; }
.sprint-between-weeks p { max-width: 590px; margin: 0 0 17px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sprint-review-goal { display: grid; gap: 6px; border-radius: 15px; padding: 14px; background: var(--green-soft); }
.sprint-review-goal small { color: #2c664d; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.sprint-review-goal b { font-size: 16px; line-height: 1.4; }
.sprint-review-work { display: grid; gap: 9px; margin-top: 14px; }
.sprint-review-task { display: grid; grid-template-columns: minmax(0,1fr) minmax(180px,240px); align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 15px; padding: 13px; background: #fff; }
.sprint-review-task h4 { margin: 7px 0 3px; font-size: 14px; line-height: 1.35; }
.sprint-review-task small { color: var(--subtle); font-size: 12px; }
.sprint-review-task label { margin: 0; }
.sprint-history { margin-top: 20px; }
.sprint-history-list { display: grid; gap: 10px; }
.sprint-history-card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; }
.sprint-history-card.achieved { border-color: rgba(54,189,71,.22); }
.sprint-history-card.missed { border-color: rgba(195,66,63,.18); }
.sprint-history-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sprint-history-card header small { color: var(--subtle); font-size: 11px; }
.sprint-history-card h4 { margin: 7px 0 0; font-size: 16px; line-height: 1.35; }
.sprint-history-card header > span { flex: 0 0 auto; border-radius: 999px; padding: 6px 9px; color: var(--muted); background: rgba(0,0,0,.045); font-size: 11px; font-weight: 700; }
.sprint-history-card.achieved header > span { color: #2c664d; background: var(--green-soft); }
.sprint-history-card.missed header > span { color: var(--red); background: var(--red-soft); }
.sprint-history-result { display: grid; grid-template-columns: minmax(0,1fr) 80px 80px; gap: 10px; align-items: center; margin-top: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.sprint-history-result p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.sprint-history-result > div { display: grid; justify-items: end; }
.sprint-history-result b { font-size: 18px; }
.sprint-history-result small { color: var(--subtle); font-size: 10px; }
.sprint-history-card footer { margin-top: 10px; color: var(--subtle); font-size: 11px; }
@media (max-width: 620px) {
  .sprint-review-task { grid-template-columns: 1fr; }
  .sprint-history-card header { flex-direction: column; }
  .sprint-history-result { grid-template-columns: 1fr 64px 64px; }
}


/* Multi-project personal weekly focus */
.personal-project-signals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.personal-project-signals article { min-height: 88px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; background: #fff; }
.personal-project-signals article.danger { border-color: rgba(195,66,63,.18); background: var(--red-soft); }
.personal-project-signals article.review { border-color: rgba(37,99,235,.16); background: rgba(37,99,235,.045); }
.personal-project-signals small { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.personal-project-signals b { margin-top: 4px; font-size: 22px; }
.personal-project-signals span { color: var(--muted); font-size: 11px; }
.personal-focus-main, .personal-focus-picker, .personal-other-projects, .personal-focus-empty { border: 1px solid var(--line); border-radius: 22px; padding: 19px; background: #fff; }
.personal-focus-main { border-color: rgba(54,189,71,.18); background: linear-gradient(145deg,var(--green-soft),#fff 44%); }
.personal-focus-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.personal-focus-label span { color: var(--green); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.personal-focus-label small { color: var(--subtle); font-size: 11px; }
.personal-focus-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-top: 12px; }
.personal-focus-head small { color: var(--subtle); font-size: 11px; }
.personal-focus-head h3 { max-width: 700px; margin: 6px 0 0; font-size: 23px; line-height: 1.28; }
.personal-focus-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.personal-focus-actions > button { min-height: 58px; display: grid; grid-template-columns: 10px minmax(0,1fr); align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; color: inherit; background: rgba(255,255,255,.76); text-align: left; cursor: pointer; }
.personal-focus-actions b, .personal-focus-actions small { display: block; }
.personal-focus-actions b { font-size: 13px; }
.personal-focus-actions small { margin-top: 3px; color: var(--subtle); font-size: 11px; }
.personal-focus-picker, .personal-other-projects { margin-top: 12px; }
.personal-focus-picker.standalone, .personal-other-projects.standalone { margin-top: 0; }
.personal-focus-choice-list { display: grid; gap: 9px; }
.personal-focus-choice { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; background: #fff; }
.personal-focus-choice.selected { border-color: rgba(54,189,71,.22); background: var(--green-soft); }
.personal-focus-choice small { color: var(--green); font-size: 11px; font-weight: 700; }
.personal-focus-choice h4 { margin: 5px 0 4px; font-size: 15px; line-height: 1.35; }
.personal-focus-choice span { color: var(--subtle); font-size: 11px; }
.personal-focus-choice button { min-height: 44px; }
.personal-focus-choice.selected button { opacity: .55; }
.personal-focus-choice-list.compact .personal-focus-choice { padding-block: 10px; }
.personal-focus-empty { min-height: 190px; display: grid; place-items: center; align-content: center; text-align: center; }
.personal-focus-empty > span { color: var(--green); font-size: 26px; }
.personal-focus-empty h3 { margin: 10px 0 5px; font-size: 19px; }
.personal-focus-empty p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.my-week-focus { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0; border: 1px solid rgba(54,189,71,.17); border-radius: 17px; padding: 12px 15px; color: inherit; background: var(--green-soft); text-align: left; cursor: pointer; }
.my-week-focus.needs-choice { border-color: rgba(255,149,0,.18); background: rgba(255,149,0,.07); }
.my-week-focus span { display: grid; gap: 3px; min-width: 0; }
.my-week-focus small { color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.my-week-focus b { font-size: 15px; }
.my-week-focus em { overflow: hidden; color: var(--muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.my-week-focus i { font-size: 22px; font-style: normal; }
.sprint-portfolio { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.sprint-portfolio-card { border: 1px solid var(--line); border-radius: 20px; padding: 17px; background: #fff; }
.sprint-portfolio-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sprint-portfolio-card header small { color: var(--subtle); font-size: 11px; }
.sprint-portfolio-card h3 { margin: 6px 0 0; font-size: 18px; line-height: 1.35; }
.sprint-portfolio-card header > b { font-size: 23px; }
.sprint-portfolio-card .progress-track { margin-top: 14px; }
.sprint-portfolio-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 13px; color: var(--muted); font-size: 11px; }
.sprint-portfolio-meta .danger { color: var(--red); }
.sprint-portfolio-card > button { width: 100%; min-height: 44px; }
@media (max-width: 720px) {
  .personal-project-signals { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .personal-focus-head { flex-direction: column; }
  .personal-focus-actions { grid-template-columns: 1fr; }
  .personal-focus-choice { grid-template-columns: 1fr; }
  .personal-focus-choice button { width: 100%; }
  .sprint-portfolio { grid-template-columns: 1fr; }
}


/* Agile pilot factual metrics */
.agile-metrics-panel { overflow: hidden; }
.agile-metrics-loading { min-height: 90px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.agile-metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.agile-metric-grid article { min-height: 100px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 16px; padding: 13px; background: #fff; }
.agile-metric-grid small { color: var(--subtle); font-size: 10px; text-transform: uppercase; letter-spacing: .045em; }
.agile-metric-grid b { margin-top: 5px; font-size: 24px; letter-spacing: -.55px; }
.agile-metric-grid span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.agile-current-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: center; gap: 8px; margin-top: 11px; border-radius: 15px; padding: 11px 12px; background: var(--green-soft); }
.agile-current-strip > span { display: grid; gap: 3px; }
.agile-current-strip small { color: #4e6d5b; font-size: 10px; }
.agile-current-strip b { font-size: 14px; }
.agile-history-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; }
.agile-history-head, .agile-history-row { min-width: 690px; display: grid; grid-template-columns: 90px 1.5fr repeat(5,.8fr); align-items: center; gap: 8px; padding: 10px 12px; }
.agile-history-head { color: var(--subtle); background: rgba(0,0,0,.025); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.agile-history-row { border-top: 1px solid var(--line); font-size: 12px; }
.agile-history-row > span:first-child { display: grid; }
.agile-history-row small { color: var(--subtle); font-size: 10px; }
.text-action { border: 0; padding: 0; color: var(--green); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 620px) {
  .agile-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agile-current-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agile-current-strip button { grid-column: 1/-1; width: 100%; }
}

/* Project Pulse blue workspace refresh — personal workspace and management shell */
.ws-shell {
  --green: #2F80ED;
  --green-bright: #5A9AF2;
  --green-soft: #EAF3FF;
  --line: #E6EAF1;
  --line-strong: #D7DEE9;
  --surface-solid: #FFFFFF;
  --ink: #161922;
  --muted: #798293;
  --subtle: #98A1AF;
  background: #F7F9FC;
}
.ws-shell .ws-sidebar, .ws-shell .ws-desktop-nav { background: #FBFCFE; }
.ws-shell .ws-sidebar a.active, .ws-shell .ws-desktop-nav button.active { color: #2F80ED; background: #EAF3FF; }
.ws-shell .ws-primary, .ws-shell .ws-add-inline, .ws-shell .ws-folder-order-button.active { border-color: #2F80ED; background: #2F80ED; box-shadow: 0 8px 20px rgba(47,128,237,.18); }
.ws-shell .ws-add-inline.secondary, .ws-shell .ws-new-folder, .ws-shell .ws-folder-order-button { color: #2F80ED; border-color: #D7E7FF; background: #F8FBFF; box-shadow: none; }
.ws-shell .ws-progress span i, .ws-shell .ws-progress > span > i { background: #2F80ED; }
.ws-shell .ws-focus-dashboard { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.9fr); gap: 14px; margin-bottom: 14px; }
.ws-shell .ws-focus-balance, .ws-shell .ws-focus-dashboard-facts { border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(26,44,75,.05); }
.ws-shell .ws-focus-balance { min-height: 174px; display: flex; align-items: stretch; justify-content: space-between; gap: 26px; padding: 22px 24px; background: radial-gradient(circle at 100% 0, #E8F2FF, transparent 42%), #fff; }
.ws-shell .ws-focus-balance small { display:block; color:#8590A0; font-size:10px; font-weight:760; letter-spacing:.08em; }
.ws-shell .ws-focus-balance strong { display:block; margin-top:9px; color:#161922; font-size:38px; letter-spacing:-1.25px; }
.ws-shell .ws-focus-balance strong em { color:#A5ADBA; font-size:17px; font-style:normal; font-weight:650; letter-spacing:-.3px; }
.ws-shell .ws-focus-balance span { display:block; margin-top:3px; color:#798293; font-size:12px; }
.ws-shell .ws-focus-timeline { width:min(510px,100%); height:7px; overflow:hidden; margin-top:19px; border-radius:999px; background:#E8ECF3; }
.ws-shell .ws-focus-timeline i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2F80ED,#69A7F5); }
.ws-shell .ws-focus-dashboard-side { min-width:122px; display:grid; align-content:center; justify-items:end; border-left:1px solid var(--line); padding-left:24px; }
.ws-shell .ws-focus-dashboard-side b { color:#2F80ED; font-size:38px; letter-spacing:-1px; }
.ws-shell .ws-focus-dashboard-side small { margin-top:4px; text-align:right; letter-spacing:0; font-weight:600; }
.ws-shell .ws-focus-dashboard-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; overflow:hidden; background:var(--line); }
.ws-shell .ws-focus-dashboard-facts .ws-focus-metric { min-height:86px; display:grid; align-content:center; padding:16px 18px; background:#fff; }
.ws-shell .ws-focus-dashboard-facts .ws-focus-metric b { color:#161922; font-size:28px; letter-spacing:-.7px; }
.ws-shell .ws-focus-dashboard-facts .ws-focus-metric small { margin-top:4px; color:#798293; font-size:11px; }
.ws-shell .ws-focus-dashboard-facts .ws-focus-metric.danger b { color:#D95E5E; }
.ws-shell .ws-focus-dashboard-facts .ws-focus-metric.warning b { color:#D68C24; }
.ws-shell .ws-focus-week { border-color:#D8E8FF; background:radial-gradient(circle at 100% 0,#EAF3FF,transparent 40%),#fff; }
.ws-shell .ws-task-card, .ws-shell .ws-folder-tile, .ws-shell .ws-project-card { box-shadow:0 8px 22px rgba(24,40,67,.045); }
@media (max-width: 760px) {
  .ws-shell .ws-focus-dashboard { grid-template-columns:1fr; }
  .ws-shell .ws-focus-balance { min-height:156px; padding:18px; gap:16px; }
  .ws-shell .ws-focus-balance strong { font-size:30px; }
  .ws-shell .ws-focus-dashboard-side { min-width:92px; padding-left:14px; }
  .ws-shell .ws-focus-dashboard-side b { font-size:30px; }
}
