@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  --green: #10543a; --accent: #25825b; --ink: #17231e; --muted: #78817c;
  --line: #e7ece8; --surface: #f5f7f5; --white: #fff; --radius: 8px;
  font-family: 'Manrope', Arial, sans-serif; color: var(--ink); background: #e6e9e7;
  font-synthesis: none; letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 24px; font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 16px; line-height: 1.45; font-weight: 700; }
svg { width: 19px; height: 19px; flex-shrink: 0; stroke-width: 1.7; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 30px; z-index: 70; padding: 10px 16px; background: var(--green); color: white; }
.skip-link:focus { top: 8px; }
.app-shell { display: grid; grid-template-columns: 210px minmax(0, 1fr); max-width: 1530px; min-height: calc(100vh - 48px); margin: 0 auto; background: var(--white); border: 10px solid var(--white); border-radius: 22px; box-shadow: 0 16px 60px #203b2810; overflow: clip; }
.sidebar { display: flex; flex-direction: column; background: #fafbfa; border-radius: 14px 0 0 14px; padding: 28px 14px 14px; border-right: 1px solid #eef0ee; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 23px; font-weight: 800; line-height: 1.1; }
.brand-mark { position: relative; display: grid; place-items: center; width: 40px; height: 43px; color: white; background: var(--green); border-radius: 9px; font-size: 34px; font-weight: 800; font-style: italic; padding-right: 3px; flex-shrink: 0; }
.brand-mark span { position: absolute; width: 7px; height: 7px; top: -3px; right: -3px; background: #edb267; border: 2px solid #fafbfa; border-radius: 50%; }
.brand-x { font-weight: 500; }
.brand small { display: block; font-size: 10px; font-weight: 500; margin-top: 6px; color: var(--muted); }
.workspace-label { display: flex; align-items: center; gap: 7px; margin: 28px 10px 6px; font-size: 12px; color: #626e66; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #428763; flex-shrink: 0; }
.nav-heading { font-size: 10px; font-weight: 600; color: #8b928e; margin: 24px 14px 12px; }
.primary-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 13px; border-radius: 7px; background: transparent; color: #7b837e; text-align: left; font-size: 13px; font-weight: 500; }
.nav-link:hover { background: #edf1ed; color: var(--green); }
.nav-link.active { color: white; background: var(--green); box-shadow: 0 3px 5px #123e3212; }
.nav-count { margin-left: auto; background: #e8eee9; border-radius: 4px; padding: 0 5px; min-width: 22px; font-size: 10px; color: var(--green); text-align: center; }
.active .nav-count { background: #ffffff26; color: white; }
.small-dot { height: 5px; width: 5px; border-radius: 50%; background: #edae66; margin-left: auto; }
.general-heading { margin-top: 36px; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.weekly-goal { background: #e9f1eb; padding: 17px 15px; border-radius: 8px; }
.goal-icon { display: flex; color: var(--green); margin-bottom: 11px; }
.weekly-goal strong { color: var(--green); font-size: 17px; line-height: 1.35; font-weight: 700; display: block; }
.weekly-goal p { font-size: 11px; color: #6d7b71; margin: 9px 0 15px; }
.goal-track { height: 5px; border-radius: 5px; background: #cfded2; overflow: hidden; }
.goal-track span { display: block; height: 100%; width: 62.5%; background: var(--accent); border-radius: inherit; }
.goal-caption { display: flex; justify-content: space-between; margin-top: 7px; font-size: 10px; color: #6d7b71; }
.demo-label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #858d87; padding: 17px 3px 0; }
.demo-label .icon-button { margin-left: auto; width: 24px; height: 24px; }
.demo-label svg { width: 14px; height: 14px; }
.workspace { min-width: 0; background: var(--surface); border-radius: 0 14px 14px 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 84px; padding: 18px 26px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(300px, 34%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: #657268; }
.search-box input { border: none; outline: none; width: 100%; min-width: 0; background: transparent; font-size: 12px; color: var(--ink); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #25825b15; }
.search-box input::placeholder { color: #939b95; }
.search-box svg { width: 17px; height: 17px; }
.topbar-end { display: flex; align-items: center; gap: 19px; }
.role-switch { display: flex; border-radius: 7px; background: #edf0ed; padding: 3px; gap: 2px; }
.role-switch button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; font-size: 12px; color: #7b867e; background: transparent; border-radius: 5px; }
.role-switch button svg { width: 14px; height: 14px; }
.role-switch button.selected { color: var(--green); background: white; box-shadow: 0 1px 4px #1b3b2810; font-weight: 700; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; flex-shrink: 0; border-radius: 50%; background: transparent; }
.icon-button:hover { background: #e8efe9; }
.outlined { border: 1px solid #dce5de; width: 30px; height: 30px; }
.outlined svg { width: 16px; height: 16px; }
.notification-button { background: white; border: 1px solid var(--line); }
.unread-dot { position: absolute; right: 9px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #d98d58; border: 1px solid white; }
.profile-button { display: flex; align-items: center; text-align: left; gap: 10px; background: transparent; padding: 0; }
.profile-button > svg { width: 13px; color: #8b938c; margin-left: 1px; }
.avatar { display: inline-flex; justify-content: center; align-items: center; width: 35px; height: 35px; border-radius: 50%; flex-shrink: 0; font-size: 11px; font-weight: 800; color: #775647; background: #efd8c9; }
.avatar-peach { background: #f2d8c9; color: #86644c; }
.avatar-mint { background: #cce6d8; color: #34735a; }
.avatar-lilac { background: #e3dcf3; color: #7965a1; }
.avatar-yellow { background: #f2e8b8; color: #887634; }
.avatar-neutral { background: #edf1ed; color: #6e7b70; }
.profile-text { max-width: 145px; }
.profile-text strong { display: block; font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-text small { display: block; font-size: 10px; color: #8b948d; margin-top: 1px; }
main { padding: 25px 26px 13px; outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #9aa19b; margin-bottom: 9px; }
.breadcrumb span:last-child { color: #6f7b72; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; }
.page-heading p { font-size: 12px; color: #8c948e; margin-top: 8px; }
.page-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 10px 16px; font-size: 12px; line-height: 1.4; font-weight: 600; border-radius: 7px; border: 1px solid transparent; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.primary { background: var(--green); color: white; }
.primary:hover { background: #1e684b; }
.secondary { color: #43594b; border-color: #b9c8bf; background: transparent; }
.secondary:hover { background: #eaf0eb; }
.full-width { width: 100%; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.stat-card { background: white; border: 1px solid #eef1ed; border-radius: var(--radius); padding: 17px 18px; min-width: 0; min-height: 149px; }
.stat-card:first-child { background: var(--green); border-color: var(--green); color: white; }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 12px; font-weight: 500; }
.stat-card .icon-button { width: 27px; height: 27px; border: 1px solid #bdc8c0; }
.stat-card .icon-button svg { width: 16px; }
.stat-card:first-child .icon-button { background: #eaf3e8; border: none; color: var(--green); }
.stat-number { display: block; margin: 10px 0 8px; font-size: 39px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-note { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #7f8d83; }
.stat-note svg { height: 12px; width: 12px; }
.stat-card:first-child .stat-note { color: #bad9b6; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 17px; }
.dashboard-main { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.analytics-row { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(183px, 1fr); gap: 17px; }
.collaboration-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 17px; flex: 1; }
.panel { min-width: 0; background: white; border-radius: var(--radius); padding: 18px; border: 1px solid #eef1ed; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 25px; margin-bottom: 15px; }
.panel-heading h2 { font-size: 13px; font-weight: 700; }
.quiet-select { border: 1px solid #e8ede8; font-size: 10px; color: #7d877f; border-radius: 4px; background: white; padding: 5px; max-width: 105px; }
.chart-summary { display: flex; gap: 13px; align-items: center; flex-wrap: wrap; }
.chart-summary > strong { font-size: 23px; font-weight: 700; }
.chart-summary small { color: #7a877f; font-size: 12px; font-weight: 400; }
.positive-text { display: inline-flex; gap: 4px; align-items: center; font-size: 9px; color: #3c805b; }
.positive-text svg { width: 12px; height: 12px; }
.activity-chart { height: 138px; width: 100%; margin-top: 8px; }
canvas { display: block; max-width: 100%; }
.reminder-panel { display: flex; flex-direction: column; }
.reminder-panel .panel-heading { margin-bottom: 15px; }
.tiny-icon { display: inline-flex; color: #909d92; }
.tiny-icon svg { width: 16px; height: 16px; }
.label-small { font-size: 9px; font-weight: 600; color: #9aa39b; }
.reminder-panel h3 { color: var(--green); font-size: 19px; line-height: 1.25; font-weight: 600; margin: 8px 0 7px; }
.reminder-panel p { color: #8c978f; font-size: 11px; }
.avatar-stack { display: flex; margin: 15px 0; }
.avatar-stack .avatar { width: 26px; height: 26px; font-size: 8px; border: 2px solid white; }
.avatar-stack .avatar + .avatar { margin-left: -7px; }
.reminder-panel .button { margin-top: auto; min-height: 34px; padding: 8px; font-size: 11px; }
.collaboration-panel { padding-right: 14px; }
.collaboration-panel .panel-heading { margin-bottom: 14px; }
.collaboration-list { display: grid; gap: 15px; }
.member-row { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent; padding: 0; }
.member-row .avatar { height: 32px; width: 32px; font-size: 10px; }
.member-row-copy { flex: 1; min-width: 0; }
.member-row-copy strong { display: block; font-size: 11px; font-weight: 600; }
.member-row-copy small { display: block; font-size: 9px; color: #909a92; margin-top: 3px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 100%; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 5px; border-radius: 4px; font-size: 8px; line-height: 1.3; white-space: nowrap; font-weight: 500; }
.badge.completed { background: #eaf3ed; color: #568767; }
.badge.in-progress { background: #fcf5de; color: #a98b3f; }
.badge.pending { background: #f8e9e6; color: #b77b6b; }
.muted-icon { color: #93a197; width: 15px; height: 15px; }
.progress-panel { display: flex; flex-direction: column; }
.progress-chart-wrap { position: relative; height: 159px; width: 100%; margin-top: 10px; }
.progress-value { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; pointer-events: none; }
.progress-value strong { display: block; font-size: 37px; font-weight: 600; line-height: 1.25; }
.progress-value strong span { font-size: 28px; }
.progress-value > span { font-size: 9px; color: #90a096; }
.chart-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 17px; color: #7e8d82; font-size: 8px; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 4px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.legend-dot.green { background: var(--accent); }
.legend-dot.dark-green { background: #123f2e; }
.legend-dot.hatched { background: repeating-linear-gradient(130deg, #b2bcb5 0, #b2bcb5 1px, #f4f6f3 1px, #f4f6f3 3px); }
.dashboard-rail { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.projects-panel { flex: 1; padding: 16px; }
.projects-panel .panel-heading { margin-bottom: 12px; }
#project-list { display: grid; gap: 16px; }
.project-item { display: flex; gap: 10px; width: 100%; background: transparent; text-align: left; padding: 0; border-radius: 5px; align-items: center; }
.project-item:hover .project-copy strong { color: var(--accent); }
.project-icon { width: 28px; height: 31px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 6px; background: #eef1ff; color: #627bcc; }
.project-icon svg { width: 18px; height: 18px; stroke-width: 2.1; }
.project-icon.teal { color: #409e99; background: #ebf6f3; }
.project-icon.orange { color: #d99259; background: #fbefe4; }
.project-icon.yellow { color: #c7a735; background: #fbf5d9; }
.project-icon.lilac { color: #8c6dbc; background: #f2edf9; }
.project-icon.peach { color: #b67e6f; background: #f7ebe7; }
.project-copy { min-width: 0; flex: 1; }
.project-copy strong { font-size: 11px; line-height: 1.4; font-weight: 500; display: block; overflow-wrap: anywhere; }
.project-copy small { font-size: 9px; color: #9ba49c; display: block; margin-top: 3px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; margin-top: 17px; color: #59836c; }
.text-link svg { width: 13px; height: 13px; }
.timer-panel { padding: 17px 18px 18px; color: white; background: #103f2d; border-radius: 8px; }
.timer-panel .panel-heading { margin-bottom: 3px; }
.timer-panel h2 { font-size: 13px; font-weight: 500; }
.timer-status { font-size: 9px; color: #b6d1c0; padding: 3px 7px; border: 1px solid #ffffff24; border-radius: 4px; }
.timer-panel p { font-size: 10px; color: #87a994; }
#timer-display { display: block; font-variant-numeric: tabular-nums; font-size: 31px; font-weight: 500; text-align: center; margin: 13px 0; line-height: 1.25; }
.timer-controls { display: flex; gap: 10px; justify-content: center; }
.timer-button { position: relative; width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.timer-button svg { width: 13px; height: 13px; fill: currentColor; stroke-width: 2; }
.play-button { background: #f4f8f2; color: #165035; }
.stop-button { background: #dc6968; color: white; }
.dashboard-footer { display: flex; gap: 15px; justify-content: space-between; align-items: center; margin-top: 22px; padding-bottom: 3px; color: #9aa49c; font-size: 10px; }
.dashboard-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-footer .status-dot { width: 4px; height: 4px; }
[data-tooltip]::after { display: none; position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); padding: 5px 8px; background: #203a2c; color: white; content: attr(data-tooltip); font-size: 10px; border-radius: 4px; white-space: nowrap; z-index: 30; pointer-events: none; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { display: block; }
.mobile-menu, .sidebar-overlay { display: none; }
.view-toolbar, .calendar-toolbar, .team-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tabs button { background: transparent; font-size: 12px; color: var(--muted); padding: 8px 11px; border-bottom: 2px solid transparent; }
.filter-tabs button.active { color: var(--green); border-bottom-color: var(--green); }
.result-count { color: #8b958d; font-size: 12px; }
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; }
.project-table { width: 100%; border-collapse: collapse; text-align: left; background: white; font-size: 12px; }
.project-table th { font-size: 10px; font-weight: 600; color: #92a097; background: #f0f4ef; padding: 14px 16px; white-space: nowrap; }
.project-table td { border-bottom: 1px solid var(--line); padding: 17px 16px; }
.project-table td:first-child { min-width: 200px; }
.project-table td:nth-child(3) { white-space: nowrap; }
.project-table .badge { font-size: 10px; padding: 5px 8px; }
.table-person { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.table-person .avatar { height: 25px; width: 25px; font-size: 8px; }
.empty-state { text-align: center; padding: 65px 20px; }
.empty-state > svg { width: 30px; height: 30px; color: #8eaa95; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin: 6px 0 18px; }
.calendar-actions { display: flex; align-items: center; gap: 7px; }
.calendar-scroll { overflow-x: auto; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); min-width: 640px; }
.calendar-weekday { background: #eef3ed; color: #7d8d81; padding: 10px; text-align: center; font-size: 11px; border-right: 1px solid var(--line); }
.calendar-day { min-height: 106px; background: white; padding: 9px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-day.outside { background: #f1f4f0; }
.calendar-day > span { display: grid; place-items: center; height: 23px; width: 23px; font-size: 11px; color: #7c8b7f; margin-bottom: 5px; }
.calendar-day.today > span { background: var(--green); color: white; border-radius: 50%; }
.calendar-event { width: 100%; font-size: 10px; text-align: left; border-left: 2px solid var(--accent); padding: 4px; background: #eaf4eb; color: #39784d; margin: 2px 0; overflow-wrap: anywhere; }
.calendar-upcoming { padding-top: 25px; }
#calendar-deadlines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 20px 0; }
.report-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.reports-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; }
.report-chart { height: 290px; }
.category-chart { height: 235px; padding: 10px; }
.category-row { display: flex; align-items: center; gap: 7px; padding: 8px 0; font-size: 12px; }
.category-row strong { margin-left: auto; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.team-card { display: flex; gap: 15px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.team-card > div { min-width: 0; overflow-wrap: anywhere; }
.team-card .avatar { height: 46px; width: 46px; font-size: 14px; }
.team-card h3 { font-size: 15px; font-weight: 600; }
.team-card p { font-size: 12px; color: #859088; margin-top: 4px; overflow-wrap: anywhere; }
.team-card small { display: inline-block; margin-top: 16px; font-size: 11px; color: #5f816b; }
.modal { padding: 25px; border: 1px solid #dce5dd; border-radius: 12px; box-shadow: 0 30px 100px #0f2f2933; color: var(--ink); width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 50px); }
.modal::backdrop { background: #13261b55; backdrop-filter: blur(3px); }
.modal-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 25px; }
.modal-heading h2 { font-size: 20px; }
.modal-heading .label-small { display: block; margin-bottom: 5px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 18px; min-width: 0; }
.field input, .field select { padding: 11px 12px; min-width: 0; width: 100%; border: 1px solid #d7e1d8; border-radius: 6px; background: white; color: #39523f; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
#info-body p { font-size: 13px; line-height: 1.8; color: #738279; margin-bottom: 13px; }
.info-line { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 12px; }
.info-line svg { color: var(--accent); }
.info-line strong { font-weight: 600; }
.notification-item { padding: 15px 0; border-top: 1px solid var(--line); }
.notification-item strong { font-size: 13px; }
.notification-item small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #163c29; color: white; padding: 12px 20px; font-size: 12px; border-radius: 8px; box-shadow: 0 5px 30px #163c2925; z-index: 100; max-width: calc(100% - 30px); transition: opacity .18s ease, transform .18s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1450px) {
  .app-shell { grid-template-columns: 236px minmax(0, 1fr); }
  main { padding: 29px 32px 20px; } .topbar { padding: 22px 32px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 270px; }
  .panel { padding: 22px; } .activity-chart { height: 164px; }
  .collaboration-list { gap: 19px; } .progress-chart-wrap { height: 175px; }
  .stat-card { min-height: 164px; } .project-copy strong { font-size: 12px; }
  .project-copy small { font-size: 10px; } #project-list { gap: 20px; }
  #timer-display { font-size: 36px; } .member-row-copy strong { font-size: 12px; }
  .member-row-copy small { font-size: 10px; }
}
@media (max-width: 1190px) {
  body { padding: 14px; }
  .app-shell { grid-template-columns: 180px minmax(0, 1fr); border-width: 7px; min-height: calc(100vh - 28px); }
  .sidebar { padding-left: 8px; padding-right: 8px; }
  .brand { padding: 0 9px; font-size: 21px; } .brand-mark { width: 35px; height: 39px; }
  .workspace-label { font-size: 10px; margin-left: 9px; } .nav-link { font-size: 12px; gap: 9px; }
  .topbar { padding: 16px 20px; } .topbar-end { gap: 12px; }
  .profile-text, .profile-button > svg { display: none; } main { padding: 22px 20px 15px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 13px; }
  .analytics-row, .collaboration-row { gap: 13px; } .analytics-row { grid-template-columns: minmax(0, 1fr) 174px; }
  .collaboration-row { grid-template-columns: 1fr; } .dashboard-main { gap: 13px; }
  .progress-panel { min-height: 240px; } .dashboard-rail { gap: 13px; }
  .progress-chart-wrap { height: 150px; max-width: 290px; margin: 0 auto; }
  .projects-panel { flex: 0; } .timer-panel { flex: 1; display: flex; flex-direction: column; justify-content: center; max-height: 240px; }
  .stat-card { padding: 14px; } .stat-card-top { font-size: 11px; } .stats-grid { gap: 12px; }
  .stat-note { font-size: 9px; } .stat-card-top .icon-button { width: 23px; height: 23px; }
  .panel { padding: 15px; } .panel-heading h2 { font-size: 12px; }
  .chart-summary { gap: 6px; } .chart-summary strong { font-size: 20px; } .reminder-panel h3 { font-size: 17px; }
}
@media (max-width: 950px) {
  .app-shell { grid-template-columns: 172px minmax(0, 1fr); } .brand { font-size: 19px; gap: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; } .dashboard-rail { display: grid; grid-template-columns: 1.2fr 1fr; }
  .collaboration-row { grid-template-columns: 1.2fr 1fr; } .timer-panel { max-height: none; }
  .stat-card { min-height: 138px; } .stat-card-top { align-items: flex-start; }
  .stat-card-top .icon-button { display: none; } .stat-number { font-size: 32px; }
  h1 { font-size: 26px; } .page-heading { align-items: flex-start; }
  .page-actions { flex-direction: column; align-items: stretch; }
  .page-actions .button { padding: 8px 10px; min-height: 34px; font-size: 11px; }
  .role-switch button { padding: 7px 9px; } .role-switch button svg { display: none; }
  .search-box { width: 45%; } .reports-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { padding: 0; background: var(--surface); } .app-shell { display: block; border: none; border-radius: 0; min-height: 100vh; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: 230px; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; border-radius: 0; overflow-y: auto; }
  body.menu-open { overflow: hidden; } body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .sidebar-overlay { display: block; position: fixed; inset: 0; background: #132a204f; z-index: 45; }
  .brand { font-size: 23px; } .nav-link { font-size: 14px; } .workspace { border-radius: 0; }
  .topbar { padding: 14px 18px; gap: 10px; min-height: 73px; } .mobile-menu { display: inline-flex; }
  .search-box { flex: 1; width: auto; max-width: 330px; padding: 9px; gap: 7px; }
  .topbar-end { gap: 9px; } .profile-button { display: none; } main { padding: 23px 20px 18px; }
  .page-heading { align-items: center; } .page-actions { flex-direction: row; } .page-actions .button { min-height: 38px; }
  .stats-grid { gap: 10px; } .stat-card { padding: 14px; } .stat-card-top { font-size: 11px; }
  .analytics-row { grid-template-columns: minmax(0, 1.5fr) minmax(175px, 1fr); }
  .panel-heading h2 { font-size: 14px; } .member-row-copy strong { font-size: 12px; }
  .member-row-copy small { font-size: 10px; } .badge { font-size: 9px; }
  .project-copy strong { font-size: 12px; } .project-copy small { font-size: 10px; }
  .quiet-select { font-size: 11px; } .dashboard-footer { font-size: 9px; flex-wrap: wrap; }
  .view-toolbar { align-items: flex-start; flex-direction: column; }
  #calendar-deadlines { grid-template-columns: 1fr; } .report-metrics { gap: 10px; } .team-card { padding: 17px; }
}
@media (max-width: 520px) {
  .topbar { padding: 12px; gap: 5px; } .search-box { border: 0; padding: 8px 4px; } .search-box input { font-size: 11px; }
  .topbar-end { gap: 4px; } .notification-button { width: 31px; height: 31px; }
  .role-switch button { font-size: 10px; padding: 7px 8px; } .mobile-menu { width: 30px; height: 34px; }
  main { padding: 20px 16px; } .page-heading { flex-wrap: wrap; gap: 18px; margin-bottom: 20px; }
  .page-heading p { font-size: 11px; } .page-actions { width: 100%; gap: 8px; }
  .page-actions .button { flex: 1; font-size: 12px; } h1 { font-size: 28px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 141px; } .stat-card-top { font-size: 12px; align-items: center; }
  .stat-card-top .icon-button { display: flex; } .stat-number { font-size: 35px; } .stat-note { font-size: 10px; }
  .analytics-row, .collaboration-row, .dashboard-rail { grid-template-columns: 1fr; } .panel { padding: 18px; }
  .panel-heading { margin-bottom: 18px; } .activity-chart { height: 170px; }
  .chart-summary strong { font-size: 25px; } .positive-text { font-size: 10px; }
  .reminder-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .reminder-panel .panel-heading, .reminder-panel > .label-small { grid-column: 1 / -1; }
  .reminder-panel h3 { font-size: 22px; grid-column: 1; } .reminder-panel p { grid-column: 1; }
  .reminder-panel .avatar-stack { grid-column: 2; grid-row: 3 / 5; }
  .reminder-panel .button { grid-column: 1 / -1; margin-top: 20px; min-height: 40px; font-size: 12px; }
  .collaboration-list { gap: 18px; } .member-row-copy strong { font-size: 13px; } .member-row-copy small { font-size: 10px; }
  .member-row .avatar { width: 36px; height: 36px; } .badge { font-size: 9px; padding: 4px 6px; }
  .progress-chart-wrap { height: 180px; } .progress-panel { min-height: 280px; } .chart-legend { font-size: 10px; }
  .progress-value strong { font-size: 44px; } .progress-value > span { font-size: 11px; }
  #project-list { gap: 20px; } .project-copy strong { font-size: 13px; } .project-copy small { font-size: 10px; }
  .project-icon { width: 34px; height: 35px; } .text-link { font-size: 12px; margin-top: 23px; }
  .timer-panel { min-height: 218px; padding: 20px; } #timer-display { font-size: 39px; }
  .timer-button { width: 39px; height: 39px; } .timer-panel h2 { font-size: 15px; }
  .timer-status, .timer-panel p { font-size: 11px; } .dashboard-footer { gap: 8px; font-size: 9px; }
  .report-metrics, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; } .modal-heading h2 { font-size: 19px; }
  .filter-tabs { gap: 0; } .filter-tabs button { font-size: 11px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Unframed account-service loading state. */
.workspace-loading { max-width: 560px; margin: 15vh auto; padding: 24px; }
.workspace-loading h1 { font-size: 28px; margin-bottom: 16px; }
.workspace-loading .button { margin: 12px 8px 0 0; }
#cloud-status { overflow-wrap: anywhere; }
#cloud-status[data-failed="true"] { color: var(--danger, #b42318); }
.notification-item small { overflow-wrap: anywhere; }
.auth-tabs[hidden] { display: none; }
