/* Application navigation. Overlapping cards stay opaque; details use normal flow. */
.navigation-dock { --dock-heading-height:80px; display:grid; grid-template-columns:320px minmax(0,1fr); gap:0 21px; padding:10px 0 14px; color:var(--ink,#213146); }
.navigation-dock *, .navigation-dock *::before, .navigation-dock *::after { box-sizing:border-box; }
.dock-flow { min-width:0; }
.dock-caption { display:flex; align-items:flex-end; height:var(--dock-heading-height); margin:0 0 18px; line-height:18px; font-size:11px; font-weight:600; color:var(--ink-muted,#506379); }
.dock-current { position:relative; display:flex; flex-direction:column; justify-content:center; max-width:100%; height:84px; padding:5px 34px 5px 11px; border:2px solid var(--dock-ink,#183654); border-radius:9px; background:var(--dock-color,var(--surface-subtle,#eef2f6)); color:var(--dock-ink,var(--ink,#213146)); }
.dock-current h2, .dock-title { margin:0 0 4px; font-size:13px; line-height:17px; font-weight:650; }
.dock-description { font-size:12px; line-height:16px; }
.dock-description > span { display:block; }
.dock-heading { display:flex; align-items:flex-start; justify-content:space-between; height:var(--dock-heading-height); gap:12px; margin-bottom:4px; }
.dock-preview { min-width:0; }
.dock-preview-title { display:block; margin:0 0 4px; font-size:13px; line-height:17px; }
.dock-preview-description { color:var(--ink-muted,#607187); }
.dock-controls { flex-shrink:0; }
.dock-controls { display:flex; gap:5px; align-self:flex-start; }
.dock-controls button { width:30px; height:30px; padding:0; border:1px solid var(--border,#d8e1ed); border-radius:5px; background:var(--surface,#fff); color:var(--ink,#425a79); font-size:18px; cursor:pointer; }
.dock-controls button:disabled { color:var(--ink-faint,#8190a3); cursor:default; }
.dock-ribbon { position:relative; isolation:isolate; overflow:visible; padding:10px 3px 12px; height:110px; }
.dock-card { position:absolute; left:calc(3px + var(--dock-x,0px)); bottom:12px; z-index:var(--dock-depth,1); width:var(--dock-width,320px); height:var(--dock-height,84px); border:2px solid transparent; border-radius:9px; background:var(--dock-color); color:var(--dock-ink); box-shadow:-3px 0 8px #152a4420,3px 0 8px #152a4420; }
.dock-card.is-expanded { box-shadow:0 6px 14px #152a442b,0 0 0 1px #ffffff80; }
.dock-card:is(.is-selected,.is-preview) { border-color:currentColor; }
.dock-link, .dock-link:visited, .dock-link:hover { display:flex; flex-direction:column; justify-content:center; width:100%; height:100%; padding:5px 34px 5px 11px; border:0; border-radius:7px; text-align:left; background:transparent; color:inherit; text-decoration:none; overflow:hidden; }
.dock-link:focus-visible { outline:2px solid currentColor; outline-offset:-4px; }
.dock-metric { font-size:13px; line-height:18px; font-weight:650; }
.dock-sub { margin-top:2px; font-size:11px; line-height:14px; }
.dock-card .dock-description { display:none; }
.dock-card:not(.is-expanded) :is(.dock-title,.dock-metric,.dock-sub,.dock-description) { display:none; }
.dock-peek { position:absolute; left:calc(var(--dock-copy-x,0px) + 7px); top:50%; transform:translateY(-50%); width:calc(var(--dock-reveal,70px) - 18px); text-align:center; font-size:11px; line-height:14px; font-weight:650; overflow-wrap:anywhere; }
.dock-peek small { display:block; margin-top:5px; font-size:10px; line-height:12px; font-weight:400; font-variant-numeric:tabular-nums; }
.is-expanded .dock-peek { display:none; }
.dock-selected-mark { position:absolute; bottom:1px; left:calc(var(--dock-copy-x,0px) + var(--dock-reveal,70px)/2 - 7px); font-size:12px; font-weight:700; pointer-events:none; }
.is-selected:not(.is-expanded) .dock-peek { top:calc(50% - 6px); }
.is-selected.is-expanded .dock-selected-mark { left:auto; right:30px; bottom:4px; }
.dock-info { position:absolute; right:3px; top:3px; width:25px; height:25px; display:grid; place-items:center; padding:0; border:0; border-radius:5px; background:transparent; color:inherit; cursor:pointer; }
.dock-info span { display:grid; place-items:center; width:15px; height:15px; border:1px solid currentColor; border-radius:50%; font:700 10px Georgia,serif; }
.dock-info:hover { background:#ffffff40; }
.dock-info:focus-visible { outline:2px solid currentColor; outline-offset:-2px; }
.dock-card:not(.is-expanded) .dock-info { visibility:hidden; }
.dock-info:is([data-severity="warning"],[data-severity="critical"]) span { border:0; border-radius:3px; color:#fff; background:#b45309; font:800 11px Arial,sans-serif; }
.dock-info[data-severity="critical"] span { background:#991b1b; }
.dock-card.has-alert:not(.is-expanded) .dock-info { visibility:visible; top:0; left:calc(var(--dock-copy-x,0px) + var(--dock-reveal,70px) - 30px); right:auto; }
.dock-card.has-alert:not(.is-expanded) .dock-peek small { display:none; }
.dock-card.has-alert:not(.is-expanded) .dock-peek { top:calc(50% + 3px); }
.dock-hint { margin:1px 0 0; font-size:11px; line-height:1.5; color:var(--ink-muted,#61718a); }
.navigation-dock.dock-stacked { grid-template-columns:minmax(0,1fr); row-gap:10px; }
.dock-stacked .dock-caption { height:auto; margin-bottom:6px; }
.dock-wrapped .dock-ribbon { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr)); align-items:stretch; height:auto; gap:9px; }
.dock-wrapped .dock-card { position:relative; left:auto; bottom:auto; z-index:auto; width:100%; height:auto; min-height:84px; box-shadow:none; }
.dock-wrapped .dock-card.is-hovered { transform:scale(1.025); z-index:20; box-shadow:0 5px 12px #152a442b; }
.dock-wrapped .dock-card.is-neighbor { transform:scale(1.012); z-index:10; }
.dock-wrapped .dock-current { height:auto; min-height:84px; }
.dock-panels { grid-column:1/-1; min-width:0; }
.dock-metric-panel { margin-top:12px; padding:16px 18px; border:1px solid var(--border,#d9e2ed); border-radius:8px; background:var(--surface-subtle,#f8fafd); }
.dock-panel-heading { display:flex; justify-content:space-between; gap:18px; }
.dock-metric-panel h3 { margin:3px 0 9px; font-size:16px; font-weight:650; }
.dock-metric-panel p { margin:7px 0; color:var(--ink-muted,#4e6077); font-size:13px; line-height:1.6; max-width:900px; }
.dock-metric-panel .dock-kicker { margin:0; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.dock-metric-panel .dock-values { font-weight:650; }
.dock-metric-panel .dock-warning { padding:9px 12px; border-left:3px solid var(--warning-border,#b47a25); background:var(--warning-surface,#fff6e5); color:var(--warning-ink,#704b16); }
.dock-metric-panel[data-severity="critical"] .dock-warning { border-left-color:var(--danger-border,#991b1b); background:var(--danger-surface,#fee2e2); color:var(--danger-ink,#7f1d1d); }
.dock-close { width:28px; height:28px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--ink-muted,#63738a); font-size:22px; cursor:pointer; }
.dock-announcer { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
html[data-theme="dark"] .navigation-dock :is(.dock-card,.dock-current) { --dock-ink:#e6edf5!important; }
@media (prefers-reduced-motion:no-preference) {
  .dock-ready .dock-card { transition:left 280ms cubic-bezier(.2,.75,.25,1),width 280ms cubic-bezier(.2,.75,.25,1),height 280ms ease,transform 280ms ease,box-shadow 280ms ease; }
  .dock-ready.dock-wrapped .dock-card { transition:transform 280ms ease,box-shadow 280ms ease; }
  .dock-ready .dock-card.is-preview { animation:dock-card-in 300ms cubic-bezier(.2,.75,.25,1) both; }
  .dock-ready .is-preview .dock-link > :not(.dock-peek) { animation:dock-copy-in 200ms 80ms both; }
}
@keyframes dock-card-in { from { translate:0 6px; } to { translate:0 0; } }
@keyframes dock-copy-in { from { transform:translateX(6px); } to { transform:translateX(0); } }
@media (pointer:coarse) {
  .dock-info,.dock-controls button { width:44px; height:44px; }
  .dock-link,.dock-current { padding-right:46px; }
  .dock-close { width:44px; height:44px; }
  .dock-caption { margin-bottom:4px; }
}

.dock-content { display:contents; }
.dock-link .dock-title, .dock-link .dock-metric, .dock-link .dock-sub { color:inherit; }
.dock-link .dock-sub { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dock-metric-panel p { overflow-wrap:anywhere; }
