:root {
  --ink: #122a32;
  --ink-2: #29434a;
  --muted: #708287;
  --line: #dfe6e4;
  --paper: #fbfcfa;
  --canvas: #f1f4f1;
  --teal: #28766f;
  --teal-soft: #dcece7;
  --navy: #173b48;
  --sand: #eee8dc;
  --coral: #cf654e;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(28, 50, 55, 0.08);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(40, 118, 111, 0.22); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 236px; padding: 26px 20px 22px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; height: 46px; margin: 0 8px 38px; font-size: 18px; letter-spacing: -.03em; }
.brand strong { font-weight: 740; }
.brand em { color: #9ab7b3; font-style: normal; font-weight: 460; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 9px; display: inline-flex; gap: 3px; align-items: center; justify-content: center; transform: skew(-4deg); }
.brand-mark i { display: block; width: 5px; height: 20px; border-radius: 3px; background: #9bd0c4; }
.brand-mark i:nth-child(2) { height: 25px; background: #fff; }
.brand-mark i:nth-child(3) { height: 16px; background: #d8ebe7; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { border: 0; background: transparent; color: #b9c8ca; border-radius: 10px; min-height: 46px; padding: 0 12px; display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; cursor: pointer; text-align: left; font-size: 14px; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: #f8fbf9; color: var(--ink); font-weight: 680; }
.nav-glyph { width: 24px; font-size: 19px; text-align: center; font-family: Arial, sans-serif; }
.nav-item b { min-width: 23px; height: 23px; padding: 0 7px; border-radius: 20px; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.1); font-weight: 650; }
.nav-item.active b { background: var(--teal-soft); color: var(--teal); }
.queue-note { margin-top: auto; margin-bottom: 22px; padding: 18px; border-radius: 13px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); display: grid; }
.queue-note span { color: #9ab7b3; font-size: 10px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.queue-note strong { margin: 7px 0 5px; font-size: 20px; letter-spacing: -.03em; }
.queue-note small { color: #aebfc1; line-height: 1.45; }
.profile { display: grid; grid-template-columns: 36px 1fr 24px; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.11); }
.profile span { min-width: 0; }
.profile strong, .profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { font-size: 13px; }
.profile small { color: #91a9ac; font-size: 11px; margin-top: 3px; }
.profile button { border: 0; background: transparent; color: #8fa6aa; cursor: pointer; }

.app-main { width: calc(100% - 236px); min-width: 0; margin-left: 236px; }
.topbar { height: 76px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(251,252,250,.92); backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.global-search, .inline-search { display: flex; align-items: center; gap: 10px; }
.global-search { width: min(440px, 44vw); }
.global-search > span, .inline-search > span { color: var(--muted); font-size: 23px; line-height: 1; transform: rotate(-12deg); }
.global-search input, .inline-search input { border: 0; background: transparent; min-width: 0; flex: 1; color: var(--ink); outline: 0; font-size: 14px; }
.global-search input::placeholder, .inline-search input::placeholder { color: #93a2a5; }
.global-search kbd { border: 1px solid var(--line); border-radius: 6px; color: #8a9b9e; background: #fff; padding: 3px 7px; font-size: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.top-actions { display: flex; align-items: center; gap: 13px; }
.today-dot { width: 7px; height: 7px; border-radius: 50%; background: #62a998; box-shadow: 0 0 0 4px #e2f0ec; }
.today-label { color: var(--ink-2); font-size: 12px; font-weight: 620; margin-right: 2px; }
.icon-button { width: 38px; height: 38px; position: relative; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font-size: 20px; }
.icon-button i { position: absolute; right: 8px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); border: 1px solid #fff; }
.primary-button, .secondary-button { border-radius: 9px; min-height: 40px; padding: 0 16px; font-size: 13px; font-weight: 690; cursor: pointer; transition: .16s ease; }
.primary-button { color: #fff; background: var(--teal); border: 1px solid var(--teal); box-shadow: 0 5px 14px rgba(40,118,111,.15); }
.primary-button:hover { background: #21665f; transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.secondary-button:hover { background: #f7f9f7; border-color: #c8d5d2; }
.mobile-avatar { display: none; }

.workspace { padding: 34px 36px 54px; max-width: 1600px; margin: 0 auto; }
.welcome-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 2px 0 28px; }
.eyebrow, .welcome-row .eyebrow, .page-heading .eyebrow { display: block; margin-bottom: 8px; color: var(--teal); font-size: 10px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.welcome-row h1, .page-heading h1 { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.048em; font-weight: 710; }
.welcome-row p, .page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.text-button { border: 0; background: transparent; color: var(--teal); padding: 8px 0; font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button span { margin-left: 7px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { min-height: 143px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 21px; display: flex; justify-content: space-between; }
.stat-card > div { display: flex; flex-direction: column; align-items: flex-start; }
.stat-card span { color: var(--muted); font-size: 11px; font-weight: 670; }
.stat-card strong { margin-top: 6px; font-family: var(--font-geist-mono), monospace; font-size: 34px; letter-spacing: -.08em; }
.stat-card small { color: #8a989b; font-size: 10px; margin-top: auto; }
.stat-card .stat-glyph { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.stat-card.navy .stat-glyph { color: var(--navy); background: #e3ebed; }
.stat-card.teal .stat-glyph { color: var(--teal); background: var(--teal-soft); }
.stat-card.sand .stat-glyph { color: #826d43; background: var(--sand); }
.stat-card.coral .stat-glyph { color: var(--coral); background: #f7e2dd; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr); gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; min-width: 0; padding: 20px; }
.panel.span-two { grid-column: 1; }
.panel-heading { min-height: 41px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.panel-heading span:first-child { color: #8a999c; font-size: 9px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.panel-heading h2 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.025em; }
.panel-heading button { border: 0; background: transparent; color: var(--teal); font-size: 11px; font-weight: 680; cursor: pointer; padding: 5px 0; }
.panel-heading button span { margin-left: 5px; }
.job-list, .motion-list, .material-watch, .activity-feed { display: grid; gap: 8px; }
.wide-job-row { width: 100%; min-height: 76px; border: 1px solid #e8ecea; background: #fff; border-radius: 10px; padding: 12px 13px 12px 0; display: grid; grid-template-columns: 4px minmax(170px, 1.5fr) minmax(130px, .9fr) minmax(120px, .9fr) auto 18px; align-items: center; gap: 14px; text-align: left; cursor: pointer; transition: .16s ease; }
.wide-job-row:hover, .pipeline-card:hover { border-color: #bdcfcb; box-shadow: 0 7px 18px rgba(30,59,64,.07); transform: translateY(-1px); }
.priority-flag { width: 4px; height: 36px; border-radius: 0 4px 4px 0; background: #bdc8c8; }
.priority-flag.urgent { background: var(--coral); }
.priority-flag.high { background: #d9a24a; }
.priority-flag.low { background: #9db3b5; }
.job-main { min-width: 0; display: grid; }
.job-main small { color: var(--teal); font-size: 9px; font-weight: 770; }
.job-main strong { margin: 3px 0 2px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-main em { color: var(--muted); font-size: 11px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-status { display: grid; justify-items: start; gap: 5px; }
.job-status small, .material-progress small { color: #8d999b; font-size: 9px; }
.material-progress { display: grid; gap: 6px; }
.material-progress > span, .mini-progress > span { width: 100%; height: 4px; background: #e7ecea; border-radius: 10px; overflow: hidden; }
.material-progress i, .mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.row-arrow { color: #93a4a6; }
.motion-card { width: 100%; position: relative; overflow: hidden; border: 1px solid #e7ecea; background: #fbfcfb; border-radius: 10px; padding: 14px 12px 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.motion-card > div { min-width: 0; display: grid; }
.motion-card small { color: var(--teal); font-size: 9px; font-weight: 730; }
.motion-card strong { font-size: 12px; margin: 3px 0; }
.motion-card div > span { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.priority-line { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #a7b7b8; }
.priority-line.urgent { background: var(--coral); }
.priority-line.high { background: #d9a24a; }
.material-watch button, .activity-feed button { width: 100%; border: 0; border-top: 1px solid #edf0ef; background: transparent; padding: 12px 4px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; }
.material-watch button:first-child, .activity-feed button:first-child { border-top: 0; }
.material-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--sand); color: #856f45; display: grid; place-items: center; flex: 0 0 auto; }
.material-watch button > span:nth-child(2) { min-width: 0; display: grid; }
.material-watch strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.material-watch small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.material-watch .eta { margin-left: auto; text-align: right; display: grid; }
.material-watch .eta strong { color: var(--ink-2); font-family: var(--font-geist-mono), monospace; }
.activity-feed button { align-items: flex-start; padding: 9px 4px; font-size: 10px; line-height: 1.45; }
.activity-feed button > span:last-child { display: block; color: #5f7074; }
.activity-feed strong { color: var(--ink); }
.activity-feed small { display: block; color: #9aa6a8; margin-top: 2px; }
.activity-dot { width: 8px; height: 8px; margin-top: 3px; flex: 0 0 auto; border-radius: 50%; background: #9eb4b5; box-shadow: 0 0 0 4px #edf2f1; }
.activity-dot.materials { background: #c79843; box-shadow: 0 0 0 4px #f5eee2; }
.activity-dot.progress { background: var(--teal); box-shadow: 0 0 0 4px #e2eeeb; }
.empty-copy { color: #91a0a2; font-size: 12px; padding: 16px 0; margin: 0; text-align: center; }

.avatar { width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; background: #2e7770; border: 2px solid #fff; font-size: 8px; font-weight: 760; letter-spacing: .02em; }
.avatar.large { width: 47px; height: 47px; font-size: 11px; }
.avatar.navy { background: #274b58; }
.avatar.plum { background: #775f78; }
.avatar.amber { background: #a9793f; }
.avatar-stack { display: flex; align-items: center; min-width: 34px; }
.avatar-stack .avatar + .avatar { margin-left: -8px; }
.avatar-stack b { min-width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #edf1ef; color: var(--muted); font-size: 8px; border: 2px solid #fff; margin-left: -6px; }
.unassigned { width: 28px; height: 28px; border: 1px dashed #b9c6c6; color: #8da0a1; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 20px; background: #e7eeee; color: #50676b; font-size: 8px; font-weight: 750; white-space: nowrap; }
.status-pill.materials_received, .status-pill.ready { color: #24645d; background: #dcede8; }
.status-pill.in_progress { color: #395e78; background: #e0ebf1; }
.status-pill.awaiting_approval { color: #786b42; background: #f1ecde; }
.status-pill.completed { color: #57715f; background: #e4eee7; }
.priority-pill { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: #697b7e; font-size: 9px; font-weight: 720; text-transform: capitalize; }
.priority-pill i, .priority-dot { width: 6px; height: 6px; border-radius: 50%; background: #9aacaf; }
.priority-pill.urgent { color: #b6503c; }.priority-pill.urgent i, .priority-dot.urgent { background: var(--coral); }
.priority-pill.high { color: #9a6b24; }.priority-pill.high i, .priority-dot.high { background: #d49b43; }
.priority-pill.low i, .priority-dot.low { background: #93aaad; }

.page-section { min-width: 0; }
.page-heading { align-items: center; }
.filter-bar, .calendar-toolbar { margin-bottom: 18px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.inline-search { min-width: 280px; flex: 1; min-height: 38px; padding: 0 12px; background: #f5f7f5; border-radius: 8px; }
.filter-bar label:not(.inline-search), .calendar-toolbar label { min-width: 180px; display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--line); color: #859497; font-size: 10px; }
.filter-bar select, .calendar-toolbar select { border: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 650; outline: 0; }
.view-density { display: flex; gap: 3px; margin-left: auto; }
.view-density button { width: 33px; height: 33px; border: 0; border-radius: 7px; background: transparent; color: #819396; cursor: pointer; }
.view-density button.active { background: var(--ink); color: #fff; }
.pipeline-board { width: 100%; overflow-x: auto; display: grid; grid-template-columns: repeat(6, minmax(230px, 1fr)); gap: 12px; padding-bottom: 12px; }
.pipeline-column { min-height: 560px; padding: 12px; border-radius: 13px; background: #e9eeeb; border: 1px solid #e1e7e4; }
.column-heading { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 8px; padding: 3px 3px 13px; }
.column-heading h2 { margin: 0; font-size: 12px; }
.column-heading b { min-width: 22px; height: 22px; border-radius: 20px; display: grid; place-items: center; color: #687a7d; background: rgba(255,255,255,.65); font-size: 9px; }
.column-dot { width: 7px; height: 7px; border-radius: 50%; background: #8aa3a5; }
.column-dot.leads { background: #7f9aa0; }.column-dot.approved { background: #9f8760; }.column-dot.materials { background: #bf8a42; }.column-dot.queue { background: #51978b; }.column-dot.progress { background: #3f778b; }.column-dot.ready { background: #527e62; }
.column-jobs { display: grid; align-content: start; gap: 9px; }
.pipeline-card { width: 100%; min-height: 154px; border: 1px solid #dfe6e3; border-radius: 11px; background: #fff; padding: 14px; text-align: left; cursor: pointer; transition: .16s ease; }
.pipeline-card-top, .pipeline-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pipeline-card-top > span:first-child { color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 9px; font-weight: 700; }
.pipeline-card > strong { display: block; margin-top: 14px; font-size: 13px; }
.pipeline-card > p { min-height: 28px; margin: 4px 0 9px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.mini-progress { display: flex; align-items: center; gap: 8px; margin: 9px 0 11px; }
.mini-progress > span { flex: 1; }
.mini-progress small { color: #849396; font-size: 8px; white-space: nowrap; }
.pipeline-card-foot { margin-top: 11px; padding-top: 10px; border-top: 1px solid #edf0ee; }
.pipeline-card-foot > span:last-child { color: #829194; font-size: 8px; text-align: right; }
.empty-column { min-height: 82px; border: 1px dashed #ccd6d3; border-radius: 9px; display: grid; place-items: center; color: #92a09f; font-size: 10px; }

.calendar-controls, .segmented { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.calendar-controls button, .segmented button { min-height: 31px; border: 0; border-radius: 6px; background: transparent; padding: 0 11px; color: var(--muted); font-size: 10px; font-weight: 650; cursor: pointer; }
.calendar-controls button:nth-child(2) { color: var(--ink); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; }
.segmented button.active { background: var(--ink); color: #fff; }
.calendar-toolbar { justify-content: space-between; }
.calendar-toolbar label { margin-left: auto; }
.calendar-legend { display: flex; align-items: center; gap: 13px; padding: 0 6px; color: #7d8e91; font-size: 9px; }
.calendar-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.calendar-legend i { width: 7px; height: 7px; border-radius: 50%; background: #527f8e; }.calendar-legend i.due { background: #c77b57; }.calendar-legend i.material { background: #ba934f; }
.month-calendar { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.weekday-row { display: grid; grid-template-columns: repeat(7, 1fr); background: #f5f7f5; border-bottom: 1px solid var(--line); }
.weekday-row span { min-height: 37px; display: flex; align-items: center; padding-left: 10px; color: #819194; font-size: 9px; font-weight: 740; text-transform: uppercase; letter-spacing: .08em; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.day-cell { min-height: 119px; min-width: 0; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.day-cell:nth-child(7n) { border-right: 0; }.day-cell:nth-last-child(-n+7) { border-bottom: 0; }
.day-cell.muted { background: #fafbfa; color: #b3bdbc; }
.day-number { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 4px; font-family: var(--font-geist-mono), monospace; font-size: 10px; }
.day-cell.today .day-number { border-radius: 50%; background: var(--teal); color: #fff; font-weight: 750; }
.calendar-event { width: 100%; min-height: 24px; border: 0; border-radius: 5px; padding: 4px 6px; margin: 2px 0; display: flex; align-items: center; gap: 5px; overflow: hidden; background: #e5eef1; color: #365e6b; text-align: left; cursor: pointer; font-size: 8px; }
.calendar-event span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event.due { color: #985743; background: #f5e6e1; }.calendar-event.material { color: #836529; background: #f2ebdc; }
.day-cell > div > small { color: #8b999b; font-size: 8px; }
.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.week-calendar > div { min-height: 550px; border-right: 1px solid var(--line); }.week-calendar > div:last-child { border: 0; }.week-calendar > div.today { background: #f6faf8; }
.week-calendar header { height: 63px; display: flex; align-items: center; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); }.week-calendar header span { color: var(--muted); font-size: 9px; text-transform: uppercase; }.week-calendar header strong { font-size: 18px; }.week-calendar .today header strong { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.week-calendar section { padding: 9px; display: grid; gap: 8px; }.week-event { border: 0; border-left: 3px solid #527f8e; border-radius: 7px; padding: 10px; background: #edf3f4; display: grid; text-align: left; cursor: pointer; }.week-event.due { border-color: #c77b57; background: #f8ece8; }.week-event.material { border-color: #ba934f; background: #f7f0e3; }.week-event small { color: var(--muted); font-size: 8px; text-transform: uppercase; }.week-event strong { margin: 5px 0 2px; font-size: 11px; }.week-event span { color: var(--muted); font-size: 9px; }
.day-agenda { min-height: 500px; display: grid; grid-template-columns: 190px 1fr; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }.day-agenda-date { padding: 40px; display: flex; flex-direction: column; align-items: center; background: var(--ink); color: #fff; }.day-agenda-date span { color: #a9c0c0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }.day-agenda-date strong { margin: 8px 0; font-family: var(--font-geist-mono), monospace; font-size: 54px; }.day-agenda-date small { color: #a9c0c0; }.day-agenda-events { padding: 24px; }.day-agenda-events > button { width: 100%; display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 20px; padding: 17px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }.agenda-time { height: 34px; border-radius: 7px; display: grid; place-items: center; background: #e5eef1; color: #365e6b; font-family: var(--font-geist-mono), monospace; font-size: 10px; }.agenda-time.due { background: #f5e6e1; color: #985743; }.agenda-time.material { background: #f2ebdc; color: #836529; }.day-agenda-events button > span:nth-child(2) { display: grid; }.day-agenda-events small { color: var(--teal); font-size: 8px; text-transform: uppercase; }.day-agenda-events strong { margin: 3px 0; font-size: 13px; }.day-agenda-events em { color: var(--muted); font-size: 10px; font-style: normal; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.team-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.team-card-head { display: flex; align-items: center; gap: 12px; position: relative; }
.team-card-head > span:nth-child(2) { display: grid; }.team-card-head strong { font-size: 14px; }.team-card-head small { color: var(--muted); font-size: 10px; margin-top: 3px; }.online { width: 8px; height: 8px; border-radius: 50%; background: #5ca186; margin-left: auto; box-shadow: 0 0 0 4px #e2f0eb; }
.workload { display: flex; gap: 24px; margin: 19px 0 9px; color: var(--muted); font-size: 10px; }.workload strong { color: var(--ink); font-family: var(--font-geist-mono), monospace; font-size: 13px; }
.workload-bar { height: 5px; border-radius: 10px; background: #e7ecea; overflow: hidden; }.workload-bar i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.team-jobs { display: grid; margin-top: 14px; }.team-jobs button { display: grid; grid-template-columns: 7px 1fr 16px; align-items: center; gap: 9px; min-height: 47px; border: 0; border-top: 1px solid #edf0ee; background: transparent; padding: 7px 2px; text-align: left; cursor: pointer; }.team-jobs button span:nth-child(2) { display: grid; }.team-jobs strong { font-size: 10px; }.team-jobs small { color: var(--muted); font-size: 8px; margin-top: 2px; }.team-jobs b { color: #9aa9aa; font-weight: 500; }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(15,35,41,.34); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.job-drawer { width: min(620px, 100vw); height: 100%; background: #f8faf8; box-shadow: -22px 0 60px rgba(10,28,33,.18); overflow-y: auto; animation: drawer-in .24s ease-out; }
@keyframes drawer-in { from { transform: translateX(30px); opacity: .7; } }
.drawer-header { position: relative; padding: 29px 30px 21px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-close { position: absolute; top: 18px; right: 20px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #718386; font-size: 21px; cursor: pointer; }
.drawer-heading > div { display: flex; align-items: center; gap: 12px; }.drawer-heading > div > span:first-child { color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 10px; font-weight: 750; }.drawer-heading h2 { margin: 13px 0 3px; font-size: 27px; letter-spacing: -.04em; }.drawer-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.drawer-stage { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }.drawer-stage label, .current-stage { display: grid; gap: 5px; }.drawer-stage label > span, .current-stage > span { color: #829294; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 730; }.drawer-stage select { min-width: 175px; height: 39px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 0 10px; font-size: 11px; font-weight: 650; }
.drawer-tabs { height: 56px; padding: 0 30px; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 27px; position: sticky; top: 0; z-index: 2; }.drawer-tabs button { position: relative; border: 0; background: transparent; color: #7e8f92; font-size: 11px; font-weight: 660; cursor: pointer; }.drawer-tabs button.active { color: var(--ink); }.drawer-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); }.drawer-tabs b { min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 10px; background: #edf1ef; display: inline-grid; place-items: center; color: #738588; font-size: 8px; }
.drawer-body { padding: 22px 30px 42px; }
.overview-tab, .materials-tab, .updates-tab { display: grid; gap: 16px; }
.detail-section { padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.detail-section h3 { margin: 0 0 15px; font-size: 12px; }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px 22px; margin: 0; }.detail-grid div { min-width: 0; }.detail-grid dt { color: #879597; font-size: 8px; font-weight: 740; letter-spacing: .07em; text-transform: uppercase; }.detail-grid dd { margin: 5px 0 0; font-size: 11px; font-weight: 600; line-height: 1.4; }.detail-grid dd small { display: block; color: var(--muted); font-weight: 450; margin-top: 2px; }.description-copy { margin: 0; color: #566a6e; font-size: 11px; line-height: 1.65; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; }.section-title-row button { border: 0; background: transparent; color: var(--teal); padding: 0; font-size: 10px; font-weight: 680; cursor: pointer; }
.assignment-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }.assignment-list button { min-width: 0; min-height: 54px; padding: 8px; display: grid; grid-template-columns: 32px 1fr 19px; align-items: center; gap: 7px; border: 1px solid #e5e9e7; border-radius: 9px; background: #fbfcfb; text-align: left; cursor: pointer; }.assignment-list button.assigned { border-color: #b9d2cc; background: #f1f8f5; }.assignment-list button:disabled { cursor: default; }.assignment-list button > span { min-width: 0; display: grid; }.assignment-list strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.assignment-list small { color: var(--muted); font-size: 8px; margin-top: 2px; }.assignment-list button > i { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: #e6ece9; color: #789; font-size: 10px; font-style: normal; }.assignment-list button.assigned > i { background: var(--teal); color: #fff; }
.material-summary { min-height: 82px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; grid-template-columns: 42px 1fr 140px; align-items: center; gap: 12px; }.material-big { width: 41px; height: 41px; border-radius: 10px; display: grid; place-items: center; background: var(--sand); color: #8a7040; }.material-summary > div:nth-child(2) { display: grid; }.material-summary span { color: var(--muted); font-size: 9px; }.material-summary strong { margin-top: 4px; font-size: 12px; }.summary-progress { height: 7px; border-radius: 10px; background: #e6ebe9; overflow: hidden; }.summary-progress i { display: block; height: 100%; background: var(--teal); }
.drawer-material-list { display: grid; gap: 8px; }.drawer-material-list article { min-height: 84px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; }.material-state { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #f1eadc; color: #9a793f; }.material-state.received { background: var(--teal-soft); color: var(--teal); }.drawer-material-list article > div { min-width: 0; display: grid; }.drawer-material-list strong { font-size: 11px; }.drawer-material-list div > span { color: var(--muted); font-size: 9px; margin-top: 3px; }.drawer-material-list small { color: #8f9c9e; font-size: 8px; margin-top: 5px; }.drawer-material-list button { min-height: 31px; border: 1px solid #b9d1cc; border-radius: 7px; background: #f1f8f5; color: var(--teal); padding: 0 10px; font-size: 9px; font-weight: 700; cursor: pointer; }.full-button { width: 100%; }
.comment-form { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }.comment-form label { border: 1px solid var(--line); border-radius: 11px; background: #fff; overflow: hidden; }.comment-form textarea { width: 100%; min-height: 100px; resize: vertical; border: 0; padding: 13px; outline: 0; color: var(--ink); font-size: 11px; line-height: 1.5; }.comment-form label > span { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 8px; border-top: 1px solid #edf0ee; }.comment-form small { color: #9aa6a8; font-size: 8px; }.comment-form .primary-button { min-height: 32px; padding: 0 11px; font-size: 9px; }
.comment-thread { display: grid; gap: 4px; }.comment-thread article { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 10px; }.comment-thread article > div { min-width: 0; }.comment-thread header { display: flex; justify-content: space-between; align-items: center; }.comment-thread header strong { font-size: 10px; }.comment-thread header span { color: #94a1a3; font-size: 8px; }.comment-thread p { margin: 7px 0; color: #53676a; font-size: 10px; line-height: 1.55; }.comment-thread button { border: 0; background: transparent; color: var(--teal); padding: 0; font-size: 8px; font-weight: 700; cursor: pointer; }

.modal-backdrop { z-index: 90; justify-content: center; align-items: center; padding: 20px; }
.create-modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 25px 75px rgba(11,31,36,.22); animation: modal-in .18s ease-out; }
@keyframes modal-in { from { transform: translateY(10px); opacity: .75; } }
.create-modal header { padding: 24px 25px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }.create-modal h2 { margin: 0; font-size: 23px; letter-spacing: -.04em; }.create-modal header p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }.create-modal header > button { width: 33px; height: 33px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 19px; cursor: pointer; }
.form-grid { padding: 22px 25px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.form-grid label { display: grid; gap: 6px; }.form-grid label.full { grid-column: 1 / -1; }.form-grid label > span { color: #66797d; font-size: 9px; font-weight: 700; }.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfb; padding: 0 11px; color: var(--ink); font-size: 11px; }.form-grid input, .form-grid select { height: 40px; }.form-grid textarea { min-height: 88px; resize: vertical; padding-top: 11px; }.create-modal footer { padding: 14px 25px 22px; display: flex; justify-content: flex-end; gap: 9px; }
.toast { position: fixed; left: calc(50% + 118px); bottom: 24px; z-index: 120; transform: translateX(-50%); max-width: 420px; padding: 12px 17px; border-radius: 10px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 11px; font-weight: 620; }
.loading-workspace, .error-workspace { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 15px; text-align: center; }.loading-workspace .brand-mark { background: var(--ink); }.loading-workspace strong { font-size: 12px; }.loading-workspace > div { width: 180px; height: 4px; background: #dce4e1; border-radius: 10px; overflow: hidden; }.loading-workspace > div i { display: block; width: 45%; height: 100%; background: var(--teal); animation: loading 1.2s infinite ease-in-out; }@keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(320%); } }
.error-workspace > span { font-size: 32px; color: var(--teal); }.error-workspace h1 { margin: 0; font-size: 26px; }.error-workspace p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; }

.pipeline-list { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(20,45,49,.04); }
.pipeline-list-head, .pipeline-list > button { display: grid; grid-template-columns: minmax(240px, 1.6fr) minmax(130px, .8fr) minmax(105px, .65fr) minmax(110px, .55fr) 20px; gap: 16px; align-items: center; }
.pipeline-list-head { min-height: 39px; padding: 0 18px; background: #f6f8f7; color: #7b8b8e; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.pipeline-list > button { width: 100%; min-height: 72px; padding: 10px 18px; border: 0; border-top: 1px solid #edf0ee; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: background .15s ease; }.pipeline-list > button:hover { background: #f8fbfa; }
.list-job { min-width: 0; display: grid; grid-template-columns: 7px 1fr; gap: 11px; align-items: center; }.list-job > span { min-width: 0; display: grid; }.list-job small { color: var(--teal); font-family: var(--font-geist-mono), monospace; font-size: 8px; }.list-job strong { margin-top: 3px; font-size: 11px; }.list-job em { margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.list-date { display: grid; }.list-date strong { font-size: 10px; }.list-date small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.team-card.inactive { opacity: .68; background: #f5f6f5; }.offline { width: 8px; height: 8px; border-radius: 50%; background: #aeb8b7; margin-left: auto; box-shadow: 0 0 0 4px #edf0ef; }
.team-admin-controls { display: flex; align-items: flex-end; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }.team-role-label { flex: 1; display: grid; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 700; }.team-role-label select { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); padding: 0 8px; font-size: 9px; }.team-admin-controls .secondary-button { min-height: 34px; padding: 0 10px; font-size: 8px; }
.edit-job-button { position: absolute; top: 18px; right: 66px; min-height: 35px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--teal); padding: 0 11px; font-size: 9px; font-weight: 700; cursor: pointer; }
.material-state.requested { background: #f1eadc; color: #9a793f; }.material-state.ordered { background: #e8eef4; color: #54718a; }.material-label { text-transform: capitalize; }
.reply-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #e6ece9; background: #f2f8f6; color: #617779; font-size: 9px; }.reply-banner button { border: 0; background: transparent; color: var(--teal); font-weight: 700; cursor: pointer; }.comment-thread article.reply { margin-left: 36px; padding-left: 13px; border-left: 2px solid #d3e4df; }.reply-context { display: block; margin: 1px 0 6px; color: #879698; font-size: 8px; }
.create-modal.wide-modal { width: min(720px, 100%); }.create-modal.compact-modal { width: min(460px, 100%); }.nested-modal { z-index: 110; }.modal-note { margin: 0 25px 2px; padding: 11px 13px; border-radius: 9px; background: #f2f7f5; display: grid; gap: 4px; }.modal-note strong { color: var(--teal); font-size: 9px; }.modal-note span { color: #66797d; font-size: 9px; line-height: 1.45; }
.danger-zone { margin: 0 25px 22px; padding: 14px; border: 1px solid #efd0c9; border-radius: 10px; background: #fff8f6; display: flex; align-items: center; justify-content: space-between; gap: 16px; }.danger-zone > span { display: grid; gap: 4px; }.danger-zone strong { color: #7d352b; font-size: 10px; }.danger-zone small { color: #8a625c; font-size: 8px; line-height: 1.45; }.danger-button { min-height: 40px; padding: 0 15px; border: 1px solid #9a4135; border-radius: 9px; background: #9a4135; color: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }.danger-button:hover { background: #84372d; border-color: #84372d; }.danger-button:disabled { opacity: .5; cursor: not-allowed; }.delete-confirmation { padding: 21px 25px 10px; display: grid; gap: 18px; }.delete-confirmation p { margin: 0; padding: 12px; border-radius: 9px; background: #f5f7f6; display: grid; gap: 3px; }.delete-confirmation p strong { font-size: 11px; }.delete-confirmation p span { color: var(--muted); font-size: 9px; }.delete-confirmation label { display: grid; gap: 7px; }.delete-confirmation label span { color: #66797d; font-size: 9px; }.delete-confirmation input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #d9b3ab; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; }.delete-job-modal footer { justify-content: space-between; }

.auth-body { min-height: 100vh; background: #102c36; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(420px, .75fr); }
.auth-brand { min-height: 100vh; overflow: hidden; background: #011928; }.auth-brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.auth-card { padding: clamp(38px, 7vw, 92px); background: #fbfcfa; display: flex; flex-direction: column; justify-content: center; }.auth-card h1, .simple-auth-card h1 { max-width: 520px; margin: 14px 0 12px; font-size: clamp(34px, 4vw, 53px); line-height: 1.04; letter-spacing: -.055em; }.auth-card > p, .simple-auth-card > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-actions { width: min(420px, 100%); display: grid; gap: 15px; margin-top: 31px; }.auth-button { min-height: 46px; display: inline-flex; justify-content: center; text-decoration: none; }.auth-actions form { display: grid; gap: 12px; }.auth-actions label { display: grid; gap: 6px; color: #607377; font-size: 10px; font-weight: 700; }.auth-actions input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 12px; color: var(--ink); }.auth-divider { display: flex; align-items: center; gap: 10px; color: #8d9a9c; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }.dev-login { justify-self: center; margin-top: 4px; text-decoration: none; }
.auth-message { padding: 11px 13px; margin-top: 18px; border-radius: 8px; background: #edf5f2; color: #426a64; font-size: 10px; }.auth-message.error { background: #faeae6; color: #9f4f3d; }
.simple-auth-card { width: min(560px, calc(100% - 32px)); margin: 10vh auto; padding: clamp(28px, 6vw, 60px); border-radius: 18px; background: #fbfcfa; box-shadow: 0 25px 80px rgba(0,0,0,.22); }.simple-auth-card .auth-button { margin-top: 25px; }.simple-auth-card form { margin-top: 25px; }
.checkbox-label { grid-template-columns: 18px 1fr !important; align-items: center; }.checkbox-label input { width: 16px; height: 16px; }
.magic-toggle { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; white-space: nowrap; }.magic-toggle input { width: 14px; height: 14px; }
.attachment-form { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 11px; border: 1px dashed #c8d5d2; border-radius: 9px; background: #fafcfb; }.attachment-form input { min-width: 0; font-size: 9px; }.attachment-form small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }.attachment-form .secondary-button { min-height: 34px; font-size: 9px; }
.attachment-list { display: grid; margin-top: 10px; }.attachment-list article { min-height: 58px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; border-top: 1px solid #edf0ee; }.attachment-list article > span:nth-child(2) { min-width: 0; display: grid; }.attachment-list strong { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.attachment-list small { margin-top: 3px; color: var(--muted); font-size: 8px; }.file-icon, .file-preview-thumb { width: 40px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: #e8f1ee; color: var(--teal); font-size: 7px; font-weight: 800; }.file-preview-thumb { border: 1px solid #cfe0dc !important; cursor: pointer; }.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }.attachment-list a, .attachment-list button { border: 0; background: transparent; color: var(--teal); padding: 4px; font-size: 8px; font-weight: 700; text-decoration: none; cursor: pointer; }.attachment-list .file-actions > button:last-child { color: #aa5b4b; }
.image-viewer-backdrop { position: fixed; inset: 0; z-index: 130; padding: 24px; background: rgba(4,18,24,.88); backdrop-filter: blur(8px); display: grid; place-items: center; }
.image-viewer { width: min(1100px, 100%); height: min(820px, calc(100vh - 48px)); overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: #0c2027; color: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.45); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.image-viewer > header { min-height: 68px; padding: 12px 16px 12px 21px; border-bottom: 1px solid rgba(255,255,255,.11); display: flex; align-items: center; justify-content: space-between; gap: 18px; }.image-viewer > header > div:first-child { min-width: 0; display: grid; gap: 4px; }.image-viewer > header span { color: #93aaa9; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }.image-viewer > header strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.image-viewer > header > div:last-child { display: flex; align-items: center; gap: 10px; }.image-viewer > header a { min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #d8e8e5; display: inline-flex; align-items: center; font-size: 9px; font-weight: 700; text-decoration: none; }.image-viewer-close { width: 36px; height: 36px; border: 0; border-radius: 9px; background: rgba(255,255,255,.1); color: #fff; font-size: 22px; cursor: pointer; }
.image-viewer-stage { position: relative; min-height: 0; padding: 18px; display: grid; grid-template-columns: 50px minmax(0,1fr) 50px; align-items: center; gap: 12px; touch-action: pan-y; }.image-viewer-stage figure { min-width: 0; height: 100%; margin: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; place-items: center; gap: 10px; }.image-viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; user-select: none; }.image-viewer-stage figcaption { color: #93aaa9; font-size: 8px; }.image-viewer-arrow { width: 46px; height: 64px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.07); color: #fff; font-size: 35px; cursor: pointer; }.image-viewer-arrow:hover, .image-viewer-close:hover { background: rgba(255,255,255,.14); }
.image-viewer-dots { min-height: 38px; padding: 8px 16px 14px; display: flex; justify-content: center; align-items: center; gap: 7px; }.image-viewer-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #587076; cursor: pointer; }.image-viewer-dots button.active { width: 20px; border-radius: 8px; background: #84c5ba; }
.toast.error { background: #8d4135; }

@media (max-width: 1380px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }.panel.span-two { grid-column: auto; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-brand { display: none; }.auth-card { min-height: 100vh; padding: 36px 22px; }
  .app-shell { display: block; padding-bottom: 70px; }
  .sidebar { inset: auto 0 0 0; width: 100%; height: 67px; padding: 7px 10px; flex-direction: row; align-items: center; border-top: 1px solid rgba(255,255,255,.14); }
  .brand, .queue-note, .profile { display: none; }.sidebar nav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }.nav-item { min-height: 53px; grid-template-columns: 1fr; grid-template-rows: 22px 15px; justify-items: center; gap: 1px; padding: 3px; font-size: 9px; }.nav-item b { display: none; }.nav-glyph { font-size: 17px; }.nav-item.active { background: rgba(255,255,255,.1); color: #fff; }
  .app-main { width: 100%; margin-left: 0; }.topbar { height: 66px; padding: 0 16px; }.global-search { width: min(260px, 55vw); }.global-search kbd, .today-dot, .today-label, .icon-button { display: none; }.top-actions .primary-button { min-height: 36px; padding: 0 11px; font-size: 0; }.top-actions .primary-button span { font-size: 18px; }.mobile-avatar { display: block; }.workspace { padding: 25px 16px 35px; }
  .welcome-row, .page-heading { align-items: flex-start; }.welcome-row .text-button { display: none; }.welcome-row h1, .page-heading h1 { font-size: 29px; }.page-heading > .primary-button { display: none; }
  .wide-job-row { grid-template-columns: 4px minmax(0,1fr) auto 18px; }.wide-job-row .job-status, .wide-job-row .material-progress { display: none; }
  .filter-bar { flex-wrap: wrap; }.inline-search { min-width: 100%; }.filter-bar label:not(.inline-search) { border-left: 0; padding-left: 0; }.pipeline-board { grid-template-columns: repeat(6, 230px); }
  .pipeline-list { overflow-x: auto; }.pipeline-list-head, .pipeline-list > button { min-width: 780px; }
  .calendar-heading { flex-direction: column; }.calendar-toolbar { flex-wrap: wrap; }.calendar-toolbar label { order: 3; border-left: 0; margin-left: 0; padding-left: 0; }.calendar-legend { display: none; }.month-calendar { overflow-x: auto; }.weekday-row, .month-grid { min-width: 770px; }.week-calendar { grid-template-columns: repeat(7, 150px); }.day-agenda { grid-template-columns: 1fr; }.day-agenda-date { padding: 19px; flex-direction: row; gap: 12px; justify-content: center; }.day-agenda-date strong { margin: 0; font-size: 30px; }
  .job-drawer { width: 100%; }.drawer-header, .drawer-body { padding-left: 19px; padding-right: 19px; }.drawer-tabs { padding: 0 19px; }.drawer-stage { align-items: stretch; flex-direction: column; }.drawer-stage select { width: 100%; }.detail-grid, .assignment-list { grid-template-columns: 1fr; }.material-summary { grid-template-columns: 42px 1fr; }.summary-progress { grid-column: 1 / -1; }.drawer-material-list article { grid-template-columns: 34px 1fr; }.drawer-material-list article button { grid-column: 2; justify-self: start; }
  .comment-thread article.reply { margin-left: 18px; }
  .attachment-list article { grid-template-columns: 42px minmax(0,1fr); padding: 7px 0; }.file-actions { grid-column: 2; justify-content: flex-start; }
  .image-viewer-backdrop { padding: 0; }.image-viewer { width: 100%; height: 100%; border: 0; border-radius: 0; }.image-viewer > header { padding-left: 14px; }.image-viewer-stage { padding: 10px; grid-template-columns: 1fr; }.image-viewer-stage figure { grid-row: 1; grid-column: 1; }.image-viewer-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 54px; transform: translateY(-50%); background: rgba(8,29,36,.66); }.image-viewer-arrow.previous { left: 10px; }.image-viewer-arrow.next { right: 10px; }
  .toast { left: 50%; bottom: 84px; width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 520px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }.stat-card { min-height: 126px; padding: 16px; }.stat-card strong { font-size: 28px; }.stat-card small { max-width: 105px; }.stat-card .stat-glyph { width: 29px; height: 29px; }
  .panel { padding: 15px; }.wide-job-row { gap: 10px; }.today-label { display: none; }.top-actions { gap: 7px; }
  .form-grid { grid-template-columns: 1fr; }.form-grid label.full { grid-column: auto; }.create-modal header, .form-grid, .create-modal footer { padding-left: 18px; padding-right: 18px; }
  .danger-zone { margin-left: 18px; margin-right: 18px; align-items: stretch; flex-direction: column; }.danger-zone .danger-button { width: 100%; }.delete-confirmation { padding-left: 18px; padding-right: 18px; }
  .day-agenda-events { padding: 14px; }.day-agenda-events > button { grid-template-columns: 52px 1fr; gap: 12px; }.day-agenda-events .avatar-stack { display: none; }
}

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