:root {
  --paper: #fff;
  --canvas: #f5f7fc;
  --ink: #192745;
  --muted: #6a768e;
  --soft: #939daf;
  --line: #e8ecf4;
  --blue: #4566dd;
  --blue-light: #edf1ff;
  --sidebar-width: 224px;
  font-family: 'Fira Sans', 'Avenir Next', 'Segoe UI', 'Noto Sans', sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: default; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #90a5f5; outline-offset: 4px; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px #4566dd15; }
[hidden] { display: none !important; }
.icon { display: block; flex: 0 0 auto; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.skip-link { position: fixed; z-index: 100; top: -70px; left: 12px; padding: 12px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; background: #fcfdff; border-right: 1px solid #e5eaf4; padding: 31px 19px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 23px; font-weight: 750; letter-spacing: -1.1px; padding: 0 9px; }
.brand-point { color: var(--blue); }
.brand-symbol { display: flex; width: 30px; height: 31px; flex-direction: column; gap: 4px; justify-content: center; }
.brand-symbol i { display: block; width: 21px; height: 4px; border-radius: 2px; background: var(--blue); }
.brand-symbol i:nth-child(2) { margin-left: 7px; width: 19px; opacity: .68; }
.brand-symbol i:nth-child(3) { width: 24px; opacity: .35; }
.workspace { display: flex; align-items: center; gap: 9px; padding: 0 9px; margin: 39px 0 29px; font-size: 11px; font-weight: 650; }
.workspace-avatar { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border: 1px solid #e3e7f1; background: #fff; border-radius: 10px; font-size: 13px; color: var(--blue); }
.workspace small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 43px; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 12px; padding: 0 13px; background: transparent; text-align: left; color: #6b7690; font-size: 12px; font-weight: 550; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover { background: #f0f3fa; }
.nav-item.selected { background: #eaf0ff; color: #4262d5; font-weight: 650; }
.nav-count { margin-left: auto; font-size: 10px; background: #e7ebf5; color: #66738f; padding: 1px 6px; border-radius: 4px; }
.sidebar-projects { margin-top: 38px; }
.section-label { display: block; padding: 0 13px; color: #8b95a8; font-size: 10px; font-weight: 600; margin-bottom: 12px; }
.sidebar-project { width: 100%; border: 0; background: none; padding: 9px 13px; display: flex; align-items: center; gap: 10px; font-size: 11px; text-align: left; color: #6b7690; border-radius: 6px; }
.sidebar-project:hover { background: #f0f3fa; color: var(--ink); }
.color-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--project-color); flex: 0 0 auto; }
.sidebar-project .running-mark { margin-left: auto; width: 4px; height: 11px; border-left: 2px solid #4566dd; border-right: 2px solid #4566dd; }
.sidebar-add { display: flex; align-items: center; gap: 7px; color: #909aad; background: transparent; border: 0; font-size: 10px; padding: 12px 10px; }
.sidebar-add .icon { width: 14px; height: 14px; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; }
.demo-card { margin: 0 7px 25px; border-top: 1px solid var(--line); padding-top: 19px; color: #64748e; font-size: 10px; }
.demo-dot { display: inline-block; width: 6px; height: 6px; background: #7892d8; border-radius: 50%; margin-right: 4px; }
.demo-card small { display: block; font-size: 10px; line-height: 1.7; color: #8a95a9; margin: 6px 0 0 12px; }
.profile { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 20px 7px; font-size: 11px; font-weight: 650; }
.profile-avatar, .mini-avatar { display: grid; place-items: center; width: 34px; height: 34px; background: #e8edf8; color: #657595; border-radius: 50%; font-size: 10px; font-weight: 650; }
.profile small { display: block; font-size: 9px; color: #8a95a9; font-weight: 400; margin-top: 2px; }
.app-content { margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 74px; border-bottom: 1px solid #e8ecf5; padding: 0 43px; background: #f9fbff; }
.breadcrumb { display: flex; gap: 15px; font-size: 10px; color: #8a95a9; }
.breadcrumb strong { color: #60718e; font-weight: 500; }
.breadcrumb > span { color: #bdc5d5; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.preview-label { font-size: 10px; color: #7c8caf; background: #edf1f9; padding: 4px 9px; border-radius: 5px; }
.mini-avatar { width: 28px; height: 28px; font-size: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; padding: 7px; border-radius: 6px; color: #71809a; }
.icon-button:hover { background: #e9eef9; color: var(--blue); }
.icon-button .icon { width: 17px; height: 17px; }
main { padding: 37px 43px 18px; max-width: 1680px; margin: auto; }
main:focus { outline: none; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.date-kicker { color: #8692a7; font-size: 10px; margin-bottom: 6px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(27px, 2.4vw, 38px); font-weight: 650; line-height: 1.3; letter-spacing: -1.4px; }
.title-dot { color: var(--blue); }
.page-heading p { margin-top: 7px; font-size: 11px; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; padding: 11px 16px; font-size: 11px; font-weight: 600; border: 1px solid transparent; min-height: 39px; white-space: nowrap; transition: background .16s ease, box-shadow .16s ease; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 3px 6px #4566dd13; }
.button-primary:hover { background: #3656ca; box-shadow: 0 3px 8px #4566dd25; }
.button-secondary { background: #fff; border-color: #e2e7f1; color: #62718b; }
.button-secondary:hover { background: #f3f6fb; }
.button-dark { background: #243455; color: #fff; }
.button-dark:hover { background: #13233f; }
.button-archive { color: #8c573d; background: #faf1ec; border-color: #f0e1d7; }
.button-today { margin-left: 9px; padding: 5px 11px; background: #fff; border: 1px solid #e1e6f0; color: #6e7d97; font-size: 10px; border-radius: 5px; }
.search-panel { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: #fff; border: 1px solid #e0e6f2; border-radius: 8px; margin: -8px 0 21px; }
.search-panel input { flex: 1; width: 0; border: none; background: transparent; font-size: 12px; }
.active-session { position: relative; display: flex; align-items: center; gap: 17px; padding: 21px 24px; border: 1px solid #dce4fa; background: linear-gradient(108deg, #eaf0ff, #f1f4fd 78%); border-radius: 11px; margin-bottom: 32px; min-height: 109px; overflow: hidden; }
.active-orb { width: 47px; height: 47px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #e0e5f9; border-radius: 13px; flex-shrink: 0; box-shadow: 0 3px 12px #4566dd06; }
.equalizer { display: flex; align-items: center; justify-content: center; gap: 3px; height: 20px; }
.equalizer i { height: 9px; width: 3px; border-radius: 2px; background: #6b7fe0; }
.equalizer i:nth-child(2) { height: 18px; }
.equalizer i:nth-child(3) { height: 13px; }
.equalizer i:nth-child(4) { height: 7px; }
.active-copy { min-width: 0; flex: 1; }
.live-label { display: flex; align-items: center; gap: 5px; font-size: 9px; color: #7a87a5; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #5d9a86; box-shadow: 0 0 0 3px #5d9a8610; }
.active-copy h2 { font-size: 16px; font-weight: 650; line-height: 1.5; margin-top: 2px; letter-spacing: -.3px; }
.active-copy p { color: #7d8aa6; font-size: 10px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-timer { display: flex; flex-direction: column; align-items: flex-end; margin-right: 17px; }
.timer-value { font-size: 30px; line-height: 1.25; font-variant-numeric: tabular-nums; font-weight: 550; letter-spacing: -1px; color: #354772; }
.active-timer small { font-size: 9px; color: #8794af; margin-top: 3px; }
.active-session .button { min-height: 36px; padding: 9px 14px; font-size: 10px; }
.active-session.idle { background: #edf2fb; }
.idle-label { font-size: 12px; font-weight: 600; }
.idle-hint { font-size: 10px; color: #7a88a3; margin-top: 3px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading { display: flex; align-items: center; gap: 9px; }
h2 { font-size: 14px; font-weight: 650; letter-spacing: -.25px; }
.project-count { font-size: 9px; padding: 1px 6px; background: #e9edf6; color: #8a96af; border-radius: 4px; }
.week-navigation { display: flex; align-items: center; gap: 6px; }
#week-label { text-align: center; min-width: 150px; color: #667590; font-size: 10px; font-weight: 550; }
.week-navigation .icon-button { padding: 5px; }
.week-navigation .icon { width: 14px; height: 14px; }
.timeline-shell { border: 1px solid #e2e8f2; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 3px 12px #182f5a02; }
.timeline-scroll { overflow-x: auto; }
.timeline { min-width: 830px; --project-col: 232px; }
.timeline-row { display: grid; grid-template-columns: var(--project-col) repeat(7, minmax(79px, 1fr)); }
.timeline-header { min-height: 57px; border-bottom: 1px solid var(--line); }
.project-column-label { align-self: stretch; display: flex; align-items: center; padding-left: 22px; color: #91a0b5; font-size: 9px; background: #fff; position: sticky; left: 0; z-index: 3; border-right: 1px solid #edf0f6; }
.day-label { display: flex; align-items: center; justify-content: center; gap: 5px; color: #94a0b5; font-size: 10px; border-right: 1px solid #f1f3f8; }
.day-label strong { font-weight: 550; color: #74819b; }
.day-label.today { background: #f3f6ff; }
.day-label.today > span { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: #e3eaff; padding: 4px 8px; color: #4767cb; border-radius: 5px; }
.day-label.today strong { color: #4767cb; }
.day-label.weekend { color: #b3bdce; }
.day-label.weekend strong { color: #a6b2c7; }
.project-row { min-height: 98px; border-bottom: 1px solid #edf0f6; }
.project-info { display: flex; align-items: center; gap: 10px; padding: 18px 15px 18px 21px; background: #fff; position: sticky; left: 0; z-index: 2; border-right: 1px solid #edf0f6; }
.project-row.is-running .project-info { background: #f9faff; }
.project-mark { width: 33px; height: 33px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--project-bg); color: var(--project-color); font-size: 10px; font-weight: 700; letter-spacing: -.5px; border-radius: 9px; }
.project-name-group { flex: 1; min-width: 0; }
.project-name { display: block; border: none; background: none; padding: 0; font-size: 11px; font-weight: 650; color: #354660; text-align: left; }
.project-name:hover { color: var(--blue); }
.project-total { display: block; font-size: 9px; color: #8f9bb0; margin-top: 4px; white-space: nowrap; }
.project-total .running-text { color: #6d82cd; }
.project-play { display: grid; align-items: center; justify-content: center; width: 25px; height: 27px; border: 1px solid #e6eaf2; color: #8b98b1; border-radius: 6px; padding: 0; background: #fff; flex-shrink: 0; }
.project-play .icon { width: 13px; height: 13px; }
.project-play:hover { background: #edf1ff; border-color: #ccd8ff; color: var(--blue); }
.project-play.is-running { background: #eaf0ff; border-color: #d9e3ff; color: #6480d2; }
.day-cell { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 5px; padding: 9px 7px; border-right: 1px solid #f0f3f8; min-width: 0; }
.day-cell.today { background: #f7f9ff; }
.day-cell.weekend { background: #fcfdff; }
.day-cell:last-child { border-right: 0; }
.session-block { text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 8px 9px; background: var(--project-bg); color: var(--project-color); border: 1px solid transparent; border-left: 2px solid var(--project-color); border-radius: 5px; min-width: 0; width: 100%; transition: filter .15s ease, transform .15s ease; }
.session-block:hover { filter: saturate(1.25) brightness(.98); transform: translateY(-1px); }
.session-duration { display: flex; gap: 4px; align-items: center; font-weight: 650; font-size: 10px; white-space: nowrap; }
.session-excerpt { font-size: 8px; line-height: 1.45; opacity: .86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.session-block.running-block { border: 1px dashed #96a7e5; border-left: 2px solid #687ed8; background: #edf1ff; color: #627acb; }
.session-block.running-block .live-dot { background: #6f86d9; width: 4px; height: 4px; box-shadow: none; }
.add-project-row { display: flex; align-items: center; width: 100%; border: none; background: #fff; padding: 14px 22px; color: #94a0b6; font-size: 9px; gap: 7px; text-align: left; }
.add-project-row .icon { width: 13px; height: 13px; }
.add-project-row:hover { color: var(--blue); background: #fcfdff; }
.week-summary { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-size: 9px; color: #9aa5b8; }
.week-summary strong { color: #70809d; font-weight: 600; }
.week-summary .summary-note { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.summary-note .icon { width: 12px; height: 12px; color: #91a3a1; }
.summary-separator { width: 3px; height: 3px; border-radius: 50%; background: #c2cbdb; }
.recent-section { margin-top: 36px; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #7c8ba8; font-size: 9px; padding: 5px 0; }
.text-button:hover { color: var(--blue); }
.text-button .icon { width: 12px; height: 12px; }
.activity-row { display: flex; gap: 13px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid #e6ebf4; width: 100%; background: transparent; border-top: 0; border-left: 0; border-right: 0; text-align: left; }
.activity-row:hover .activity-outcome { color: var(--blue); }
.activity-dot { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; color: var(--project-color); background: var(--project-bg); border-radius: 50%; }
.activity-dot .icon { width: 12px; height: 12px; }
.activity-copy { flex: 1; min-width: 0; }
.activity-outcome { display: block; color: #54637d; font-size: 11px; line-height: 1.65; }
.activity-meta { display: block; color: #9ca7bb; font-size: 9px; margin-top: 3px; }
.activity-meta strong { font-weight: 500; color: #8492ab; }
.activity-time { color: #97a3b8; font-size: 9px; margin-left: auto; white-space: nowrap; padding-top: 4px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 8px; color: #a4aec0; }
.quiet-label { font-size: 11px; color: #8d99af; }
.empty-state { text-align: center; padding: 55px 25px; border: 1px dashed #d7deee; border-radius: 10px; color: #8c99ae; }
.empty-state .icon { margin: 0 auto 17px; width: 30px; height: 30px; color: #a0b0cc; }
.empty-state h3 { color: #62728f; font-size: 14px; margin-bottom: 7px; }
.empty-state p { font-size: 11px; }
.archive-card { display: flex; align-items: center; gap: 17px; padding: 23px; border: 1px solid #e1e7f1; border-radius: 10px; background: #fff; margin-bottom: 12px; }
.archive-card .archive-copy { flex: 1; }
.archive-card h3 { font-size: 13px; }
.archive-card p { color: #929eb2; font-size: 11px; margin-top: 4px; }
dialog { border: 1px solid #e0e6f2; color: var(--ink); box-shadow: 0 25px 100px #182a4c25; }
dialog::backdrop { background: #182a4c40; backdrop-filter: blur(3px); }
.modal { padding: 28px; border-radius: 15px; width: min(470px, calc(100% - 28px)); max-height: calc(100dvh - 30px); }
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-symbol { display: flex; align-items: center; justify-content: center; background: #edf1ff; color: #6883de; width: 37px; height: 37px; border-radius: 10px; }
.modal h2 { font-size: 23px; font-weight: 600; letter-spacing: -.8px; }
.modal p { color: #8290a7; font-size: 11px; margin-top: 7px; line-height: 1.7; }
.modal label { display: block; color: #53637e; font-size: 11px; margin-top: 20px; margin-bottom: 7px; }
.modal label span { color: #a5afc1; font-weight: 400; font-size: 10px; margin-left: 4px; }
.modal input, .modal textarea { display: block; width: 100%; padding: 11px 12px; color: #435570; border: 1px solid #dce3f1; background: #fcfdff; border-radius: 6px; font-size: 12px; }
.modal input::placeholder, .modal textarea::placeholder { color: #acb5c6; }
.modal textarea { resize: vertical; min-height: 70px; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 26px; }
.modal-top + .quiet-label { margin-bottom: 3px; }
.color-picker { margin: 20px 0 0; border: none; padding: 0; }
.color-picker legend { font-size: 11px; color: #53637e; margin-bottom: 10px; }
#color-options { display: flex; gap: 11px; }
.color-radio { display: block; position: relative; margin: 0 !important; cursor: pointer; }
.color-radio input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; }
.color-radio span { margin: 0 !important; width: 28px; height: 28px; border: 4px solid #fff; display: block; border-radius: 50%; background: var(--project-color); box-shadow: 0 0 0 1px #e5eaf3; }
.color-radio input:checked + span { box-shadow: 0 0 0 2px var(--project-color); }
.color-radio input:focus-visible + span { outline: 3px solid #90a5f5; outline-offset: 4px; }
.time-fields { display: flex; gap: 13px; }
.time-fields > div { width: 50%; }
.time-fields input { padding: 9px; font-size: 10px; }
.form-error { color: #b75656 !important; }
.drawer { position: fixed; left: auto; top: 0; right: 0; bottom: 0; width: min(480px, 100%); height: 100dvh; max-height: none; margin: 0; border-radius: 15px 0 0 15px; border: 0; padding: 29px; overflow-y: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer .project-mark { width: 50px; height: 50px; font-size: 16px; border-radius: 13px; }
.drawer h2 { font-size: 26px; font-weight: 600; letter-spacing: -.9px; }
.drawer-description { font-size: 12px; color: #8d99b0; margin: 8px 0 25px; }
.drawer-total { font-size: 30px; font-weight: 500; letter-spacing: -1px; }
.drawer-total-label { color: #94a0b7; font-size: 10px; margin-bottom: 24px; }
.drawer-actions { display: flex; gap: 8px; margin-bottom: 35px; flex-wrap: wrap; }
.drawer h3 { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.drawer-session { display: block; width: 100%; background: #f8faff; border: 1px solid #e7ecf5; border-radius: 8px; padding: 14px; text-align: left; margin-bottom: 10px; }
.drawer-session:hover { border-color: #bfcdf2; }
.drawer-session .session-date { display: block; color: #96a2b8; font-size: 9px; margin-bottom: 6px; }
.drawer-session .session-text { font-size: 11px; color: #61718c; }
.drawer-session .session-duration { margin-top: 7px; color: #90a0bd; font-weight: 500; }
.drawer-empty { color: #9ba6b9; font-size: 12px; padding: 25px 0; }
.toast { position: fixed; z-index: 100; bottom: 25px; left: calc(50% + var(--sidebar-width) / 2); transform: translate(-50%, 18px); pointer-events: none; background: #263753; color: #fff; box-shadow: 0 8px 25px #1a2b4b26; border-radius: 9px; font-size: 12px; line-height: 1.7; padding: 13px 20px; max-width: calc(100vw - 35px); opacity: 0; transition: opacity .18s, transform .18s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1600px) {
  :root { --sidebar-width: 248px; }
  main { padding: 45px 54px 22px; }
  .topbar { padding: 0 54px; }
  .timeline { --project-col: 265px; }
  .project-row { min-height: 110px; }
  .project-name { font-size: 12px; }
  .session-excerpt { font-size: 9px; }
  .session-duration { font-size: 11px; }
}
@media (max-width: 1150px) {
  :root { --sidebar-width: 190px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { font-size: 20px; gap: 6px; }
  .workspace { font-size: 10px; gap: 7px; }
  .workspace small { font-size: 9px; }
  .workspace-avatar { width: 28px; height: 28px; }
  main { padding: 30px 27px 18px; }
  .topbar { padding: 0 27px; }
  .timeline { --project-col: 208px; }
  .project-info { padding-left: 15px; gap: 8px; }
  .project-mark { width: 29px; height: 29px; font-size: 9px; }
  .project-name { font-size: 10px; }
  .project-total { font-size: 8px; }
}
@media (max-width: 820px) {
  :root { --sidebar-width: 68px; }
  .sidebar { padding: 23px 12px 0; }
  .brand { padding: 0 6px; }
  .brand > span:last-child, .workspace, .sidebar-projects, .demo-card, .profile > span:last-child, .nav-item > :not(:first-child) { display: none; }
  .brand-symbol { width: 26px; }
  .nav { margin-top: 38px; gap: 9px; }
  .nav-item { overflow: hidden; font-size: 0; padding: 0 14px; gap: 0; }
  .nav-item .icon { width: 17px; height: 17px; }
  .profile { justify-content: center; padding: 22px 0; }
  .profile-avatar { width: 30px; height: 30px; }
  .active-session { padding: 18px; gap: 13px; }
  .active-timer { margin-right: 3px; }
  .timer-value { font-size: 26px; }
  .summary-note { display: none !important; }
  .page-footer { font-size: 7px; }
}
@media (max-width: 600px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .topbar { padding: 0 20px; height: 58px; }
  .breadcrumb { gap: 9px; font-size: 9px; }
  .preview-label { font-size: 8px; padding: 3px 6px; }
  .topbar-right { gap: 9px; }
  .mini-avatar { display: none; }
  main { padding: 26px 18px 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; gap: 12px; }
  h1 { font-size: 28px; letter-spacing: -1px; }
  .page-heading p { font-size: 10px; max-width: 215px; line-height: 1.6; }
  .page-heading > .button { font-size: 0; padding: 0; min-width: 38px; height: 38px; gap: 0; margin-top: 21px; }
  .page-heading > .button .icon { width: 18px; height: 18px; }
  .active-session { flex-wrap: wrap; padding: 17px; gap: 12px; margin-bottom: 25px; }
  .active-orb { width: 37px; height: 37px; border-radius: 10px; }
  .active-copy { flex-basis: calc(100% - 55px); }
  .active-copy h2 { font-size: 15px; }
  .active-copy p { font-size: 9px; }
  .active-timer { align-items: flex-start; margin: 0; margin-left: 49px; flex: 1; }
  .timer-value { font-size: 25px; }
  .active-timer small { display: none; }
  .section-toolbar { flex-wrap: wrap; gap: 12px; }
  .section-toolbar h2 { font-size: 13px; }
  .week-navigation { margin-left: auto; }
  #week-label { min-width: 130px; font-size: 9px; }
  .week-navigation { gap: 1px; }
  .button-today { font-size: 9px; padding: 4px 7px; margin-left: 5px; }
  .timeline { min-width: 780px; --project-col: 165px; }
  .project-row { min-height: 96px; }
  .project-info { padding: 12px 9px 12px 12px; flex-wrap: wrap; gap: 7px; }
  .project-mark { width: 24px; height: 24px; border-radius: 7px; font-size: 8px; }
  .project-name-group { flex-basis: calc(100% - 33px); }
  .project-name { font-size: 9px; }
  .project-total { font-size: 8px; }
  .project-play { margin-left: 31px; height: 21px; width: 25px; }
  .project-column-label { padding-left: 12px; }
  .week-summary { gap: 9px; font-size: 8px; }
  .recent-section { margin-top: 28px; }
  .recent-heading h2 { font-size: 13px; }
  .text-button { font-size: 8px; }
  .activity-outcome { font-size: 10px; }
  .activity-meta { font-size: 8px; }
  .activity-time { font-size: 8px; }
  .page-footer { flex-direction: column; gap: 5px; padding-top: 24px; font-size: 8px; }
  .mobile-view-nav { display: flex; gap: 8px; margin-bottom: 20px; }
  .mobile-view-nav button { font-size: 10px; border: 1px solid #dfe6f5; padding: 7px 12px; border-radius: 6px; background: #fff; color: #7b8ba6; }
  .mobile-view-nav button.selected { color: #4566dd; background: #edf1ff; border-color: #d4defa; }
  .archive-card { flex-wrap: wrap; padding: 17px; }
  .archive-card .button { margin-left: 50px; }
  .modal { padding: 23px; }
  .modal h2 { font-size: 22px; }
  .time-fields { flex-direction: column; gap: 0; }
  .time-fields > div { width: 100%; }
  .time-fields input { font-size: 12px; }
}
@media (min-width: 601px) { .mobile-view-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Die Arbeitsfläche bleibt bei normaler Bildschirmgröße gut lesbar. */
.workspace { font-size: 12px; }
.workspace small { font-size: 10px; }
.nav-item { font-size: 13px; }
.section-label, .sidebar-add { font-size: 11px; }
.sidebar-project { font-size: 12px; }
.profile { font-size: 12px; }
.profile small { font-size: 10px; }
.breadcrumb { font-size: 12px; }
.preview-label { font-size: 11px; }
.date-kicker { font-size: 12px; }
.page-heading p { font-size: 13px; }
.button { font-size: 12px; }
.active-copy h2 { font-size: 18px; }
.active-copy p { font-size: 12px; }
.live-label { font-size: 11px; }
.active-timer small { font-size: 10px; }
.active-session .button { font-size: 12px; }
h2 { font-size: 16px; }
#week-label { font-size: 12px; min-width: 171px; }
.button-today { font-size: 11px; }
.project-column-label { font-size: 11px; }
.day-label { font-size: 12px; }
.project-name { font-size: 13px; }
.project-total { font-size: 10px; }
.session-duration { font-size: 12px; }
.session-excerpt { font-size: 10px; line-height: 1.5; }
.session-block { padding: 8px 9px; }
.project-play { width: 27px; height: 29px; }
.project-info { padding-right: 11px; }
.timeline { --project-col: 246px; }
.add-project-row { font-size: 11px; padding-top: 15px; padding-bottom: 15px; }
.week-summary { font-size: 10px; }
.text-button { font-size: 11px; }
.activity-outcome { font-size: 13px; }
.activity-meta, .activity-time { font-size: 11px; }
.activity-dot { width: 30px; height: 30px; }
.page-footer { font-size: 10px; }
.modal p { font-size: 13px; }
.modal label, .color-picker legend { font-size: 12px; }
.modal input, .modal textarea { font-size: 13px; }
.drawer-description { font-size: 13px; }
.drawer-session .session-text { font-size: 13px; }
.drawer-session .session-date { font-size: 11px; }
.archive-card p { font-size: 12px; }
@media (min-width: 1600px) { .timeline { --project-col: 270px; } }
@media (max-width: 1150px) {
  .workspace { font-size: 10px; }
  .workspace small { font-size: 9px; }
  .timeline { --project-col: 219px; }
  .project-name { font-size: 11px; }
  .project-total { font-size: 9px; }
}
@media (max-width: 820px) {
  .nav-item { font-size: 0; }
  .page-footer { font-size: 9px; }
}
@media (max-width: 600px) {
  .breadcrumb, .date-kicker { font-size: 11px; }
  .preview-label { font-size: 10px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .button { font-size: 0; }
  .active-copy h2 { font-size: 17px; }
  .active-copy p { font-size: 11px; }
  .live-label { font-size: 10px; }
  .active-session .button { font-size: 12px; }
  .timeline { --project-col: 165px; }
  .project-name { font-size: 11px; }
  .project-total { font-size: 8px; }
  .project-column-label { font-size: 10px; }
  .week-navigation { margin-left: 0; width: 100%; justify-content: flex-end; }
  #week-label { font-size: 11px; min-width: 150px; }
  .week-summary { font-size: 10px; flex-wrap: wrap; row-gap: 3px; }
  .week-summary .summary-separator { display: none; }
  .activity-outcome { font-size: 12px; }
  .activity-meta, .activity-time { font-size: 10px; }
  .text-button { font-size: 10px; }
  .recent-heading h2 { font-size: 15px; }
  .activity-time { max-width: 35px; white-space: normal; text-align: right; }
  .page-footer { font-size: 10px; }
  .modal .time-fields input { font-size: 12px; }
}

/* Anmeldung, Freigaben und ausführliche Projektetappen. */
.auth-screen { min-height: 100dvh; padding: 36px max(24px, 6vw); background: var(--canvas); }
.auth-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1280px; margin: 0 auto; }
.auth-card { width: min(470px, 100%); margin: clamp(30px, 9vh, 110px) auto 40px; padding: 34px; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; box-shadow: 0 18px 65px #19274507; }
.auth-card h1 { font-size: 30px; letter-spacing: -1px; margin-top: 9px; line-height: 1.25; }
.auth-card h2 { font-size: 22px; }
.auth-card > p, .auth-card > div > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.auth-card label { display: block; font-size: 12px; margin: 22px 0 7px; color: var(--ink); }
.auth-card input { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink); }
.auth-card .button { width: 100%; margin-top: 26px; min-height: 44px; }
.auth-loading { margin: 15vh auto; text-align: center; color: var(--muted); font-size: 14px; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.65; margin-top: 8px; }
.auth-card .field-help { font-size: 11px; }
.auth-card .form-error { margin-top: 18px; }
.sidebar-logout { display: block; width: 100%; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-align: left; padding: 0 7px 20px; }
.sidebar-logout:hover { color: var(--blue); }
.access-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.access-label:empty { display: none; }
.logout-top { margin-left: -8px; }
.app-error { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 16px; border: 1px solid #dcbf94; border-radius: 8px; color: #8d6030; background: #fff8ee; font-size: 12px; margin-bottom: 22px; }
.read-only-label { color: var(--muted); font-size: 11px; line-height: 1.7; }
.drawer-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.drawer-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 34px 0 12px; }
.drawer-section-heading h3 { margin: 0; }
.stage-list { margin-bottom: 30px; }
.stage-card { display: grid; gap: 8px; padding: 16px; margin-bottom: 10px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--ink); }
.stage-card:hover { border-color: var(--blue); }
.stage-card strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.stage-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; color: var(--muted); line-height: 1.7; }
.stage-status { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 500; background: var(--blue-light); color: var(--blue); }
.stage-done { background: #e5f3ec; color: #347b5e; }
.stage-in_progress { background: #e9efff; color: #4a67c6; }
.stage-planned { background: #edf0f5; color: #6c7a90; }
.stage-modal { width: min(900px, calc(100% - 28px)); }
.stage-modal textarea { min-height: 300px; line-height: 1.8; }
.stage-modal select { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 13px; }
.stage-modal select:focus-visible { outline: 3px solid #90a5f5; outline-offset: 3px; }
#stage-read-title { margin: 24px 0 12px; font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; margin: 25px 0; color: var(--ink); }
.user-card { border: 1px solid var(--line); border-radius: 10px; padding: 23px; background: var(--paper); margin-bottom: 14px; }
.user-card-heading { display: flex; align-items: center; gap: 12px; }
.user-card-heading h3 { font-size: 15px; overflow-wrap: anywhere; }
.user-card-heading p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.user-card-projects { font-size: 12px; color: var(--muted); margin: 15px 0; line-height: 1.8; overflow-wrap: anywhere; }
.user-card-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.project-permissions { border: 1px solid var(--line); border-radius: 7px; padding: 13px; margin: 24px 0 0; }
.project-permissions legend { color: var(--muted); font-size: 12px; padding: 0 5px; }
#user-project-options { max-height: 245px; overflow-y: auto; }
.modal .permission-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 9px 3px; cursor: pointer; }
.permission-option input { width: 17px; height: 17px; padding: 0; margin: 2px 0; flex-shrink: 0; accent-color: #4964ce; }
.modal .permission-option span { margin: 0; font-size: 12px; color: var(--ink); }
.permission-option strong { font-weight: 500; }
.permission-option small { display: block; font-size: 10px; color: var(--muted); }
.session-modal { width: min(740px, calc(100% - 28px)); }
.session-modal textarea { line-height: 1.8; }
.session-modal textarea[readonly] { background: var(--canvas); }

@media (max-width: 820px) { .sidebar-logout { display: none; } }
@media (max-width: 600px) {
  .auth-screen { padding: 24px 18px; }
  .auth-heading .brand { font-size: 23px; }
  .auth-card { padding: 25px 22px; margin-top: 42px; }
  .auth-card h1 { font-size: 28px; }
  .topbar-right { gap: 6px; }
  .access-label { font-size: 9px; }
  .mobile-view-nav { flex-wrap: wrap; }
  .stage-modal textarea { min-height: 280px; }
  .stage-modal { padding: 23px; }
  .user-card { padding: 18px; }
  .user-card-actions { gap: 12px; }
  .app-error { flex-direction: column; align-items: flex-start; }
}
