:root {
  --paper: #f4f2ed;
  --ink: #292e28;
  --olive: #47533c;
  --line: #dddcd4;
  --ease: cubic-bezier(.22, .72, .2, 1)
}

body {
  background: var(--paper);
  color: var(--ink)
}

#workspace-shell {
  min-height: 100vh
}

.workspace-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10
}

.wordmark {
  font-size: 17px;
  font-weight: 650;
  display: flex;
  align-items: baseline;
  gap: 12px
}

.wordmark span {
  font-size: 11px;
  font-weight: 400;
  color: #73776b
}

.primary-nav,
.bottom-nav {
  display: flex;
  flex-direction: row;
  gap: 10px
}

.primary-nav a {
  padding: 13px 24px;
  border-radius: 0;
  position: relative;
  font-size: 15px
}

.primary-nav a::after, .bottom-nav a::after {
  content: ''; position: absolute; left: 24px; right: 24px; bottom: 5px;
  height: 2px; background: var(--olive); transform: scaleX(0);
  transition: transform 180ms var(--ease);
}
.primary-nav a.active::after, .bottom-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active {
  background: transparent;
  color: #35412c
}

.workspace-tools {
  display: flex;
  gap: 6px
}

.workspace-tools .btn {
  border: 0;
  background: transparent;
  padding: 10px 13px
}

.main {
  margin: 0 !important;
  padding: 0 0 80px !important;
  min-width: 0
}

#workspace-content {
  max-width: 1320px;
  margin: auto;
  padding: 48px 5vw 60px !important
}

.heading .eyebrow {
  display: none
}

.heading {
  align-items: center;
  gap: 24px;
  margin-bottom: 30px
}

.heading h1,
.today-heading h1 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: -1.2px
}

.heading p,
.today-heading p {
  color: #797d73;
  margin-top: 12px;
  font-size: 14px
}

.btn,
button,
a {
  touch-action: manipulation
}

.btn {
  transition: background 140ms, color 140ms, transform 100ms, border-color 140ms;
  padding: 9px 16px;
  font-size: 13px
}

.btn:active {
  transform: translateY(1px) scale(.98)
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 4px
}

.btn.primary {
  background: var(--olive);
  color: #fff
}

.btn:hover {
  border-color: #9da58f
}

.eyebrow {
  color: #767c6d;
  letter-spacing: 1.4px;
  font-size: 10px
}

.today-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 38px;
  gap: 20px
}

.today-heading h1 {
  margin: 13px 0
}

.today-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 42px
}

.work-agenda {
  min-width: 0
}

.section-head {
  margin: 0 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px
}

.section-head h2,
.today-side h2 {
  font-size: 19px;
  font-weight: 550
}

.count {
  font-size: 12px;
  background: #e7e8e0;
  padding: 4px 8px;
  border-radius: var(--radius-status);
  margin-left: 5px
}

.task-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  min-height: 92px;
  transition: background .18s
}

.task-row:hover {
  background: #eeeee7
}

.task-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b987b;
  flex-shrink: 0
}

.task-dot.urgent {
  background: #aa724e
}

.task-row b {
  font-size: 15px;
  font-weight: 550
}

.task-row p {
  font-size: 12px;
  color: #797d73;
  margin: 7px 0 0
}

.task-status {
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap
}

.today-side {
  padding: 28px 30px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  align-self: start
}

.today-side h2 {
  margin: 14px 0 20px
}

.upcoming {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #d6d9cd;
  padding: 18px 0
}

.upcoming span,
.upcoming small {
  font-size: 11px;
  color: #717867
}

.upcoming b {
  font-size: 15px;
  font-weight: 500
}

.recent-head {
  margin-top: 45px
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px
}

.card {
  border: 1px solid #dedfd5;
  box-shadow: none !important;
  background: #faf9f5;
  padding: 25px
}

.project.card {
  transition: transform 200ms, background 200ms;
  border-color: transparent;
  background: #eeeee7
}

.project.card:hover {
  transform: translateY(-3px);
  background: #e9ebdf
}

.project h3 {
  font-size: 19px
}

.project .progress {
  height: 3px;
  margin: 25px 0
}

.calm-empty {
  padding: 40px 0
}

.calm-empty>span {
  font-size: 23px;
  color: var(--olive)
}

.calm-empty h3 {
  font-size: 18px;
  font-weight: 500
}

.calm-empty p {
  font-size: 13px;
  color: #7a7e72
}

.onboard-compact {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #73796b
}

.onboard-compact .row {
  margin-top: 18px
}

.section-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  overflow: auto;
  white-space: nowrap
}

.section-nav a {
  border-radius: 0;
  background: transparent;
  padding: 0 0 16px;
  color: #7b8075
}

.section-nav a.active {
  border-bottom: 2px solid var(--olive);
  color: var(--olive)
}

