/* Stitch complete export (2026-09-22): Offshore Operational Rigor.
   Semantic tokens + compatibility adapters. Business state stays authoritative. */
:root {
  --st-canvas:#F7FAFC; --st-surface:#FFFFFF; --st-ink:#071D2C;
  --st-muted:#536674; --st-primary:#00516B; --st-action:#236A86;
  --st-soft:#E7F0F4; --st-header:#EEF2F6; --st-line:#D9E2E8;
  --st-success:#2D7D62; --st-success-bg:#E8F4F0;
  --st-warning:#965603; --st-warning-bg:#FAF1E4;
  --st-danger:#B83A3A; --st-danger-bg:#FCECEC;
  --shio-paper:var(--st-surface); --shio-mist:var(--st-line);
  --shio-sea:var(--st-primary); --shio-ink:var(--st-ink);
  --bg:var(--st-canvas); --panel:var(--st-surface); --panel-soft:var(--st-header);
  --text:var(--st-ink); --muted:var(--st-muted); --line:var(--st-line);
  --brand:var(--st-action); --brand-strong:var(--st-primary);
  --green:var(--st-success); --red:var(--st-danger); --amber:var(--st-warning);
  --ops-bg:var(--st-canvas); --ops-surface:var(--st-surface);
  --ops-muted:var(--st-muted); --ops-primary:var(--st-primary);
  --ops-primary-soft:var(--st-soft); --ops-border:var(--st-line);
  --ops-warning:var(--st-warning); --ops-error:var(--st-danger);
}
html,body,.ops-shell { background:var(--st-canvas); }
body { font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans SC","Microsoft YaHei",sans-serif; line-height:1.5; }
.ops-shell { grid-template-columns:240px minmax(0,1fr); }
.ops-sidebar { background:var(--st-surface); border-right:1px solid var(--st-line); }
.ops-sidebar .ops-brand { height:64px; padding:10px 20px; border-bottom:1px solid var(--st-line); }
.ops-brand img { width:184px; height:44px; object-fit:contain; }
.ops-workspace-label { display:flex; justify-content:flex-start; gap:10px; margin:0; padding:16px 20px; background:transparent; color:var(--st-ink); border-radius:0; }
.ops-workspace-label strong { font-size:13px; }
.ops-sidebar nav { padding:0 8px 16px; }
.ops-nav-group,.ops-nav-group+.ops-nav-group { margin:0 0 14px; }
.ops-nav-heading { padding:8px 12px 6px; color:var(--st-muted); font-size:11px; letter-spacing:.02em; }
.ops-nav-heading i { display:none; }
.ops-nav-item { min-height:36px; padding:8px 10px; font-size:13px; margin:1px 4px; gap:10px; }
.ops-nav-item .ops-icon { color:var(--st-muted); width:16px; height:16px; }
.ops-nav-item.active { background:var(--st-action); color:white; box-shadow:none; }
.ops-nav-item:hover:not(.active) { background:var(--st-header); }
.ops-nav-item.active .ops-icon { color:white; }
.ops-nav-item b { background:var(--st-danger-bg); color:var(--st-danger); }
.ops-sidebar-foot { padding:12px 16px; background:var(--st-canvas); border-top:1px solid var(--st-line); }
.ops-sidebar-foot span,.ops-footer { color:var(--st-muted); }
.ops-user-avatar { background:var(--st-soft); border:0; border-radius:50%; }
.ops-topbar { height:64px; background:white; padding:0 24px; border-bottom:1px solid var(--st-line); }
.ops-search-trigger { border:1px solid var(--st-line); background:var(--st-canvas); border-radius:4px; }
.ops-search-trigger kbd { background:white; }
.ops-environment { background:var(--st-warning-bg); color:var(--st-warning); border-color:var(--st-warning-bg); border-radius:3px; }
.ops-top-actions { gap:12px; }
.ops-content { padding:24px; max-width:1800px; }
.ops-page-heading,.shio-page-heading,.pw-header { background:white; border:1px solid var(--st-line); border-radius:8px; padding:18px 20px; margin:0 0 20px; min-height:0; }
.ops-page-heading h1,.shio-page-heading h1,.pw-header h2 { font-size:22px; line-height:1.4; font-weight:650; letter-spacing:0; margin:4px 0 8px; }
.ops-page-heading p,.shio-page-heading p,.pw-header p { font-size:13px; color:var(--st-muted); line-height:1.6; }
.ops-eyebrow,.shio-kicker,.pw-eyebrow { font-size:10px; letter-spacing:.08em; color:var(--st-muted); }
.shio-heading-art { display:none; }
.ops-content :is(.toolbar,.well-board-head,.quality-page-head) { background:white; border-color:var(--st-line); border-radius:6px; }
.ops-content .toolbar { padding:12px 16px; margin-bottom:16px; }
.ops-shell :is(.primary-btn,.pw-button-primary) { background:var(--st-action); border-color:var(--st-action); border-radius:4px; font-weight:550; min-height:36px; padding:8px 14px; }
.ops-shell :is(.primary-btn,.pw-button-primary):hover { background:var(--st-primary); }
.ops-shell :is(.secondary-btn,.pw-button:not(.pw-button-primary)) { border-color:var(--st-line); background:white; border-radius:4px; color:var(--st-primary); min-height:36px; }
.ops-shell :is(.secondary-btn,.pw-button:not(.pw-button-primary)):hover { background:var(--st-soft); border-color:var(--st-primary); }
.ops-shell .danger-btn { border:1px solid var(--st-line); background:white; color:var(--st-danger); border-radius:4px; }
.ops-shell .danger-btn:hover { background:var(--st-danger-bg); }
:is(.ops-shell,.modal,.ops-login) :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not(:where(.ops-filter-input > input,.ops-command-input > input)) { background:var(--st-canvas); border-color:var(--st-line); border-radius:4px; min-height:36px; }
input::placeholder,textarea::placeholder { color:var(--st-muted); }
.ops-filter-input { background:var(--st-canvas); border-color:var(--st-line); border-radius:4px; }
.ops-shell :is(.ops-filter-input,.ops-command-input)>input { border:0; box-shadow:none; outline:0; background:transparent; }
.ops-filter-input:focus-within { outline:2px solid var(--st-action); }
.ops-metrics { border:0; border-radius:0; gap:16px; margin-bottom:20px; overflow:visible; }
.ops-metric { min-height:118px; border:1px solid var(--st-line); border-radius:6px; background:white; padding:16px; }
.ops-metric:last-child { border-right:1px solid var(--st-line); }
.ops-metric:hover { background:var(--st-canvas); }
.ops-metric>strong { font-size:32px; font-weight:650; color:var(--st-primary); line-height:1.25; }
.ops-metric>div { font-size:13px; }
.ops-metric>small { color:var(--st-muted); font-size:12px; }
.ops-metric .ops-icon { width:30px; height:30px; background:var(--st-soft); padding:6px; border-radius:4px; }
.ops-panel,.ops-content :is(.card,.table-wrap,.quality-panel,.report-card,.stat-card) { background:white; border:1px solid var(--st-line); border-radius:6px; box-shadow:none; }
.ops-panel-head { padding:16px; }
.ops-panel-head h2,.ops-shortcuts h2 { font-size:16px; font-weight:650; }
.ops-panel-head p,.ops-shortcuts small,.ops-inline-note span,.ops-table td small { color:var(--st-muted); font-size:12px; }
.ops-panel-foot { background:var(--st-canvas); color:var(--st-muted); }
.off-field-banner { display:none; }
.ops-home-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
.ops-overview-aside { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr); gap:20px; }
.off-well-list button { background:var(--st-canvas); border-color:var(--st-line); min-height:76px; }
.off-well-list em { color:var(--st-primary); background:var(--st-soft); border:0; font-style:normal; padding:3px 6px; }
.off-record-no { color:var(--st-muted); }
.ops-content :is(.table-wrap,.ops-table-scroll,.pw-table-scroll) { scrollbar-width:thin; scrollbar-color:var(--st-line) transparent; }
.ops-content :is(.table-wrap,.ops-table-scroll) :is(th,td) { padding:10px 12px; line-height:1.5; font-size:13px; border-color:var(--st-line); }
.ops-content :is(.table-wrap,.ops-table-scroll,.pw-table-scroll) th { background:var(--st-header); color:var(--st-muted); font-weight:600; border-bottom:1px solid var(--st-line); white-space:nowrap; }
.ops-content .table-wrap td { background:white; }
.ops-content .table-wrap tbody tr:nth-child(even) td { background:white; }
.ops-content :is(.table-wrap,.ops-table-scroll) tbody tr:hover td { background:var(--st-canvas); }
.ops-content .table-wrap td .muted { font-size:12px; color:var(--st-muted); }
.ops-content :is(.tag,.ops-badge) { border-radius:3px; font-size:12px; border:0; padding:3px 7px; line-height:1.5; }
.ops-shell .tag.green,.ops-green { background:var(--st-success-bg); color:var(--st-success); }
.ops-shell .tag.amber,.ops-amber { background:var(--st-warning-bg); color:var(--st-warning); }
.ops-shell .tag.red { background:var(--st-danger-bg); color:var(--st-danger); }
.ops-shell .tag.blue,.ops-blue { background:var(--st-soft); color:var(--st-primary); }
.ops-shell .tag.gray,.ops-neutral { background:var(--st-header); color:var(--st-muted); }
.ops-error,.pw-errors,.pw-notice-error { background:var(--st-danger-bg); border-color:var(--st-danger); color:var(--st-danger); }
.ops-blockers { background:var(--st-warning-bg); border:1px solid var(--st-line); color:var(--st-warning); }
.ops-inline-note,.off-handoff { background:var(--st-soft); border-color:var(--st-line); }
.off-handoff { border-radius:6px; }
.ops-tabs { background:white; gap:20px; padding:0 16px; }
.ops-tabs>button { color:var(--st-muted); padding:14px 0; }
.ops-tabs>button.active { color:var(--st-primary); border-color:var(--st-action); }
.ops-tabs>button span { background:var(--st-header); }
.ops-table-tools { padding:12px 16px; }
.ops-path-panel { margin-top:20px; }
.ops-path { padding:20px; }
.ops-path>div>span { background:var(--st-soft); border-color:var(--st-line); }
.ops-drawer { width:min(720px,100vw); background:white; box-shadow:-8px 0 28px #071d2c14; }
.ops-drawer>header { background:var(--st-soft); border-color:var(--st-line); padding:20px 24px; }
.ops-drawer h2 { font-size:22px; }
.ops-drawer-content { padding:24px; }
.ops-drawer details { background:var(--st-canvas); }
.ops-drawer :is(p,small,summary,label) { color:var(--st-muted); }
.ops-drawer-mask { background:#071d2c33; backdrop-filter:none; }
.ops-case-path li.done>span { background:var(--st-success-bg); color:var(--st-success); }
.ops-case-path li.current>span { background:var(--st-action); color:white; }
.pw-workspace { --pw-muted:var(--st-muted); --pw-border:var(--st-line); --pw-error:var(--st-danger); }
.pw-document-bar { background:white; padding:12px 16px; border-color:var(--st-line); }
.pw-section { margin-top:16px; padding:16px; background:white; border-color:var(--st-line); }
.pw-section-title { font-size:15px; }
.pw-table-section { padding:0; }
.pw-table th { font-size:12px; padding:10px 12px; }
.pw-save-bar { background:white; border:1px solid var(--st-line); border-radius:6px; padding:14px 16px; box-shadow:0 -4px 16px #071d2c08; }
.pw-notice-success { background:var(--st-success-bg); color:var(--st-success); }
.pw-field-error { color:var(--st-danger); }
.pw-workspace [aria-invalid=true] { outline:1px solid var(--st-danger); background:var(--st-danger-bg); }
.stitch-tabs { display:flex; gap:24px; overflow:auto; background:white; border:1px solid var(--st-line); border-radius:6px; padding:0 16px; margin-bottom:16px; }
.stitch-tabs>button { flex:none; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--st-muted); padding:14px 0; min-height:46px; font-size:13px; }
.stitch-tabs>button[aria-selected=true] { color:var(--st-primary); border-bottom-color:var(--st-action); font-weight:650; }
.stitch-tab-panel { min-width:0; }
.stitch-tab-panel>*+* { margin-top:16px; }
.stitch-tab-panel>.grid.cols-2:has(.system-users-card) { grid-template-columns:minmax(0,1fr); }
.stitch-tab-panel .card { margin-top:0!important; }
.stitch-tab-panel>.card+.card { margin-top:16px!important; }
.ops-content :is(.metric,.quality-card,.well-overview-card) { background:white; }
.ops-content :is(.metric>small,.list-summary,.field-help) { color:var(--st-muted); }
.ops-content .section-title { padding-bottom:12px; margin-bottom:12px; }
.ops-content .well-board-head { border-top:1px solid var(--st-line); }
.ops-content .well-overview-card.amber { border-style:solid; }
.ops-content .well-overview-card.amber strong { color:var(--st-warning); }
.ops-content .well-status-rail { background:var(--st-action); }
.ops-content .well-row-amber .well-status-rail { background:var(--st-warning); border:0; }
.ops-footer { margin:0 24px; font-size:11px; padding:16px 0; }
.ops-login-form-wrap { background:white; }
.ops-login-copy h1 { font-family:inherit; font-weight:600; letter-spacing:0; }
.ops-login-scene { background:var(--st-canvas); }
.stitch-dashboard-bottom { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:20px; }
.stitch-dashboard-bottom>.ops-panel:last-child { grid-column:1/-1; }
.stitch-pob-list,.stitch-connection-list,.stitch-activity { padding:16px; }
.stitch-pob-list article { padding:12px; background:var(--st-canvas); border-bottom:1px solid var(--st-line); }
.stitch-pob-list article>div { margin:8px 0; }
.stitch-pob-list small,.stitch-activity small,.stitch-activity p { font-size:12px; color:var(--st-muted); }
.stitch-pob-list article>div small { display:block; }
.stitch-connection-list article { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:14px 0; border-bottom:1px solid var(--st-line); font-size:13px; }
.stitch-activity article { border-left:2px solid var(--st-line); padding:0 16px 16px; }
.stitch-activity strong,.stitch-activity small { display:block; }
.stitch-activity strong { margin:4px 0; font-size:13px; }
.ops-metric>div>.ops-icon { width:30px; height:30px; padding:6px; }
.ops-content .pw-document-bar,.ops-content .pw-table-bottom { background:var(--st-header); }
.ops-content .pw-table-intro>span { background:var(--st-soft); }
.stitch-plan-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:16px 0; }
.stitch-plan-summary>div { background:white; border:1px solid var(--st-line); padding:14px 16px; border-radius:4px; }
.stitch-plan-summary span { display:block; font-size:12px; color:var(--st-muted); margin-bottom:10px; }
.stitch-plan-summary strong { font-size:26px; font-weight:600; color:var(--st-primary); font-variant-numeric:tabular-nums; }
.stitch-plan-summary small { font-size:12px; font-weight:400; }
.stitch-plan-summary>div:last-child { background:var(--st-warning-bg); }
.stitch-plan-summary>div:last-child strong { color:var(--st-warning); }
@media(max-width:1200px) {
  .ops-shell { grid-template-columns:216px minmax(0,1fr); }
  .ops-sidebar .ops-brand { padding:10px 16px; }
  .ops-brand img { width:180px; }
  .ops-content { padding:20px; }
}
@media(max-width:1024px) {
  .ops-overview-aside { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:760px) {
  .stitch-plan-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stitch-dashboard-bottom { grid-template-columns:minmax(0,1fr); }
  .ops-shell { grid-template-columns:minmax(0,1fr); }
  .ops-sidebar { width:240px; }
  .ops-topbar { height:56px; padding:0 12px; }
  .ops-top-actions { gap:4px; }
  .ops-content { padding:16px 12px; }
  .ops-page-heading,.shio-page-heading,.pw-header { padding:16px; }
  .ops-page-heading h1,.shio-page-heading h1,.pw-header h2 { font-size:21px; }
  .ops-metrics { gap:10px; }
  .ops-metric { min-height:130px; padding:12px; }
  .ops-metric>strong { font-size:28px; }
  .ops-metric .ops-icon { width:24px; height:24px; padding:4px; }
  .ops-metric>small { font-size:11px; }
  .ops-overview-aside { grid-template-columns:minmax(0,1fr); }
  .ops-content :is(input,select,textarea) { font-size:16px; }
  .ops-shell :is(.primary-btn,.secondary-btn,.pw-button),.stitch-tabs>button { min-height:44px; }
  .ops-drawer { width:100vw; }
  .ops-drawer-content { padding:16px; }
  .ops-footer { margin:0 12px; }
}
