:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9dd;
  --soft-line: #e8e8eb;
  --paper: #ffffff;
  --surface: #ffffff;
  --accent: #ff3b30;
  --accent-dark: #d93025;
  --apple-blue: #007aff;
  --sidebar: #f5f5f7;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
}

.tone-blue { --tone: #007aff; --tone-soft: #dceeff; --tone-ink: #07549b; }
.tone-orange { --tone: #ff9500; --tone-soft: #ffe6cc; --tone-ink: #945600; }
.tone-green { --tone: #34c759; --tone-soft: #ddf5e4; --tone-ink: #24763a; }
.tone-violet { --tone: #6e70d8; --tone-soft: #e7e6fb; --tone-ink: #46488e; }
.tone-coral { --tone: #ff6b57; --tone-soft: #ffe2dc; --tone-ink: #974034; }
.tone-purple { --tone: #af52de; --tone-soft: #f0dff8; --tone-ink: #70368f; }
.tone-graphite { --tone: #292c31; --tone-soft: #e4e4e6; --tone-ink: #292c31; }
.tone-fill { background: var(--tone, #292c31); }
.tone-text { color: var(--tone-ink, #292c31); }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 9px; color: #949497; font-size: 11px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }

.brand-mark {
  width: 36px; height: 36px; flex: 0 0 auto; overflow: hidden; position: relative;
  display: grid; place-items: end center; padding-bottom: 3px;
  border-radius: 9px; background: #fff; border: 1px solid rgba(30,30,30,.08);
  box-shadow: 0 3px 12px rgba(25,25,25,.08); font-size: 15px; font-weight: 780;
}
.brand-mark::before { content: ""; position: absolute; inset: 0 0 auto; height: 11px; background: var(--accent); }
.brand-mark span { position: relative; }
.brand-mark.large { width: 50px; height: 50px; padding-bottom: 5px; border-radius: 13px; font-size: 20px; }
.brand-mark.large::before { height: 15px; }

.login-view { min-height: 100svh; display: grid; grid-template-columns: minmax(430px, 1.15fr) minmax(410px, .85fr); }
.login-brand {
  position: relative; overflow: hidden; padding: clamp(48px, 7vw, 100px);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink); background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 100%);
  border-right: 1px solid #e4e4e7;
}
.login-brand::before { content: ""; position: absolute; width: 600px; height: 600px; right: -280px; top: -260px; border-radius: 50%; background: rgba(0,122,255,.045); }
.login-brand > * { position: relative; z-index: 1; }
.login-brand .eyebrow { color: var(--accent); margin-top: auto; padding-top: 80px; }
.login-brand h1 { margin: 0; max-width: 690px; font-size: clamp(43px, 5.7vw, 78px); line-height: 1.08; letter-spacing: -.05em; font-weight: 690; }
.login-lead { max-width: 580px; margin: 30px 0 58px; color: #6e6e73; font-size: 16px; line-height: 1.85; }
.login-month { width: min(100%, 500px); padding: 20px; border: 1px solid #dcdce0; border-radius: 18px; background: rgba(255,255,255,.82); box-shadow: 0 18px 50px rgba(0,0,0,.06); }
.mini-week, .mini-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.mini-week span { padding: 0 0 13px; color: #8e8e93; font-size: 10px; text-align: center; }
.mini-days b, .mini-days i { height: 34px; display: grid; place-items: center; position: relative; font-size: 12px; font-style: normal; font-weight: 500; color: #3a3a3c; }
.mini-days b.today { width: 28px; height: 28px; align-self: center; justify-self: center; border-radius: 50%; color: white; background: var(--accent); }
.mini-days b.bar::after { content: ""; position: absolute; bottom: 1px; width: 66%; height: 3px; border-radius: 4px; }
.mini-days b.coral::after { background: #ff6b57; }.mini-days b.violet::after { background: #7374de; }.mini-days b.green::after { background: #36a980; }
.login-panel { display: grid; place-items: center; padding: 42px; background: #fbfbfd; }
.login-card { width: min(100%, 390px); }
.login-card h2 { margin: 0; font-size: 38px; letter-spacing: -.04em; font-weight: 680; }
.form-intro { margin: 13px 0 40px; color: var(--muted); line-height: 1.65; }
.login-card label, .modal-fields label { display: grid; gap: 9px; margin: 0 0 19px; }
.login-card label > span, .modal-fields label > span { font-size: 12px; color: #696b70; font-weight: 700; }
input, select, textarea {
  width: 100%; border: 1px solid #deddd9; border-radius: 10px; color: var(--ink); background: #fff;
  outline: none; padding: 13px 14px; transition: border .16s, box-shadow .16s;
}
textarea { resize: vertical; min-height: 98px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #999b9e; box-shadow: 0 0 0 3px rgba(55,55,55,.06); }
.primary-button, .secondary-button, .text-button, .icon-button, .nav-item, .project-link, .segmented button {
  border: 0; cursor: pointer; transition: transform .15s, background .15s, color .15s, opacity .15s;
}
.primary-button:active, .secondary-button:active, .text-button:active, .icon-button:active { transform: scale(.97); }
.primary-button { border-radius: 9px; padding: 11px 17px; color: #fff; background: var(--apple-blue); font-size: 13px; font-weight: 700; box-shadow: 0 5px 14px rgba(0,122,255,.18); }
.primary-button:hover { background: #006ee6; }
.primary-button span { margin-right: 4px; }
.primary-button.wide { width: 100%; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.secondary-button { border: 1px solid #deddd9; border-radius: 9px; padding: 10px 15px; background: #fff; font-size: 13px; font-weight: 650; }
.secondary-button:hover { background: #f3f3f1; }
.text-button { background: transparent; padding: 9px 13px; border-radius: 8px; color: #63656a; font-size: 13px; font-weight: 650; }
.text-button:hover { background: #f0f0ed; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: transparent; font-size: 18px; }
.icon-button:hover { background: rgba(20,20,20,.06); }
.form-error { min-height: 18px; margin: -4px 0 12px; color: #c83d32; font-size: 12px; }
.demo-hint { margin-top: 20px; color: #a0a0a2; font-size: 11px; text-align: center; }
.login-mobile-logo { display: none; }

.app-shell { min-height: 100svh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 30; display: flex; flex-direction: column; padding: 23px 15px 16px; background: rgba(245,245,247,.96); border-right: 1px solid #d9d9dd; backdrop-filter: blur(24px); }
.sidebar-brand { height: 51px; display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.sidebar-brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.sidebar-brand small { display: block; margin-top: 2px; color: #999a9c; font-size: 9px; }
.main-nav { display: grid; gap: 4px; margin-top: 27px; }
.nav-item { width: 100%; padding: 10px 11px; display: flex; gap: 11px; align-items: center; border-radius: 8px; background: transparent; color: #686a6e; font-size: 13px; font-weight: 600; text-align: left; }
.nav-item:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.nav-item.active { color: #fff; background: var(--apple-blue); box-shadow: 0 2px 8px rgba(0,122,255,.16); }
.nav-icon { width: 16px; height: 16px; position: relative; display: inline-block; opacity: .75; }
.calendar-icon { border: 1.5px solid currentColor; border-radius: 4px; }
.calendar-icon::before { content: ""; position: absolute; inset: 3px -1.5px auto; border-top: 1.5px solid; }
.folder-icon { border: 1.5px solid currentColor; border-radius: 3px; height: 12px; margin-top: 3px; }
.folder-icon::before { content: ""; position: absolute; left: -1.5px; top: -4px; width: 7px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 3px 3px 0 0; }
.users-icon::before, .users-icon::after { content: ""; position: absolute; border: 1.5px solid currentColor; border-radius: 50%; }
.users-icon::before { width: 6px; height: 6px; left: 4px; top: 0; }
.users-icon::after { width: 14px; height: 8px; left: 0; bottom: 0; border-radius: 9px 9px 4px 4px; }
.sidebar-section { margin-top: 28px; min-height: 0; overflow: auto; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 9px; color: #a0a1a3; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.project-links { display: grid; gap: 2px; }
.sidebar-empty { padding: 8px; margin: 0; color: #aaa; font-size: 10px; }
.project-link { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; background: transparent; color: #707176; font-size: 12px; text-align: left; }
.project-link:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.project-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.project-link span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot { margin-top: auto; padding: 15px 7px 0; border-top: 1px solid #deded9; display: flex; align-items: center; justify-content: space-between; }
.user-summary { min-width: 0; display: flex; align-items: center; gap: 9px; }
.avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #292c31; font-size: 11px; font-weight: 750; }
.user-summary strong, .user-summary small { max-width: 120px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary strong { font-size: 11px; }.user-summary small { margin-top: 2px; color: #999a9c; font-size: 9px; }
.logout-button { font-size: 15px; color: #929397; }

.workspace { grid-column: 2; min-width: 0; background: #fff; }
.topbar { height: 74px; position: sticky; top: 0; z-index: 20; padding: 0 clamp(22px, 3.5vw, 50px); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(218,218,222,.92); backdrop-filter: saturate(180%) blur(22px); }
.topbar-date strong { display: block; font-size: 13px; }.topbar-date span { display: block; margin-top: 2px; color: #949599; font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none; }
.view-panel { display: none; padding: 34px clamp(22px, 3.5vw, 50px) 60px; }
.view-panel.active { display: block; }
.page-heading { min-height: 64px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.02; letter-spacing: -.052em; font-weight: 650; }
.page-heading p:not(.eyebrow) { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.month-controls { display: flex; align-items: center; gap: 8px; padding-top: 20px; }
.segmented { display: flex; padding: 2px; border: 1px solid #e0dfdb; border-radius: 9px; background: #fff; }
.segmented button { width: 32px; height: 29px; border-radius: 6px; background: transparent; font-size: 22px; line-height: 1; color: #686a6e; }
.segmented button:hover { background: #f0f0ed; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px; border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }
.summary-item { min-height: 85px; padding: 18px 21px; position: relative; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 7px; border-right: 1px solid var(--soft-line); }
.summary-item:last-child { border-right: 0; }
.summary-kicker { grid-column: 1 / -1; margin-bottom: 4px; color: #8c8d91; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.summary-item strong { font-size: 25px; letter-spacing: -.04em; }.summary-item small { align-self: end; padding-bottom: 3px; color: #aaa; font-size: 9px; }
.summary-item.risk strong { color: var(--accent-dark); }
.calendar-card { border: 1px solid #d1d1d6; border-radius: 11px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.025); }
.weekday-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 38px; align-items: center; border-bottom: 1px solid #d1d1d6; background: #fff; }
.weekday-row span { color: #3a3a3c; font-size: 11px; font-weight: 500; letter-spacing: 0; text-align: center; }
.weekday-row span:first-child, .weekday-row span:last-child { color: #8e8e93; }
.calendar-grid { --calendar-row-height: 118px; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, var(--calendar-row-height)); isolation: isolate; }
.day-cell { min-width: 0; min-height: var(--calendar-row-height); padding: 8px 10px; position: relative; z-index: 1; border-right: 1px solid #d9d9dd; border-bottom: 1px solid #d9d9dd; background: #fff; cursor: pointer; transition: background .12s; }
.day-cell:nth-child(7n) { border-right: 0; }.day-cell:nth-last-child(-n + 7) { border-bottom: 0; }
.day-cell:hover { background: #f8f8fa; }.day-cell.outside { background: #fff; }.day-cell.outside .day-number { color: #b8b8bd; }
.day-number { width: 25px; height: 25px; display: grid; place-items: center; margin: 0 0 5px auto; border-radius: 50%; color: #3a3a3c; font-size: 13px; font-weight: 500; }
.day-cell.today .day-number { color: #fff; background: var(--accent); font-weight: 700; }
.day-events { display: none; }
.calendar-events-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: repeat(6, var(--calendar-row-height)); }
.calendar-column-1 { grid-column-start: 1; }.calendar-column-2 { grid-column-start: 2; }.calendar-column-3 { grid-column-start: 3; }.calendar-column-4 { grid-column-start: 4; }
.calendar-column-5 { grid-column-start: 5; }.calendar-column-6 { grid-column-start: 6; }.calendar-column-7 { grid-column-start: 7; }
.calendar-span-1 { grid-column-end: span 1; }.calendar-span-2 { grid-column-end: span 2; }.calendar-span-3 { grid-column-end: span 3; }.calendar-span-4 { grid-column-end: span 4; }
.calendar-span-5 { grid-column-end: span 5; }.calendar-span-6 { grid-column-end: span 6; }.calendar-span-7 { grid-column-end: span 7; }
.calendar-row-1 { grid-row: 1; }.calendar-row-2 { grid-row: 2; }.calendar-row-3 { grid-row: 3; }.calendar-row-4 { grid-row: 4; }.calendar-row-5 { grid-row: 5; }.calendar-row-6 { grid-row: 6; }
.event-lane-0 { --event-offset: 34px; }.event-lane-1 { --event-offset: 54px; }.event-lane-2 { --event-offset: 74px; }
.project-span {
  height: 18px; min-width: 0; align-self: start; margin-top: var(--event-offset, 34px);
  padding: 0 7px; overflow: hidden; position: relative; display: flex; align-items: center; gap: 8px;
  border: 0; border-radius: 0; color: var(--tone-ink, #07549b);
  background: var(--tone-soft, #dceeff);
  cursor: pointer; pointer-events: auto; font-size: 11px; font-weight: 600; line-height: 18px; text-align: left;
}
.project-span:hover { filter: saturate(1.08) brightness(.98); }
.project-span:focus-visible { z-index: 5; outline: 2px solid rgba(0,122,255,.75); outline-offset: 1px; }
.project-span.is-start, .project-span.is-single { margin-left: 2px; border-radius: 9px 0 0 9px; }
.project-span.is-end, .project-span.is-single { margin-right: 2px; border-radius: 0 9px 9px 0; }
.project-span.is-single { border-radius: 9px; }
.project-span.is-middle { padding-left: 7px; padding-right: 7px; }
.project-span-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-span-progress { flex: 0 0 auto; opacity: .78; font-size: 9px; font-variant-numeric: tabular-nums; }
.project-span:not(.is-end):not(.is-single) .project-span-progress { display: none; }
.project-span[data-status="risk"]::before { content: "!"; width: 13px; height: 13px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--tone, #ff3b30); font-size: 9px; font-weight: 800; }
.calendar-overflow { height: 18px; align-self: start; margin: 95px 5px 0; padding: 0 5px; border: 0; border-radius: 5px; color: #6e6e73; background: rgba(245,245,247,.94); pointer-events: auto; cursor: pointer; font-size: 9px; font-weight: 600; text-align: left; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: #8f9094; font-size: 9px; }
.legend-item { display: flex; gap: 7px; align-items: center; }.legend-item i { width: 7px; height: 7px; border-radius: 50%; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 15px; }
.project-card { min-height: 226px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(36,36,32,.07); }
.project-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-card-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.status-pill { padding: 4px 7px; border-radius: 99px; color: #6e7074; background: #f2f2ef; font-size: 8px; font-weight: 700; }
.status-pill.risk { color: #b44438; background: #fff0ed; }.status-pill.completed { color: #24815f; background: #eaf7f1; }
.project-card h3 { margin: 16px 0 4px; font-size: 19px; letter-spacing: -.025em; }.project-card-code { color: #a3a4a7; font-size: 9px; letter-spacing: .08em; }
.project-meta { display: flex; justify-content: space-between; margin: 25px 0 8px; color: #828388; font-size: 10px; }
.progress-track, .update-progress { width: 100%; overflow: hidden; display: block; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: #ececea; }
.progress-track { height: 5px; }.update-progress { height: 3px; margin-top: 15px; }
.progress-track::-webkit-progress-bar, .update-progress::-webkit-progress-bar { background: #ececea; border-radius: inherit; }
.progress-track::-webkit-progress-value, .update-progress::-webkit-progress-value { background: var(--tone, #007aff); border-radius: inherit; }
.progress-track::-moz-progress-bar, .update-progress::-moz-progress-bar { background: var(--tone, #007aff); border-radius: inherit; }
.project-card-foot { margin-top: auto; padding-top: 19px; display: flex; align-items: center; justify-content: space-between; color: #a0a1a4; font-size: 9px; border-top: 1px solid #f0efec; }
.member-stack { display: flex; }.member-stack .avatar { width: 25px; height: 25px; margin-left: -5px; border: 2px solid #fff; font-size: 8px; }.member-stack .avatar:first-child { margin-left: 0; }
.empty-state { grid-column: 1 / -1; padding: 70px 24px; border: 1px dashed #d9d8d4; border-radius: 14px; color: #929397; text-align: center; }

.employee-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.employee-table { width: 100%; min-width: 700px; border-collapse: collapse; }
.employee-table th { padding: 14px 18px; background: #fafaf8; color: #9a9b9e; font-size: 9px; letter-spacing: .06em; text-align: left; }
.employee-table td { padding: 16px 18px; border-top: 1px solid var(--soft-line); color: #727378; font-size: 11px; }
.employee-cell { display: flex; align-items: center; gap: 10px; }.employee-cell strong { display: block; color: var(--ink); font-size: 12px; }.employee-cell small { display: block; margin-top: 2px; color: #a0a1a4; font-size: 9px; }
.role-badge, .active-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; background: #f1f1ee; font-size: 9px; }.active-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #39a679; }.active-badge.disabled::before { background: #aaa; }
.table-action { border: 0; background: transparent; color: #85868a; cursor: pointer; font-size: 10px; font-weight: 650; }.table-action:hover { color: var(--ink); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(25,25,27,.22); backdrop-filter: blur(2px); }
.day-drawer { width: min(410px, 100vw); position: fixed; z-index: 80; inset: 0 0 0 auto; padding: 27px; display: flex; flex-direction: column; background: #fff; box-shadow: -15px 0 45px rgba(30,30,30,.12); transform: translateX(105%); transition: transform .25s ease; }
.day-drawer.open { transform: translateX(0); }.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }.drawer-content { flex: 1; overflow: auto; padding: 22px 0; }
.drawer-empty { padding: 50px 20px; color: #9b9c9f; text-align: center; }.drawer-empty b { display: block; margin-bottom: 7px; color: #55575c; font-size: 14px; }
.update-card { padding: 17px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fcfcfa; }
.update-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.update-title strong { font-size: 13px; }.update-title span { font-size: 13px; font-weight: 750; }
.update-by { margin: 5px 0 15px; color: #9a9b9e; font-size: 9px; }.update-work { margin: 0; color: #65666b; font-size: 11px; line-height: 1.7; }
.update-blocker { margin-top: 12px; padding: 9px 10px; border-radius: 7px; color: #a54539; background: #fff1ee; font-size: 10px; line-height: 1.5; }

.form-modal { width: min(560px, calc(100vw - 28px)); max-height: calc(100svh - 28px); padding: 0; border: 0; border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.form-modal::backdrop { background: rgba(27,28,30,.32); backdrop-filter: blur(3px); }
.form-modal form { padding: 27px; overflow: auto; max-height: calc(100svh - 28px); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }.modal-head h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }.modal-grid label.wide { grid-column: 1 / -1; }
.range-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }.range-row output { min-width: 42px; color: var(--accent-dark); font-size: 14px; font-weight: 750; text-align: right; }
input[type="range"] { padding: 0; accent-color: var(--accent); border: 0; box-shadow: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }
.toast { min-width: 220px; max-width: calc(100vw - 30px); position: fixed; z-index: 120; left: 50%; bottom: 25px; padding: 12px 16px; border-radius: 9px; color: #fff; background: #24272d; box-shadow: 0 10px 30px rgba(20,20,20,.18); font-size: 12px; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .summary-item { padding: 15px; }
  .calendar-grid { --calendar-row-height: 108px; }
  .day-cell { padding: 6px; }
  .project-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
  .login-brand { padding: 55px; }
}

@media (max-width: 800px) {
  .login-view { display: block; background: #f7f7f4; }
  .login-brand { display: none; }
  .login-panel { min-height: 100svh; padding: 30px 24px; }
  .login-mobile-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 50px; }
  .login-mobile-logo strong { font-size: 18px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-103%); transition: transform .22s; box-shadow: 12px 0 35px rgba(20,20,20,.1); }
  .sidebar.open { transform: translateX(0); }
  .workspace { grid-column: 1; }
  .topbar { height: 64px; padding: 0 16px; }
  .mobile-menu { display: grid; margin-right: 10px; }
  .topbar-date { margin-right: auto; }
  .topbar-actions .secondary-button { display: none; }
  .view-panel { padding: 30px 16px 50px; }
  .page-heading { margin-bottom: 23px; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-item:nth-child(2) { border-right: 0; }.summary-item:nth-child(-n + 2) { border-bottom: 1px solid var(--soft-line); }
  .calendar-card { overflow-x: auto; }
  .weekday-row, .calendar-grid { min-width: 720px; }
}

@media (max-width: 580px) {
  .topbar-date span { display: none; }
  .topbar-actions .primary-button { padding: 10px 11px; font-size: 11px; }
  .page-heading { display: block; }
  .month-controls { padding-top: 15px; justify-content: flex-end; }
  .project-grid { grid-template-columns: 1fr; }
  .summary-item { min-height: 75px; }
  .summary-item strong { font-size: 22px; }
  .day-drawer { padding: 22px; }
  .modal-grid { display: block; }
  .modal-actions { position: sticky; bottom: -27px; margin: 10px -27px -27px; padding: 14px 27px 20px; background: #fff; border-top: 1px solid var(--line); }
}

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