.section-nav span {
  font-size: 11px;
  margin-left: 4px
}

.back-link {
  display: inline-block;
  font-size: 12px;
  color: #747b6a;
  margin-bottom: 23px
}

.journey {
  border-bottom: 1px solid var(--line);
  padding: 5px 0 0
}

.journey>.pill {
  display: none
}

.stations {
  margin: 0;
  padding: 15px 0 10px;
  min-height: 106px
}

.stations:before,
.stations:after {
  top: 30px
}

.stations:after {
  transition: width 450ms var(--ease)
}

.stations li {
  font-size: 11px;
  cursor: default !important
}

.stations li span {
  width: 11px;
  height: 11px;
  margin-top: 10px;
  margin-bottom: 20px
}

.next-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 25px 0 28px
}

.next-action h2 {
  font-size: 21px;
  font-weight: 500;
  margin: 8px 0
}

.next-action p {
  font-size: 12px;
  color: #7b8074;
  margin: 0
}

.project-tabs {
  display: flex;
  position: relative;
  width: 360px;
  max-width: 100%;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line)
}

.project-tabs:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 25%;
  height: 2px;
  background: var(--olive);
  transform: translateX(calc(var(--tab-index)*100%));
  transition: transform 220ms var(--ease)
}

.project-tabs button {
  width: 25%;
  padding: 14px;
  border: 0;
  background: none;
  color: #7a8072
}

.project-tabs [aria-selected=true] {
  color: var(--olive);
  font-weight: 600
}

.manifest {
  background: #faf9f5;
  padding: 25px
}

.manifest-row {
  display: flex;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 0
}

.manifest-row>b {
  margin-left: auto
}

.manifest-row p {
  font-size: 12px;
  color: #797e71;
  margin: 6px 0 0
}

.model-category {
  font-size: 11px;
  background: #e9ebe2;
  padding: 9px;
  border-radius: var(--radius-status);
  min-width: 65px;
  text-align: center
}

.project-fees {
  max-width: 760px
}

.detail-layout {
  gap: 20px
}

.equipment-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  aspect-ratio: 1.3;
  background: #e9eae3;
  border-radius: var(--radius-card);
  color: #69715e
}

.equipment-placeholder span {
  font-size: 12px;
  letter-spacing: 3px
}

.equipment-placeholder b {
  font-size: 30px;
  font-weight: 450;
  letter-spacing: -1px
}

.equipment-placeholder small {
  font-size: 11px;
  color: #909684
}

.bottom-nav {
  display: none
}

.preview-label {
  position: fixed;
  bottom: 8px;
  left: 12px;
  font-size: 9px;
  color: #8b9083;
  z-index: 2;
  pointer-events: none
}

dialog {
  padding: 0;
  background: #faf9f5;
  box-shadow: var(--shadow-dialog);
  border: 1px solid #dddcd3
}

dialog::backdrop {
  background: #22291e45;
  backdrop-filter: blur(3px)
}

dialog .modal {
  padding: 32px;
  max-height: 85dvh
}

.modal .eyebrow {
  display: none
}

.modal h2 {
  font-weight: 500
}

.summary-sheet {
  margin: auto auto 0;
  width: min(820px, 100%);
  max-width: 100%;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0
}

.summary-sheet .modal {
  width: 100%;
  max-height: 85dvh;
  min-width: 0;
  padding-bottom: max(32px, env(safe-area-inset-bottom))
}

.summary-sheet .list-row .mini {
  display: none
}

.summary-sheet .list-row {
  gap: 20px
}

#overlay.utility-sheet {
  max-height:100dvh;
  margin: 0 0 0 auto;
  height: 100dvh;
  width: min(520px,100vw);
  max-width: 100vw;
  border-radius: var(--radius-panel)
}

.utility-sheet .modal, dialog.asset-drawer .modal {
  width:100%;
  overflow-x:hidden;
  height: 100%;
  min-width: 0;
  max-height: 100dvh
}

.scan-choices,
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0
}

.scan-choices .btn,
.menu-list .btn {
  text-align: left;
  padding: 18px
}

.menu-list [data-x=cancel] {
  color: #a6543d;
  margin-top: 15px
}

html {
  scroll-padding-top: 160px
}

[hidden] {
  display: none !important
}

