#workspace .workspace-head-actions .staking-clear-fields{width:auto;height:auto;min-height:30px;padding:6px 10px;border:1px solid #cddde7;border-radius:8px;background:#f5f9fc;color:#223a5e;font:600 12px/1.3 Montserrat,Arial,sans-serif;white-space:nowrap;cursor:pointer;box-shadow:none}
#workspace .workspace-head-actions .staking-clear-fields:hover{background:#e5f1f7}
#workspace .workspace-head-actions .staking-clear-fields:focus-visible{outline:2px solid #0891b2;outline-offset:2px}
@media(max-width:600px){#workspace .workspace-head-actions{gap:6px}#workspace .workspace-head-actions .staking-clear-fields{font-size:11px;padding:5px 7px}}

/* Picchettamento avanzato — presentation only, shared Field/Light vocabulary. */
:root { --stake-surface:#fff; --stake-soft:#f2f2ee; --stake-text:#1a1d24; --stake-muted:#5a6270; --stake-line:#deded8; --stake-accent:#b86600; }
[data-atlas-theme="dark"] { --stake-surface:#161a1f; --stake-soft:#1f242b; --stake-text:#f2f2f0; --stake-muted:#a7b0bd; --stake-line:#343c46; --stake-accent:#ffad32; color-scheme:dark; }
body.staking-advanced { color:var(--stake-text); }
body.atlas-shell-staking.staking-advanced #workspace {
  display:flex!important; flex-direction:column!important; position:absolute!important;
  top:12px!important; bottom:12px!important; right:76px!important; width:min(520px,45vw)!important;
  height:auto!important; max-height:none!important; border:1px solid var(--stake-line)!important; border-radius:8px!important;
  background:var(--stake-surface)!important; color:var(--stake-text)!important;
  transform:none!important; opacity:1!important; visibility:visible!important; pointer-events:auto!important;
  padding:0!important; overflow:hidden!important; z-index:1500!important; box-shadow:0 6px 24px rgba(0,0,0,.16)!important;
}
body.atlas-shell-staking.staking-advanced #workspace[data-collapsed="true"] { display:none!important; }
body.atlas-shell-staking.staking-advanced #workspace .workspace-head {
  display:flex!important; flex:0 0 auto; min-height:68px!important; gap:10px!important; flex-wrap:wrap!important;
  padding:12px 16px!important; background:var(--stake-surface)!important; border-bottom:1px solid var(--stake-line)!important;
}
body.staking-advanced #workspace .workspace-head strong { font-size:17px!important; color:var(--stake-text)!important; }
body.staking-advanced #workspace .workspace-head span { color:var(--stake-muted)!important; }
body.atlas-shell-staking.staking-advanced #workspace .workspace-head-actions { display:flex!important; gap:6px!important; }
body.staking-advanced #workspace .grab { display:none!important; }
body.staking-advanced .staking-workflow-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); flex:0 0 auto; padding:0 8px; border-bottom:1px solid var(--stake-line); background:var(--stake-surface); }
body.staking-advanced #workspace .staking-workflow-tabs button {
  min-width:0!important; min-height:54px!important; border:0!important; border-radius:0!important; padding:10px 5px!important;
  font-size:12px!important; line-height:1.35!important; font-weight:600!important; color:var(--stake-muted)!important;
  background:transparent!important; box-shadow:none!important; position:relative;
}
body.staking-advanced #workspace .staking-workflow-tabs button[aria-selected="true"] { color:var(--stake-accent)!important; box-shadow:inset 0 -3px var(--stake-accent)!important; }
body.staking-advanced #workspace .staking-workflow-tabs button:hover { background:var(--stake-soft)!important; }
body.staking-advanced .staking-workflow-tabs .is-recording::before { content:""; display:inline-block; width:7px; height:7px; background:#ec5858; border-radius:50%; margin-right:4px; }
body.staking-advanced .staking-workflow-content { flex:1 1 auto; min-height:0; overflow:auto; padding:16px; scroll-padding:16px; overscroll-behavior:contain; }
body.atlas-shell-staking.staking-advanced #workspace .tab { display:none!important; height:auto!important; padding:0!important; overflow:visible!important; max-height:none!important; }
body.atlas-shell-staking.staking-advanced #workspace .tab.active { display:block!important; }
body.staking-advanced #workspace [hidden] { display:none!important; }
body.atlas-shell-staking.staking-advanced #workspace[data-staking-view="position"] .field-actions-card,
body.atlas-shell-staking.staking-advanced #workspace[data-staking-view="position"] .livecard { display:block!important; }
body.atlas-shell-staking.staking-advanced #workspace[data-staking-view="position"] .addrow,
body.atlas-shell-staking.staking-advanced #workspace[data-staking-view="coordinates"] .field-actions-card,
body.atlas-shell-staking.staking-advanced #workspace[data-staking-view="coordinates"] .livecard { display:none!important; }
body.staking-advanced #workspace .field-actions-card { margin:0 0 16px; }
body.staking-advanced #workspace .precision-entry { width:100%!important; text-align:left!important; padding:14px!important; }
body.staking-advanced #workspace .precision-entry small { display:block; margin-top:4px; color:inherit!important; opacity:1!important; }
body.staking-advanced #workspace .field-actions-card .cardtitle { color:var(--stake-muted)!important; font-size:12px!important; margin:0 0 10px!important; }
body.atlas-shell-staking.staking-advanced #workspace .livecard,
body.atlas-shell-staking.staking-advanced #workspace .parcelbox,
body.atlas-shell-staking.staking-advanced #workspace .triggrid article,
body.atlas-shell-staking.staking-advanced #workspace .metrics > div,
body.atlas-shell-staking.staking-advanced #workspace .trace-metrics > div,
body.atlas-shell-staking.staking-advanced #workspace .colorpick {
  background:var(--stake-soft)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; border-radius:6px!important;
}
body.staking-advanced #workspace :is(label,h3,b,.cardtitle,.result) { color:var(--stake-text)!important; }
body.atlas-shell-staking.staking-advanced #workspace .hint,
body.staking-advanced #workspace :is(.livehint,.pq-note,.trace-message,.staking-mode-intro,.parcelbox span) { color:var(--stake-muted)!important; font-size:12px!important; line-height:1.55!important; background:var(--stake-soft)!important; }
body.staking-advanced #workspace .staking-mode-intro { padding:12px; border-left:3px solid var(--stake-accent); border-radius:0 6px 6px 0; }
body.staking-advanced #workspace :is(input,select) { background:var(--stake-surface)!important; border:1px solid var(--stake-line)!important; color:var(--stake-text)!important; min-height:44px!important; box-sizing:border-box!important; max-width:100%; }
body.staking-advanced #workspace :is(button,a) { touch-action:manipulation; }
body.staking-advanced #workspace button:not(.mac-window-dot) { min-height:44px!important; background:var(--stake-soft)!important; color:var(--stake-text)!important; border:1px solid var(--stake-line)!important; border-radius:6px!important; }
body.staking-advanced #workspace button.primary,
body.staking-advanced #workspace .pq-primary { background:#1e3a5f!important; color:#fff!important; border-color:#1e3a5f!important; }
body.staking-advanced #workspace button:disabled { opacity:.5!important; cursor:not-allowed!important; }
body.staking-advanced #workspace .danger { color:#c93636!important; }
[data-atlas-theme="dark"] body.staking-advanced #workspace .danger { color:#ff9b9b!important; }
body.staking-advanced #workspace .pointlist { max-width:100%; overflow-x:auto; }
body.staking-advanced #workspace :is(th,td) { border-color:var(--stake-line)!important; color:var(--stake-text)!important; background:transparent!important; }
body.staking-advanced #workspace th { color:var(--stake-muted)!important; font-size:11px!important; }
body.staking-advanced #workspace .pointlist td button { min-width:36px; }
body.atlas-shell-staking.staking-advanced #workspace #traceCard,
body.atlas-shell-staking.staking-advanced #workspace #pqPanel {
  position:static!important; inset:auto!important; width:100%!important; max-width:none!important; height:auto!important; max-height:none!important;
  margin:0!important; padding:0!important; border:0!important; background:transparent!important; color:var(--stake-text)!important; transform:none!important; box-shadow:none!important; overflow:visible!important;
}
body.atlas-shell-staking.staking-advanced #workspace #traceCard:not([hidden]),
body.atlas-shell-staking.staking-advanced #workspace #pqPanel:not([hidden]) { display:block!important; }
body.staking-advanced #workspace :is(.trace-head,.pq-head) { padding-bottom:12px; border-color:var(--stake-line)!important; background:transparent!important; }
body.staking-advanced #workspace .trace-list > div { background:var(--stake-soft)!important; border-color:var(--stake-line)!important; color:var(--stake-text)!important; }
body.staking-advanced #workspace :is(.trace-list small,.pq-source) { color:var(--stake-muted)!important; }
body.staking-advanced #workspace .staking-recording-status { flex:0 0 auto; margin:8px 12px 0; font-size:12px; color:#bd2929!important; }
[data-atlas-theme="dark"] body.staking-advanced #workspace .staking-recording-status { color:#ffabab!important; }
body.staking-advanced #workspace .staking-theme-toggle { display:flex!important; flex:1 0 100%; gap:4px; }
body.staking-advanced #workspace .staking-theme-toggle button { min-width:65px; min-height:32px!important; display:flex; align-items:center; justify-content:center; gap:6px; font-size:12px; }
body.staking-advanced #workspace .staking-theme-toggle button svg { width:15px; height:15px; }
body.staking-advanced #workspace .staking-theme-toggle button[aria-pressed="true"] { border-color:var(--stake-accent)!important; color:var(--stake-accent)!important; }
body.staking-advanced :is(button,a,input,select,summary):focus-visible { outline:3px solid #1ba6e8!important; outline-offset:2px!important; }
body.staking-advanced .modalcard { background:var(--stake-surface)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }
body.staking-advanced .modalcard :is(h2,b,p,label) { color:var(--stake-text)!important; }
body.staking-advanced .precisionchoice button { background:var(--stake-soft)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }
body.staking-advanced .precisionchoice button :is(small,span) { color:var(--stake-muted)!important; }
body.staking-advanced .precisionmetrics > div { background:var(--stake-soft)!important; color:var(--stake-text)!important; }
body.atlas-shell-staking.staking-advanced #layercard { background:var(--stake-surface)!important; border-color:var(--stake-line)!important; }
body.atlas-shell-staking.staking-advanced #layercard :is(details,summary,label,.basemap-switch) { background:var(--stake-surface)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }
body.atlas-shell-staking.staking-advanced #layercard :is(b,em,.cardtitle) { color:var(--stake-text)!important; }
body.atlas-shell-staking.staking-advanced #desktopModuleRail { background:var(--stake-surface)!important; border-color:var(--stake-line)!important; }
body.atlas-shell-staking.staking-advanced #desktopModuleRail [data-desktop-module="trace"] { display:grid!important; }
body.atlas-shell-staking.staking-advanced #openWorkspaceBtn { display:flex!important; position:fixed!important; right:80px!important; bottom:38px!important; z-index:1700!important; align-items:center; gap:8px; min-height:44px; background:#1e3a5f!important; color:#fff!important; }
body.atlas-shell-staking.staking-advanced #workspace:not([data-collapsed="true"]) ~ #desktopModuleRail { pointer-events:auto; }
body.atlas-shell-staking.staking-advanced #workspace.is-fullscreen { top:0!important; bottom:0!important; right:0!important; width:100%!important; z-index:2000!important; }
@media (min-width:901px) {
  body.atlas-shell-staking.staking-advanced #workspace .workspace-head-actions .mac-window-dot { display:block!important; width:18px!important; height:18px!important; min-width:18px!important; min-height:18px!important; padding:0!important; }
}
@media (max-width:900px) {
  body.atlas-shell-staking.staking-advanced #workspace { position:fixed!important; inset:auto 8px calc(70px + env(safe-area-inset-bottom,0px))!important; width:auto!important; height:52dvh!important; max-height:calc(100dvh - 135px)!important; border-radius:10px!important; z-index:3600!important; }
  body.atlas-shell-staking.staking-advanced #workspace .workspace-head { padding:8px 12px!important; min-height:48px!important; }
  body.staking-advanced #workspace .staking-theme-toggle { flex-basis:auto; }
  body.staking-advanced #workspace .staking-theme-toggle button { min-height:44px!important; min-width:44px; }
  body.staking-advanced #workspace .staking-workflow-tabs { padding:0 4px; }
  body.staking-advanced #workspace .staking-workflow-tabs button { font-size:10px!important; padding:6px 2px!important; min-height:44px!important; }
  body.staking-advanced .staking-workflow-content { padding:12px; }
  body.staking-advanced #workspace :is(input,select) { font-size:16px!important; }
  body.atlas-shell-staking.staking-advanced #workspace .addrow { display:flex!important; flex-wrap:wrap!important; gap:8px!important; }
  body.atlas-shell-staking.staking-advanced #workspace[data-staking-view="position"] .addrow { display:none!important; }
  body.staking-advanced #workspace .addrow input { flex:1 1 100%; }
  body.staking-advanced #workspace .addrow button { width:100%; }
  body.atlas-shell-staking.staking-advanced #workspace .workspace-head-actions .mac-window-dot { display:block!important; width:24px!important; height:24px!important; min-width:24px!important; min-height:24px!important; }
  body.staking-advanced #workspace .pointlist td button { min-width:44px; }
  body.atlas-shell-staking.staking-advanced #openWorkspaceBtn { right:12px!important; bottom:calc(74px + env(safe-area-inset-bottom,0px))!important; }
  body.atlas-shell-staking.staking-advanced #workspace.is-fullscreen { inset:60px 0 calc(66px + env(safe-area-inset-bottom,0px))!important; width:auto!important; height:auto!important; max-height:none!important; }
}
@media (prefers-reduced-motion:reduce) { body.staking-advanced * { scroll-behavior:auto!important; } }



body.staking-advanced:not(.staking-workspace-collapsed) #openWorkspaceBtn { display:none!important; }
body.staking-advanced #workspace .staking-workflow-content > .exportbar { margin-top:20px!important; padding-top:14px!important; border-top:1px solid var(--stake-line)!important; }
body.staking-advanced #workspace[data-staking-view="trig"] .staking-workflow-content > .exportbar,
body.staking-advanced #workspace[data-staking-view="pq"] .staking-workflow-content > .exportbar { display:none!important; }
@media (max-width:900px) {
  body.atlas-shell-staking.staking-advanced #workspace .workspace-head-actions .mac-window-dot { width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important; }
}


body.staking-advanced #workspace[data-staking-view="position"] #stakingClearFields,
body.staking-advanced #workspace[data-staking-view="trace"] #stakingClearFields,
body.staking-advanced #workspace[data-staking-view="pq"] #stakingClearFields { display:none!important; }

body.atlas-shell-staking.staking-advanced #workspace .workspace-head-actions { flex:1 1 100%!important; width:100%!important; flex-wrap:wrap!important; white-space:normal!important; margin-left:0!important; }
body.staking-advanced #workspace .staking-theme-toggle { flex:1 1 auto; }
@media (max-width:900px) { body.staking-advanced #workspace .staking-theme-toggle { flex-basis:100%; order:2; } }


/* Parità con la mappa principale: header, rail sinistro e dock livelli destro. */
body.staking-advanced { --atlas-shell-header-h:52px; --atlas-shell-footer-h:32px; }
body.staking-advanced > .atlas-shared-header {
  position:fixed!important; inset:0 0 auto!important; z-index:9000!important; height:52px!important; min-height:52px!important; max-height:52px!important;
  display:flex!important; align-items:center!important; justify-content:space-between!important; gap:16px!important;
  padding:0 16px!important; background:#1e3a5f!important; border:0!important; border-bottom:1px solid #17304e!important; box-shadow:none!important;
}
[data-atlas-theme="dark"] body.staking-advanced > .atlas-shared-header { background:#10161f!important; border-color:#22303f!important; }
body.staking-advanced .atlas-shared-header .atlasmap-brand { display:flex!important; align-items:center!important; gap:12px!important; width:auto!important; max-width:none!important; min-width:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
body.staking-advanced .atlas-shell-brandmark { display:block; width:147px; height:28px; flex:0 0 147px; }
body.staking-advanced .atlas-shell-brandtag { display:inline; color:#b7c2d2; font-size:10px; font-weight:500; white-space:nowrap; }
body.staking-advanced .atlas-shared-header .atlasmap-brand-logo,
body.staking-advanced .atlasmap-header-descriptor,
body.staking-advanced .atlas-shared-header .atlas-access-tier-badge { display:none!important; }
body.staking-advanced .atlas-shared-header .header-right { min-width:0!important; width:auto!important; flex:0 0 auto!important; }
body.staking-advanced .atlas-shared-header .atlasmap-header-actions { display:flex!important; flex-wrap:nowrap!important; gap:12px!important; margin:0!important; }
body.staking-advanced .atlas-shared-header .staking-theme-toggle { display:flex!important; flex:0 0 auto; padding:3px; gap:2px; border:1px solid rgba(255,255,255,.2); border-radius:6px; }
body.staking-advanced .atlas-shared-header .staking-theme-toggle button { display:flex; align-items:center; justify-content:center; gap:5px; min-width:62px; height:28px; padding:0 8px; color:#c8d3e0; border:0; border-radius:4px; background:transparent; font-size:12px; cursor:pointer; }
body.staking-advanced .atlas-shared-header .staking-theme-toggle button svg { width:15px; height:15px; }
body.staking-advanced .atlas-shared-header .staking-theme-toggle button[aria-pressed="true"] { color:#fff; background:rgba(255,255,255,.14); }
body.staking-advanced > footer { position:fixed!important; inset:auto 0 0!important; z-index:2000!important; height:32px!important; min-height:32px!important; max-height:32px!important; display:flex!important; align-items:center!important; justify-content:flex-start!important; gap:12px!important; padding:0 16px 0 76px!important; background:var(--stake-surface)!important; color:var(--stake-muted)!important; border:0!important; border-top:1px solid var(--stake-line)!important; box-shadow:none!important; font-size:10px!important; }
body.staking-advanced > footer * { color:inherit!important; }
body.staking-advanced .atlas-shared-header .atlasmap-header-left { min-width:0!important; }
body.staking-advanced #workspace .trace-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0 0 14px; }
body.staking-advanced #workspace .trace-head > div { display:flex; flex-direction:column; gap:6px; }
body.staking-advanced #workspace .trace-head strong { color:var(--stake-text); font-size:15px; }
body.staking-advanced #workspace .trace-head span { color:var(--stake-muted); font-size:12px; }
body.staking-advanced #workspace .trace-head button { width:44px; min-width:44px; }
body.staking-advanced #workspace .trace-controls { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
body.staking-advanced #workspace .trace-controls button { min-height:48px!important; font-weight:700; }
body.staking-advanced #workspace #traceRecBtn { background:#287342!important; border-color:#287342!important; color:#fff!important; }
body.staking-advanced #workspace #traceStopBtn { background:#9d3030!important; border-color:#9d3030!important; color:#fff!important; }
body.staking-advanced .rec-dot { display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%; background:currentColor; }
body.staking-advanced #workspace .trace-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:16px 0; }
body.staking-advanced #workspace .trace-metrics > div { display:flex; flex-direction:column; gap:8px; padding:12px; }
body.staking-advanced #workspace .trace-metrics b { color:var(--stake-muted)!important; font-size:10px; font-weight:600; text-transform:uppercase; }
body.staking-advanced #workspace .trace-metrics span { color:var(--stake-text); font-size:16px; font-weight:700; }
body.staking-advanced #workspace .trace-message { padding:12px; border-radius:6px; }
body.staking-advanced #workspace .trace-list-wrap { margin-top:18px; }
body.staking-advanced #workspace .trace-list { max-height:220px; overflow:auto; margin-top:10px; }
body.staking-advanced #workspace .trace-list > div { display:grid; grid-template-columns:32px 1fr auto; gap:8px; padding:12px 8px; border-bottom:1px solid var(--stake-line); font-size:12px; }
body.staking-advanced #workspace .trace-list > span { display:block; padding:14px 0; color:var(--stake-muted); font-size:12px; }
body.staking-advanced .trace-toast { position:fixed; z-index:29000; top:68px; left:50%; transform:translateX(-50%); width:min(340px,calc(100vw - 24px)); padding:12px 16px; color:#fff; background:#1e3a5f; border-radius:6px; opacity:0; pointer-events:none; }
body.staking-advanced .trace-toast.show { opacity:1; }
body.staking-advanced .trace-toast b, body.staking-advanced .trace-toast span { display:block; font-size:12px; line-height:1.5; }
body.staking-advanced .staking-layers-toggle { display:none; }
body.staking-advanced #stakingMobileAccount { display:flex; flex-wrap:wrap; gap:8px; width:100%; }
body.staking-advanced #stakingMobileAccount[hidden] { display:none!important; }
body.staking-advanced #stakingMobileAccount a { display:flex; align-items:center; gap:6px; min-height:44px; padding:8px 12px; font-size:12px; text-decoration:none; background:var(--stake-soft); color:var(--stake-text); border:1px solid var(--stake-line); border-radius:6px; }
body.staking-advanced .field-action-icon svg { width:22px; height:22px; }
@media (min-width:901px) {
  body.atlas-shell-staking.staking-advanced main { position:fixed!important; inset:52px 0 32px!important; height:auto!important; margin:0!important; padding:0!important; overflow:hidden!important; }
  body.atlas-shell-staking.staking-advanced #map { position:absolute!important; inset:0 0 0 60px!important; width:auto!important; height:100%!important; margin:0!important; border:0!important; border-radius:0!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail { position:absolute!important; inset:0 auto 0 0!important; width:60px!important; min-width:60px!important; height:auto!important; transform:none!important; padding:12px 0!important; margin:0!important; align-items:center!important; gap:4px!important; border:0!important; border-right:1px solid var(--stake-line)!important; border-radius:0!important; box-shadow:none!important; overflow-y:auto!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail :is(button,a) { width:40px!important; min-width:40px!important; height:40px!important; min-height:40px!important; flex:0 0 40px!important; margin:0!important; padding:0!important; border:0!important; border-radius:4px!important; background:transparent!important; color:var(--stake-muted)!important; box-shadow:none!important; transform:none!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail :is(button,a):hover { background:var(--stake-soft)!important; color:#1ba6e8!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail button.active { background:rgba(243,146,0,.14)!important; color:var(--stake-accent)!important; box-shadow:none!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail svg { width:22px!important; height:22px!important; display:block; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail .desktop-rail-separator { width:28px!important; min-height:1px; flex:0 0 1px; margin:6px 0!important; background:var(--stake-line)!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail .staking-right-rail-toggle { margin-top:auto!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail.is-collapsed { left:-44px!important; overflow:visible!important; border:0!important; background:transparent!important; }
  body.atlas-shell-staking.staking-advanced #desktopModuleRail.is-collapsed .staking-right-rail-toggle { position:absolute!important; left:44px!important; right:auto!important; top:12px!important; width:24px!important; min-width:24px!important; height:44px!important; min-height:44px!important; background:var(--stake-surface)!important; border:1px solid var(--stake-line)!important; border-radius:0 4px 4px 0!important; }
  body.atlas-shell-staking.staking-advanced #workspace { left:72px!important; right:auto!important; width:min(520px,45vw)!important; top:12px!important; bottom:12px!important; }
  body.atlas-shell-staking.staking-advanced #workspace.is-fullscreen { inset:0!important; width:100%!important; }
  body.atlas-shell-staking.staking-advanced #openWorkspaceBtn { left:72px!important; right:auto!important; bottom:44px!important; }
  body.atlas-shell-staking.staking-advanced #layercard { position:absolute!important; inset:12px 12px 12px auto!important; display:block!important; width:340px!important; max-width:340px!important; height:auto!important; max-height:none!important; padding:14px!important; border:1px solid var(--stake-line)!important; border-radius:6px!important; box-shadow:0 4px 14px rgba(15,33,55,.14)!important; }
  body.atlas-shell-staking.staking-advanced.staking-layers-collapsed #layercard { display:none!important; }
  body.atlas-shell-staking.staking-advanced #layercard .layercard-head { display:flex!important; align-items:center!important; justify-content:space-between!important; padding:0 0 12px!important; margin:0 0 12px!important; border-bottom:1px solid var(--stake-line)!important; }
  body.atlas-shell-staking.staking-advanced #layercard .layercard-head::before,
  body.atlas-shell-staking.staking-advanced #layercard .layercard-head::after { display:none!important; }
  body.atlas-shell-staking.staking-advanced #layercard .layercard-head .cardtitle { display:block!important; font-size:13px!important; font-weight:700!important; letter-spacing:.08em; text-transform:uppercase; }
  body.atlas-shell-staking.staking-advanced #layercard .layercard-head-actions { display:flex!important; }
  body.atlas-shell-staking.staking-advanced #layercard :is(#expandLayersBtn,#collapseLayersBtn) { display:none!important; }
  body.atlas-shell-staking.staking-advanced #layercard #closeLayersBtn { display:grid!important; place-items:center; width:32px!important; height:32px!important; min-width:32px!important; min-height:32px!important; padding:0!important; background:transparent!important; color:var(--stake-text)!important; border:1px solid var(--stake-line)!important; border-radius:4px!important; box-shadow:none!important; }
  body.staking-advanced #closeLayersBtn svg { width:18px; height:18px; }
  body.atlas-shell-staking.staking-advanced #layercard .basemap-switch { border:1px solid var(--stake-line)!important; border-radius:6px!important; padding:4px!important; }
  body.atlas-shell-staking.staking-advanced #layercard .basemap-switch button { color:var(--stake-muted)!important; font-weight:600!important; border-radius:4px!important; }
  body.atlas-shell-staking.staking-advanced #layercard .basemap-switch button.active { color:var(--stake-text)!important; background:var(--stake-soft)!important; box-shadow:inset 0 -2px var(--stake-accent)!important; }
  body.atlas-shell-staking.staking-advanced #layercard details { border:1px solid var(--stake-line)!important; border-left:1px solid var(--stake-line)!important; border-radius:6px!important; }
  body.atlas-shell-staking.staking-advanced #layercard details summary { gap:8px!important; min-height:44px!important; padding:10px!important; }
  body.atlas-shell-staking.staking-advanced #layercard details summary b { font-size:13px!important; }
  body.atlas-shell-staking.staking-advanced #layercard details summary em { font-size:11px!important; color:var(--stake-muted)!important; }
  body.atlas-shell-staking.staking-advanced #layercard .atlas-catasto-summary-icon { width:24px!important; height:24px!important; min-width:24px!important; min-height:24px!important; flex:0 0 24px!important; background:transparent!important; color:var(--stake-accent)!important; }
  body.atlas-shell-staking.staking-advanced #layercard .atlas-catasto-summary-icon svg { width:20px!important; height:20px!important; }
  body.atlas-shell-staking.staking-advanced #layercard details label { min-height:44px!important; padding:8px 12px!important; font-size:13px!important; }
  body.staking-advanced.staking-layers-collapsed .staking-layers-toggle { display:flex!important; position:fixed; right:12px; top:64px; align-items:center; gap:8px; min-height:40px; padding:8px 12px; border:1px solid var(--stake-line); border-radius:4px; background:var(--stake-surface); color:var(--stake-text); z-index:1700; cursor:pointer; font-size:13px; }
  body.staking-advanced .staking-layers-toggle svg { width:20px; height:20px; }
}
@media (max-width:1300px) { body.staking-advanced .atlas-shell-brandtag { display:none; } }
@media (max-width:900px) {
  body.staking-advanced { --atlas-shell-header-h:56px; }
  body.staking-advanced > .atlas-shared-header { height:56px!important; min-height:56px!important; max-height:56px!important; padding:0 10px!important; gap:8px!important; }
  body.staking-advanced .atlas-shell-brandmark { width:140px; flex-basis:140px; }
  body.staking-advanced .atlas-shared-header :is(.atlasmap-header-left,.header-right,.atlasmap-header-actions,.atlasmap-header-tools,.atlasmap-header-account) { min-width:0!important; width:auto!important; gap:4px!important; flex:0 0 auto!important; padding:0!important; margin:0!important; }
  body.staking-advanced .atlas-shared-header :is(button,.atlasmap-header-maplink,.atlasmap-header-btn) { width:44px!important; min-width:44px!important; height:44px!important; min-height:44px!important; padding:0!important; }
  body.staking-advanced .atlas-shared-header .atlasmap-header-btn--back span:last-child { display:none; }
  body.staking-advanced > footer { display:none!important; }
  body.atlas-shell-staking.staking-advanced main { position:fixed!important; inset:56px 0 calc(66px + env(safe-area-inset-bottom,0px))!important; height:auto!important; }
  body.atlas-shell-staking.staking-advanced #map { height:100%!important; }
  body.staking-advanced .mobile-dock { background:var(--stake-surface)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }
  body.staking-advanced .mobile-dock button { background:transparent!important; color:var(--stake-muted)!important; border-radius:4px!important; min-height:44px!important; }
  body.staking-advanced .mobile-dock button.active { background:var(--stake-soft)!important; color:var(--stake-accent)!important; box-shadow:inset 0 3px var(--stake-accent)!important; }
  body.staking-advanced .mobile-dock svg { width:22px; height:22px; }
}


/* Same-icon open/close: no traffic-light window decorations. */
body.atlas-shell-staking.staking-advanced #workspace .mac-window-dot,
body.atlas-shell-staking.staking-advanced #layercard .mac-window-dot,
body.staking-advanced .window-dots,
body.staking-advanced #workspace #traceCloseBtn,
body.staking-advanced #workspace #pqDismiss,
body.atlas-shell-staking.staking-advanced #openWorkspaceBtn { display:none!important; }
body.staking-advanced #workspace .pointlist,
body.staking-advanced #workspace .pointlist table { background:var(--stake-surface)!important; border-color:var(--stake-line)!important; }
body.staking-advanced #workspace .pointlist thead,
body.staking-advanced #workspace .pointlist th { background:var(--stake-soft)!important; color:var(--stake-muted)!important; }
body.staking-advanced #workspace .pointlist tbody tr:hover td { background:var(--stake-soft)!important; }
body.atlas-shell-staking.staking-advanced #desktopModuleRail :is(#railZoomOut,#railLocate) { background:transparent!important; color:var(--stake-muted)!important; }
body.atlas-shell-staking.staking-advanced #desktopModuleRail :is(#railZoomOut,#railLocate):hover { background:var(--stake-soft)!important; color:#1ba6e8!important; }
body.staking-advanced #atlasNotificationsDialog { position:fixed!important; inset:64px 16px auto auto!important; width:min(380px,calc(100vw - 32px))!important; max-height:calc(100dvh - 100px)!important; margin:0!important; padding:0!important; overflow:auto; background:var(--stake-surface)!important; color:var(--stake-text)!important; border:1px solid var(--stake-line)!important; border-radius:6px!important; z-index:10000!important; }
body.staking-advanced #atlasNotificationsDialog :is(.an-close,.an-mobile-close) { display:none!important; }
body.staking-advanced #atlasNotificationsDialog .an-head { position:static!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; padding:16px!important; }
body.staking-advanced #atlasNotificationsDialog .an-head :is(h2,small) { color:var(--stake-text)!important; }
body.staking-advanced #atlasNotificationsDialog .an-head small { display:block; font-size:10px; letter-spacing:.08em; }
body.staking-advanced #atlasNotificationsDialog .an-head h2 { font-size:18px!important; margin:4px 0 0!important; }
body.staking-advanced #atlasNotificationsDialog .an-content { padding:0 16px 16px!important; }
body.staking-advanced #atlasNotificationsDialog .staking-notification-message { background:var(--stake-soft)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }
@media (min-width:901px) {
  body.staking-advanced .staking-layers-toggle { display:flex!important; position:fixed; right:12px; top:64px; align-items:center; gap:8px; min-height:40px; padding:8px 12px; border:1px solid var(--stake-line); border-radius:4px; background:var(--stake-surface); color:var(--stake-text); z-index:1700; cursor:pointer; font-size:13px; }
  body.staking-advanced .staking-layers-toggle.is-active { background:var(--stake-soft); color:var(--stake-accent); }
  body.atlas-shell-staking.staking-advanced #layercard .layercard-head { padding-right:112px!important; min-height:32px; }
}

body.staking-advanced > #stakingRecordingStatus { position:fixed; z-index:1800; left:72px; bottom:44px; max-width:calc(100vw - 96px); min-height:44px; padding:10px 14px; border:1px solid var(--stake-accent); border-radius:6px; color:var(--stake-text); background:var(--stake-surface); font-size:12px; cursor:pointer; }
body.staking-advanced > #stakingRecordingStatus[hidden] { display:none!important; }
@media (max-width:900px) { body.staking-advanced > #stakingRecordingStatus { left:12px; bottom:calc(76px + env(safe-area-inset-bottom,0px)); max-width:calc(100vw - 24px); } }



body.staking-advanced #atlasNotificationsDialog .an-content :is(.staking-notification-message,.atlas-notification-message) { background:var(--stake-soft)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }


/* Approved /atlas prototype: modal geometry, typography and semantic surfaces. */
@media screen {
  body.staking-prototype {
    --stake-surface:#fff; --stake-soft:#f4f4ef; --stake-hover:#f2f2ee; --stake-text:#1a1d24;
    --stake-muted:#5a6270; --stake-line:#e5e5e0; --stake-border-strong:#d2d2ca;
    --stake-accent:#f39200; --stake-active-text:#995700; --stake-info:#1ba6e8;
    --stake-success:#7cb342; --stake-danger:#b93232; --stake-danger-soft:#fbe6e6;
    --stake-scrim:rgba(15,33,55,.42); --stake-modal-shadow:0 4px 14px rgba(15,33,55,.12);
    --stake-font-ui:'Inter',sans-serif; --stake-font-mono:'JetBrains Mono',monospace;
    font-family:var(--stake-font-ui)!important; font-size:14px; -webkit-font-smoothing:antialiased;
  }
  html[data-atlas-theme="dark"] body.staking-prototype {
    --stake-surface:#161a1f; --stake-soft:#1c2127; --stake-hover:#1f242b; --stake-text:#f2f2f0;
    --stake-muted:#a7b0bd; --stake-line:#2a2f36; --stake-border-strong:#3a414a;
    --stake-accent:#ff9e12; --stake-active-text:#ff9e12; --stake-info:#3fbdf9;
    --stake-success:#93cc57; --stake-danger:#f16a6a; --stake-danger-soft:#2a1414;
    --stake-scrim:rgba(0,0,0,.6); --stake-modal-shadow:0 6px 20px rgba(0,0,0,.5);
  }
  body.staking-prototype :is(button,input,select,textarea) { font-family:var(--stake-font-ui)!important; }
  body.staking-prototype .atlas-shared-header .staking-theme-toggle button[aria-pressed="true"] { background:var(--stake-surface)!important; color:var(--stake-text)!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace {
    position:fixed!important; left:50%!important; right:auto!important; top:50%!important; bottom:auto!important;
    transform:translate(-50%,-50%)!important; width:min(860px,calc(100vw - 108px))!important; height:auto!important;
    max-height:calc(100dvh - 112px)!important; border-radius:8px!important; box-shadow:var(--stake-modal-shadow)!important;
    background:var(--stake-surface)!important; border:1px solid var(--stake-line)!important; overflow:hidden!important;
  }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace[data-staking-view="pq"] {
    left:72px!important; top:64px!important; transform:none!important; width:min(460px,calc(100vw - 420px))!important;
    max-height:calc(100dvh - 108px)!important;
  }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .workspace-head {
    padding:16px 20px!important; min-height:54px!important; gap:12px!important; flex-wrap:nowrap!important;
    background:var(--stake-surface)!important; border-color:var(--stake-line)!important;
  }
  body.staking-prototype #workspace .staking-modal-title { display:flex; flex-direction:row!important; align-items:center; gap:9px; min-width:0; }
  body.staking-prototype #workspace .staking-modal-title > svg { width:19px; height:19px; color:var(--stake-accent); flex:0 0 19px; }
  body.staking-prototype #workspace #workspaceTitle { font:600 17px/1.35 var(--stake-font-ui)!important; letter-spacing:0!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .workspace-head-actions { flex:0 0 auto!important; width:auto!important; margin-left:auto!important; }
  body.staking-prototype #workspace #stakingClearFields { min-height:28px!important; height:28px!important; padding:0 8px!important; font-size:12px!important; font-weight:500!important; background:transparent!important; border-color:transparent!important; color:var(--stake-muted)!important; }
  body.staking-prototype #workspace #stakingWorkflowTabs { display:flex!important; gap:2px!important; margin:20px 20px 0!important; padding:0!important; background:transparent!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace #stakingWorkflowTabs button { min-height:38px!important; height:38px!important; padding:10px 14px!important; margin:0 0 -1px!important; font:500 13px/1.2 var(--stake-font-ui)!important; border-radius:0!important; white-space:nowrap; box-shadow:none!important; border:0!important; border-bottom:2px solid transparent!important; color:var(--stake-muted)!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace #stakingWorkflowTabs button[aria-selected="true"] { color:var(--stake-active-text)!important; border-bottom-color:var(--stake-accent)!important; }
  body.staking-prototype #workspace .staking-workflow-content { padding:16px 20px 20px!important; flex:1 1 auto; min-height:0; }
  body.staking-prototype .staking-section-title { margin:0 0 12px!important; color:var(--stake-muted)!important; font:600 12px/1.4 var(--stake-font-ui)!important; letter-spacing:.05em; text-transform:uppercase; }
  body.staking-prototype #workspace .staking-acquisition-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .staking-acquisition-grid button { display:flex; flex-direction:column; gap:4px; align-items:flex-start; min-height:94px!important; padding:12px!important; border:1px solid var(--stake-border-strong)!important; border-radius:4px!important; background:var(--stake-surface)!important; text-align:left; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .staking-acquisition-grid button[aria-pressed="true"] { border-color:var(--stake-accent)!important; background:color-mix(in srgb,var(--stake-accent) 8%,var(--stake-surface))!important; }
  body.staking-prototype #workspace .staking-acquisition-grid b { font-size:13px; font-weight:600; }
  body.staking-prototype #workspace .staking-acquisition-grid small { font-size:12px; color:var(--stake-muted)!important; line-height:1.5; }
  body.staking-prototype #workspace .staking-acquisition-grid span { font:400 12px/1.5 var(--stake-font-mono); color:var(--stake-info); }
  body.staking-prototype #workspace .staking-acquire-action { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:14px; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace #stakeFromDeviceBtn { width:auto!important; min-height:34px!important; padding:0 12px!important; border-radius:4px!important; background:var(--stake-accent)!important; color:#14100a!important; border-color:var(--stake-accent)!important; text-align:center!important; }
  body.staking-prototype #workspace .staking-acquire-note { margin:0; max-width:470px; font-size:12px; line-height:1.5; color:var(--stake-muted); }
  body.staking-prototype #workspace .staking-metrics-grid { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr))!important; gap:8px!important; margin:16px 0!important; padding:16px 0 0!important; border-top:1px solid var(--stake-line); }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .staking-metrics-grid > div { display:flex!important; flex-direction:column!important; align-items:flex-start!important; gap:4px!important; padding:10px 12px!important; border:1px solid var(--stake-line)!important; border-radius:4px!important; background:var(--stake-soft)!important; }
  body.staking-prototype #workspace .staking-metrics-grid b { color:var(--stake-muted)!important; font:400 12px/1.5 var(--stake-font-ui)!important; text-transform:none!important; letter-spacing:0!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .staking-metrics-grid :is(span,#pointCount,#geomSummary) { color:var(--stake-text)!important; font:500 14px/1.5 var(--stake-font-mono)!important; margin:0!important; padding:0!important; background:transparent!important; white-space:normal!important; }
  body.staking-prototype #workspace .staking-details { margin:16px 0 0; border-top:1px solid var(--stake-line); }
  body.staking-prototype #workspace .staking-details > summary { display:flex; align-items:center; gap:8px; min-height:44px; padding:12px 0; cursor:pointer; color:var(--stake-muted); font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; list-style:none; }
  body.staking-prototype #workspace .staking-details > summary::before { content:'›'; font-size:18px; line-height:1; transform:rotate(0); }
  body.staking-prototype #workspace .staking-details[open] > summary::before { transform:rotate(90deg); }
  body.staking-prototype #workspace .staking-details > summary::-webkit-details-marker { display:none; }
  body.staking-prototype #workspace .pointlist { border:0!important; border-radius:0!important; margin:12px 0 0!important; }
  body.staking-prototype #workspace .pointlist table { width:100%; border-collapse:collapse; font-size:13px!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .pointlist th { font:600 12px/1.4 var(--stake-font-ui)!important; color:var(--stake-muted)!important; text-transform:uppercase; letter-spacing:.04em; padding:8px 10px!important; background:var(--stake-surface)!important; border-bottom:1px solid var(--stake-border-strong)!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .pointlist td { padding:8px 10px!important; font:400 12px/1.5 var(--stake-font-mono)!important; border-bottom:1px solid var(--stake-line)!important; }
  body.staking-prototype #workspace .pointlist tbody tr:nth-child(even) { background:var(--stake-soft); }
  body.staking-prototype #workspace .pointlist td button { border-color:transparent!important; background:transparent!important; font-family:var(--stake-font-ui)!important; min-width:28px!important; }
  body.staking-prototype #workspace :is(.addrow,.polybar) { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px!important; }
  body.staking-prototype #workspace .staking-coordinate-field { display:flex; flex:1 1 280px; flex-direction:column; gap:6px; margin:0!important; color:var(--stake-muted)!important; font-size:12px!important; text-transform:uppercase; letter-spacing:.04em; font-weight:500!important; }
  body.staking-prototype #workspace .staking-coordinate-field input { width:100%!important; font-family:var(--stake-font-mono)!important; text-transform:none; letter-spacing:0; }
  body.staking-prototype #workspace :is(input,select) { height:34px!important; min-height:34px!important; padding:0 12px!important; border-radius:4px!important; font-size:14px!important; border-color:var(--stake-border-strong)!important; }
  body.staking-prototype #workspace input[type="color"] { width:34px!important; min-width:34px!important; padding:3px!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace button:not(.mac-window-dot):not([data-staking-view]):not([data-precision-method]) { min-height:34px!important; font-size:13px!important; font-weight:500!important; padding:6px 12px!important; border-radius:4px!important; }
  body.staking-prototype #workspace button.primary { background:var(--stake-accent)!important; color:#14100a!important; border-color:var(--stake-accent)!important; }
  body.staking-prototype #workspace .polybar .danger { color:var(--stake-danger)!important; border-color:var(--stake-danger)!important; background:transparent!important; }
  body.staking-prototype #workspace .polybar .danger:hover { background:var(--stake-danger-soft)!important; }
  body.staking-prototype #workspace .staking-modal-footer { display:flex; position:static!important; inset:auto!important; height:auto!important; min-height:66px; max-height:none!important; line-height:normal!important; font-size:13px!important; align-items:center; flex-wrap:wrap; gap:8px; flex:0 0 auto; padding:16px 20px; border-top:1px solid var(--stake-line); background:var(--stake-surface); }
  body.staking-prototype #workspace .staking-modal-footer .exportbar { display:flex!important; flex-wrap:wrap; gap:8px!important; width:100%; margin:0!important; padding:0!important; border:0!important; background:transparent!important; }
  body.staking-prototype #workspace #screenshotBtn { margin-right:auto; background:transparent!important; border-color:transparent!important; }
  body.staking-prototype #workspace #pdfBtn { order:5; background:var(--stake-success)!important; color:#10240a!important; border-color:var(--stake-success)!important; }
  body.staking-prototype #workspace #stakingExportFooter[hidden] { display:none!important; }
  body.staking-prototype #workspace :is(.triggrid article,.parcelbox,.livecard) { padding:16px!important; border-radius:4px!important; border-color:var(--stake-line)!important; box-shadow:none!important; }
  body.staking-prototype #workspace .triggrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px!important; }
  body.staking-prototype #workspace .triggrid h3 { margin:0 0 16px!important; font:600 14px/1.4 var(--stake-font-ui)!important; }
  body.staking-prototype #workspace .triggrid label { font-size:12px!important; font-weight:500!important; color:var(--stake-muted)!important; }
  body.staking-prototype #workspace .triggrid .result { font:500 13px/1.6 var(--stake-font-mono)!important; background:var(--stake-soft)!important; color:var(--stake-text)!important; border-radius:4px!important; padding:10px!important; }
  body.staking-prototype #workspace .triggrid .profilearticle { grid-column:1/-1; }
  body.staking-prototype #workspace .trace-metrics span { font-family:var(--stake-font-mono)!important; }
  body.staking-prototype #workspace .trace-head strong { font-size:14px!important; font-weight:600!important; }
  body.staking-prototype #workspace #traceRecBtn { background:var(--stake-success)!important; color:#10240a!important; border-color:var(--stake-success)!important; }
  body.staking-prototype #workspace #traceStopBtn { color:var(--stake-danger)!important; background:transparent!important; border-color:var(--stake-danger)!important; }
  body.staking-prototype #workspace .trace-list > div { font-family:var(--stake-font-mono)!important; background:var(--stake-surface)!important; }
  body.staking-prototype #workspace .trace-list > div:nth-child(even) { background:var(--stake-soft)!important; }
  body.staking-prototype #workspace :is(.pq-stats,.pq-stats dt,.pq-stats dd,.pq-stat) { background:var(--stake-soft)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; }
  body.staking-prototype :is(#intro,#precisionModal,#editModal) { background:var(--stake-scrim)!important; padding:24px!important; }
  body.staking-prototype :is(#intro,#precisionModal,#editModal) .modalcard { display:flex!important; flex-direction:column; width:min(560px,100%)!important; max-height:calc(100dvh - 96px)!important; padding:0!important; text-align:left!important; border:1px solid var(--stake-line)!important; border-radius:8px!important; box-shadow:var(--stake-modal-shadow)!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; overflow:hidden!important; }
  body.staking-prototype #precisionModal .modalcard { width:min(860px,100%)!important; }
  body.staking-prototype .staking-modal-head { display:flex; position:static!important; inset:auto!important; height:auto!important; min-height:54px; max-height:none!important; align-items:center; gap:9px; padding:16px 20px; border-bottom:1px solid var(--stake-line); flex:0 0 auto; background:var(--stake-surface)!important; color:var(--stake-text)!important; }
  body.staking-prototype .staking-modal-head svg { width:19px; height:19px; color:var(--stake-accent); flex:0 0 19px; }
  body.staking-prototype .modalcard .staking-modal-head h2 { margin:0!important; color:var(--stake-text)!important; font:600 17px/1.35 var(--stake-font-ui)!important; letter-spacing:0!important; }
  body.staking-prototype .staking-modal-body { padding:20px; overflow:auto; min-height:0; }
  body.staking-prototype .modalcard .modalactions { margin:0!important; padding:16px 20px!important; border-top:1px solid var(--stake-line); flex:0 0 auto; gap:8px!important; }
  body.staking-prototype .modalcard p { font-size:13px!important; line-height:1.55!important; color:var(--stake-muted)!important; }
  body.staking-prototype .modalcard label { font-size:12px!important; font-weight:500!important; color:var(--stake-muted)!important; }
  body.staking-prototype .modalcard input { display:block; width:100%; height:34px; margin-top:6px; padding:0 12px; box-sizing:border-box; border:1px solid var(--stake-border-strong); border-radius:4px; color:var(--stake-text); background:var(--stake-surface); font-family:var(--stake-font-mono)!important; font-size:14px; }
  body.staking-prototype .modalcard button { min-height:34px!important; padding:8px 12px!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; font-size:13px!important; font-weight:500!important; border:1px solid var(--stake-border-strong)!important; border-radius:4px!important; }
  body.staking-prototype .modalcard button.primary { background:var(--stake-accent)!important; color:#14100a!important; border-color:var(--stake-accent)!important; }
  body.staking-prototype #precisionModal .precisionchoice { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; margin:16px 0!important; }
  body.staking-prototype #precisionModal .precisionchoice.hidden { display:none!important; }
  body.staking-prototype #precisionModal .precisionchoice button { min-height:124px!important; padding:12px!important; gap:6px!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; }
  body.staking-prototype #precisionModal .precisionchoice button b { font-size:13px!important; font-weight:600!important; }
  body.staking-prototype #precisionModal .precisionchoice button small { font-size:12px!important; color:var(--stake-muted)!important; opacity:1!important; font-weight:400!important; }
  body.staking-prototype #precisionModal .precisionchoice button span { font:400 12px/1.5 var(--stake-font-mono)!important; color:var(--stake-info)!important; opacity:1!important; }
  body.staking-prototype #precisionModal .precisionmetrics { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; }
  body.staking-prototype #precisionModal .precisionmetrics > div { background:var(--stake-soft)!important; border:1px solid var(--stake-line)!important; border-radius:4px!important; padding:10px 12px!important; }
  body.staking-prototype #precisionModal .precisionmetrics b { font:400 12px/1.5 var(--stake-font-ui)!important; color:var(--stake-muted)!important; text-transform:none!important; }
  body.staking-prototype #precisionModal .precisionmetrics span { font:500 17px/1.5 var(--stake-font-mono)!important; color:var(--stake-text)!important; }
  body.staking-prototype #precisionModal .precisionstatus strong { color:var(--stake-text)!important; }
  body.staking-prototype #precisionModal :is(.precisionstatus span,.precision-note,.precision-note b) { color:var(--stake-muted)!important; }
  body.staking-prototype #precisionModal .precisionbar { background:var(--stake-soft)!important; }
  body.staking-prototype #precisionModal .precisionbar i { background:var(--stake-info)!important; }
  body.staking-prototype #atlasProjects { width:min(860px,calc(100vw - 48px))!important; max-height:calc(100dvh - 96px)!important; border:1px solid var(--stake-line)!important; border-radius:8px!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; font-family:var(--stake-font-ui)!important; box-shadow:var(--stake-modal-shadow)!important; }
  body.staking-prototype #atlasProjects::backdrop { background:var(--stake-scrim)!important; backdrop-filter:none!important; }
  body.staking-prototype #atlasProjects header { position:static!important; inset:auto!important; height:auto!important; min-height:54px; max-height:none!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; border-bottom:1px solid var(--stake-line)!important; padding:16px 20px!important; }
  body.staking-prototype #atlasProjects header h2 { font:600 17px/1.35 var(--stake-font-ui)!important; color:var(--stake-text)!important; margin:4px 0!important; }
  body.staking-prototype #atlasProjects header :is(small,p) { color:var(--stake-muted)!important; }
  body.staking-prototype #atlasProjects .ap-body { padding:20px!important; }
  body.staking-prototype #atlasProjects :is(.ap-save,.ap-local,article) { border:1px solid var(--stake-line)!important; border-radius:4px!important; background:var(--stake-soft)!important; padding:16px!important; }
  body.staking-prototype #atlasProjects :is(h3,h4,label) { color:var(--stake-text)!important; font-family:var(--stake-font-ui)!important; }
  body.staking-prototype #atlasProjects :is(p,small,.ap-empty,#apCurrent) { color:var(--stake-muted)!important; }
  body.staking-prototype #atlasProjects input { border-color:var(--stake-border-strong)!important; color:var(--stake-text)!important; background:var(--stake-surface)!important; border-radius:4px!important; font-family:var(--stake-font-ui)!important; }
  body.staking-prototype #atlasProjects button { border-radius:4px!important; border-color:var(--stake-border-strong)!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; font-family:var(--stake-font-ui)!important; font-weight:500!important; }
  body.staking-prototype #atlasProjects .ap-primary { background:var(--stake-accent)!important; border-color:var(--stake-accent)!important; color:#14100a!important; }
  body.staking-prototype #atlasProjects #apStatus { color:var(--stake-active-text)!important; }
  body.staking-prototype #atlasNotificationsDialog { border-radius:8px!important; box-shadow:var(--stake-modal-shadow)!important; font-family:var(--stake-font-ui)!important; }
  body.staking-prototype #atlasNotificationsDialog .an-head { padding:16px 20px!important; border-bottom:1px solid var(--stake-line)!important; }
  body.staking-prototype #atlasNotificationsDialog .an-head h2 { font:600 17px/1.35 var(--stake-font-ui)!important; }
  body.staking-prototype #atlasNotificationsDialog .an-content { padding:20px!important; }
  body.staking-prototype #navPanel { border-radius:8px!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; border-color:var(--stake-line)!important; box-shadow:var(--stake-modal-shadow)!important; }
  body.staking-prototype #navPanel :is(b,strong) { color:var(--stake-text)!important; }
  body.staking-prototype #navPanel :is(span,small) { color:var(--stake-muted)!important; }
  body.staking-prototype #navPanel .gnssprecision { background:var(--stake-soft)!important; border-color:var(--stake-line)!important; border-radius:4px!important; }
  body.staking-prototype #navPanel .gnssprecision :is(span,small) { color:var(--stake-muted)!important; }
  body.staking-prototype #navPanel .gnssprecision .precision-good { color:var(--stake-success)!important; }
  body.staking-prototype #navPanel .gnssprecision .precision-low { color:var(--stake-danger)!important; }
  body.staking-prototype ::-webkit-scrollbar { width:10px; height:10px; }
  body.staking-prototype ::-webkit-scrollbar-thumb { background:var(--stake-border-strong); border-radius:6px; border:3px solid var(--stake-surface); }
}
@media screen and (max-width:900px) {
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace,
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace[data-staking-view="pq"] { inset:auto 8px calc(70px + env(safe-area-inset-bottom,0px))!important; width:auto!important; height:auto!important; max-height:65dvh!important; transform:none!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .workspace-head { padding:12px 16px!important; flex-wrap:wrap!important; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace .workspace-head-actions { flex:1 0 100%!important; margin-left:0!important; }
  body.staking-prototype #workspace #stakingWorkflowTabs { margin:12px 16px 0!important; flex-wrap:nowrap; overflow-x:auto; flex:0 0 auto; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace #stakingWorkflowTabs button { font-size:12px!important; min-height:44px!important; height:44px!important; padding:10px 12px!important; flex:0 0 auto; }
  body.staking-prototype #workspace .staking-workflow-content { padding:16px!important; }
  body.staking-prototype #workspace .staking-acquisition-grid { grid-template-columns:1fr; }
  body.staking-prototype #workspace .staking-acquire-action { flex-direction:column; align-items:stretch; gap:10px; }
  body.staking-prototype #workspace .staking-metrics-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.staking-prototype #workspace .staking-modal-footer { padding:12px 16px; }
  body.atlas-shell-staking.staking-advanced.staking-prototype #workspace :is(button,input,select):not(.mac-window-dot):not([data-staking-view]):not([data-precision-method]) { min-height:44px!important; }
  body.staking-prototype #workspace :is(input,select) { font-size:16px!important; }
  body.staking-prototype #workspace .triggrid { grid-template-columns:1fr; }
  body.staking-prototype #workspace .pointlist td button { min-width:44px!important; }
  body.staking-prototype :is(#intro,#precisionModal,#editModal) { padding:12px!important; }
  body.staking-prototype :is(#intro,#precisionModal,#editModal) .modalcard { max-height:calc(100dvh - 24px)!important; }
  body.staking-prototype #precisionModal .precisionchoice { grid-template-columns:1fr!important; }
  body.staking-prototype #precisionModal .precisionmetrics { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  body.staking-prototype .modalcard button, body.staking-prototype #atlasProjects button { min-height:44px!important; }
  body.staking-prototype .modalcard input { min-height:44px; font-size:16px; }
  body.staking-prototype #atlasProjects { width:calc(100vw - 24px)!important; max-height:calc(100dvh - 24px)!important; }
}


@media screen {
  body.staking-prototype .atlas-shared-header { font-family:var(--stake-font-ui)!important; }
  body.staking-prototype:not(.staking-workspace-collapsed) main::before { content:''; position:fixed; inset:52px 0 32px 60px; z-index:1400; background:var(--stake-scrim); pointer-events:none; }
  body.staking-prototype:has(#workspace[data-staking-view="pq"]) main::before,
  body.staking-prototype:has(.modal:not(.hidden)) main::before,
  body.staking-prototype:has(#atlasProjects[open]) main::before,
  body.staking-prototype:has(#navPanel.show) main::before { display:none; }
  body.staking-prototype .modalcard :is(.introicon,.intro-icon) { display:none!important; }
  body.staking-prototype :is(button,input,select) { transition:background-color 120ms ease,color 120ms ease,border-color 120ms ease; }
  body.staking-prototype #navPanel button { border:1px solid var(--stake-border-strong)!important; border-radius:4px!important; background:var(--stake-surface)!important; color:var(--stake-text)!important; }
  body.staking-prototype #navPanel .gnssprecision .precision-medium { color:var(--stake-active-text)!important; }
}
@media screen and (min-width:901px) {
  body.atlas-shell-staking.staking-advanced.staking-prototype:has(#navPanel.show) #workspace { left:72px!important; top:64px!important; width:min(460px,calc(100vw - 420px))!important; transform:none!important; }
}
@media screen and (max-width:900px) {
  body.staking-prototype:not(.staking-workspace-collapsed) main::before { inset:56px 0 66px; }
}
@media (prefers-reduced-motion:reduce) { body.staking-prototype :is(button,input,select) { transition:none!important; } }

