@import url("./type.css");

*, *::before, *::after { box-sizing: border-box; }
:root {
  font-family: "DM Sans", Inter, Roboto, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: #191b19; background: #f2f0e9; line-height: 1.45;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  --ink: #191b19; --muted: #575953; --leaf: #191b19; --deep: #191b19;
  --line: rgba(25,27,25,.2); --paper: #fff; --tint: #e6e4db;
}
body { margin: 0; min-width: 290px; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .64; }
button, input, select, textarea { border-radius: 7px; }
input, textarea, select { min-width: 0; border: 1px solid #a2a397; background: white; padding: .67rem .75rem; width: 100%; }
select { padding-right: 1.5rem; }
textarea { min-height: 5.5rem; resize: vertical; }
label { display: grid; gap: .38rem; font-weight: 600; font-size: .88rem; }
input, select, textarea { font-weight: 400; font-size: .93rem; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #696e2a; outline-offset: 3px; }
a { color: var(--leaf); }
p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3, .wordmark, .metric dd, .boot strong { font-family: Manrope, "DM Sans", Arial, sans-serif; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.5rem); font-weight: 400; letter-spacing: -.06em; }
h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -.035em; }
h3 { font-size: 1rem; font-weight: 500; letter-spacing: -.018em; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 20; top: .6rem; left: .6rem; background: white; padding: .75rem; }
.boot { min-height: 100svh; display: grid; place-content: center; gap: .75rem; text-align: center; }
.boot strong { font-size: 2rem; letter-spacing: -.07em; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.48rem; font-weight: 500; line-height: 1; letter-spacing: -.07em; }
.wordmark small { font-size: 1em; font-weight: 400; }
.mark { display: grid; grid-template: repeat(2, 1fr) / repeat(2, 1fr); width: 23px; height: 23px; gap: 3px; transform: skewY(-8deg); }
.mark i { background: currentColor; }
.mark i:last-child { opacity: .44; }
.eyebrow { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .105em; }
.subtitle, .subtext { color: var(--muted); }
.subtext { font-size: .84rem; }
.subtitle { font-size: 1rem; }
.access { min-height: 100svh; display: grid; grid-template-columns: minmax(320px,.82fr) minmax(0,1.18fr); background: #f2f0e9; }
.access-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2rem; justify-content: space-between; padding: clamp(2rem,4.7vw,5rem); color: white; background: var(--deep); }
.access-aside > * { position: relative; z-index: 1; }
.access-aside .eyebrow { color: #cfcec6; }
.access-aside h2 { font-size: clamp(2.4rem,5vw,5rem); letter-spacing: -.067em; font-weight: 300; line-height: 1; margin: .9rem 0 2.4rem; }
.firm-list { display: grid; max-width: 28rem; }
.firm { display: flex; align-items: baseline; gap: 1.2rem; padding: .8rem 0; border-top: 1px solid #53544c; font-size: .95rem; }
.firm b { color: #d7ef42; font-size: .77rem; letter-spacing: .09em; }
.plan-pattern { position: absolute; z-index: 0; pointer-events: none; width: 100%; top: 8%; right: -33%; height: 45%; opacity: .5; transform: skewY(-19deg); border: 1px solid #74766a; background: repeating-linear-gradient(0deg, transparent, transparent 35px, #44463e 36px, transparent 37px), repeating-linear-gradient(90deg, transparent, transparent 52px, #44463e 53px, transparent 54px); mask-image: linear-gradient(90deg,transparent,#000 35%); }
.local-status { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 500; }
.local-status::before { content: ""; width: .5rem; height: .5rem; border-radius: 100%; background: #d7ef42; }
.access-main { padding: 2.6rem clamp(1.6rem,5vw,6rem); display: grid; align-content: center; }
.chooser { max-width: 650px; width: 100%; margin: auto; }
.chooser h1 { margin: .5rem 0 .7rem; }
.chooser .subtitle { margin-bottom: 1.65rem; max-width: 42ch; }
.account-group { margin-top: 1.1rem; }
.account-group h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .095em; color: var(--muted); margin-bottom: .48rem; }
.accounts { display: grid; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: white; }
.account { display: flex; align-items: center; text-align: left; gap: .85rem; padding: .64rem .9rem; width: 100%; border: 0; border-radius: 0; background: white; }
.account + .account { border-top: 1px solid var(--line); }
.account:hover { background: #efeee6; }
.account:focus-visible { outline-offset: -4px; }
.avatar { flex-shrink: 0; display: grid; place-items: center; width: 2.35rem; height: 2.35rem; color: #262820; background: #e9e7dd; border-radius: 8px; font-size: .8rem; letter-spacing: .025em; font-weight: 600; }
.account-meta { display: grid; }
.account-meta strong { font-size: .94rem; font-weight: 600; }
.account-meta small { font-size: .76rem; color: var(--muted); }
.arrow { margin-left: auto; padding-left: .5rem; color: var(--leaf); }
.shell { min-height: 100svh; display: grid; grid-template-columns: 215px minmax(0,1fr); }
.rail { position: sticky; top: 0; height: 100svh; overflow-y: auto; display: flex; flex-direction: column; background: var(--deep); color: #fff; padding: 1.85rem 1rem 1.1rem; }
.rail .wordmark { margin: 0 .6rem; }
.rail .local-status { margin: .95rem .7rem 2.4rem; color: #cccdc3; }
.rail nav { display: grid; gap: .19rem; }
.navbtn { display: flex; align-items: center; gap: .8rem; padding: .68rem .8rem; color: #e4e3db; font-size: .89rem; font-weight: 500; background: transparent; border: 0; text-align: left; }
.navbtn:hover, .navbtn[aria-current="page"] { color: white; background: #373931; }
.navbtn[aria-current="page"] .nav-icon { color: #d7ef42; }
.nav-icon { width: 1.2rem; display: inline-grid; place-items: center; line-height: 1; font-size: 1.14rem; color: #c4c5b9; }
.user-panel { margin: auto .25rem 0; padding: 1rem .2rem 0; border-top: 1px solid #53544c; }
.user-panel .account-meta small { color: #cccdc3; }
.user-panel .avatar { width: 2rem; height: 2rem; border-radius: 50%; background: #e2e4ba; }
.user-line { display: flex; align-items: center; gap: .6rem; }
.switch-user { background: none; color: #e4e3db; border: 1px solid #65675c; margin-top: .85rem; padding: .43rem .6rem; font-size: .8rem; width: 100%; }
.switch-user:hover { background: #373931; }
.content { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); min-height: 4.35rem; padding: .65rem clamp(1.4rem,3.6vw,4rem); background: #f9f8f3; }
.crumb { font-size: .82rem; font-weight: 600; }
.crumb span { color: var(--muted); margin-right: .5rem; font-weight: 400; }
.search { display: flex; align-items: center; gap: .25rem; max-width: 17rem; width: 41%; }
.search input { background: white; font-size: .83rem; padding: .5rem .65rem; }
.search button { background: white; border: 1px solid #a2a397; font-size: .78rem; padding: .53rem .62rem; }
.workspace { max-width: 1530px; margin: auto; padding: clamp(1.6rem,3.6vw,3.6rem); }
.heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.55rem; }
.heading h1 { margin: .38rem 0 .35rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .63rem .95rem; border: 1px solid #a2a397; background: white; font-size: .88rem; font-weight: 600; text-decoration: none; line-height: 1.4; }
.btn:hover { background: #efeee6; }
.btn.primary { background: #d7ef42; border-color: #191b19; color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: #d7ef42; box-shadow: inset 0 0 0 1px #191b19; }
.btn.primary:disabled { background: #f2f0e9; border-color: var(--line); color: #595953; opacity: 1; }
.text-btn { padding: .32rem 0; background: none; border: 0; font-size: .85rem; font-weight: 600; color: var(--leaf); text-align: left; }
.text-btn:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.metrics { background: #f2f0e9; border: 1px solid rgba(25,27,25,.2); border-radius: 13px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 1.3rem; padding: 1.35rem .3rem; }
.metric { padding: .15rem clamp(.7rem,2vw,2rem); display: grid; gap: .22rem; }
.metric + .metric { border-left: 1px solid rgba(25,27,25,.2); }
.metric dt { font-size: .8rem; color: #494b43; font-weight: 500; }
.metric dd { order: -1; font-size: clamp(1.7rem,3vw,2.65rem); line-height: 1; font-weight: 400; letter-spacing: -.06em; }
.grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; align-items: start; }
.wide-left { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
.stack { display: grid; gap: 1.2rem; align-content: start; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: white; padding: clamp(1.05rem,2vw,1.55rem); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.panel-head > .text-btn { margin-left: auto; }
.row { display: grid; gap: .5rem; border-top: 1px solid var(--line); padding: .95rem 0; overflow-wrap: anywhere; }
.row:last-child { padding-bottom: .15rem; }
.row-main { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.row-info { min-width: 0; }
.row-info .subtext { margin-top: .22rem; }
.pill { display: inline-block; flex-shrink: 0; padding: .2rem .48rem; border-radius: 5px; color: #474940; background: #ecebe3; font-size: .7rem; font-weight: 600; line-height: 1.4; }
.pill.green { background: #f2f0e9; color: #191b19; }
.pill.gold { background: #f1edce; color: #555036; }
.empty { padding: .85rem 0 .15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .91rem; }
.fields { display: grid; gap: .85rem; }
.fields .btn { justify-self: start; }
.clock { background: #fff; border-color: var(--line); border-top: 4px solid #d7ef42; }
.workspace > .clock { margin-bottom: 1.2rem; }
.clock .eyebrow { color: #575953; }
.clock-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; }
.clock h2 { font-size: clamp(1.65rem,2.6vw,2.25rem); letter-spacing: -.055em; margin: .23rem 0 0; }
.clock-timer { display: grid; justify-items: end; }
.clock-timer span, .clock-selection { color: #575953; font-size: .82rem; }
.clock-timer strong { font-variant-numeric: tabular-nums; font-size: 1.1rem; font-weight: 500; }
.clock .clock-detail { color: #575953; font-size: .9rem; margin-top: .48rem; overflow-wrap: anywhere; }
.clock .clock-detail strong { color: #191b19; font-weight: 600; }
.clock-controls { margin-top: .8rem; }
.clock-controls > [data-open-calendar] { margin-top: .75rem; }
.clock-selection { margin-top: .35rem; }
.clock-selection:empty { display: none; }
.clock form { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.clock form label { flex: 1 1 15rem; }
.clock .actions { margin-top: .8rem; }
.clock .actions:first-child { margin-top: 0; }
.result { border-left: 2px solid #b6c246; padding: .2rem .65rem; color: #44473c; white-space: pre-wrap; font-size: .88rem; }
.review-row { font-size: .82rem; font-weight: 500; display: inline-flex; flex-direction: row; align-items: center; justify-self: start; gap: .45rem; }
.review-row input { width: 1rem; height: 1rem; accent-color: var(--leaf); }
.help { color: var(--muted); font-size: .86rem; margin: -.15rem 0 .9rem; }
.note { padding: .72rem .9rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid #d7ef42; color: #191b19; font-size: .9rem; border-radius: 7px; margin: .2rem 0 1rem; overflow-wrap: anywhere; }
.note.error { background: #fff2ea; border-color: #e5beab; color: #844016; }
.document-name { color: var(--muted); font-family: Consolas, monospace; font-size: .77rem; }
.section-space { margin-top: 1.2rem; }
.employee-folder { margin: 1rem 0; }
.employee-folder h2 { margin-bottom: .65rem; }
.mobile-info { display: none; }
.focus-view { display: grid; gap: 1rem; scroll-margin-top: .75rem; }
.focus-heading { display: flex; justify-content: space-between; align-items: end; gap: .65rem 1rem; flex-wrap: wrap; }
.focus-title { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: .15rem 0 .25rem; }
.focus-title h1 { overflow-wrap: anywhere; }
.focus-title h1:focus { outline: none; }
.focus-stage { background: #d7ef42; color: #191b19; }
.focus-heading .btn { background: transparent; }
.focus-identity { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .65rem; }
.focus-timer { font-size: .86rem; font-variant-numeric: tabular-nums; color: #191b19; }
.clock-origin { display: inline-block; color: var(--ink); font-size: .85rem; font-weight: 600; }
.focus-primary { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); gap: 1rem; align-items: start; }
.focus-tasks { grid-column: 1; grid-row: 1; }
.focus-schedule { grid-column: 2; grid-row: 1; }
.focus-primary:has(> .focus-tasks:only-child) { grid-template-columns: 1fr; }
.focus-tasks > h2, [data-other-project-tasks] > h2 { margin-bottom: .65rem; }
.focus-help { margin: -.15rem 0 .8rem; }
.milestone-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(8.5rem,100%),1fr)); gap: .8rem 0; margin: 1rem 0 0; padding: 0; }
.milestone-list li { display: grid; align-content: start; gap: .25rem; min-width: 0; padding: .15rem .65rem .1rem; border-left: 2px solid rgba(25,27,25,.2); overflow-wrap: anywhere; }
.milestone-list strong { font-size: .91rem; font-weight: 600; }
.milestone-list time, .milestone-list span { font-size: .78rem; color: var(--muted); }
.project-schedule { border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .9rem; }
.project-schedule .panel-head { margin-bottom: .45rem; }
.project-schedule .empty { border: 0; padding-top: .35rem; }
.schedule-rows { list-style: none; margin: 0; padding: 0; }
.schedule-rows li { display: grid; gap: .22rem; padding: .7rem 0; overflow-wrap: anywhere; }
.schedule-rows li + li { border-top: 1px solid var(--line); }
.schedule-rows li:last-child { padding-bottom: 0; }
.schedule-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .55rem; }
.schedule-summary strong { font-size: .94rem; }
.schedule-rows time { color: var(--muted); font-size: .83rem; }
.schedule-actions { display: flex; flex-wrap: wrap; gap: .15rem 1rem; }
.milestone-form { padding: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.milestone-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(9rem,100%),1fr)); gap: .7rem; }
.milestone-fields label, .milestone-fields input { min-width: 0; }
.task-row .pill.overdue { background: #fff0df; color: #75411d; }
.focus-view .clock { padding: 1rem; }
.focus-view .clock h2 { font-size: 1.45rem; }
.focus-view .clock:focus { outline: 2px solid #191b19; outline-offset: 3px; }
@media (min-width: 1001px) {
  .workspace > .clock, .focus-view .clock { display: grid; grid-template-columns: minmax(195px,.8fr) minmax(0,1.2fr); align-items: center; gap: 2rem; }
  .workspace > .clock .clock-controls, .focus-view .clock .clock-controls { margin: 0; }
}
@media (min-width: 1550px) { .access { grid-template-columns: minmax(500px,.9fr) 1.1fr; } }
@media (max-width: 990px) {
  .focus-primary { grid-template-columns: 1fr; }
  .focus-tasks, .focus-schedule { grid-column: auto; grid-row: auto; }
  .shell { grid-template-columns: 180px minmax(0,1fr); }
  .rail { padding-inline: .7rem; }
  .grid, .wide-left { grid-template-columns: 1fr; }
  .access { grid-template-columns: minmax(270px,.75fr) minmax(0,1.25fr); }
}
@media (max-width: 720px), (pointer: coarse) and (max-width: 1000px) {
  .focus-view, .focus-primary { gap: .8rem; }
  .focus-heading .actions .btn { padding: .45rem .65rem; }
  .milestone-list { grid-template-columns: repeat(auto-fit,minmax(min(5.1rem,100%),1fr)); margin-top: .7rem; }
  .milestone-list li { padding-inline: .45rem; }
  .shell { display: block; }
  .rail { position: static; height: auto; display: block; padding: calc(.7rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) .5rem max(1rem, env(safe-area-inset-left, 0px)); }
  .rail .wordmark { margin: 0; font-size: 1.18rem; min-height: 44px; }
  .rail .mark { height: 18px; width: 18px; }
  .rail .local-status, .user-panel, .nav-icon { display: none; }
  .mobile-info { display: flex; float: right; gap: .7rem; align-items: center; font-size: .76rem; }
  .mobile-info button { border: 0; color: #dfdfd3; background: transparent; padding: .2rem .1rem; text-decoration: underline; }
  .rail nav { display: flex; clear: both; flex-wrap: wrap; gap: .15rem; padding: .3rem 0 .1rem; }
  .navbtn { padding: .42rem .55rem; font-size: .8rem; white-space: nowrap; }
  .topbar { padding: .6rem max(1rem, env(safe-area-inset-right, 0px)) .6rem max(1rem, env(safe-area-inset-left, 0px)); min-height: 3.2rem; }
  .crumb span { display: none; }
  .search { width: 68%; }
  .workspace { padding: 1.35rem max(1rem, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); }
  .heading { margin-bottom: 1rem; }
  .access { display: block; }
  .access-aside { padding: 1.1rem 1.2rem; display: flex; flex-direction: row; align-items: center; gap: 1rem; }
  .access-aside .intro, .plan-pattern { display: none; }
  .access .wordmark { font-size: 1.3rem; }
  .access-main { padding: 1.8rem 1.15rem 2rem; }
  .metrics { padding: 1rem .1rem; }
  .metric dt { font-size: .73rem; }
  .subtitle { font-size: .93rem; }
  button, .btn, .text-btn, .search button, .review-row { min-height: 44px; min-width: 44px; }
  input, select, textarea, .search input { font-size: max(16px, 1rem); }
  input:not([type="checkbox"]), select { min-height: 44px; }
  .row-info h3, .heading h1, .heading .subtitle { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: no-preference) { button { transition: background-color .12s ease, border-color .12s ease; } }
.access-aside h2 em { font-family: Georgia, serif; font-weight: 400; }
