:root {
  --sidebar: #142e25;
  --canvas: #f3f5f1;
  --green: #246342;
  --line: #dce4da;
  background: var(--canvas);
}

body { display: grid; grid-template-columns: 218px minmax(0, 1fr); min-height: 100vh; }
[hidden] { display: none !important; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; overflow: auto; background: var(--sidebar); color: #f3f8f4; padding: 24px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; padding: 0 4px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #6a8a74; border-radius: 9px; color: #c9edb7; font-weight: 800; flex: none; }
.brand strong, .brand small { display: block; }
.brand small { color: #bed2c2; font-size: .75rem; margin-top: 3px; }
.create-action { width: 100%; margin: 24px 0 16px; color: #122e20; background: #c7e6b5; border: 0; font-weight: 700; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { margin: 0; border-radius: 7px; padding: 10px 12px; color: #d8e8dc; text-decoration: none; font-size: .9rem; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: #2b4b3c; color: #fff; }
.sidebar nav a[aria-current="page"] { box-shadow: inset 3px 0 #bde4a6; font-weight: 700; }

main#workspace { width: 100%; min-width: 0; max-width: 1520px; padding: 0 clamp(18px, 3.2vw, 42px) 42px; }
.workspace-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 61px; border-bottom: 1px solid var(--line); margin-bottom: 26px; font-size: .85rem; font-weight: 650; }
.role-label { background: #e5ede3; border-radius: 20px; padding: 5px 10px; color: #395744; font-size: .75rem; white-space: nowrap; }
.workspace-notice:empty { display: none; }
#overview > .job-title { background: transparent; padding: 0; }
#overview h1, #workspace > section > h2, #team h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.04em; margin: 0; }
#overview .workspace-link { margin: 0; text-decoration: none; padding: 9px 12px; border: 1px solid #a8bdab; border-radius: 7px; }
.summary { gap: 14px; }
.metric, section.workspace { box-shadow: 0 1px 2px #1838220a; }
.metric strong { color: #173e2a; }
#overview > .summary:last-child { grid-template-columns: repeat(auto-fit,minmax(min(100%,310px),1fr)); }
#today-jobs button, #attention button { border-color: var(--line); background: #f8faf7; overflow-wrap: anywhere; }
#workspace > section.workspace { margin: 0; }

.flow-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(218px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 1px 14px; align-items: start; }
.flow-column { background: #e9eee6; border: 1px solid var(--line); border-radius: 10px; padding: 11px; min-height: 156px; min-width: 0; }
.flow-column h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .875rem; margin: 0 0 12px; }
.stage-count { color: #254631; background: #d7e7d5; padding: 3px 8px; border-radius: 20px; }
.flow-empty { border: 1px dashed #aab9aa; border-radius: 7px; padding: 15px 10px; font-size: .85rem; color: #4e6456; }
.flow-column article { padding: 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
.flow-column article h2 { font-size: 1rem; }
.flow-column article .badge { display: none; }
.flow-column article .details { display: grid; gap: 4px; font-size: .85rem; }
.flow-column article p, .flow-column article button { font-size: .85rem; }
details summary { cursor: pointer; padding: 10px 0; font-weight: 650; }
#schedule-heading { font-size: clamp(1.65rem, 3vw, 2.2rem); letter-spacing: -.04em; margin: 0; }
#week-grid[data-view="week"], #week-grid[data-view="month"] { grid-template-columns: repeat(7,minmax(126px,1fr)); overflow-x: auto; padding-bottom: 8px; }
#week-grid[data-view="day"] { grid-template-columns: minmax(0,1fr); }
.day { min-height: 96px; border: 1px solid var(--line); }
.day.today { background: #e4f1df; border-color: #7d9f7b; }
.day h3 { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.day button.day-add { width: auto; margin: 0; padding: 2px 8px; }
#map-preview iframe { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: 10px; }
#location-list p { padding: 12px; border-bottom: 1px solid var(--line); }
#location-list button { margin-top: 6px; }
#goal-progress { padding: 12px 16px; background: #e7f1e4; border-radius: 8px; }
.demo-guide { padding: 14px 16px; border: 1px solid #bbd2ba; border-radius: 8px; background: #edf5e9; }
.demo-guide p { margin: 6px 0 10px; }
.demo-guide a { color: var(--green); font-weight: 650; }

@media (max-width: 740px) {
  body { display: block; }
  .sidebar { position: static; height: auto; padding: 14px 18px; }
  .sidebar nav { position: fixed; z-index: 2; inset: auto 0 0; display: flex; gap: 0; overflow-x: auto; white-space: nowrap; background: var(--sidebar); padding: 6px 8px; }
  main#workspace { padding-bottom: 84px; }
  .create-action { width: auto; margin: 12px 0 8px; }
  .workspace-bar { min-height: 48px; margin-bottom: 18px; }
  .flow-board { grid-auto-columns: minmax(220px, 70vw); }
}
