:root{color:#17332f;background:#f4f7f4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;line-height:1.45;--ink: #17332f;--muted: #61726d;--line: #d8e2dc;--surface: #ffffff;--surface-soft: #edf4ef;--green: #123b36;--green-bright: #1f6b5d;--amber: #8b5f12;--red: #a23d35;--shadow: 0 10px 32px rgb(18 59 54 / 8%)}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f4f7f4}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.62}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a7d5c4;outline-offset:2px}.app-shell{min-height:100vh}.app-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:30px;min-height:72px;padding:12px clamp(16px,4vw,56px);border-bottom:1px solid var(--line);background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.wordmark{display:flex;align-items:center;gap:9px;padding:0;border:0;background:none;color:var(--green);font-size:16px;letter-spacing:-.02em}.wordmark b{font-weight:800}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;color:#fff;background:var(--green);font-size:15px;font-weight:800;letter-spacing:.04em}.brand-mark.small{width:31px;height:31px;border-radius:9px;font-size:10px}.primary-nav{display:flex;align-items:stretch;gap:4px;height:48px}.nav-link{padding:0 14px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);font-weight:700}.nav-link.active,.nav-link:hover{color:var(--green);border-bottom-color:var(--green-bright)}.actor-chip{display:flex;align-items:center;gap:7px;margin-left:auto;color:var(--muted);font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#56a987}.app-main{width:min(1240px,100%);margin:0 auto;padding:clamp(26px,5vw,64px) clamp(16px,4vw,56px) 72px}.page-section{display:grid;gap:24px}.page-intro,.detail-header{display:flex;align-items:end;justify-content:space-between;gap:24px}.page-intro h1,.detail-header h1{max-width:720px;margin:0;color:var(--ink);font-size:clamp(30px,5vw,52px);line-height:1.03;letter-spacing:-.045em}.page-intro .lede{max-width:620px;margin:13px 0 0;color:var(--muted);font-size:16px}.eyebrow{margin:0 0 7px;color:var(--green-bright);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.muted,.inline-help{color:var(--muted);font-size:13px}.breadcrumb{margin:5px 0 0;color:var(--muted);font-size:13px}.primary-button,.secondary-button,.text-button,.icon-button,.back-link{border:0;transition:transform .15s ease,background .15s ease,color .15s ease}.primary-button{padding:11px 16px;border-radius:10px;color:#fff;background:var(--green);font-weight:800;white-space:nowrap}.primary-button:hover{background:#1b5048;transform:translateY(-1px)}.secondary-button{padding:10px 14px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--surface);font-weight:700}.secondary-button:hover{background:var(--surface-soft)}.text-button,.back-link{padding:0;color:var(--green-bright);background:none;font-weight:800}.text-button:hover,.back-link:hover{color:var(--green)}.icon-button{width:36px;height:36px;border-radius:9px;color:var(--muted);background:var(--surface-soft);font-size:24px;line-height:1}.icon-button:hover{color:var(--ink)}.back-link{justify-self:start;margin-bottom:-8px}.lens-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;border-bottom:1px solid var(--line)}.lens-tab{display:flex;align-items:center;gap:9px;flex:0 0 auto;padding:12px 13px;border:0;border-bottom:3px solid transparent;background:none;color:var(--muted);font-weight:800}.lens-tab span{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:99px;background:var(--surface-soft);color:var(--green);font-size:11px}.lens-tab.selected{border-bottom-color:var(--green-bright);color:var(--green)}.explore-menu{display:flex;flex-wrap:wrap;gap:8px}.filter-chip,.gap-chip,.subtle-chip{padding:6px 9px;border:1px solid var(--line);border-radius:99px;color:var(--muted);background:var(--surface);font-size:12px;font-weight:700;text-transform:capitalize}.filter-chip.selected{border-color:var(--green-bright);color:var(--green);background:var(--surface-soft)}.queue-list,.search-results{display:grid;gap:12px}.queue-card{width:100%;padding:20px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--surface);box-shadow:0 2px 8px #123b3605;text-align:left}.queue-card:hover{border-color:#9fc5b5;box-shadow:var(--shadow);transform:translateY(-1px)}.queue-card-top,.profile-card-heading,.section-heading,.sheet-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}.card-kicker{color:var(--green-bright);font-size:12px;font-weight:800}.queue-card h3,.search-result h3{margin:3px 0 0;font-size:19px;letter-spacing:-.02em}.queue-badge{display:inline-flex;align-items:center;justify-content:center;min-height:27px;padding:4px 9px;border-radius:99px;color:#245449;background:#e0f1e7;font-size:11px;font-weight:900;letter-spacing:.04em;white-space:nowrap}.queue-now{color:#8e342d;background:#f8e4df}.queue-coming{color:#886019;background:#fff0cf}.queue-investigate{color:#4e5b79;background:#e7ebf5}.queue-sleeping{color:#60736c;background:#e9efeb}.queue-disqualified_service_need{color:#85365e;background:#f5e0ec}.queue-badge.mini{min-height:23px;padding:3px 7px;font-size:10px}.queue-card-grid,.profile-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}.label{display:block;margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.queue-card-grid b,.profile-facts b{font-size:14px;font-weight:700}.queue-card-bottom{display:flex;justify-content:space-between;gap:14px;margin-top:17px;padding-top:13px;border-top:1px solid var(--line);color:var(--green);font-size:13px;font-weight:700}.gap-summary{color:var(--muted);font-weight:600}.state-panel,.empty-state,.content-card,.profile-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.state-panel{display:flex;align-items:center;gap:10px;color:var(--muted)}.error-panel{border-color:#efc7c0;color:var(--red)}.error-panel p{margin:0 auto 0 0;color:#70453e}.empty-state{color:var(--muted)}.empty-state strong{color:var(--ink)}.empty-state p{max-width:620px;margin-bottom:0}.full-span{grid-column:1 / -1}.spinner{width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--green-bright);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.section-heading{align-items:end}.section-heading h2,.content-card h2,.profile-card h2{margin:0;font-size:20px;letter-spacing:-.025em}.search-field{display:flex;align-items:center;gap:10px;padding:4px 16px;border:1px solid #a9c1b7;border-radius:14px;background:var(--surface);box-shadow:var(--shadow)}.search-field input{width:100%;min-width:0;padding:13px 0;border:0;outline:0;color:var(--ink);background:transparent;font-size:18px}.search-icon{color:var(--green-bright);font-size:27px}.search-result{display:flex;justify-content:space-between;gap:20px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:var(--surface);text-align:left}.search-result:hover{border-color:#9fc5b5;background:#fbfefc}.search-result p{margin:5px 0 0;color:var(--muted);font-size:13px}.result-type{color:var(--green-bright);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.result-context{display:grid;align-content:center;justify-items:end;gap:4px;max-width:40%;color:var(--muted);font-size:12px;text-align:right}.result-context b{color:var(--ink)}.detail-header{align-items:center}.detail-header h1{font-size:clamp(30px,5vw,44px)}.detail-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.8fr);gap:18px}.detail-main,.detail-side{display:grid;align-content:start;gap:18px;min-width:0}.content-card{display:grid;gap:16px}.lab-list,.contact-list,.history-list{display:grid;gap:8px}.lab-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border:0;border-top:1px solid var(--line);color:var(--ink);background:none;text-align:left}.lab-row:first-child{border-top:0}.lab-row:hover b,.lab-row:focus-visible b{color:var(--green-bright)}.lab-row>div:first-child{display:grid;gap:4px}.lab-row span{color:var(--muted);font-size:12px}.profile-chips{display:flex;flex-wrap:wrap;justify-content:end;gap:5px}.contact-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid var(--line)}.contact-row:first-child{border-top:0}.contact-row>div:first-child{display:grid;gap:3px}.contact-row span,.contact-row small{color:var(--muted);font-size:12px;text-transform:capitalize}.contact-row small{font-size:11px}.contact-status{display:grid;justify-items:end;align-content:start;gap:3px}.contact-status .verified,.contact-status .unverified{padding:3px 7px;border-radius:99px;font-size:10px;font-weight:900;text-transform:uppercase}.contact-status .verified{color:#23634f;background:#e0f1e7}.contact-status .unverified{color:#7e5d29;background:#fff0cf}.history-row{display:grid;grid-template-columns:126px minmax(0,1fr);gap:15px;padding:13px 0;border-top:1px solid var(--line)}.history-row:first-child{border-top:0}.history-row>div:last-child{display:grid;gap:3px;min-width:0}.history-date{color:var(--muted);font-size:12px}.history-row span{color:var(--muted);font-size:12px;text-transform:capitalize}.history-row p{margin:5px 0 0;color:var(--ink);font-size:13px}.observation-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.observation-tags span{padding:3px 7px;border-radius:99px;background:var(--surface-soft);color:var(--green-bright);font-size:10px}.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-card{display:grid;gap:18px;box-shadow:var(--shadow)}.profile-facts{grid-template-columns:repeat(2,1fr);margin:0}.profile-attention{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;padding-top:14px;border-top:1px solid var(--line)}.profile-attention>div{min-width:0}.profile-attention p{grid-column:1 / -1;margin:0;color:var(--green);font-size:13px;font-weight:700}.gap-list{display:flex;flex-wrap:wrap;gap:5px}.gap-chip{color:var(--muted);background:var(--surface-soft)}.success-message{padding:11px 14px;border:1px solid #b7ddc7;border-radius:10px;color:#23634f;background:#e5f4e9;font-weight:700}.modal-backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:end;justify-content:center;padding:20px;overflow:auto;background:#0a231e7a}.capture-sheet{width:min(780px,100%);display:grid;gap:19px;max-height:calc(100vh - 40px);padding:25px;overflow:auto;border:1px solid #cddbd4;border-radius:18px 18px 8px 8px;background:var(--surface);box-shadow:0 24px 70px #0000002e}.sheet-heading{align-items:start}.sheet-heading h2{margin:0;font-size:26px;letter-spacing:-.03em}.context-line{margin:5px 0 0;color:var(--muted);font-size:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.compact-grid{gap:10px}label{display:grid;gap:6px;color:var(--ink);font-size:12px;font-weight:800}input,select,textarea{width:100%;min-width:0;padding:10px 11px;border:1px solid #c8d8d0;border-radius:8px;color:var(--ink);background:#fcfefc}textarea{resize:vertical}fieldset{min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:12px}legend{padding:0 7px;color:var(--ink);font-size:14px;font-weight:900}.choice-row{display:flex;flex-wrap:wrap;gap:10px 15px}.choice{display:flex;grid-template-columns:none;align-items:center;gap:7px;color:var(--ink);font-size:12px;font-weight:700}.choice input,.category-toggle input{width:auto}.category-sections{display:grid;gap:12px}.category-card{background:#fbfdfb}.category-card.active{border-color:#9fc5b5;background:#f5fbf7}.category-toggle{display:flex;align-items:center;gap:7px;color:var(--green);font-size:15px;font-weight:900}.category-fields,.timing-editor{display:grid;gap:12px}.timing-editor{padding:12px;border-radius:9px;background:var(--surface-soft)}.sheet-actions,.button-row{display:flex;justify-content:flex-end;gap:9px}.error-message{margin:0;padding:10px 12px;border-radius:8px;color:var(--red);background:#fff0ed;font-size:13px;font-weight:700}.duplicate-review{display:grid;gap:8px;padding:14px;border:1px solid #e8ca8b;border-radius:10px;color:#6f4b18;background:#fff8e7}.duplicate-review p{margin:0;font-size:13px}.candidate{display:grid;gap:2px;padding:8px 0;border-top:1px solid #eddbae}.candidate span{font-size:12px}.auth-state{display:grid;place-content:center;gap:12px;min-height:100vh;max-width:620px;margin:auto;padding:30px}.auth-state h1{margin:0;color:var(--ink);font-size:clamp(32px,8vw,58px);line-height:1;letter-spacing:-.05em}.auth-state p:not(.eyebrow){margin:0;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:760px){.app-header{gap:12px;min-height:62px;padding:9px 14px}.wordmark span:last-child{display:none}.primary-nav{height:42px}.nav-link{padding:0 11px}.actor-chip{max-width:110px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-intro,.detail-header{align-items:stretch;flex-direction:column}.page-intro .primary-button,.detail-header .primary-button{align-self:stretch}.queue-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-card-bottom{align-items:start;flex-direction:column;gap:5px}.detail-grid,.profile-grid{grid-template-columns:1fr}.result-context{max-width:45%}.modal-backdrop{padding:0}.capture-sheet{max-height:100vh;border-radius:17px 17px 0 0;padding:20px 16px 24px}}@media(max-width:480px){.app-main{padding:25px 13px 50px}.page-intro h1,.detail-header h1{font-size:35px}.queue-card,.content-card,.profile-card,.state-panel,.empty-state{padding:16px}.queue-card-top{flex-direction:column;gap:10px}.queue-card-top .queue-badge{align-self:start}.queue-card-grid,.profile-facts,.profile-attention,.form-grid{grid-template-columns:1fr}.search-result{flex-direction:column;gap:8px}.result-context{justify-items:start;max-width:none;text-align:left}.history-row{grid-template-columns:1fr;gap:3px}.lab-row{align-items:start;flex-direction:column}.profile-chips{justify-content:start}.sheet-actions{position:sticky;bottom:-24px;margin:0 -16px -24px;padding:13px 16px;background:#fffffff5}.sheet-actions button{flex:1}}
