/* Workspace components extend the canonical tokens in system.css. */
body{font-size:15px;line-height:1.55}
button,a,input,select,textarea{touch-action:manipulation}
button,a{transition:color var(--transition),background var(--transition),border-color var(--transition)}
button:disabled{opacity:.5}
button,input,select,textarea,.button{border-radius:var(--radius)}
input,select,textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #b9c5ce;background:var(--surface);color:var(--ink);font-size:14px}
input:hover,select:hover,textarea:hover{border-color:#8496a3}
textarea{resize:vertical;font:13px/1.65 var(--mono)}
label{display:block;font-size:13px;font-weight:600;margin:20px 0 8px}
button.primary,.button.primary{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:44px;padding:10px 17px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
button.primary:hover,.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.secondary,.button.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 13px;border:1px solid #b9c5ce;background:var(--surface);color:var(--ink);font-size:13px;font-weight:550;text-decoration:none;white-space:nowrap}
.secondary:hover,.button.secondary:hover{background:var(--wash);border-color:#8799a6}
.text-button{min-height:44px;padding:8px 4px;border:0;background:none;color:var(--accent);font-size:13px;font-weight:550;white-space:nowrap}
.text-button:hover{text-decoration:underline;text-underline-offset:4px}
.icon-button{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:25px;line-height:1}
.icon-button:hover{background:var(--wash);color:var(--ink)}
.muted{color:var(--muted)}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:var(--sans);color:var(--ink);font-weight:600}
h1{margin:8px 0 12px;font-size:34px;line-height:1.12;letter-spacing:-1.2px}
h2{margin-bottom:16px;font-size:24px;line-height:1.25;letter-spacing:-.6px}
h3{font-size:18px;line-height:1.35;letter-spacing:-.35px}
code{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:76px;padding:16px 32px;background:var(--surface);border-bottom:1px solid var(--line)}
.header-brand{display:flex;align-items:center;gap:24px;min-width:0}
.header-context{padding-left:24px;border-left:1px solid var(--line);font-size:13px;color:var(--muted)}
.header-right{display:flex;align-items:center;justify-content:flex-end;gap:20px;min-width:0;font-size:12px}
.header-link{font-size:13px;text-decoration:none;color:var(--muted);white-space:nowrap}
.header-link:hover{color:var(--accent)}
.pilot{display:inline-flex;align-items:center;gap:7px;font:11px/1.4 var(--mono);white-space:nowrap}
.pilot::before{content:'';width:5px;height:5px;background:var(--accent)}
#environment{font:11px/1.4 var(--mono)}
#user-button:empty{display:none}
.console-layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:calc(100vh - 77px)}
.sidebar{display:flex;flex-direction:column;min-width:0;padding:32px 20px 24px;border-right:1px solid var(--line);background:#f0f4f7}
.sidebar>label{margin:0 0 12px;font-weight:400;color:var(--muted)}
.sidebar>select{font-size:13px}
.sidebar nav{display:flex;flex-direction:column;gap:4px;margin-top:32px}
.nav-item{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:10px 12px;border:1px solid transparent;background:transparent;text-align:left;color:var(--muted);font-size:14px;font-weight:500;border-radius:var(--radius)}
.nav-item svg{width:20px;height:20px;flex:0 0 20px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.nav-item:hover{background:#e7edf2;color:var(--ink)}
.nav-item.active{border-color:#edd5cc;background:var(--accent-wash);color:#8d3423;font-weight:650}
.nav-item.active::before{content:'';position:absolute;left:-1px;top:11px;bottom:11px;width:3px;background:var(--accent)}
.sidebar-note{margin-top:48px;padding-top:24px;border-top:1px solid #ced8df}
.sidebar-note .eyebrow{font-size:10px;letter-spacing:.035em}
.sidebar-note p{margin:12px 0;font-size:13px;color:var(--muted);line-height:1.65}
.sidebar-note a{font-size:13px;text-decoration:none;color:var(--ink)}
.sidebar-note a:hover{color:var(--accent)}
.sidebar-footer{margin-top:auto;padding-top:48px;color:var(--muted)}
.sidebar-footer>span{display:block;margin-bottom:10px;font:10px/1.5 var(--mono);letter-spacing:.06em}
.sidebar-footer code{display:block;font-size:10px;line-height:1.7}
.content{min-width:0;width:100%;max-width:1660px;margin:0 auto;padding:40px 36px 64px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:32px}
.page-heading>div{max-width:700px;min-width:0}
.page-heading>.primary,.page-heading>.secondary{flex-shrink:0;margin-top:22px}
.page-heading .eyebrow{color:var(--muted)}
.page-heading p{margin-bottom:0;max-width:690px;font-size:14px;line-height:1.65}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 32px;border-block:1px solid var(--line)}
.stats article{padding:20px 24px 22px 0}
.stats article+article{padding-left:24px;border-left:1px solid var(--line)}
.stats span{display:block;font-size:13px;color:var(--muted)}
.stats strong{display:block;margin:7px 0 4px;font-size:32px;line-height:1.2;font-weight:550;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.stats small{display:block;font-size:12px;color:var(--muted)}
.section-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.project-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}
.project-filter label{margin:0 2px 0 0;font-size:13px}
.project-filter select{width:180px;font-size:13px}
.inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.table-wrap{max-width:100%;overflow-x:auto;background:var(--surface);border-block:1px solid var(--line);overscroll-behavior-x:contain}
table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
th{padding:13px 16px;background:var(--wash);font:11px/1.5 var(--mono);color:var(--muted);font-weight:400;white-space:nowrap}
td{padding:20px 16px;border-top:1px solid var(--line);vertical-align:top;line-height:1.55}
#placements-view>.table-wrap table,#targets-view>.table-wrap table{min-width:820px}
#placements-view th:first-child,#targets-view th:first-child{width:36%}
td:first-child{min-width:220px;max-width:400px}
td:last-child{min-width:225px;max-width:330px}
td:nth-child(2){min-width:154px}
td:nth-child(3){min-width:134px;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
tbody tr:hover{background:#fbfcfd}
.link-pair a{display:block;max-width:350px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:550;text-decoration:none}
.link-pair a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.link-pair small{display:flex;align-items:baseline;gap:7px;margin-top:8px;font-size:13px;color:var(--muted)}
.link-pair small a{font-size:13px;font-weight:400}
.status{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;max-width:100%;border-radius:3px;background:var(--wash);color:var(--muted);font-size:12px;font-weight:550;line-height:1.5;white-space:nowrap}
.status::before{content:'';width:5px;height:5px;background:currentColor;flex:0 0 5px}
.status.present,.status.healthy{background:var(--positive-wash);color:var(--positive)}
.status.confirmed_missing,.status.unavailable{background:var(--negative-wash);color:var(--negative)}
.status.suspected_missing,.status.source_unavailable,.status.suspected_unavailable{background:var(--warning-wash);color:var(--warning)}
.detail-note{display:block;margin-top:9px;max-width:200px;font-size:12px;line-height:1.5;color:var(--muted)}
.row-actions{display:flex;flex-wrap:wrap;gap:7px;max-width:325px}
.row-actions button{min-height:36px;padding:6px 9px;font-size:13px;white-space:normal;line-height:1.5}
.empty-state{padding:56px 24px;text-align:center;font-size:14px;color:var(--muted)}
.empty-state h2{margin:16px 0 8px;font-size:23px}
.empty-state p{max-width:380px;margin:0 auto 22px;font-size:14px;line-height:1.65}
.empty-icon{display:inline-grid;place-items:center;width:44px;height:44px;color:var(--accent)}
.empty-icon svg{width:36px;height:36px}
.table-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;font-size:13px}
.table-footer p{margin:0}
.table-footer .secondary{flex-shrink:0}
.usage-note{margin:-4px 0 28px;padding:16px 0;border-block:1px solid var(--line)}
.usage-note p{font-size:13px;margin:0}
.usage-note p+p{margin-top:6px}
.event-list{border-top:1px solid var(--line)}
.event-card,.access-card{position:relative;padding:24px 0;border-bottom:1px solid var(--line);background:transparent;overflow-wrap:anywhere}
.event-card header,.access-card header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}
.event-card strong,.access-card strong{font-size:15px;font-weight:600}
.event-card p,.access-card p{margin:7px 0;font-size:13px;color:var(--muted);line-height:1.65}
.event-card>a{font-size:14px;text-decoration-thickness:1px;text-underline-offset:4px}
.event-card time{font:11px/1.6 var(--mono);white-space:nowrap;color:var(--muted)}
.event-card>.secondary{margin-top:16px}
details{margin-top:14px;font-size:13px}
summary{width:fit-content;max-width:100%;padding:5px 0;cursor:pointer;color:var(--ink);text-underline-offset:4px}
summary:hover{color:var(--accent)}
pre{max-height:350px;margin:12px 0 0;padding:16px;background:var(--wash);border-left:2px solid #aab9c4;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 var(--mono)}
.connection-card{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:40px;padding:24px 0;border-block:1px solid var(--line)}
.connection-card>div{min-width:0}
.connection-card .eyebrow{color:var(--muted)}
.connection-card code{display:block;margin:12px 0;font-size:13px}
.connection-card p{margin:0;max-width:560px;font-size:14px;color:var(--muted)}
.connection-card>.secondary{flex-shrink:0}
.section-title{margin:36px 0 16px;font-size:22px}
#grant-list,#key-list{border-top:1px solid var(--line)}
#grant-list>.muted,#key-list>.muted{margin:0;padding:24px 0;font-size:14px}
.coverage-note{margin:0 0 28px;padding:16px 20px;border-left:3px solid var(--accent);background:var(--surface);font-size:14px;color:var(--muted);line-height:1.7}
.report-section{margin:36px 0}
.report-section h2{margin:0 0 16px;font-size:22px}
.report-section td:first-child{width:65%;min-width:220px;max-width:760px;overflow-wrap:anywhere}
.report-section th:not(:first-child),.report-section td:not(:first-child){min-width:140px;max-width:180px;text-align:right;font-variant-numeric:tabular-nums}
.report-section td{padding-block:14px}
.report-section .muted{font-size:13px}
#report-content>.muted{font-size:13px}
.center-card{max-width:590px;margin:80px auto;padding:36px 0;border-block:1px solid var(--line)}
.center-card h1{font-size:34px}
.center-card>p{font-size:15px}
.center-card form>.primary{margin-top:24px;width:100%}
#loading{min-height:200px}
#loading>.eyebrow{display:inline-flex;align-items:center;gap:12px}
#loading>.eyebrow::before{content:'';width:7px;height:7px;background:var(--accent)}
.signin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);align-items:start;gap:100px;max-width:1136px;margin:80px auto;padding:0 32px}
.welcome h1{margin:20px 0 24px;font-size:52px;letter-spacing:-2.4px;line-height:1.04}
.welcome>p{max-width:425px;color:var(--muted);font-size:16px;line-height:1.65}
.signin-record{margin:32px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}
.signin-record li{display:flex;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}
.signin-record li>span{padding-top:3px;font:11px/1.5 var(--mono);color:var(--accent)}
.signin-record strong{font-size:14px;font-weight:550}
.signin-record p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.signin-account{min-width:0;padding-top:8px}
#signin-widget{min-height:320px;max-width:100%}
#signin-widget .cl-rootBox,#signin-widget .cl-cardBox{width:100%;max-width:100%}
#signin-widget .cl-cardBox{border-radius:var(--panel-radius);box-shadow:none;border:1px solid var(--line)}
#signin-widget .cl-card{background:var(--surface);box-shadow:none;font-family:var(--sans)}
#signin-widget .cl-formButtonPrimary{min-height:44px;background:var(--ink);border-radius:var(--radius)}
#signin-widget .cl-formButtonPrimary{background:var(--accent);box-shadow:none;border:1px solid var(--accent);font-weight:600}
#signin-widget .cl-formButtonPrimary::after{background:none}
#signin-widget .cl-formButtonPrimary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
#signin-widget .cl-socialButtonsBlockButton{min-height:44px;border:1px solid #b9c5ce;border-radius:var(--radius);box-shadow:none;color:var(--ink)}
#signin-widget .cl-socialButtonsBlockButton:hover{background:var(--wash)}
#signin-widget .cl-formFieldInput{border:1px solid #b9c5ce;border-radius:var(--radius);box-shadow:none}
#signin-widget .cl-headerTitle{font-size:22px;font-weight:600;letter-spacing:-.5px;color:var(--ink)}
#signin-widget .cl-headerSubtitle,#signin-widget .cl-footerActionText{color:var(--muted)}
#signin-widget .cl-footerActionLink{color:var(--accent-hover)}
.signin-footnote{margin:20px 0 0;font-size:12px;color:var(--muted);text-align:center}
.consent-card{max-width:650px;margin-top:56px}
.consent-card h1{font-size:34px}
.connection-details{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px 20px;margin:24px 0;padding:20px 0;border-block:1px solid var(--line);font-size:13px}
.connection-details dt{color:var(--muted)}
.connection-details dd{margin:0;overflow-wrap:anywhere;font:12px/1.65 var(--mono)}
fieldset{margin:24px 0;padding:16px 0;border:0;border-block:1px solid var(--line)}
legend{padding:0 10px 0 0;font-size:13px;font-weight:600}
.check-list label{display:flex;align-items:flex-start;gap:12px;margin:14px 0;font-size:14px;font-weight:400}
.check-list input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin-top:3px;accent-color:var(--accent)}
.check-list small{display:block;margin-top:3px;font:11px/1.6 var(--mono);color:var(--muted)}
dialog{width:500px;max-width:calc(100vw - 32px);max-height:90vh;padding:28px;border:1px solid #becbd4;border-radius:var(--panel-radius);background:var(--surface);color:var(--ink);box-shadow:var(--shadow);overscroll-behavior:contain}
dialog::backdrop{background:#15263080;backdrop-filter:blur(3px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 24px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.dialog-heading h2{margin:5px 0 0;font-size:25px;line-height:1.2;letter-spacing:-.7px}
dialog p{font-size:14px;line-height:1.65}
dialog .primary{margin-top:20px}
dialog form>.primary{width:100%}
dialog .inline-actions{margin-top:16px}
dialog .inline-actions .primary{margin-top:0}
.wide-dialog{width:780px}
.wide-dialog>h3{margin-top:32px}
#history-url,#contacts-url,#target-history-url{overflow-wrap:anywhere;font-size:13px}
#new-key{font-family:var(--mono);font-size:12px}
#import-result{max-height:260px;margin-top:20px;overflow:auto;border-left:2px solid var(--line);padding-left:14px;font-size:13px}
#import-result:empty{display:none}
#notice{position:fixed;z-index:30;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(650px,calc(100vw - 32px));padding:14px 18px;border:1px solid var(--ink);border-radius:var(--radius);background:var(--ink);color:#fff;font-size:14px}
#notice.error,.dialog-notice.error{background:var(--negative);border-color:var(--negative);color:#fff}
.dialog-notice{position:sticky;top:0;z-index:1;margin-bottom:20px;padding:14px 16px;border:1px solid var(--ink);border-radius:var(--radius);background:var(--ink);color:#fff;font-size:14px;overflow-wrap:anywhere}
@media(min-width:1600px){.content{padding:48px 48px 72px}.page-heading{margin-bottom:40px}}
@media(max-width:1100px){.content{padding:32px 24px 56px}.header-context,#environment{display:none}.header-right{gap:16px}.page-heading{flex-wrap:wrap;gap:16px}.page-heading>.primary,.page-heading>.secondary{margin-top:0}.signin-layout{gap:48px}.welcome h1{font-size:46px}.project-filter select{width:165px}}
@media(max-width:850px){.console-layout{display:block}.sidebar{display:grid;grid-template-columns:auto minmax(0,260px);align-items:center;gap:12px;border-right:0;border-bottom:1px solid var(--line);padding:20px 24px 0}.sidebar>label{margin:0}.sidebar>select{width:100%}.sidebar nav{grid-column:1/-1;display:flex;flex-direction:row;gap:6px;margin:4px -4px 0;padding:4px 4px 16px;overflow-x:auto;overscroll-behavior-x:contain}.nav-item{flex:0 0 auto;width:auto;min-height:44px;padding:9px 12px;white-space:nowrap;font-size:13px}.nav-item svg{width:17px;height:17px;flex-basis:17px}.sidebar-note,.sidebar-footer{display:none}.content{padding:28px 24px 48px}.center-card{margin:48px 24px;max-width:650px}.signin-layout{grid-template-columns:minmax(0,1fr) minmax(0,360px);gap:32px;margin:56px auto;padding:0 24px}.welcome h1{font-size:39px;letter-spacing:-1.6px}.welcome>p{font-size:15px}.signin-record li{gap:12px}.masthead{padding-inline:24px}.stats article{padding-right:16px}.stats article+article{padding-left:16px}}
@media(max-width:650px){.masthead{padding:16px 20px;flex-wrap:wrap;gap:12px}.header-brand{gap:12px}.header-right{gap:14px}.header-link{font-size:12px}.header-context{display:none}.brand{font-size:24px}.brand img{width:26px;height:29px}.pilot{font-size:10px}.sidebar{padding:16px 20px 0;grid-template-columns:auto minmax(0,1fr);gap:12px}.sidebar>label{font-size:10px}.content{padding:28px 20px 40px}h1{font-size:30px;letter-spacing:-1px}.page-heading{gap:20px;margin-bottom:24px}.page-heading p{font-size:14px}.stats{margin-bottom:24px}.stats article{padding:16px 10px 16px 0}.stats article+article{padding-left:12px}.stats span{font-size:12px;line-height:1.5}.stats strong{font-size:28px}.stats small{font-size:11px}.section-bar{gap:12px}.project-filter{width:100%}.project-filter select{flex:1;min-width:140px}.project-filter .text-button{margin-left:auto}.section-bar>.inline-actions{width:100%}.section-bar>.inline-actions button{flex:1}.empty-state{padding:40px 20px}.empty-state h2{font-size:22px}.table-footer{align-items:flex-start;font-size:12px}.event-card header,.access-card header{align-items:flex-start;flex-wrap:wrap;gap:8px}.event-card time{font-size:11px}.connection-card{display:block;padding:20px 0}.connection-card>.secondary{margin-top:20px}.connection-card code{font-size:12px}.coverage-note{padding:14px 16px;font-size:13px}.center-card{margin:40px 20px;padding:28px 0}.center-card h1{font-size:30px}.connection-details{grid-template-columns:1fr;gap:6px}.connection-details dd{margin-bottom:12px}.signin-layout{display:flex;flex-direction:column;gap:32px;max-width:460px;margin:40px auto;padding:0 20px}.welcome h1{font-size:44px;letter-spacing:-1.8px}.welcome h1 br{display:none}.welcome>p{margin-bottom:0}.signin-record{display:none}.signin-account{width:100%;padding-top:0}.signin-footnote{font-size:12px}dialog{padding:22px;max-width:calc(100vw - 24px)}.dialog-heading{gap:16px;margin-bottom:20px}.dialog-heading h2{font-size:23px}dialog p{font-size:13px}.check-list label{font-size:13px}.check-list small{overflow-wrap:anywhere}.report-section th:not(:first-child),.report-section td:not(:first-child){min-width:130px}#report-status{max-width:none}.section-title{font-size:21px}.consent-card .inline-actions{align-items:stretch}.consent-card .inline-actions>*{flex:1}}
@media(max-width:480px){.masthead{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}.header-right{justify-content:flex-start;padding-top:12px;border-top:1px solid var(--line)}.header-right .pilot{margin-left:auto}#user-button{margin-left:2px}.header-link{min-height:24px;display:inline-flex;align-items:center;gap:4px}.page-heading>.primary,.page-heading>.secondary{width:100%}.stats span{font-size:12px}.stats small{font-size:11px}.project-filter label{font-size:12px}.project-filter select{min-width:125px}#project-filter{max-width:100%}.project-filter .text-button{width:100%;text-align:left;margin:-4px 0 0}.table-footer{flex-wrap:wrap}.table-footer>.secondary{margin-left:auto}.nav-item{gap:8px}.nav-item svg{display:none}.consent-card .inline-actions{flex-direction:column}}
