/* The source drawing's blue stack, inside the existing panel typography. */
.ab { --ab-navy:#09143d; --ab-blue:#0963d8; --ab-line:#b6cceb; --ab-ink:#172b4d; --ab-pale:#edf4ff; color:var(--text, var(--ab-ink)); width:100%; min-width:0; font-family:var(--font-body,'DM Sans',sans-serif); }
.ab button, .ab input, .ab select, .ab textarea { font:inherit; }
.ab button { min-height:38px; padding:7px 11px; border:1px solid var(--border,#c4cfdf); border-radius:5px; color:var(--text,var(--ab-ink)); background:var(--surface,#fff); cursor:pointer; font-size:12px; }
.ab button:hover:not(:disabled) { border-color:var(--ab-blue); color:var(--ab-blue); }
.ab button:disabled { opacity:.45; cursor:default; }
.ab button:focus-visible, .ab input:focus-visible, .ab select:focus-visible, .ab textarea:focus-visible, .ab [tabindex]:focus-visible { outline:3px solid #67a6ff; outline-offset:2px; }
.ab-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 0; border-bottom:1px solid var(--border,#d8e1ee); }
.ab-tools { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.ab-export { margin-left:auto; }
.ab button.ab-propose, .ab button.ab-primary { color:#fff; background:var(--ab-blue); border-color:var(--ab-blue); }
.ab button.ab-propose:hover:not(:disabled), .ab button.ab-primary:hover:not(:disabled) { color:#fff; background:#0753b7; }
.ab-status { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:9px 0 4px; font-size:11px; color:var(--muted,#5e6e85); }
.ab-status .is-error, .ab-error { color:#b13525; }
.ab-legend { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.ab-legend i { width:12px; height:10px; display:inline-block; border:1px solid var(--ab-line); background:var(--ab-pale); margin-left:7px; }
.ab-legend .ab-draft-mark { background:#fff6e9; border:2px dashed #a45206; }
.ab-legend .ab-proposed-mark { background:#f4eeff; border:2px dashed #6a43ac; }
.ab-guidance { margin:3px 0 12px; font-size:12px; color:var(--muted,#526987); max-width:100%; }
.ab-placement { padding:8px 10px; font-size:12px; background:#fff6e9; border-left:3px solid #a45206; color:#754105; margin:8px 0 12px; }
.ab-workspace { display:grid; grid-template-columns:minmax(0,1fr) 260px; border:1px solid var(--border,#d8e1ee); border-radius:5px; overflow:hidden; align-items:start; }
.ab-canvas-column { min-width:0; background:var(--surface,#f7faff); }
.ab-canvas-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:8px; min-height:48px; border-bottom:1px solid var(--border,#d8e1ee); }
.ab-canvas-tools button { min-height:30px; padding:3px 10px; }
.ab-canvas-tools span, .ab-canvas-tools label { font-size:11px; color:var(--muted,#526987); }
.ab-canvas-tools label { display:flex; align-items:center; gap:5px; margin-left:8px; }
.ab-key-hint { margin-left:auto; }
.ab-stage { min-width:0; max-height:76vh; min-height:420px; overflow:auto; padding:12px; background:#f0f4fb; overscroll-behavior:contain; touch-action:pan-x pan-y; }
.ab-canvas { background:#fff; box-shadow:0 2px 12px #0a234b12; }
.ab-svg { display:block; max-width:none; touch-action:none; user-select:none; -webkit-user-select:none; }
.ab-svg .ab-node { cursor:grab; touch-action:none; }
.ab-svg .ab-node:active { cursor:grabbing; }
.ab-svg [data-resize] { cursor:nwse-resize; touch-action:none; }
.ab-svg [data-edge] { cursor:pointer; }
.ab-svg .ab-node:focus-visible > rect:first-of-type { stroke:#0963d8; stroke-width:4px; }
.ab-inspector { border-left:1px solid var(--border,#d8e1ee); padding:14px; min-width:0; max-height:calc(76vh + 48px); overflow:auto; font-size:12px; }
.ab-inspector h3, .ab-history h3 { font-family:var(--font-display,'Manrope',sans-serif); font-size:14px; font-weight:700; margin:0 0 12px; }
.ab-inspector-title { display:flex; align-items:start; gap:6px; justify-content:space-between; }
.ab-inspector-title h3 { margin-bottom:8px; }
.ab-stage-chip { font-size:10px; padding:2px 5px; border-radius:3px; background:#edf4ff; color:#385474; text-transform:capitalize; }
.ab-stage-chip.draft { background:#fff1d9; color:#8a4700; }
.ab-stage-chip.proposed { background:#f0e6ff; color:#6a43ac; }
.ab-inspector label { display:block; margin:10px 0; font-size:11px; font-weight:600; }
.ab-inspector input, .ab-inspector select, .ab-inspector textarea { width:100%; min-height:36px; padding:7px; border:1px solid var(--border,#c4cfdf); border-radius:4px; margin-top:5px; background:var(--surface,#fff); color:var(--text,#172b4d); font-size:12px; }
.ab-inspector textarea { resize:vertical; }
.ab-record-link { display:inline-block; margin-bottom:10px; color:var(--link,#0963d8); font-size:12px; }
.ab-muted { color:var(--muted,#64748b); font-size:11px; line-height:1.5; }
.ab-geometry { margin:16px 0 12px; padding:8px; border:1px solid var(--border,#d8e1ee); display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.ab-geometry legend { font-size:10px; padding:0 4px; color:var(--muted,#64748b); }
.ab-geometry label { margin:0; }
.ab-inspector details { margin-top:14px; padding-top:12px; border-top:1px solid var(--border,#d8e1ee); }
.ab-inspector summary { cursor:pointer; font-weight:600; line-height:1.5; }
.ab-inspector button.ab-remove { margin-top:15px; color:var(--danger,#9a342d); }
.ab-draft-list ol { margin:10px 0; padding-left:18px; }
.ab-draft-list li { margin-bottom:5px; font-size:11px; }
.ab-draft-list li button { padding:0 7px; min-height:26px; margin-left:6px; }
.ab-unplaced ul { list-style:none; padding:0; margin:8px 0; max-height:300px; overflow:auto; }
.ab-unplaced li { display:flex; align-items:center; gap:6px; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--border,#d8e1ee); cursor:grab; }
.ab-unplaced li span { min-width:0; overflow-wrap:anywhere; font-size:11px; }
.ab-unplaced li button { padding:3px 7px; min-height:30px; flex-shrink:0; }
.ab-history { margin-top:15px; padding:15px; border:1px solid var(--border,#d8e1ee); }
.ab-history ol { list-style:none; margin:0; padding:0; }
.ab-history li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:7px 0; border-bottom:1px solid var(--border,#d8e1ee); font-size:12px; }
@media(max-width:1100px) { .ab-workspace { grid-template-columns:minmax(0,1fr); } .ab-inspector { border-left:0; border-top:1px solid var(--border,#d8e1ee); max-height:none; display:block; } .ab-stage { max-height:65vh; } .ab-inspector .ab-geometry { max-width:360px; } .ab-inspector form { max-width:500px; } .ab-unplaced ul { max-height:220px; } .ab-key-hint { display:none; } }
@media(pointer:coarse) { .ab button { min-height:44px; } .ab-canvas-tools button { min-height:40px; } .ab-inspector input,.ab-inspector select,.ab-inspector textarea { min-height:44px; font-size:16px; } .ab-unplaced li button { min-height:44px; } }
@media(max-width:600px) { .ab-toolbar { gap:7px; } .ab-export { margin-left:0; } .ab-toolbar .ab-tools { gap:4px; } .ab button { padding:7px 9px; } .ab-stage { min-height:300px; } .ab-status { gap:6px; } }
@media(prefers-reduced-motion:reduce) { .ab * { scroll-behavior:auto; transition:none!important; } }
.ab-unsaved { padding:12px; margin:10px 0; border:1px solid #a45206; background:#fff6e9; color:#754105; font-size:12px; }
.ab-unsaved strong { display:block; margin-bottom:4px; }
.ab-unsaved ul { max-height:120px; overflow:auto; }
.ab-proposals > div { padding:10px 0; border-bottom:1px solid var(--border,#d8e1ee); }

/* AGENTIC-162: FSN's board is Praful's drawing. It opens fitted to the window, its tools never pass the page's right edge, and its
   full screen view gives the whole window to the diagram (the panel's sidebar, top bar, product bar and the inspector step aside). */
.ab { box-sizing:border-box; padding-right:12px; }
.ab *, .ab *::before, .ab *::after { box-sizing:border-box; }
.ab-workspace { grid-template-columns:minmax(0,1fr) minmax(220px,260px); }
.ab-stage { max-height:none; }
.ab-drawing-board .ab-stage { background:#e9eef6; }
.ab-drawing-board .ab-canvas { box-shadow:0 1px 6px #0a234b1f; }
.ab-svg.ab-drawing .ab-drawn { cursor:grab; }
.ab-svg.ab-drawing [data-board-link] { cursor:pointer; }
.ab-svg.ab-drawing [data-board-link]:hover text, .ab-svg.ab-drawing [data-board-link]:focus text { text-decoration:underline; }
.ab-canvas-tools .ab-full-toggle { margin-left:6px; }
.ab-binding { margin:0 0 6px; font-size:12px; line-height:1.45; }
.ab-binding.is-missing { color:#754105; }
.ab-unbound ul { list-style:none; padding:0; margin:8px 0; max-height:220px; overflow:auto; }
.ab-unbound li button { width:100%; text-align:left; min-height:30px; padding:4px 8px; margin:2px 0; font-size:11px; }
body.ab-has-full .sidebar, body.ab-has-full .topbar, body.ab-has-full .agd-bar, body.ab-has-full .prd-pillar-links { display:none !important; }
body.ab-has-full { overflow:hidden; }
.ab.ab-full { position:fixed; inset:0; z-index:1000; display:flex; flex-direction:column; padding:0; background:#fff; }
.ab.ab-full > .ab-toolbar, .ab.ab-full > .ab-status, .ab.ab-full > .ab-guidance, .ab.ab-full > .ab-placement, .ab.ab-full > .ab-unsaved, .ab.ab-full > .ab-history, .ab.ab-full .ab-inspector { display:none; }
.ab.ab-full .ab-workspace { flex:1; min-height:0; display:block; border:0; border-radius:0; }
.ab.ab-full .ab-canvas-column { height:100%; display:flex; flex-direction:column; }
.ab.ab-full .ab-canvas-tools { border-bottom:1px solid var(--border,#d8e1ee); }
.ab.ab-full .ab-stage { flex:1; min-height:0; }
.ab.ab-full .ab-key-hint { display:none; }
@media(max-width:1100px) { .ab-workspace { grid-template-columns:minmax(0,1fr); } }
.ab-placement-chip { flex:1 1 auto; min-width:0; padding:2px 8px; border-left:3px solid #a45206; background:#fff6e9; color:#754105; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ab-status { align-items:center; }
.ab-canvas { margin:0 auto; }
.ab-scope-links { display:flex; gap:8px 18px; flex-wrap:wrap; padding:8px 12px; border-bottom:1px solid var(--border,#d8e1ee); font-size:12px; }
.ab-scope-links a { color:var(--link,#225f9c); }

.ab-source-mark { border:1px dashed #7a8694; background:transparent; }
.ab-stage-chip.source { color:#526580; background:#edf1f5; }
.ab-current-meaning { white-space:pre-wrap; font-size:12px; line-height:1.5; }
