:root {
  --ink: #172019;
  --muted: #69736b;
  --subtle: #8a948d;
  --line: #e5e9e5;
  --canvas: #f5f6f3;
  --paper: #ffffff;
  --sidebar: #101813;
  --sidebar-muted: #94a098;
  --brand: #d8f45c;
  --brand-soft: #f0f9c6;
  --brand-dark: #24451c;
  --blue: #486fdd;
  --blue-soft: #edf1ff;
  --orange: #e3933e;
  --orange-soft: #fff3e6;
  --red: #d9574f;
  --red-soft: #fff0ef;
  --green: #287d53;
  --green-soft: #e8f5ee;
  --shadow: 0 8px 30px rgba(25, 40, 28, 0.07);
  --shadow-lg: 0 24px 70px rgba(16, 26, 18, 0.18);
  --radius: 18px;
  --sidebar-w: 244px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(216, 244, 92, 0.55);
  outline-offset: 2px;
}
.icon { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.9; }
.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: var(--sidebar-w); padding: 28px 17px 18px;
  display: flex; flex-direction: column;
  background: var(--sidebar); color: white;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; margin-bottom: 38px; }
.brand-mark {
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--brand); color: var(--sidebar); border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.brand-mark svg { width: 20px; height: 20px; stroke-width: 2.5; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.brand-version { margin-left: auto; color: #758078; font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.nav-label { color: #6f7b73; font-size: 10px; font-weight: 700; letter-spacing: 1.25px; padding: 0 12px 10px; }
.nav-list { display: grid; gap: 5px; }
.nav-item {
  border: 0; width: 100%; padding: 11px 12px; border-radius: 11px;
  color: var(--sidebar-muted); background: transparent;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  text-align: left; font-size: 13px; font-weight: 500;
  transition: .18s ease;
}
.nav-item:hover { color: white; background: rgba(255,255,255,.045); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.085); box-shadow: inset 2px 0 var(--brand); }
.nav-item .count { margin-left: auto; min-width: 21px; height: 19px; padding: 0 6px; display: grid; place-items: center; border-radius: 9px; background: #263129; color: #cbd3cd; font-size: 10px; }
.nav-item.active .count { color: var(--sidebar); background: var(--brand); }
.sidebar-bottom { margin-top: auto; }
.help-card { margin: 16px 4px; padding: 14px; border: 1px solid #273229; border-radius: 14px; background: #161f19; }
.help-card .tiny-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #222e25; color: var(--brand); }
.help-card strong { display: block; margin: 9px 0 3px; font-size: 12px; }
.help-card span { display: block; color: #829087; font-size: 10px; line-height: 1.5; }
.help-card button { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand); font-size: 10px; cursor: pointer; }
.profile-mini { display: flex; align-items: center; gap: 10px; padding: 10px 8px 0; border-top: 1px solid #253027; }
.avatar { position: relative; width: 35px; height: 35px; border-radius: 50%; background: #dce8df; display: grid; place-items: center; color: #31523a; font-weight: 700; font-size: 12px; }
.avatar.orange { background: #f9dfc7; color: #8e5526; }
.avatar.blue { background: #dce6ff; color: #3859ae; }
.avatar.purple { background: #e9defa; color: #714b9e; }
.avatar.green { background: #dcefe3; color: #2f7148; }
.avatar .online-dot { position: absolute; right: -1px; bottom: 1px; width: 9px; height: 9px; border: 2px solid white; background: #33a467; border-radius: 50%; }
.profile-copy { min-width: 0; }
.profile-copy strong { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-copy span { color: #78857d; font-size: 9px; }

.main { min-height: 100vh; margin-left: var(--sidebar-w); }
.topbar {
  height: 76px; padding: 0 34px; display: flex; align-items: center; gap: 18px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.87);
  backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 20;
}
.topbar-title { font-size: 14px; font-weight: 600; }
.topbar-spacer { flex: 1; }
.search-box { position: relative; width: min(265px, 25vw); }
.search-box svg { position: absolute; left: 12px; top: 10px; width: 17px; color: var(--subtle); }
.search-box input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px 0 38px; background: #f8f9f7; font-size: 11px; color: var(--ink); }
.search-box input::placeholder { color: #9ba39d; }
.search-box > button { position:absolute; right:4px; top:4px; width:30px; height:30px; padding:0; display:grid; place-items:center; border:0; border-radius:8px; color:var(--green); background:#eaf0e8; cursor:pointer; }
.search-box > button .icon { position:static; width:14px; }
.search-box:focus-within input { border-color:#9db74c; outline:0; box-shadow:0 0 0 3px rgba(216,244,92,.18); }
.top-icon-btn.mobile-search-btn { display:none; }
.top-icon-btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; position: relative; }
.notification-dot { position: absolute; width: 7px; height: 7px; right: 7px; top: 7px; border: 1.5px solid white; border-radius: 50%; background: var(--red); }
.role-switch { height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 0 28px 0 11px; color: var(--ink); font-size: 11px; font-weight: 600; cursor: pointer; }
.content { max-width: 1550px; margin: 0 auto; padding: 30px 34px 50px; }
.mobile-title { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-eyebrow { margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.page-head h1 { margin: 0; font-size: 27px; line-height: 1.2; letter-spacing: -.9px; }
.page-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.head-actions { display: flex; gap: 10px; }
.btn { height: 40px; border: 0; border-radius: 11px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #1e2c1d; box-shadow: 0 5px 14px rgba(171,202,53,.22); }
.btn-primary:hover { background: #e1fb72; box-shadow: 0 7px 18px rgba(171,202,53,.3); }
.btn-dark { background: var(--sidebar); color: #fff; }
.btn-light { background: #fff; border: 1px solid var(--line); }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 10px; }
.btn-wide { width: 100%; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.stat-card { position: relative; min-height: 118px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -42px; top: -42px; background: var(--tint, #f2f5f2); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 10px; font-weight: 600; }
.stat-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; background: var(--tint, #f1f4f1); color: var(--tone, var(--green)); }
.stat-icon .icon { width: 15px; height: 15px; }
.stat-bottom { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.stat-unit { color: var(--subtle); font-size: 10px; padding-bottom: 2px; }
.stat-trend { margin-left: auto; display: flex; align-items: center; gap: 3px; color: var(--green); background: var(--green-soft); padding: 3px 6px; border-radius: 7px; font-size: 8px; font-weight: 700; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .86fr); gap: 18px; }
.column { display: grid; align-content: start; gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0,0,0,.01); }
.card-header { min-height: 60px; padding: 17px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #edf0ed; }
.card-title { font-size: 13px; font-weight: 700; }
.card-subtitle { margin-top: 3px; color: var(--subtle); font-size: 9px; }
.card-header .spacer { flex: 1; }
.text-link { border: 0; padding: 0; background: none; color: var(--green); font-size: 9px; font-weight: 700; cursor: pointer; }
.project-list { padding: 3px 20px 8px; }
.project-row { display: grid; grid-template-columns: minmax(160px, 1.25fr) minmax(130px, .9fr) minmax(115px, .7fr) 76px 25px; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid #eef1ee; cursor: pointer; }
.project-row:last-child { border-bottom: 0; }
.project-row:hover .row-title { color: var(--green); }
.row-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.site-thumb { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center; color: white; overflow: hidden; background: linear-gradient(145deg, #3d5c49, #b6c6a3); }
.site-thumb.alt { background: linear-gradient(145deg, #8b735b, #d8b68d); }
.site-thumb.blue { background: linear-gradient(145deg, #536f85, #b5ccda); }
.site-thumb svg { width: 20px; opacity: .85; }
.row-title { font-size: 11px; font-weight: 700; transition: color .15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { margin-top: 3px; color: var(--subtle); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-cell strong { display: block; font-size: 10px; font-weight: 600; }
.task-cell span { color: var(--subtle); font-size: 8px; }
.progress-wrap { display: flex; align-items: center; gap: 8px; }
.progress-track { flex: 1; height: 5px; border-radius: 6px; background: #edf0ed; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 6px; background: var(--brand-dark); }
.progress-wrap span { width: 24px; color: var(--muted); font-size: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; width: fit-content; border-radius: 8px; padding: 0 8px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.green { color: var(--green); background: var(--green-soft); }
.badge.orange { color: #b36c1f; background: var(--orange-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.badge.gray { color: #77817a; background: #f0f2f0; }
.badge.red { color: var(--red); background: var(--red-soft); }
.chevron { color: #a4ada7; }
.chevron .icon { width: 15px; }

.live-list { padding: 5px 20px 14px; }
.live-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.live-row + .live-row { border-top: 1px solid #f0f2f0; }
.live-copy { flex: 1; min-width: 0; }
.live-copy strong { display: block; font-size: 10px; font-weight: 600; }
.live-copy span { color: var(--subtle); font-size: 8px; }
.time { color: var(--subtle); font-size: 8px; white-space: nowrap; }
.live-action { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: #f4f6f3; color: var(--muted); }
.live-action .icon { width: 13px; }

.alert-list { padding: 5px 16px 15px; }
.alert-item { padding: 12px; margin-top: 8px; border-radius: 12px; background: #f8f9f7; display: flex; gap: 10px; cursor: pointer; }
.alert-item.urgent { background: var(--red-soft); }
.alert-item.warning { background: var(--orange-soft); }
.alert-dot { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: #fff; }
.alert-dot .icon { width: 14px; }
.alert-item.urgent .alert-dot { color: var(--red); }
.alert-item.warning .alert-dot { color: var(--orange); }
.alert-copy strong { display: block; font-size: 9px; font-weight: 700; }
.alert-copy p { margin: 3px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.alert-copy time { display: block; margin-top: 5px; color: #a1a8a3; font-size: 7px; }
.crew-list { padding: 4px 19px 14px; }
.crew-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.crew-row + .crew-row { border-top: 1px solid #eef1ee; }
.crew-copy { flex: 1; min-width: 0; }
.crew-copy strong { display: block; font-size: 10px; }
.crew-copy span { display: block; color: var(--subtle); font-size: 8px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.presence { font-size: 8px; font-weight: 700; }
.presence.on { color: var(--green); }
.presence.off { color: var(--orange); }

.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.site-card { width:100%; padding: 18px; color:var(--ink); font:inherit; text-align:left; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.site-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.site-card-top { height: 118px; border-radius: 13px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #1b3324, #65806c); position: relative; overflow: hidden; }
.site-card-top::after { content:""; position:absolute; width:170px; height:170px; border-radius:40px; transform:rotate(28deg); right:-80px; bottom:-95px; background:rgba(255,255,255,.09); }
.site-card:nth-child(2) .site-card-top { background: linear-gradient(135deg, #584938, #ae8b64); }
.site-card:nth-child(3) .site-card-top { background: linear-gradient(135deg, #324b5a, #83a5b5); }
.site-card-top .badge { background: rgba(255,255,255,.14); color: white; backdrop-filter: blur(5px); }
.site-card-top h3 { margin: 0; font-size: 15px; position: relative; z-index: 1; }
.site-card-body { padding-top: 14px; }
.site-card-body p { margin: 4px 0 13px; color: var(--subtle); font-size: 9px; }
.site-card-stats { display: flex; gap: 18px; }
.mini-stat strong { display: block; font-size: 13px; }
.mini-stat span { color: var(--subtle); font-size: 8px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.filter-btn { height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 600; cursor: pointer; }
.filter-btn.active { background: var(--sidebar); color: white; border-color: var(--sidebar); }
.filter-btn[role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.project-filter-empty { grid-column: 1 / -1; min-height: 220px; }
.worker-filter-empty { min-height: 220px; }
.issue-filter-empty { min-height: 220px; }
.task-filter-empty { min-height: 220px; }
.toolbar .spacer { flex: 1; }
.list-card { overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: minmax(185px,1.2fr) minmax(150px,1fr) 120px 115px 110px 34px; gap: 16px; align-items: center; padding: 0 20px; }
.table-head { height: 43px; background: #f8f9f7; color: var(--subtle); font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.table-row { min-height: 66px; border-top: 1px solid var(--line); font-size: 10px; cursor: pointer; }
.table-row:hover { background: #fbfcfa; }
.person { display: flex; align-items: center; gap: 10px; }
.person strong { display: block; font-size: 10px; }
.person span { color: var(--subtle); font-size: 8px; }

.action-banner { min-height: 145px; border-radius: 20px; padding: 26px; color: white; background: linear-gradient(110deg, #142219, #263a29); display: flex; align-items: center; gap: 24px; position: relative; overflow: hidden; margin-bottom: 18px; }
.action-banner::before, .action-banner::after { content:""; position:absolute; border-radius:50%; border:1px solid rgba(216,244,92,.16); }
.action-banner::before { width:260px; height:260px; right:-60px; top:-150px; }
.action-banner::after { width:160px; height:160px; right:35px; top:-105px; }
.action-banner .banner-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand); color: var(--sidebar); }
.action-banner h2 { margin: 0 0 5px; font-size: 19px; }
.action-banner p { margin: 0; color: #aeb9b0; font-size: 10px; }
.action-banner .btn { margin-left: auto; position: relative; z-index: 1; }
.todo-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.todo-card { padding: 17px; display: flex; align-items: flex-start; gap: 12px; cursor: default; }
.todo-icon { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: var(--tone-bg, var(--green-soft)); color: var(--tone-fg, var(--green)); }
.todo-icon .icon { width: 17px; }
.todo-copy { flex: 1; }
.todo-copy strong { display: block; font-size: 11px; }
.todo-copy p { margin: 4px 0 8px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.todo-meta { display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 8px; }

.worker-shell { max-width: 600px; margin: 0 auto; }
.worker-hero { padding: 24px; border-radius: 22px; color: white; background: linear-gradient(135deg,#122117,#2e4831); position: relative; overflow: hidden; }
.worker-hero::after { content:""; position:absolute; width:190px; height:190px; border-radius:50%; right:-85px; top:-100px; background:rgba(216,244,92,.12); }
.worker-hero-top { display:flex; justify-content:space-between; align-items:center; }
.worker-date { color:#aebaaf; font-size:10px; }
.gps-pill { display:flex; align-items:center; gap:6px; padding:6px 9px; border-radius:10px; background:rgba(255,255,255,.08); color:var(--brand); font-size:8px; font-weight:700; }
.worker-hero h1 { margin: 25px 0 5px; font-size: 24px; }
.worker-hero p { margin:0; color:#9eaaa0; font-size:10px; }
.worker-primary { margin-top:20px; width:100%; height:47px; border-radius:13px; font-size:12px; }
.queue-head { margin: 24px 2px 12px; display:flex; justify-content:space-between; align-items:center; }
.queue-head h2 { margin:0; font-size:14px; }
.queue-head span { color:var(--muted); font-size:9px; }
.queue-card { position:relative; display:flex; gap:14px; padding:17px; margin-bottom:10px; }
.queue-card.current { border-color:#cbdc83; box-shadow:0 0 0 1px #e5efbb; }
.queue-index { width:29px; height:29px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; background:#f0f2ef; color:var(--muted); font-size:10px; font-weight:700; }
.queue-card.current .queue-index { background:var(--brand); color:var(--sidebar); }
.queue-copy { flex:1; }
.queue-copy strong { display:block; font-size:11px; }
.queue-copy p { margin:4px 0 9px; color:var(--muted); font-size:9px; }
.queue-info { display:flex; flex-wrap:wrap; gap:10px; color:var(--subtle); font-size:8px; }
.queue-info span { display:flex; align-items:center; gap:4px; }
.queue-info .icon { width:12px; height:12px; }

.empty-state { padding: 60px 20px; display: grid; place-items: center; text-align: center; }
.empty-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); }
.empty-state h3 { margin: 14px 0 5px; font-size: 14px; }
.empty-state p { max-width: 320px; margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.overlay { position: fixed; z-index: 100; inset: 0; background: rgba(10,17,12,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 22px; animation: fadeIn .18s ease; }
.modal { width: min(720px, 100%); max-height: min(90vh, 780px); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; display:flex; flex-direction:column; animation: popIn .22s ease; }
.modal.wide { width:min(920px, 100%); }
.modal-head { padding: 20px 23px 16px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.modal-head-copy { flex: 1; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.close-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: #f3f5f2; display: grid; place-items: center; cursor: pointer; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 23px; background: #fafbfa; border-bottom: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 7px; color: var(--subtle); font-size: 8px; font-weight: 600; }
.step:not(:last-child)::after { content:""; height:1px; flex:1; margin-right:7px; background:var(--line); }
.step-num { width: 20px; height: 20px; border-radius: 50%; display:grid; place-items:center; background:#e9ece9; font-size:8px; }
.step.active { color:var(--ink); }
.step.active .step-num { background:var(--brand); color:var(--sidebar); }
.step.done .step-num { background:var(--green); color:#fff; }
.modal-body { padding: 22px 23px; overflow:auto; min-height:290px; }
.modal-foot { padding: 15px 23px; display:flex; align-items:center; gap:10px; border-top:1px solid var(--line); background:#fbfcfb; }
.modal-foot .spacer { flex:1; }
.form-label { display:block; margin-bottom:7px; font-size:9px; font-weight:700; }
.required { color:var(--red); }
.field { width:100%; min-height:41px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-size:10px; resize:vertical; transition:border .15s, box-shadow .15s; }
.field:focus { border-color:#9db74c; box-shadow:0 0 0 3px rgba(216,244,92,.22); outline:0; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.field-group { margin-bottom:15px; }
.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.choice-card { min-height:76px; padding:13px; display:flex; align-items:center; gap:11px; border:1px solid var(--line); border-radius:12px; cursor:pointer; transition:.15s ease; }
.choice-card:hover { border-color:#bfcc90; }
.choice-card.selected { border-color:#9caf55; background:#f8fbe9; box-shadow:0 0 0 1px #dbe9a6; }
.choice-icon { width:35px; height:35px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:#f1f4ef; color:var(--green); }
.choice-card.selected .choice-icon { background:var(--brand); color:var(--sidebar); }
.arrange-photo input[type="file"] { display:none; }
.choice-copy strong { display:block; font-size:10px; }
.choice-copy span { display:block; margin-top:3px; color:var(--muted); font-size:8px; line-height:1.35; }
.worker-select-list { display:grid; gap:8px; }
.crew-picker-title { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:12px; }
.crew-picker-title .form-label { margin-bottom:3px; }
.crew-picker-title p { margin:0; color:var(--muted); font-size:8px; }
.crew-search { position:sticky; z-index:3; top:-22px; display:block; margin:0 -3px 12px; padding:8px 3px; background:#fff; }
.crew-search .icon { position:absolute; left:15px; top:21px; width:16px; color:var(--subtle); }
.crew-search input { width:100%; height:42px; padding:0 38px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#f6f8f5; font-size:10px; outline:0; }
.crew-search input:focus { border-color:#9db74c; box-shadow:0 0 0 3px rgba(216,244,92,.2); background:#fff; }
.crew-picker-summary { min-height:55px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:12px; color:white; background:linear-gradient(135deg,#18251b,#304635); }
.crew-picker-summary strong,.crew-picker-summary span { display:block; }
.crew-picker-summary strong { font-size:11px; }
.crew-picker-summary span { margin-top:3px; color:#c0cbc2; font-size:8px; }
.crew-picker-summary button { border:0; padding:6px 9px; border-radius:8px; color:#dbe5dd; background:rgba(255,255,255,.1); font-size:8px; cursor:pointer; }
.crew-selected-chips { display:flex; gap:6px; padding:9px 1px 2px; overflow-x:auto; scrollbar-width:none; }
.crew-selected-chips::-webkit-scrollbar { display:none; }
.crew-selected-chips button { flex:0 0 auto; display:flex; align-items:center; gap:6px; height:28px; padding:0 8px 0 10px; border:1px solid #c9d89c; border-radius:9px; color:#40512d; background:#f4f9df; font-size:8px; cursor:pointer; }
.crew-selected-chips span { font-size:13px; line-height:1; color:#789037; }
.crew-filter-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:12px 0; padding:4px; border-radius:11px; background:#f1f3f0; }
.crew-filter-tabs button { min-height:32px; border:0; border-radius:8px; color:var(--muted); background:transparent; font-size:8px; font-weight:700; cursor:pointer; }
.crew-filter-tabs button.active { color:var(--ink); background:white; box-shadow:0 2px 8px rgba(20,31,23,.08); }
.crew-group + .crew-group { margin-top:16px; }
.crew-group-head { display:flex; align-items:center; justify-content:space-between; margin:0 2px 7px; }
.crew-group-head > div { display:flex; align-items:baseline; gap:6px; }
.crew-group-head strong { font-size:10px; }
.crew-group-head span { color:var(--subtle); font-size:8px; }
.crew-batch { border:0; padding:5px 7px; border-radius:7px; color:var(--green); background:var(--green-soft); font-size:8px; font-weight:700; cursor:pointer; }
.crew-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.worker-option { display:flex; align-items:center; gap:9px; min-width:0; min-height:62px; padding:8px 10px; border:1px solid var(--line); border-radius:11px; cursor:pointer; }
.worker-option.selected { background:#f7fbe8; border-color:#b8c978; }
.worker-option .avatar { width:31px; height:31px; font-size:10px; }
.worker-option-copy { min-width:0; flex:1; }
.worker-option-copy strong { display:block; font-size:10px; }
.worker-option-copy span,.worker-option-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--subtle); font-size:7px; }
.worker-option-copy small { margin-top:2px; color:var(--muted); }
.check-box { width:18px; height:18px; flex:0 0 auto; display:grid; place-items:center; border-radius:6px; border:1.5px solid #c9ceca; color:white; }
.worker-option.selected .check-box { background:var(--green); border-color:var(--green); }
.leader-radio { min-width:52px; height:27px; border:1px solid var(--line); border-radius:8px; background:#fff; padding:0 7px; font-size:7px; cursor:pointer; }
.leader-radio.active { color:var(--green); border-color:#8bb99b; background:var(--green-soft); }
.worker-type-tag { flex:0 0 auto; padding:4px 6px; border-radius:7px; color:#7a6a4f; background:#f4efe5; font-size:7px; font-style:normal; }
.crew-empty { min-height:150px; display:grid; place-items:center; align-content:center; gap:4px; color:var(--muted); }
.crew-empty .icon { width:22px; margin-bottom:3px; }
.crew-empty strong { font-size:10px; color:var(--ink); }
.crew-empty span { font-size:8px; }
.summary-block { padding:15px; margin-bottom:12px; background:#f7f8f6; border-radius:13px; }
.summary-block h4 { margin:0 0 11px; font-size:10px; }
.summary-row { display:flex; justify-content:space-between; gap:16px; padding:6px 0; font-size:9px; }
.summary-row span:first-child { color:var(--muted); }
.flow-strip { display:flex; align-items:center; gap:8px; padding:11px; background:#fff; border:1px solid var(--line); border-radius:11px; }
.flow-num { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; background:var(--brand); font-size:8px; font-weight:700; }
.handover-note { display:flex; gap:10px; padding:11px; margin-top:12px; border-radius:11px; background:var(--orange-soft); color:#8b5a22; font-size:8px; line-height:1.5; }

.drawer-overlay { position:fixed; z-index:90; inset:0; background:rgba(10,17,12,.34); animation:fadeIn .18s ease; }
.drawer { position:fixed; z-index:91; inset:0 0 0 auto; width:min(510px,100%); background:#fff; box-shadow:-15px 0 50px rgba(12,21,14,.14); overflow:auto; animation:slideIn .24s ease; }
.drawer-head { padding:24px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,#f7faed,#fff); }
.drawer-head-top { display:flex; align-items:center; justify-content:space-between; }
.drawer-title { margin:20px 0 6px; font-size:21px; }
.drawer-location { display:flex; gap:6px; align-items:center; color:var(--muted); font-size:9px; }
.drawer-location .icon { width:13px; }
.drawer-badges { display:flex; gap:7px; margin-top:14px; }
.drawer-body { padding:22px 24px 40px; }
.drawer-section { margin-bottom:23px; }
.drawer-section h3 { margin:0 0 11px; font-size:11px; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.detail-tile { padding:11px; border-radius:11px; background:#f7f8f6; }
.detail-tile span { display:block; color:var(--subtle); font-size:8px; }
.detail-tile strong { display:block; margin-top:4px; font-size:10px; }
.detail-list { margin-top:18px; }
.detail-list h3 { margin:0 0 9px; font-size:10px; }
.detail-list > button { width:100%; min-height:58px; padding:9px 2px; display:flex; align-items:center; gap:9px; border:0; border-bottom:1px solid var(--line); color:var(--ink); background:#fff; font:inherit; text-align:left; cursor:pointer; }
.detail-list > button > div { min-width:0; flex:1; display:grid; gap:3px; }
.detail-list > button strong,.detail-list > button small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.detail-list > button strong { font-size:9px; }
.detail-list > button small { color:var(--muted); font-size:8px; }
.detail-list > button > .icon { width:12px; color:var(--subtle); }
.workflow-search > label { position:relative; display:flex; align-items:center; gap:8px; }
.workflow-search > label > .icon { position:absolute; z-index:1; left:12px; width:16px; color:var(--subtle); }
.workflow-search input { padding-left:38px; }
.workflow-search .btn { flex:0 0 auto; }
.search-results { display:grid; gap:7px; margin-top:15px; }
.search-result { width:100%; min-height:66px; padding:10px; display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fff; font:inherit; text-align:left; cursor:pointer; }
.search-result:hover { border-color:#b7c88b; background:#fafcf4; }
.search-result > span { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; color:var(--green); background:var(--green-soft); }
.search-result > span .icon { width:16px; }
.search-result > div { min-width:0; flex:1; display:grid; gap:2px; }
.search-result small { color:var(--green); font-size:7px; font-weight:800; }
.search-result strong,.search-result em { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.search-result strong { font-size:10px; }
.search-result em { color:var(--muted); font-size:8px; font-style:normal; }
.search-result > .icon { width:12px; color:var(--subtle); }
.search-state { min-height:90px; margin-top:14px; display:flex; align-items:center; justify-content:center; gap:8px; border-radius:12px; color:var(--muted); background:#f6f8f5; font-size:9px; }
.search-state .icon { width:17px; }
.search-state.warning { color:#8b5a22; background:var(--orange-soft); }
.guide-list { display:grid; gap:9px; }
.guide-list section { min-height:75px; padding:11px; display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:13px; background:#fff; }
.guide-list section > span { width:22px; height:22px; display:grid; place-items:center; flex:0 0 auto; border-radius:50%; color:#fff; background:var(--green); font-size:8px; font-weight:800; }
.guide-icon { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; color:var(--green); background:var(--green-soft); }
.guide-icon .icon { width:16px; }
.guide-list section > div:last-child { min-width:0; }
.guide-list strong { font-size:10px; }
.guide-list p { margin:4px 0 0; color:var(--muted); font-size:8px; line-height:1.45; }
.issue-fact { margin-top:14px; padding:13px; border:1px solid #ecd8bd; border-radius:12px; background:#fffaf2; }
.issue-fact span { color:#9a6728; font-size:8px; font-weight:700; }
.issue-fact p { margin:6px 0 0; color:var(--ink); font-size:9px; line-height:1.6; }
.timeline { position:relative; padding-left:18px; }
.timeline::before { content:""; position:absolute; left:5px; top:6px; bottom:10px; width:1px; background:var(--line); }
.timeline-item { position:relative; padding:0 0 16px 8px; }
.timeline-item::before { content:""; position:absolute; left:-16px; top:4px; width:7px; height:7px; border:2px solid white; border-radius:50%; background:var(--green); box-shadow:0 0 0 1px #b7c3ba; }
.timeline-item strong { display:block; font-size:9px; }
.timeline-item p { margin:3px 0; color:var(--muted); font-size:8px; line-height:1.45; }
.timeline-item time { color:var(--subtle); font-size:7px; }

#toast-root { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { min-width: 270px; padding: 13px 15px; border-radius: 12px; color: white; background: #19251c; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: 10px; animation: toastIn .25s ease; }
.toast .icon { color: var(--brand); }
.mobile-nav { display:none; }

@keyframes fadeIn { from { opacity:0; } }
@keyframes popIn { from { opacity:0; transform:translateY(8px) scale(.985); } }
@keyframes slideIn { from { transform:translateX(100%); } }
@keyframes toastIn { from { opacity:0; transform:translateY(8px); } }

@media (max-width: 1100px) {
  :root { --sidebar-w: 210px; }
  .content { padding-left:24px; padding-right:24px; }
  .topbar { padding-left:24px; padding-right:24px; }
  .project-row { grid-template-columns:minmax(160px,1.3fr) minmax(125px,.9fr) 95px 25px; }
  .project-row .progress-wrap { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .section-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display:none; }
  .main { margin-left:0; padding-bottom:72px; }
  .topbar { height:64px; padding:0 18px; }
  .topbar-title { display:none; }
  .mobile-title { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:700; }
  .mobile-title .brand-mark { width:29px; height:29px; margin:0; }
  .search-box { display:none; }
  .top-icon-btn.mobile-search-btn { display:grid; }
  .content { padding:22px 18px 32px; }
  .dashboard-grid { grid-template-columns:1fr; }
  .mobile-nav { position:fixed; z-index:50; display:flex; justify-content:space-around; align-items:center; height:66px; padding:5px 6px env(safe-area-inset-bottom); inset:auto 0 0; border-top:1px solid var(--line); background:rgba(255,255,255,.96); backdrop-filter:blur(14px); }
  .mobile-nav .nav-item { width:auto; min-width:56px; padding:6px 9px; flex-direction:column; gap:2px; font-size:8px; color:var(--muted); }
  .mobile-nav .nav-item.active { color:var(--green); background:transparent; box-shadow:none; }
  .mobile-nav .nav-item .icon { width:18px; height:18px; }
  .table-head { display:none; }
  .table-row { grid-template-columns:minmax(150px,1fr) 115px 32px; padding:13px 16px; }
  .table-row > *:nth-child(2), .table-row > *:nth-child(4), .table-row > *:nth-child(5) { display:none; }
  .section-grid { grid-template-columns:1fr; }
}
@media (max-width: 560px) {
  .topbar { gap:9px; }
  .top-icon-btn { width:34px; height:34px; }
  .role-switch { width:89px; padding-left:8px; font-size:9px; }
  .page-head { align-items:flex-start; }
  .page-head h1 { font-size:23px; }
  .page-head p { max-width:240px; }
  .page-head .btn .desktop-only { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .stat-card { min-height:105px; padding:15px; }
  .stat-value { font-size:22px; }
  .project-list { padding:2px 15px 8px; }
  .project-row { grid-template-columns:minmax(130px,1fr) 68px 18px; gap:8px; }
  .project-row .task-cell { display:none; }
  .site-thumb { width:34px; height:34px; }
  .todo-grid { grid-template-columns:1fr; }
  .action-banner { padding:20px; display:block; }
  .action-banner .banner-icon { width:44px; height:44px; margin-bottom:14px; }
  .action-banner .btn { width:100%; margin-top:18px; }
  .choice-grid, .form-grid { grid-template-columns:1fr; }
  .overlay { padding:0; align-items:flex-end; }
  .modal { width:100%; max-height:94vh; border-radius:22px 22px 0 0; }
  .step { font-size:0; }
  .step-num { font-size:8px; }
  .modal-body { padding:19px 17px; }
  .crew-search { top:-19px; }
  .crew-grid { grid-template-columns:1fr; }
  .modal-head, .modal-foot { padding-left:17px; padding-right:17px; }
  .worker-hero { padding:20px; }
  .detail-grid { grid-template-columns:1fr; }
  #toast-root { left:14px; right:14px; bottom:80px; }
  .toast { min-width:0; }
}

/* Mobile app shell ------------------------------------------------------- */
html { background: #dde2dc; }
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 8%, rgba(216,244,92,.13), transparent 24%),
    #dde2dc;
}
#app {
  width: min(100%, 440px);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--canvas);
  box-shadow: 0 0 70px rgba(19,31,22,.16);
}
.app-shell { min-height: 100dvh; overflow: hidden; }
.sidebar { display: none !important; }
.main {
  min-height: 100dvh;
  margin-left: 0;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(67px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  gap: 9px;
  border-bottom: 1px solid rgba(220,225,220,.85);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(20px);
}
.mobile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mobile-title .brand-mark { width: 34px; height: 34px; margin: 0; border-radius: 11px; }
.mobile-title .brand-mark svg { width: 20px; }
.mobile-title > div:last-child { display: grid; min-width: 0; }
.mobile-title small { color: var(--subtle); font-size: 8px; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .45px; }
.mobile-title strong { margin-top: 3px; font-size: 13px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title, .search-box { display: none !important; }
.topbar-spacer { flex: 1; }
.top-icon-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: #f2f4f1;
}
.top-icon-btn[data-action="locale"] { display: none; }
.top-icon-btn .icon { width: 17px; }
.role-switch {
  width: 82px;
  height: 34px;
  padding: 0 22px 0 9px;
  border: 0;
  border-radius: 11px;
  background-color: #edf0ec;
  font-size: 9px;
}
.content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px 16px 30px;
}
.page-head {
  align-items: flex-start;
  margin-bottom: 20px;
}
.page-eyebrow { margin-bottom: 6px; font-size: 10px; }
.page-head h1 { font-size: 25px; letter-spacing: -.8px; }
.page-head p { max-width: 300px; margin-top: 7px; font-size: 12px; line-height: 1.55; }
.head-actions { flex: 0 0 auto; }
.head-actions .btn { min-width: 44px; }
.head-actions .btn:not(.btn-icon-only) { padding: 0 12px; font-size: 9px; }
.btn {
  min-height: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 11px;
}
.btn-sm { min-height: 34px; height: 34px; border-radius: 10px; font-size: 9px; }
.btn-icon-only { width: 44px; padding: 0; }
.card { border-radius: 16px; box-shadow: 0 2px 10px rgba(20,34,24,.025); }
.badge { min-height: 24px; padding: 0 8px; border-radius: 8px; font-size: 9px; }

.mobile-plan-card {
  width: 100%;
  min-height: 94px;
  margin: 0 0 14px;
  padding: 15px;
  border: 0;
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #142018;
  background: var(--brand);
  box-shadow: 0 10px 25px rgba(155,183,50,.2);
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.mobile-plan-card::after { content:""; position:absolute; width:110px; height:110px; right:-40px; top:-62px; border:1px solid rgba(21,35,24,.12); border-radius:50%; }
.plan-icon { width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: white; background: var(--sidebar); }
.plan-copy { display: grid; min-width: 0; flex: 1; }
.plan-copy small { font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .65px; opacity: .6; }
.plan-copy strong { margin-top: 3px; font-size: 15px; }
.plan-copy em { margin-top: 3px; font-size: 9px; font-style: normal; opacity: .7; }
.plan-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,32,24,.1); }
.plan-arrow .icon { width: 16px; }

.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.stat-card { min-height: 108px; padding: 15px; border-radius: 16px; }
.stat-label { font-size: 10px; }
.stat-value { font-size: 25px; }
.stat-unit { max-width: 70px; font-size: 8px; line-height: 1.25; }
.stat-icon { width: 30px; height: 30px; }
.stat-trend { display: none; }
.mobile-section-head { min-height: 32px; margin: 5px 2px 9px; display: flex; align-items: center; justify-content: space-between; }
.mobile-section-head h2 { margin: 0; font-size: 15px; letter-spacing: -.25px; }
.mobile-section-head button { padding: 5px 0 5px 10px; border: 0; display: flex; align-items: center; gap: 2px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 600; cursor: pointer; }
.mobile-section-head button .icon { width: 12px; }
.mobile-section-head > span { color:var(--muted); font-size:9px; font-weight:600; }
.mobile-site-stack { display: grid; gap: 10px; margin-bottom: 24px; }
.mobile-site-card { min-height: 117px; padding: 12px; display: flex; align-items: stretch; gap: 12px; cursor: pointer; }
.mobile-site-thumb { width: 76px; flex: 0 0 auto; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: white; background: linear-gradient(145deg,#24452e,#72927b); }
.mobile-site-thumb.tone-1 { background: linear-gradient(145deg,#68513b,#ba9369); }
.mobile-site-thumb.tone-2 { background: linear-gradient(145deg,#38596b,#8daebb); }
.mobile-site-thumb .icon { width: 25px; height: 25px; opacity: .82; }
.mobile-site-thumb span { font-size: 10px; font-weight: 800; }
.mobile-site-content { min-width: 0; flex: 1; }
.mobile-site-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.mobile-site-top > span:first-child { color: var(--muted); font-size: 8px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-site-content h3 { margin: 8px 0 3px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-site-content p { margin: 0; color: var(--subtle); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-site-foot { min-height: 27px; margin-top: 11px; display: flex; align-items: center; gap: 7px; }
.mobile-site-foot > span { color: var(--muted); font-size: 8px; white-space: nowrap; }
.avatar-stack { display: flex; padding-left: 5px; }
.avatar-stack .avatar { width: 24px; height: 24px; margin-left: -5px; border: 2px solid white; font-size: 8px; }
.avatar-stack .online-dot { display: none; }
.mini-progress { display: none; }
.mobile-site-card > .icon { width: 15px; align-self: center; color: #aab1ab; }
.mobile-attention { margin-bottom: 24px; overflow: hidden; }
.mobile-attention .alert-list { padding: 4px 7px 7px; }
.mobile-attention .alert-item { margin-top: 4px; padding: 11px; }
.alert-copy strong { font-size: 11px; }
.alert-copy p { font-size: 9px; }
.alert-copy time { font-size: 8px; }
.alert-dot { width: 32px; height: 32px; }
.live-list { padding: 5px 14px 11px; }
.live-row { padding: 12px 0; }
.live-copy strong { font-size: 10px; }
.live-copy span { margin-top: 2px; font-size: 8px; }
.live-row .time { font-size: 8px; }

.dashboard-grid, .column { grid-template-columns: 1fr; gap: 12px; }
.section-grid { grid-template-columns: 1fr; gap: 12px; }
.site-card { padding: 12px; }
.site-card-top { height: 125px; }
.site-card-top h3 { font-size: 16px; }
.site-card-body { padding: 13px 3px 3px; }
.site-card-body p { font-size: 9px; }
.site-card-stats { justify-content: space-between; }
.mini-stat strong { font-size: 15px; }
.mini-stat span { font-size: 8px; }

.toolbar.mobile-scroll {
  margin: -2px -16px 14px;
  padding: 2px 16px 4px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.toolbar.mobile-scroll::-webkit-scrollbar { display: none; }
.mobile-scroll .filter-btn { min-width: max-content; height: 36px; border-radius: 11px; font-size: 10px; }
.mobile-people-list, .mobile-task-list, .mobile-issue-list { display: grid; gap: 10px; }
.mobile-person-card { width:100%; min-height: 90px; padding: 13px; display: flex; align-items: center; gap: 11px; color:var(--ink); font:inherit; text-align:left; cursor:pointer; }
.mobile-person-card > .avatar { width: 44px; height: 44px; font-size: 13px; }
.mobile-person-copy { flex: 1; min-width: 0; }
.mobile-person-copy > div { display: flex; align-items: center; gap: 7px; }
.mobile-person-copy strong { font-size: 12px; }
.mobile-person-copy > div span { padding: 2px 6px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 700; }
.mobile-person-copy p { margin: 6px 0 3px; color: var(--ink); font-size: 9px; font-weight: 600; }
.mobile-person-copy small { display: flex; align-items: center; gap: 4px; color: var(--subtle); font-size: 8px; }
.mobile-person-copy small .icon { width: 11px; }
.mobile-person-side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.mobile-person-side > .icon { width: 14px; color: #adb4ae; }
.mobile-task-card { padding: 15px; cursor: pointer; }
.mobile-task-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mobile-task-head > span:first-child { color: var(--green); font-size: 9px; font-weight: 700; }
.mobile-task-card h3 { margin: 10px 0 7px; font-size: 14px; }
.mobile-task-card > p { margin: 0; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.mobile-task-card > p .icon { width: 12px; }
.mobile-task-foot { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; }
.mobile-task-foot span { display: flex; align-items: center; gap: 4px; color: var(--subtle); font-size: 8px; }
.mobile-task-foot .icon { width: 11px; }
.mobile-issue-card { min-height: 128px; padding: 14px; display: flex; align-items: flex-start; gap: 11px; }
.issue-level { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; font-size: 10px; font-weight: 800; }
.issue-level.l1 { color: var(--green); background: var(--green-soft); }
.issue-level.l2 { color: #ae691e; background: var(--orange-soft); }
.issue-level.l3 { color: var(--red); background: var(--red-soft); }
.mobile-issue-copy { flex: 1; min-width: 0; }
.mobile-issue-copy > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 700; }
.mobile-issue-copy time { color: var(--subtle); font-weight: 500; }
.mobile-issue-copy h3 { margin: 7px 0 4px; font-size: 12px; }
.mobile-issue-copy p { margin: 0; color: var(--subtle); font-size: 8px; }
.mobile-issue-copy footer { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; }
.mobile-issue-card.resolved { opacity: .68; }
.closed-note { max-width: 150px; color: var(--subtle); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.action-banner {
  min-height: 230px;
  margin-bottom: 22px;
  padding: 20px;
  display: block;
  border-radius: 20px;
}
.action-banner .banner-icon { width: 47px; height: 47px; margin-bottom: 20px; }
.action-banner h2 { max-width: 260px; font-size: 18px; line-height: 1.35; }
.action-banner p { margin-top: 7px; font-size: 9px; line-height: 1.5; }
.action-banner .btn { width: 100%; margin: 20px 0 0; }
.todo-grid { grid-template-columns: 1fr; gap: 9px; }
.todo-card { min-height: 98px; padding: 14px; align-items: center; }
.todo-icon { width: 42px; height: 42px; }
.todo-copy strong { font-size: 12px; }
.todo-copy p { font-size: 9px; }
.todo-meta { font-size: 8px; }

.worker-shell { max-width: none; }
.worker-hero { padding: 21px; border-radius: 21px; }
.worker-hero h1 { font-size: 23px; }
.worker-hero p { font-size: 10px; }
.worker-primary { height: 50px; }
.queue-head { margin-top: 22px; }
.queue-head h2 { font-size: 15px; }
.queue-card { padding: 15px; }
.queue-index { width: 32px; height: 32px; }
.queue-copy strong { font-size: 12px; }
.queue-copy p { font-size: 9px; }

.mobile-nav {
  position: fixed;
  z-index: 60;
  inset: auto auto 0 50%;
  transform: translateX(-50%);
  width: min(100%, 440px);
  height: calc(70px + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(218,223,219,.9);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 -6px 25px rgba(22,35,25,.05);
  pointer-events: auto;
  touch-action: manipulation;
}
.mobile-nav .nav-item {
  width: auto;
  min-width: 58px;
  min-height: 51px;
  padding: 6px 8px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-radius: 12px;
  color: #8b948d;
  font-size: 8px;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav .nav-item > * { pointer-events:none; }
.mobile-nav .nav-item.active { color: var(--brand-dark); background: var(--brand-soft); box-shadow: none; }
.mobile-nav .nav-item .icon { width: 19px; height: 19px; }

.overlay {
  inset: 0 auto 0 50%;
  width: min(100%, 440px);
  height: 100dvh;
  padding: 0;
  transform: translateX(-50%);
  align-items: flex-end;
}
.modal, .modal.wide {
  width: 100%;
  height: 100dvh;
  max-height: none;
  border-radius: 0;
}
.modal-head { min-height: calc(72px + env(safe-area-inset-top)); padding: calc(15px + env(safe-area-inset-top)) 17px 13px; }
.modal-head h2 { font-size: 18px; }
.stepper { padding: 12px 17px; }
.step { font-size: 0; }
.step-num { width: 23px; height: 23px; font-size: 9px; }
.step > span:last-child { display: none; }
.step.active > span:last-child { display: inline; font-size: 8px; white-space: nowrap; }
.modal-body { min-height: 0; flex: 1; padding: 20px 17px; }
.modal-foot { min-height: calc(74px + env(safe-area-inset-bottom)); padding: 13px 17px calc(13px + env(safe-area-inset-bottom)); }
.choice-grid, .form-grid { grid-template-columns: 1fr; }
.choice-card { min-height: 80px; }
.worker-option { min-height: 64px; }
.field { min-height: 46px; font-size: 12px; }
.form-label { font-size: 10px; }
.order-builder-head { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.order-builder-head > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--brand-dark); background: var(--brand-soft); }
.order-builder-head > span .icon { width: 18px; }
.order-builder-head h3 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.order-builder-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.work-order-builder { padding: 4px 0 2px; }
.order-card { min-height: 108px; display: flex; align-items: stretch; position: relative; }
.order-rail { width: 35px; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.order-rail span { width: 29px; height: 29px; z-index: 1; display: grid; place-items: center; border: 1px solid #d7ddd7; border-radius: 10px; color: var(--muted); background: white; font-size: 10px; font-weight: 800; }
.order-card.primary .order-rail span { color: #152018; border-color: var(--brand); background: var(--brand); }
.order-rail i { width: 1px; flex: 1; margin: 4px 0; background: #dce1dc; }
.order-body { min-width: 0; flex: 1; padding: 1px 0 15px 7px; }
.order-body small { display: block; margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .35px; }
.order-body strong { display: block; font-size: 13px; }
.order-body p { margin: 4px 0 7px; color: var(--muted); font-size: 9px; }
.order-body em { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 8px; font-style: normal; font-weight: 700; }
.order-body label { display: block; margin: -2px 0 7px; color: var(--muted); font-size: 9px; }
.order-select { width: 100%; min-height: 43px; height: 43px; padding: 0 31px 0 11px; border-radius: 11px; background-color: #f7f9f6; font-size: 10px; font-weight: 600; }
.order-card.optional .order-body small { color: #9a6a28; }
.order-lock { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.order-lock .icon { width: 14px; }
.queue-summary { margin: 7px 0 12px; padding: 13px; display: grid; gap: 9px; border-radius: 13px; background: #f5f7f4; }
.queue-summary > div { display: grid; grid-template-columns: 82px 1fr; gap: 8px; align-items: baseline; }
.queue-summary span { color: var(--muted); font-size: 8px; }
.queue-summary strong { min-width: 0; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-head-icon { width: 41px; height: 41px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--brand-dark); background: var(--brand-soft); }
.workflow-head-icon .icon { width: 19px; }
.workflow-modal .modal-body { background: #fbfcfa; }
.flow-context { min-height: 66px; margin-bottom: 17px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.flow-context.warning { border-color: #f0d5b7; background: var(--orange-soft); }
.flow-context > .icon { width: 21px; color: var(--green); }
.flow-context.warning > .icon { color: var(--orange); }
.flow-context > div { min-width: 0; flex: 1; display: grid; }
.flow-context span { color: var(--muted); font-size: 8px; }
.flow-context strong { margin-top: 3px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gps-status-card { margin-bottom: 18px; padding: 22px 16px; border-radius: 18px; color: white; background: linear-gradient(145deg,#142219,#304a34); text-align: center; overflow: hidden; position: relative; }
.gps-rings { width: 68px; height: 68px; margin: 0 auto 13px; display: grid; place-items: center; border: 1px solid rgba(216,244,92,.35); border-radius: 50%; color: var(--brand); box-shadow: 0 0 0 9px rgba(216,244,92,.07),0 0 0 18px rgba(216,244,92,.035); }
.gps-rings .icon { width: 26px; }
.gps-status-card > span { display: block; color: #aab7ac; font-size: 8px; }
.gps-status-card > strong { display: block; margin-top: 4px; font-size: 13px; }
.gps-status-card p { margin: 6px 0 0; color: #9aa89d; font-size: 8px; }
.flow-checklist { display: grid; gap: 8px; margin-bottom: 18px; }
.flow-check { width: 100%; min-height: 58px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.flow-check.checked { border-color: #aabf68; background: #f8fbe9; box-shadow: inset 0 0 0 1px #e4edbd; }
.flow-check > span:last-child { display: grid; gap: 3px; }
.flow-check strong { font-size: 11px; }
.flow-check small { color: var(--muted); font-size: 8px; }
.flow-check .check-box { width: 22px; height: 22px; flex: 0 0 auto; }
.flow-check.checked .check-box { color: white; border-color: var(--green); background: var(--green); }
.flow-choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.flow-choice { min-height: 72px; padding: 10px; display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; text-align: left; cursor: pointer; }
.flow-choice.selected { border-color: #a9bb68; background: #f8fbe9; box-shadow: inset 0 0 0 1px #e3ecb8; }
.flow-choice > span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cad0cb; border-radius: 7px; }
.flow-choice.selected > span { color: white; border-color: var(--green); background: var(--green); }
.flow-choice > span .icon { width: 12px; }
.flow-choice > div { display: grid; gap: 4px; }
.flow-choice strong { font-size: 10px; }
.flow-choice small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.photo-drop { min-height: 90px; padding: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1.5px dashed #cbd3cb; border-radius: 14px; color: var(--muted); background: #f7f9f6; cursor: pointer; }
.photo-drop.has-photo { color: var(--green); border-color: #91b29b; background: var(--green-soft); }
.photo-drop .icon { width: 22px; }
.photo-drop strong { font-size: 10px; }
.photo-drop span { font-size: 8px; }
.photo-drop input[type="file"] { display: none; }

.owner-command-hero {
  position:relative;
  margin:0 0 14px;
  padding:21px 19px 17px;
  overflow:hidden;
  border-radius:24px;
  color:#fff;
  background:radial-gradient(circle at 94% 6%,rgba(216,244,92,.25),transparent 34%),linear-gradient(145deg,#101914,#263c2f 68%,#34513c);
  box-shadow:0 18px 42px rgba(20,43,29,.2);
}
.owner-command-hero::after { content:""; position:absolute; right:-54px; bottom:-82px; width:185px; height:185px; border:1px solid rgba(216,244,92,.14); border-radius:50%; box-shadow:0 0 0 26px rgba(216,244,92,.035); pointer-events:none; }
.owner-hero-top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.owner-hero-top > span { color:#d0dad2; font-size:10px; font-weight:700; }
.owner-hero-top > button { min-height:33px; padding:0 11px; display:flex; align-items:center; gap:6px; border:1px solid rgba(255,255,255,.13); border-radius:11px; color:#edf3ee; background:rgba(255,255,255,.075); font:inherit; font-size:9px; font-weight:700; cursor:pointer; }
.owner-hero-top .icon { width:14px; color:var(--brand); }
.owner-command-hero > small { position:relative; z-index:1; display:block; color:var(--brand); font-size:8px; font-weight:800; letter-spacing:1.1px; }
.owner-command-hero > h1 { position:relative; z-index:1; margin:6px 0 7px; font-size:25px; line-height:1.18; letter-spacing:-.65px; }
.owner-command-hero > p { position:relative; z-index:1; margin:0; color:#bbc7bd; font-size:10px; }
.owner-summary-strip { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:19px; padding:12px 0; border:1px solid rgba(255,255,255,.09); border-radius:16px; background:rgba(255,255,255,.055); }
.owner-summary-strip > div { min-width:0; display:grid; justify-items:center; gap:4px; text-align:center; }
.owner-summary-strip > div + div { border-left:1px solid rgba(255,255,255,.09); }
.owner-summary-strip strong { color:#fff; font-size:18px; line-height:1; }
.owner-summary-strip strong em { margin-left:1px; color:#849289; font-size:9px; font-style:normal; }
.owner-summary-strip span { color:#aab7ad; font-size:7px; white-space:nowrap; }
.owner-summary-strip .attention strong { color:#ff9a75; }
.owner-summary-strip .progress strong { color:var(--brand); }

.owner-quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:22px; }
.owner-quick-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.owner-quick-grid > button { min-width:0; min-height:83px; padding:11px 8px; display:grid; justify-items:center; align-content:center; gap:4px; border:1px solid var(--line); border-radius:16px; color:var(--ink); background:#fff; font:inherit; text-align:center; cursor:pointer; }
.owner-quick-grid > button:first-child { border-color:#d5e69b; background:linear-gradient(145deg,#f4fad8,#fbfdef); }
.owner-quick-grid > button > span { width:29px; height:29px; display:grid; place-items:center; border-radius:9px; color:var(--green); background:var(--green-soft); }
.owner-quick-grid > button:first-child > span { color:#20301f; background:var(--brand); }
.owner-quick-grid .icon { width:15px; }
.owner-quick-grid strong { overflow:hidden; max-width:100%; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.owner-quick-grid small { overflow:hidden; max-width:100%; color:var(--muted); font-size:7px; white-space:nowrap; text-overflow:ellipsis; }

.owner-decision-list { display:grid; gap:8px; margin-bottom:24px; }
.owner-decision-card { width:100%; min-height:88px; padding:12px; display:flex; align-items:center; gap:10px; border:1px solid #e2e7e2; border-radius:17px; color:var(--ink); background:#fff; box-shadow:0 5px 17px rgba(28,50,35,.035); font:inherit; text-align:left; cursor:pointer; }
.owner-decision-card.priority-high { border-color:#ead6b6; background:linear-gradient(100deg,#fffaf1,#fff 62%); box-shadow:inset 3px 0 #dfa348,0 5px 17px rgba(28,50,35,.035); }
.owner-decision-card.priority-critical { border-color:#efbeb7; background:linear-gradient(100deg,#fff0ed,#fff 62%); box-shadow:inset 3px 0 #d64f41,0 7px 21px rgba(180,55,43,.08); }
.owner-decision-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:var(--green); background:var(--green-soft); }
.owner-decision-icon .icon { width:18px; }
.priority-high .owner-decision-icon { color:#a86b18; background:#fff0d6; }
.priority-critical .owner-decision-icon { color:#c33f33; background:#ffdfda; }
.owner-decision-copy { min-width:0; flex:1; display:grid; gap:4px; }
.owner-decision-copy small { overflow:hidden; color:var(--green); font-size:7px; font-weight:800; letter-spacing:.4px; white-space:nowrap; text-overflow:ellipsis; }
.priority-high .owner-decision-copy small { color:#a86b18; }
.priority-critical .owner-decision-copy small { color:#c33f33; }
.owner-decision-copy strong { overflow:hidden; font-size:10px; line-height:1.35; white-space:nowrap; text-overflow:ellipsis; }
.owner-decision-copy em { overflow:hidden; color:var(--muted); font-size:8px; font-style:normal; white-space:nowrap; text-overflow:ellipsis; }
.owner-decision-action { min-width:51px; display:flex; align-items:center; justify-content:flex-end; gap:2px; color:var(--green); font-size:8px; font-weight:800; white-space:nowrap; }
.owner-decision-action .icon { width:11px; }
.owner-all-clear { min-height:74px; padding:13px 14px; display:flex; align-items:center; gap:11px; border:1px dashed #cadbca; border-radius:17px; color:var(--green); background:#f3f8f2; }
.owner-all-clear > .icon { width:22px; }
.owner-all-clear > div { display:grid; gap:3px; }
.owner-all-clear strong { color:var(--ink); font-size:10px; }
.owner-all-clear span { color:var(--muted); font-size:8px; }
.owner-decision-more { min-height:42px; display:flex; align-items:center; justify-content:center; gap:3px; border:1px dashed #d8ded8; border-radius:13px; color:var(--green); background:#f7f9f6; font:inherit; font-size:8px; font-weight:700; cursor:pointer; }
.owner-decision-more .icon { width:11px; }
.owner-followup-module { margin:0 0 24px; padding:15px; border:1px solid #dfe5df; border-radius:19px; background:#f8faf7; }
.owner-followup-module > header { min-height:39px; margin-bottom:12px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.owner-followup-module > header > div { display:grid; gap:2px; }
.owner-followup-module > header small { color:var(--green); font-size:7px; font-weight:800; letter-spacing:.7px; }
.owner-followup-module > header h2 { margin:0; font-size:14px; }
.owner-followup-module > header > span { padding:5px 8px; border-radius:8px; color:#9a5a16; background:#fff0d6; font-size:7px; font-weight:800; }
.owner-followup-module .owner-decision-list { margin-bottom:0; }

.owner-project-list { display:grid; gap:9px; margin-bottom:24px; }
.owner-project-card { width:100%; min-height:154px; padding:15px; border:1px solid var(--line); border-radius:18px; color:var(--ink); background:#fff; box-shadow:0 4px 16px rgba(23,45,30,.035); font:inherit; text-align:left; cursor:pointer; }
.owner-project-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.owner-project-head > div { min-width:0; display:grid; gap:3px; }
.owner-project-head small { color:var(--muted); font-size:7px; }
.owner-project-head strong { overflow:hidden; font-size:13px; white-space:nowrap; text-overflow:ellipsis; }
.owner-project-head > span { flex:0 0 auto; padding:5px 8px; border-radius:8px; color:var(--green); background:var(--green-soft); font-size:7px; font-weight:800; }
.owner-project-card > p { overflow:hidden; margin:9px 0 12px; color:var(--muted); font-size:8px; white-space:nowrap; text-overflow:ellipsis; }
.owner-project-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:10px 0; border-top:1px solid #edf0ed; border-bottom:1px solid #edf0ed; }
.owner-project-metrics > span { min-width:0; display:grid; justify-items:center; gap:3px; color:var(--muted); font-size:7px; }
.owner-project-metrics > span + span { border-left:1px solid #edf0ed; }
.owner-project-metrics strong { color:var(--ink); font-size:12px; }
.owner-project-metrics .has-risk strong { color:var(--red); }
.owner-project-progress { position:relative; height:5px; margin-top:13px; overflow:visible; border-radius:6px; background:#edf0ed; }
.owner-project-progress > i { display:block; height:100%; border-radius:6px; background:linear-gradient(90deg,#5f925e,var(--brand-dark)); }
.owner-project-progress > span { position:absolute; right:0; top:-14px; color:var(--muted); font-size:7px; font-weight:700; }
.owner-today-plan-list { display:grid; gap:10px; margin-bottom:24px; }
.owner-today-plan-list.full { margin-bottom:0; }
.owner-today-plan-card { overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 5px 18px rgba(23,45,30,.04); }
.owner-today-plan-card > header { padding:14px 14px 12px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; border-bottom:1px solid #edf0ed; }
.owner-today-plan-card > header > div { min-width:0; }
.owner-today-plan-card > header small { display:block; overflow:hidden; color:var(--muted); font-size:7px; white-space:nowrap; text-overflow:ellipsis; }
.owner-today-plan-card > header h3 { margin:4px 0 0; overflow:hidden; font-size:12px; white-space:nowrap; text-overflow:ellipsis; }
.owner-today-plan-card.newest { border-color:#cddb9e; box-shadow:0 7px 22px rgba(64,91,44,.09); }
.owner-plan-tags { flex:0 0 auto; display:flex; align-items:center; gap:5px; }
.owner-plan-tags > b,.owner-plan-tags > span { padding:5px 8px; border-radius:8px; font-size:7px; font-weight:800; }
.owner-plan-tags > b { color:#263826; background:var(--brand); }
.owner-plan-tags > span { color:var(--green); background:var(--green-soft); }
.owner-today-plan-card > ol { margin:0; padding:5px 14px; list-style:none; }
.owner-today-plan-card > ol > li { min-height:48px; display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:9px; }
.owner-today-plan-card > ol > li + li { border-top:1px solid #f0f2f0; }
.owner-today-plan-card > ol > li > span:first-child { width:23px; height:23px; display:grid; place-items:center; border-radius:50%; color:#263826; background:var(--brand); font-size:8px; font-weight:900; }
.owner-today-plan-card > ol > li > div { min-width:0; display:grid; gap:3px; }
.owner-today-plan-card > ol strong,.owner-today-plan-card > ol small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.owner-today-plan-card > ol strong { font-size:9px; }
.owner-today-plan-card > ol small { color:var(--muted); font-size:7px; }
.owner-plan-crew { margin:0 14px 12px; padding:10px; display:flex; align-items:center; gap:9px; border-radius:12px; background:#f5f8f4; }
.owner-plan-crew > span { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; color:var(--green); background:#e6f0e7; }
.owner-plan-crew .icon { width:15px; }
.owner-plan-crew > div { min-width:0; display:grid; gap:3px; }
.owner-plan-crew strong,.owner-plan-crew small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.owner-plan-crew strong { font-size:8px; }
.owner-plan-crew small { color:var(--muted); font-size:7px; }
.owner-today-plan-card > footer { min-height:47px; padding:8px 14px; display:flex; align-items:center; justify-content:flex-end; gap:8px; border-top:1px solid #edf0ed; }
.owner-today-plan-card > footer button { min-height:31px; padding:0 10px; display:flex; align-items:center; gap:5px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:#fff; font:inherit; font-size:8px; font-weight:800; cursor:pointer; }
.owner-today-plan-card > footer button.primary { border-color:#263826; color:#fff; background:#263826; }
.owner-today-plan-card > footer button .icon,.owner-today-plan-card > footer > span .icon { width:12px; }
.owner-today-plan-card > footer > span { display:flex; align-items:center; gap:4px; color:var(--green); font-size:8px; font-weight:700; }
.owner-task-sync-note { min-height:42px; margin:0 0 12px; padding:9px 12px; display:flex; align-items:center; gap:7px; border:1px solid #dce7d9; border-radius:13px; color:var(--green); background:#f4f8f2; font-size:8px; }
.owner-task-sync-note > .icon { width:13px; flex:0 0 auto; }
.owner-task-sync-note > span { min-width:0; flex:1; }
.owner-task-sync-note > strong { color:var(--ink); white-space:nowrap; }
.stepper.compact { grid-template-columns:repeat(2,1fr); }
.flow-choice-grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.arrange-change-note { margin-top:16px; }
.flow-note.warning { color:#9a5a16; background:#fff4e4; }

.owner-yesterday-card { margin:0 0 24px; padding:15px; border:1px solid #dfe5df; border-radius:18px; background:linear-gradient(145deg,#f5f8f4,#fff); }
.owner-yesterday-card > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.owner-yesterday-card header small { color:var(--muted); font-size:7px; }
.owner-yesterday-card h2 { margin:2px 0 0; font-size:13px; }
.owner-yesterday-card header button { padding:5px 0 5px 9px; display:flex; align-items:center; gap:2px; border:0; color:var(--green); background:transparent; font-size:8px; font-weight:700; cursor:pointer; }
.owner-yesterday-card header .icon { width:11px; }
.owner-yesterday-card > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:10px 0; border-radius:13px; background:#fff; }
.owner-yesterday-card > div > span { display:grid; justify-items:center; gap:3px; color:var(--muted); font-size:7px; }
.owner-yesterday-card > div > span + span { border-left:1px solid #edf0ed; }
.owner-yesterday-card > div strong { color:var(--ink); font-size:15px; }

.owner-activity-card { margin-bottom:4px; overflow:hidden; }
.owner-activity-list { padding:4px 13px; }
.owner-activity-row { width:100%; min-height:65px; padding:10px 1px; display:flex; align-items:center; gap:10px; border:0; border-bottom:1px solid #edf0ed; color:var(--ink); background:#fff; font:inherit; text-align:left; cursor:pointer; }
.owner-activity-row:last-child { border-bottom:0; }
.owner-activity-row > span { width:32px; height:32px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; color:var(--green); background:var(--green-soft); }
.owner-activity-row > span .icon { width:15px; }
.owner-activity-row > div { min-width:0; flex:1; display:grid; gap:4px; }
.owner-activity-row strong,.owner-activity-row small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.owner-activity-row strong { font-size:9px; }
.owner-activity-row small { color:var(--muted); font-size:7px; }
.owner-activity-row time { flex:0 0 auto; color:var(--subtle); font-size:7px; }

.supervisor-todo-hero {
  position: relative;
  margin: 0 0 24px;
  padding: 22px 20px 18px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: radial-gradient(circle at 92% 0,rgba(216,244,92,.22),transparent 36%),linear-gradient(145deg,#111b15,#294333 72%,#35543d);
  box-shadow: 0 18px 42px rgba(24,48,34,.2);
}
.supervisor-todo-hero::after { content:""; position:absolute; right:-42px; bottom:-58px; width:150px; height:150px; border:1px solid rgba(216,244,92,.13); border-radius:50%; box-shadow:0 0 0 22px rgba(216,244,92,.04); pointer-events:none; }
.supervisor-hero-top { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.supervisor-hero-top > span { color:#d5dfd7; font-size:10px; font-weight:700; }
.supervisor-hero-top > button { min-height:34px; padding:0 12px; display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(255,255,255,.14); border-radius:11px; color:#172019; background:var(--brand); font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.supervisor-hero-top .icon { width:14px; }
.supervisor-todo-hero > small { position:relative; z-index:1; display:block; color:var(--brand); font-size:8px; font-weight:800; letter-spacing:1.2px; }
.supervisor-todo-hero > h1 { position:relative; z-index:1; margin:6px 0 7px; font-size:25px; line-height:1.18; letter-spacing:-.6px; }
.supervisor-todo-hero > p { position:relative; z-index:1; margin:0; color:#bcc9bf; font-size:10px; line-height:1.55; }
.supervisor-summary-strip { position:relative; z-index:1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:20px; padding:12px 0; border:1px solid rgba(255,255,255,.09); border-radius:16px; background:rgba(255,255,255,.055); backdrop-filter:blur(8px); }
.supervisor-summary-strip > div { min-width:0; padding:0 7px; display:grid; justify-items:center; gap:3px; text-align:center; }
.supervisor-summary-strip > div + div { border-left:1px solid rgba(255,255,255,.09); }
.supervisor-summary-strip strong { color:#fff; font-size:19px; line-height:1; }
.supervisor-summary-strip span { overflow:hidden; max-width:100%; color:#aebbb1; font-size:7px; white-space:nowrap; text-overflow:ellipsis; }
.supervisor-summary-strip .critical strong { color:#ff8b7c; }
.supervisor-summary-strip .done strong { color:var(--brand); }

.daily-inspection-board { position:relative; margin:-6px 0 26px; padding:18px; overflow:hidden; border:1px solid #cfddbf; border-radius:22px; background:linear-gradient(145deg,#fbfff4,#fff 48%,#f4f8f4); box-shadow:0 13px 34px rgba(40,77,48,.1); }
.daily-inspection-board::before { content:""; position:absolute; inset:0 auto 0 0; width:5px; background:linear-gradient(var(--brand),#68a879); }
.daily-inspection-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding-left:4px; }
.daily-inspection-head > div:first-child { min-width:0; }
.core-task-label { width:max-content; min-height:24px; padding:0 9px; display:flex; align-items:center; gap:5px; border-radius:999px; color:#26341f; background:var(--brand); font-size:7px; font-weight:900; letter-spacing:.65px; }
.core-task-label .icon { width:12px; }
.daily-inspection-head h2 { margin:8px 0 4px; font-size:20px; letter-spacing:-.35px; }
.daily-inspection-head p { max-width:520px; margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.inspection-progress-ring { width:66px; height:66px; padding:8px; display:grid; place-content:center; flex:0 0 auto; border:6px solid #e5ebdf; border-top-color:var(--green); border-right-color:var(--brand); border-radius:50%; text-align:center; }
.inspection-progress-ring strong { font-size:14px; line-height:1; }
.inspection-progress-ring span { margin-top:3px; color:var(--muted); font-size:7px; }
.inspection-progress-track { height:6px; margin:15px 4px 14px; overflow:hidden; border-radius:999px; background:#e4e9e2; }
.inspection-progress-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--green),var(--brand)); transition:width .25s ease; }
.inspection-issue-banner { min-height:46px; margin:0 4px 13px; padding:9px 11px; display:grid; grid-template-columns:auto auto 1fr; align-items:center; gap:8px; border:1px solid #efc0ba; border-radius:13px; color:#8f3128; background:#fff0ed; }
.inspection-issue-banner .icon { width:17px; }
.inspection-issue-banner strong { font-size:9px; }
.inspection-issue-banner span { color:#9c5a53; font-size:8px; line-height:1.4; }
.daily-inspection-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.daily-inspection-stage { min-width:0; padding:11px; border:1px solid #e0e6de; border-radius:16px; background:rgba(255,255,255,.82); }
.daily-inspection-stage > header { min-height:34px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; margin-bottom:9px; }
.daily-inspection-stage > header > span { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; color:var(--green); background:var(--green-soft); }
.daily-inspection-stage > header .icon { width:15px; }
.daily-inspection-stage > header div { min-width:0; display:grid; gap:2px; }
.daily-inspection-stage > header strong { font-size:10px; }
.daily-inspection-stage > header small { overflow:hidden; color:var(--muted); font-size:7px; white-space:nowrap; text-overflow:ellipsis; }
.daily-inspection-stage > header b { padding:4px 6px; border-radius:8px; color:var(--green); background:var(--green-soft); font-size:8px; }
.daily-inspection-stage > div { display:grid; gap:7px; }
.daily-inspection-card { width:100%; min-height:70px; padding:9px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; border:1px solid #e1e6e1; border-radius:13px; color:var(--ink); background:#fff; font:inherit; text-align:left; cursor:pointer; }
.daily-inspection-card:not(:disabled):active { transform:scale(.985); }
.daily-inspection-card.status-pending_worker,.daily-inspection-card.status-returned { border-color:#d9c391; box-shadow:inset 3px 0 #e0a84e; }
.daily-inspection-card.status-pending_supervisor { border-color:#b8cfd8; background:#f5fbfd; box-shadow:inset 3px 0 #4d8ca5; }
.daily-inspection-card.status-issue { border-color:#efbbb4; background:#fff7f5; box-shadow:inset 3px 0 #d95545; }
.daily-inspection-card.status-confirmed { opacity:.72; cursor:default; }
.inspection-status-mark { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; color:#956018; background:#fff0d6; }
.status-issue .inspection-status-mark { color:#c64235; background:#ffe0dc; }
.status-pending_supervisor .inspection-status-mark { color:#39748a; background:#e3f2f7; }
.status-confirmed .inspection-status-mark { color:var(--green); background:var(--green-soft); }
.inspection-status-mark .icon { width:15px; }
.inspection-card-copy { min-width:0; display:grid; gap:3px; }
.inspection-card-copy small,.inspection-card-copy strong,.inspection-card-copy em { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.inspection-card-copy small { color:var(--green); font-size:7px; font-weight:800; }
.inspection-card-copy strong { font-size:9px; }
.inspection-card-copy em { color:var(--muted); font-size:7px; font-style:normal; }
.inspection-card-side { display:grid; justify-items:end; gap:5px; white-space:nowrap; }
.inspection-card-side b { color:#9a651c; font-size:7px; }
.status-issue .inspection-card-side b { color:#bd3f33; }
.status-pending_supervisor .inspection-card-side b { color:#39748a; }
.status-confirmed .inspection-card-side b { color:var(--green); }
.inspection-card-side span { display:flex; align-items:center; gap:2px; color:var(--green); font-size:7px; font-weight:800; }
.inspection-card-side .icon { width:10px; }
.inspection-not-required { min-height:50px; display:flex; align-items:center; justify-content:center; gap:5px; border:1px dashed #d7ded8; border-radius:12px; color:var(--muted); font-size:8px; }
.inspection-not-required .icon { width:13px; }

.worker-inspection-board { margin:18px 0 22px; padding:15px; border:1px solid #d6e2d0; border-radius:19px; background:linear-gradient(145deg,#f7fbf3,#fff); box-shadow:0 8px 24px rgba(40,77,48,.07); }
.worker-inspection-board > header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px; }
.worker-inspection-board > header > div { min-width:0; display:flex; align-items:center; gap:9px; }
.worker-inspection-board > header > div > span { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; color:var(--green); background:var(--green-soft); }
.worker-inspection-board > header .icon { width:17px; }
.worker-inspection-board h2 { margin:0; font-size:13px; }
.worker-inspection-board p { margin:3px 0 0; color:var(--muted); font-size:8px; line-height:1.4; }
.worker-inspection-board > header > b { min-width:38px; padding:6px 8px; border-radius:10px; color:var(--green); background:var(--green-soft); font-size:10px; text-align:center; }
.worker-inspection-board > div { display:grid; gap:8px; }
.worker-inspection-card { width:100%; min-height:70px; padding:10px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px; border:1px solid #e0e6df; border-radius:13px; color:var(--ink); background:#fff; font:inherit; text-align:left; cursor:pointer; }
.worker-inspection-card:disabled { cursor:default; }
.worker-inspection-card > span { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; color:#9a651c; background:#fff0d6; }
.worker-inspection-card > span .icon { width:15px; }
.worker-inspection-card > div { min-width:0; display:grid; gap:3px; }
.worker-inspection-card small,.worker-inspection-card strong,.worker-inspection-card em { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.worker-inspection-card small { color:var(--green); font-size:7px; font-weight:800; }
.worker-inspection-card strong { font-size:9px; }
.worker-inspection-card em { color:var(--muted); font-size:7px; font-style:normal; }
.worker-inspection-card > b { display:flex; align-items:center; gap:3px; color:#956018; font-size:7px; white-space:nowrap; }
.worker-inspection-card > b .icon { width:10px; }
.worker-inspection-card.status-pending_supervisor { border-color:#c9dde4; background:#f5fbfd; }
.worker-inspection-card.status-pending_supervisor > span { color:#39748a; background:#e3f2f7; }
.worker-inspection-card.status-issue { border-color:#efbbb4; background:#fff7f5; }
.worker-inspection-card.status-issue > span { color:#c64235; background:#ffe0dc; }
.worker-inspection-card.status-confirmed { opacity:.75; }
.worker-inspection-card.status-confirmed > span { color:var(--green); background:var(--green-soft); }
.worker-inspection-card.status-confirmed > b { color:var(--green); }

.worker-workflow-board { position:relative; margin:18px 0 22px; padding:17px; overflow:hidden; border:1px solid #d8e2d2; border-radius:21px; background:linear-gradient(145deg,#f8fbf5,#fff 54%,#f2f7ef); box-shadow:0 10px 28px rgba(40,77,48,.08); }
.worker-workflow-board::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:linear-gradient(var(--brand),#5c9168); }
.worker-workflow-board > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-left:3px; }
.worker-workflow-board > header > div:first-child { min-width:0; }
.workflow-eyebrow { width:max-content; min-height:23px; padding:0 8px; display:flex; align-items:center; gap:5px; border-radius:999px; color:#26341f; background:var(--brand); font-size:7px; font-weight:900; letter-spacing:.6px; }
.workflow-eyebrow .icon { width:11px; }
.worker-workflow-board h2 { margin:8px 0 4px; font-size:16px; letter-spacing:-.25px; }
.worker-workflow-board > header p { margin:0; color:var(--muted); font-size:8px; line-height:1.5; }
.worker-flow-progress { min-width:54px; padding:8px 7px; display:grid; justify-items:center; gap:3px; flex:0 0 auto; border:1px solid #dce5d8; border-radius:13px; background:rgba(255,255,255,.86); }
.worker-flow-progress strong { color:var(--green); font-size:14px; line-height:1; }
.worker-flow-progress span { color:var(--muted); font-size:6px; white-space:nowrap; }
.worker-flow-track { height:5px; margin:14px 3px 13px; overflow:hidden; border-radius:999px; background:#e4eae1; }
.worker-flow-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--green),var(--brand)); transition:width .25s ease; }
.worker-flow-steps { display:grid; gap:8px; }
.worker-flow-step { min-height:73px; padding:9px 9px 9px 8px; display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; align-items:center; gap:8px; border:1px solid #e0e6df; border-radius:14px; background:#fff; transition:border-color .2s ease,box-shadow .2s ease,transform .15s ease; }
.worker-flow-number { width:22px; height:22px; display:grid; place-items:center; border-radius:50%; color:#68736a; background:#edf0ed; font-size:7px; font-weight:900; }
.worker-flow-number .icon { width:11px; }
.worker-flow-icon { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; color:#68736a; background:#f0f3ef; }
.worker-flow-icon .icon { width:15px; }
.worker-flow-step > div { min-width:0; display:grid; gap:3px; }
.worker-flow-step small { color:var(--muted); font-size:6px; font-weight:850; letter-spacing:.35px; }
.worker-flow-step strong,.worker-flow-step p { overflow:hidden; text-overflow:ellipsis; }
.worker-flow-step strong { font-size:9px; line-height:1.3; white-space:nowrap; }
.worker-flow-step p { margin:0; color:var(--muted); font-size:7px; line-height:1.4; white-space:nowrap; }
.worker-flow-step > button { min-height:32px; padding:0 8px; display:flex; align-items:center; gap:2px; border:0; border-radius:10px; color:#27351f; background:var(--brand); font:inherit; font-size:7px; font-weight:900; white-space:nowrap; cursor:pointer; }
.worker-flow-step > button .icon { width:10px; }
.worker-flow-step > button:active { transform:scale(.97); }
.worker-flow-step.status-done { opacity:.66; background:#f8faf7; }
.worker-flow-step.status-done .worker-flow-number,.worker-flow-step.status-done .worker-flow-icon { color:var(--green); background:var(--green-soft); }
.worker-flow-step.status-current,.worker-flow-step.is-focus { border-color:#a9c988; background:linear-gradient(100deg,#f7ffe9,#fff 70%); box-shadow:inset 3px 0 var(--brand),0 7px 18px rgba(75,113,54,.09); }
.worker-flow-step.status-current .worker-flow-number,.worker-flow-step.status-current .worker-flow-icon { color:#29351f; background:var(--brand); }
.worker-flow-step.status-current small { color:var(--green); }
.worker-flow-step.status-waiting { opacity:.75; }
.worker-flow-step.status-blocked { border-color:#e9b9b2; background:#fff7f5; box-shadow:inset 3px 0 #d95545; }
.worker-flow-step.status-blocked .worker-flow-number,.worker-flow-step.status-blocked .worker-flow-icon { color:#bd3f33; background:#ffe0dc; }
.worker-flow-step.status-blocked small { color:#bd3f33; }

.inspection-review-meta { margin:0 0 12px; padding:10px 12px; display:flex; align-items:center; justify-content:space-between; border-radius:11px; background:#f2f5f1; }
.inspection-review-meta span { color:var(--muted); font-size:8px; }
.inspection-review-meta strong { font-size:10px; }
.inspection-review-checks { display:grid; gap:7px; margin-bottom:14px; }
.inspection-review-checks > div { min-height:43px; padding:8px 10px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; border:1px solid #dfe6dd; border-radius:11px; background:#fff; }
.inspection-review-checks > div > span { width:24px; height:24px; display:grid; place-items:center; border-radius:8px; color:var(--green); background:var(--green-soft); }
.inspection-review-checks .failed { border-color:#efc0ba; background:#fff5f3; }
.inspection-review-checks .failed > span { color:#c64235; background:#ffe0dc; }
.inspection-review-checks .icon { width:13px; }
.inspection-review-checks strong { font-size:9px; }
.inspection-review-checks b { color:var(--green); font-size:8px; }
.inspection-review-checks .failed b { color:#c64235; }

.supervisor-todo-section { margin:0 0 23px; }
.supervisor-todo-section > header { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:0 2px 11px; }
.supervisor-todo-section > header h2 { margin:0; font-size:16px; letter-spacing:-.25px; }
.supervisor-todo-section > header p { margin:4px 0 0; color:var(--muted); font-size:8px; line-height:1.4; }
.supervisor-todo-section > header > span { min-width:25px; height:25px; padding:0 7px; display:grid; place-items:center; border-radius:9px; color:var(--green); background:var(--green-soft); font-size:10px; font-weight:800; }
.supervisor-todo-section.is-now > header > span { color:#a83d31; background:#fff0ed; }
.supervisor-todo-list { display:grid; gap:9px; }
.supervisor-todo-card { width:100%; min-height:96px; padding:13px 12px; display:flex; align-items:center; gap:11px; border:1px solid #e1e6e1; border-radius:17px; color:var(--ink); background:#fff; box-shadow:0 5px 18px rgba(30,55,39,.045); font:inherit; text-align:left; cursor:pointer; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.supervisor-todo-card:active { transform:scale(.985); }
.supervisor-todo-card.priority-high { border-color:#ead7b6; background:linear-gradient(100deg,#fffaf1,#fff 60%); box-shadow:inset 3px 0 #e0a84e,0 5px 18px rgba(30,55,39,.045); }
.supervisor-todo-card.priority-critical { border-color:#efc0ba; background:linear-gradient(100deg,#fff0ed,#fff 62%); box-shadow:inset 3px 0 #d95545,0 8px 24px rgba(183,62,48,.09); }
.supervisor-todo-icon { width:40px; height:40px; display:grid; place-items:center; flex:0 0 auto; border-radius:13px; color:var(--green); background:var(--green-soft); }
.supervisor-todo-icon .icon { width:19px; }
.priority-high .supervisor-todo-icon { color:#a86b18; background:#fff0d6; }
.priority-critical .supervisor-todo-icon { color:#c64235; background:#ffe0dc; }
.supervisor-todo-copy { min-width:0; flex:1; display:grid; gap:4px; }
.supervisor-todo-copy small { overflow:hidden; color:var(--green); font-size:7px; font-weight:800; letter-spacing:.45px; text-transform:uppercase; white-space:nowrap; text-overflow:ellipsis; }
.priority-high .supervisor-todo-copy small { color:#a86b18; }
.priority-critical .supervisor-todo-copy small { color:#c64235; }
.supervisor-todo-copy strong { overflow:hidden; font-size:11px; line-height:1.35; white-space:nowrap; text-overflow:ellipsis; }
.supervisor-todo-copy em { overflow:hidden; color:var(--muted); font-size:8px; font-style:normal; line-height:1.35; white-space:nowrap; text-overflow:ellipsis; }
.supervisor-todo-action { min-width:58px; display:flex; align-items:center; justify-content:flex-end; gap:3px; color:var(--green); font-size:8px; font-weight:800; white-space:nowrap; }
.supervisor-todo-action .icon { width:12px; }
.priority-high .supervisor-todo-action { color:#956018; }
.priority-critical .supervisor-todo-action { color:#b5372c; }
.supervisor-section-clear { min-height:62px; padding:12px 15px; display:flex; align-items:center; gap:9px; border:1px dashed #d7ded8; border-radius:15px; color:#6f7d72; background:#f6f8f6; font-size:9px; }
.supervisor-section-clear .icon { width:17px; color:#5b8a68; }
.supervisor-complete-card { width:100%; min-height:76px; margin:1px 0 8px; padding:13px 14px; display:flex; align-items:center; gap:11px; border:1px solid #d9e5d9; border-radius:18px; color:var(--ink); background:linear-gradient(110deg,#eff7ee,#fbfdfb); font:inherit; text-align:left; cursor:pointer; }
.supervisor-complete-card > span { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; color:#fff; background:var(--green); }
.supervisor-complete-card > span .icon { width:18px; }
.supervisor-complete-card > div { min-width:0; flex:1; display:grid; gap:4px; }
.supervisor-complete-card strong { font-size:10px; }
.supervisor-complete-card small { overflow:hidden; color:var(--muted); font-size:8px; white-space:nowrap; text-overflow:ellipsis; }
.supervisor-complete-card > .icon { width:13px; color:#8b988e; }

.login-shell { min-height:100dvh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 15% 10%,#eef7c8,transparent 34%),linear-gradient(145deg,#111913,#233326); }
.login-card { width:min(440px,100%); padding:32px; border-radius:24px; background:#fff; box-shadow:0 24px 70px rgba(0,0,0,.24); }
.login-brand { width:auto; margin-bottom:32px; color:var(--ink); }
.login-card h1 { margin:7px 0 8px; font-size:26px; }
.login-card > div > p { margin:0 0 24px; color:var(--muted); font-size:12px; line-height:1.6; }
.login-form { display:grid; gap:14px; }
.login-form .btn { width:100%; margin-top:4px; }
.login-status { min-height:18px; margin:16px 0 0 !important; color:var(--muted); font-size:9px !important; }
.summary-banner { margin:18px 0; }
.stats-grid.compact .stat-card { min-height:106px; }
.flow-note { margin: 14px 0; padding: 11px; display: flex; align-items: flex-start; gap: 8px; border-radius: 11px; color: #5f6d62; background: #eef2ee; font-size: 9px; line-height: 1.55; }
.flow-note .icon { width: 16px; flex: 0 0 auto; color: var(--green); }
.rectification-assign-block { margin-top:14px; padding:13px 13px 1px; border:1px solid #ecd8bd; border-radius:13px; background:#fffaf2; }
.handover-route { min-height: 65px; margin-bottom: 13px; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 15px; border-radius: 14px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 700; }
.handover-route .icon { width: 18px; }
.handover-detail { display: grid; gap: 8px; margin-bottom: 13px; }
.handover-detail > div { padding: 12px; display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.handover-detail > div.important { border-color: #efcfaa; background: var(--orange-soft); }
.handover-detail span { color: var(--muted); font-size: 8px; }
.handover-detail strong { font-size: 10px; line-height: 1.55; }
.submission-review { padding: 18px; margin-bottom: 18px; border-radius: 16px; color: white; background: linear-gradient(135deg,#15221a,#304634); text-align: center; }
.submission-review > span { color: #a8b5aa; font-size: 8px; }
.submission-review > strong { display: block; margin-top: 3px; font-size: 11px; }
.result-big { margin: 18px 0 8px; color: var(--brand); font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.result-big small { margin-left: 4px; font-size: 14px; }
.submission-review p { margin: 0; color: #b6c0b8; font-size: 9px; }
.submission-review em { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; padding: 5px 8px; border-radius: 8px; color: #cfdbd1; background: rgba(255,255,255,.08); font-size: 8px; font-style: normal; }
.submission-review em .icon { width: 13px; }
.task-action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.task-action-grid button { min-height: 55px; padding: 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font-size: 9px; font-weight: 700; text-align: left; cursor: pointer; }
.task-action-grid button:hover { background: #f7f9f6; }
.task-action-grid button > .icon:first-child { width: 17px; color: var(--green); }
.task-action-grid button > span { flex: 1; }
.task-action-grid button > .icon:last-child { width: 12px; color: #aab2ac; }
.daily-log-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.daily-log-card > div { min-height: 74px; padding: 10px; display: grid; align-content: center; gap: 3px; border-radius: 11px; background: #f6f8f5; }
.daily-log-card > div > span { color: var(--green); }
.daily-log-card .icon { width: 15px; }
.daily-log-card strong { font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.daily-log-card small { color: var(--subtle); font-size: 8px; }
.audit-list { padding: 5px 14px; }
.audit-row { min-height: 62px; display: flex; align-items: center; gap: 10px; }
.audit-row + .audit-row { border-top: 1px solid var(--line); }
.audit-row > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.audit-row > span .icon { width: 14px; }
.audit-row > div { min-width: 0; flex: 1; }
.audit-row strong { font-size: 10px; }
.audit-row p { margin: 3px 0 0; color: var(--subtle); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-row time { color: var(--subtle); font-size: 8px; }
.notification-list { padding:4px 15px; overflow:hidden; }
.notification-row { width:100%; min-height:72px; padding:12px 2px; display:flex; align-items:center; gap:11px; border:0; border-bottom:1px solid var(--line); color:var(--ink); background:white; text-align:left; cursor:pointer; }
.notification-row:last-child { border-bottom:0; }
.notification-row.read { opacity:.62; }
.notification-row.critical { background:linear-gradient(90deg,#fff1ef,white 50%); }
.notification-icon { width:34px; height:34px; flex:0 0 auto; display:grid; place-items:center; border-radius:10px; color:var(--green); background:var(--green-soft); }
.notification-row.high .notification-icon,.notification-row.critical .notification-icon { color:var(--red); background:var(--red-soft); }
.notification-icon .icon { width:16px; }
.notification-copy { min-width:0; flex:1; }
.notification-copy strong,.notification-copy small,.notification-copy time { display:block; }
.notification-copy strong { font-size:10px; }
.notification-copy small { margin:3px 0; overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
.notification-copy time { color:var(--subtle); font-size:7px; }
.notification-row > i { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--red); }
.rectification-worker-card { min-height:86px; display:flex; align-items:center; gap:11px; padding:13px; margin-bottom:10px; }
.rectification-worker-card .todo-copy { min-width:0; flex:1; }
.rectification-worker-card .todo-copy p { margin:4px 0; }
.rectification-worker-card .btn { flex:0 0 auto; }
.drawer-overlay { inset: 0 auto 0 50%; width: min(100%,440px); transform: translateX(-50%); }
.drawer {
  inset: 0 auto 0 50%;
  width: min(100%,440px);
  transform: translateX(-50%);
  animation: none;
}
.drawer-head { padding: calc(24px + env(safe-area-inset-top)) 20px 20px; }
.drawer-title { font-size: 22px; }
.drawer-body { padding: 20px 20px calc(40px + env(safe-area-inset-bottom)); }
.detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#toast-root { left: 50%; right: auto; bottom: calc(82px + env(safe-area-inset-bottom)); width: min(calc(100% - 28px), 412px); transform: translateX(-50%); }
.toast { min-width: 0; width: 100%; min-height: 48px; font-size: 11px; }

@media (max-width: 460px) {
  html, body { background: var(--canvas); }
  #app { width: 100%; box-shadow: none; }
  .topbar { padding-left: 14px; padding-right: 14px; }
  .content { padding-left: 14px; padding-right: 14px; }
  .toolbar.mobile-scroll { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .daily-inspection-board { padding:16px 13px 14px; }
  .daily-inspection-groups { grid-template-columns:1fr; }
  .daily-inspection-stage { padding:10px; }
  .worker-workflow-board { padding:15px 12px 13px; }
  .worker-flow-step { grid-template-columns:auto minmax(0,1fr) auto; }
  .worker-flow-number { display:none; }
}

@media (max-width: 360px) {
  .owner-summary-strip > div { padding:0 2px; }
  .owner-decision-action { min-width:0; font-size:0; }
  .owner-decision-action .icon { width:14px; }
  .supervisor-todo-hero { padding-left:16px; padding-right:16px; }
  .supervisor-summary-strip > div { padding-left:4px; padding-right:4px; }
  .supervisor-todo-action { min-width:0; }
  .supervisor-todo-action { font-size:0; }
  .supervisor-todo-action .icon { width:14px; }
  .worker-flow-step { padding-right:7px; gap:6px; }
  .worker-flow-step > button { padding:0 7px; font-size:0; }
  .worker-flow-step > button .icon { width:13px; }
}

.worker-flow-inline-qc { display:flex;align-items:center;gap:6px;margin-top:8px;padding:7px 9px;border:1px solid #cbdff6;border-radius:9px;background:#f2f8ff;color:#174a77; }
.worker-flow-inline-qc .icon { width:14px;height:14px;flex:none; }
.worker-flow-inline-qc b { font-size:10px; }
.worker-flow-inline-qc em { margin-left:auto;font-size:9px;font-style:normal;color:#4d6f8e;text-align:right; }
.worker-history-row { width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer;font:inherit; }
.worker-history-row:hover,.worker-history-row:focus-visible { background:#f6f9fc;outline:none; }
.worker-history-row > .icon { width:15px;color:var(--muted); }
.worker-history-row .live-copy small { display:block;margin-top:4px;color:#40627e;font-size:9px; }
.worker-history-section { margin-top:14px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe; }
.worker-history-section h3 { margin:0 0 10px;font-size:12px;color:var(--ink); }
.worker-history-section > p { margin:0;color:var(--muted);font-size:10px;line-height:1.55; }
.worker-history-fact { display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid #edf1f4; }
.worker-history-fact:last-child { border-bottom:0; }
.worker-history-fact > .icon { width:15px;color:var(--green);flex:none; }
.worker-history-fact div { display:grid;gap:3px; }
.worker-history-fact strong { font-size:10px; }
.worker-history-fact span { font-size:9px;color:var(--muted); }
.history-qc-record,.history-output { padding:10px;border:1px solid #dce6ee;border-radius:10px;background:#fff; }
.history-qc-record + .history-qc-record,.history-output + .history-output { margin-top:8px; }
.history-qc-record header { display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px; }
.history-qc-record header strong,.history-output strong { font-size:10px; }
.history-qc-record > div { display:grid;gap:5px; }
.history-qc-record > div span { display:flex;align-items:center;gap:5px;font-size:9px;color:#31536d; }
.history-qc-record > div span .icon { width:12px; }
.history-qc-record > div span.passed .icon { color:var(--green); }
.history-qc-record p,.history-output p { margin:7px 0 0;font-size:9px;line-height:1.5;color:var(--muted); }
.history-output { display:grid;gap:4px; }
.history-output > span { font-size:9px;color:var(--muted); }