@media(max-width:900px) {
  .wordmark span {
    display: none
  }

  .workspace-header {
    padding: 0 24px
  }

  .primary-nav a {
    padding: 11px 17px
  }

  .today-grid {
    gap: 25px;
    grid-template-columns: 1.4fr 1fr
  }

  .today-side {
    padding: 24px
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .today-heading h1 {
    font-size: 30px
  }
}

@media(max-width:650px) {
  .btn { min-height:44px; }
  .workspace-header {
    height: 68px;
    padding: 0 18px
  }

  .wordmark {
    font-size: 14px
  }

  .primary-nav {
    display: none
  }

  .workspace-tools {
    gap: 0
  }

  .workspace-tools .btn {
    padding: 9px 8px;
    font-size: 11px
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    justify-content: space-around;
    padding: 9px 15px calc(9px + env(safe-area-inset-bottom));
    background: #f8f7f2;
    border-top: 1px solid var(--line)
  }

  .bottom-nav a {
    padding: 12px 28px;
    font-size: 13px;
    border-radius: 0}

  .bottom-nav a.active {
    background: transparent;
    color: var(--olive)
  }

  #workspace-content {
    padding: 28px 20px 50px !important
  }

  .main {
    padding-bottom: 80px !important
  }

  .today-heading {
    display: block;
    margin: 3px 0 30px
  }

  .today-heading h1 {
    font-size: 26px;
    margin: 12px 0
  }

  .today-heading p {
    font-size: 12px;
    line-height: 1.7
  }

  .today-heading .actions {
    display: flex;
    margin-top: 23px
  }

  .today-heading .actions>.btn {
    flex: 1;
    padding: 13px
  }

  .today-grid {
    display: flex;
    flex-direction: column;
    gap: 25px
  }

  .today-side {
    width: 100%;
    padding: 23px
  }

  .today-side h2 {
    font-size: 18px
  }

  .today-side .upcoming:not(:first-of-type) {
    display: none
  }

  .task-row {
    gap: 10px;
    padding: 18px 0
  }

  .task-row b {
    font-size: 14px
  }

  .task-row p {
    font-size: 11px;
    line-height: 1.6
  }

  .task-status {
    font-size: 10px
  }

  .section-head h2 {
    font-size: 17px
  }

  .section-head .btn {
    font-size: 11px;
    padding: 8px
  }

  .project-grid {
    grid-template-columns: 1fr
  }

  .recent-head {
    margin-top: 28px
  }

  .project.card {
    padding: 24px
  }

  .preview-label {
    display: none
  }

  .heading {
    display: block
  }

  .heading h1 {
    font-size: 28px
  }

  .heading p {
    font-size: 12px;
    line-height: 1.7
  }

  .heading .actions {
    margin-top: 20px;
    gap: 7px
  }

  .heading .actions .btn {
    font-size: 11px;
    padding: 10px
  }

  .stations {
    gap: 15px !important;
    overflow: auto
  }

  .stations li {
    min-width: 68px;
    font-size: 10px
  }

  .stations:before,
  .stations:after {
    display: none
  }

  .stations li span {
    transition: background 450ms, box-shadow 450ms
  }

  .next-action h2 {
    font-size: 18px
  }

  .next-action .btn {
    font-size: 11px;
    padding: 11px
  }

  .next-action p {
    font-size: 11px
  }

  .project-tabs {
    width: 100%
  }

  .manifest {
    padding: 20px
  }

  .manifest-row {
    gap: 12px
  }

  .manifest-row b {
    font-size: 13px
  }

  .model-category {
    font-size: 10px;
    min-width: 48px;
    padding: 7px
  }

  .detail-layout {
    grid-template-columns: 1fr
  }

  .section-nav {
    font-size: 13px;
    gap: 24px
  }

  dialog .modal {
    padding: 25px !important;
    width: 100%;
    min-width: 0
  }

  dialog {
    max-width: calc(100vw - 24px);
    width: 100%
  }

  .summary-sheet {
    max-width: 100%;
    width: 100%
  }

  .utility-sheet {
    max-width: 100%;
  }

  .card {
    padding: 22px
  }

  .equipment-placeholder b {
    font-size: 20px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}

.stations li:before,
.stations li:after {
  display: none !important
}

.today-heading .actions {
  display: flex;
  gap: 10px
}

.workspace-header .primary-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%)
}

.workspace-header .workspace-tools {
  margin-left: auto
}



.project-tabs button {
  cursor: pointer
}

.stations {
  background: transparent;
  border-radius: 0}

.stations:before,
.stations:after {
  top: 30px
}

.motion-ghost {
  contain: paint;
  user-select: none
}

@media(max-width:650px) {
  .stations {
    display: flex;
    gap: 0 !important;
    padding: 10px 0 20px
  }

  .stations li {
    min-width: 86px;
    gap: 3px
  }

  .stations li:not(:last-child):after {
    display: block !important;
    top: 15px;
    background: #dce1d5
  }

  .stations li:has(+ .done):after {
    background: var(--olive)
  }

  .stations li span {
    margin-top: 10px;
    margin-bottom: 12px
  }

  .stations:before,
  .stations:after {
    display: none
  }

  .detail-layout {
    grid-template-columns: 1fr !important
  }

  .project-grid {
    grid-template-columns: 1fr
  }

  .project-tabs button {
    min-height: 48px
  }
}
