* { box-sizing: border-box }
[hidden] { display: none !important }
:root {
    color-scheme: light;
    --bg: #f7f7f8;
    --surface: #fff;
    --surface-alt: #f0eff2;
    --edge: #dcd9e3;
    --text: #292631;
    --subtext: #6e6979;
    --accent: #7455a7;
    --accent-soft: #efebf6;
    --fault: #a03a23;
    font: 12px system-ui, sans-serif;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #1d1b24;
    --surface: #25222d;
    --surface-alt: #302c38;
    --edge: #494351;
    --text: #ece8f2;
    --subtext: #c2b8cd;
    --accent: #c09be9;
    --accent-soft: #392f49;
    --fault: #ff9c76;
}
body { margin: 0; color: var(--text); background: var(--bg) }
button, input, select { font: inherit; color: inherit }
button {
    cursor: pointer;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: var(--surface-alt);
    padding: 6px 9px;
}
button:disabled { cursor: default; opacity: .55 }
button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent) }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.app { --rail-width: 61px; --panel-width: 235px; min-height: 100dvh }
.sidewrap {
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--rail-width);
    z-index: 40;
    border-right: 1px solid var(--edge);
    background: var(--surface);
}
.panel-expanded .sidewrap { width: calc(var(--rail-width) + var(--panel-width)) }
.sidewrap:not([hidden]) ~ .shell { margin-left: var(--rail-width) }
.panel-expanded .sidewrap:not([hidden]) ~ .shell { margin-left: calc(var(--rail-width) + var(--panel-width)) }
.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.with-icon, .icon-button, .railitem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.icon-button { width: 36px; min-height: 36px; padding: 0 }
.rail {
    display: flex;
    flex: 0 0 var(--rail-width);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 12px 7px 14px;
    overflow: auto;
    background: var(--surface-alt);
}
.railbrand, .railitem, .navtab, .tool-link { color: var(--subtext); text-decoration: none }
.railbrand { display: grid; place-items: center; min-height: 48px }
.railbrand img { width: 36px; height: 36px; object-fit: contain }
#module-rail, .railbottom { display: grid; gap: 4px }
.railitem { min-height: 41px; border-radius: 4px }
.railitem:first-child { margin-bottom: 30px }
.railitem:nth-child(n+5) { margin-top: 12px }
.railbottom { margin-top: auto; text-align: center; color: var(--subtext); font-size: 11px }
.railbottom .icon-button { width: 100%; min-height: 42px }
.railitem[aria-current], .railitem:hover, .navtab:hover, .navtab[aria-current] { background: var(--accent-soft); color: var(--accent) }
.sidedetail { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 14px 11px 12px; overflow: auto }
.sidetitle { display: flex; align-items: center; justify-content: space-between }
.sidesection { margin: 16px 0 7px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase }
.navtab { display: flex; justify-content: flex-start; min-height: 36px; padding: 0 8px; border-radius: 4px }
.sidefoot { margin-top: auto; padding-top: 15px; color: var(--subtext); font-size: 10px }
.sideoverlay { position: fixed; inset: 0; z-index: 35; border: 0; background: #10102070 }
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 57px;
    padding: 0 clamp(9px, 1.65vw, 24px);
    border-bottom: 1px solid var(--edge);
    background: var(--surface);
}
@media (min-width: 1024px) {
    .shell:has([data-screen="overview"]) > .top { min-height: 48px }
}
.toptools { display: flex; align-items: center; gap: 6px; color: var(--subtext) }
.toptools button { border-color: transparent; background: transparent }
.pagebrand { font-size: 12px; color: var(--subtext) }
#nav-toggle { display: none }
#nav-toggle[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent) }
#account { position: relative }
#account summary { display: flex; align-items: center; gap: 5px; cursor: pointer; min-height: 36px; padding: 0 4px }
#account summary::after { content: ''; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin: -3px 2px 0 }
#account #logout { position: absolute; right: 0; z-index: 30; background: var(--surface); border-color: var(--edge) }
main { min-width: 0; padding: 16px clamp(12px, 2.65vw, 38px) }
main:has([data-screen="topology"]) { padding-inline: clamp(9px, 1.65vw, 24px) }
h1, h2 { margin: 0; font-weight: 650 }
h2 { font-size: 16px }
p { color: var(--subtext) }
.access, .card {
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: var(--surface);
    padding: 16px;
}
.access { width: min(100%, 400px); margin: 5vh auto }
.access label { display: block; margin: 12px 0; color: var(--subtext) }
.access input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid var(--edge);
    border-radius: 5px;
    background: var(--bg);
}
.access output { display: block; overflow-wrap: anywhere; padding: 9px; margin-top: 10px; background: var(--surface-alt) }
#mfa-qr { display: block; max-width: 100%; height: auto; margin: 8px 0 12px; image-rendering: pixelated }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .12em; font-weight: 700 }
.ui41u-heading, .ui41u-title, .section-title { display: flex; align-items: center; gap: 6px }
.ui41u-heading { justify-content: space-between; margin: 0 0 9px; gap: 14px }
.ui41u-title { min-width: 0; flex-wrap: wrap; gap: 8px }
.ui41u-title h1 { font-size: clamp(20px, 2.1vw, 32px); letter-spacing: -.025em }
[data-screen="overview"] .ui41u-title h1, [data-screen="topology"] .ui41u-title h1 { font-size: 20px; letter-spacing: 0 }
[data-screen="inventory"] .ui41u-title h1, [data-screen="models"] .ui41u-title h1, [data-screen="relations"] .ui41u-title h1 { font-size: 24px }
#page-scope { flex-wrap: wrap; grid-column: 1 / -1 }
#page-scope p { margin: 0; overflow-wrap: anywhere }
#page-scope select { max-width: min(245px, 66vw); text-overflow: ellipsis }
#site-plan { position: relative }
.ui41u-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(410px, 42vw);
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: var(--surface-alt);
    color: var(--subtext);
}
.ui41u-search input { width: 100%; min-width: 0; border: 0; background: transparent }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden }
.v41d-workspace {
    --ed-bg: var(--surface);
    --ed-soft: var(--surface-alt);
    --ed-ink: var(--text);
    --ed-muted: var(--subtext);
    --ed-border: var(--edge);
    --ed-violet: var(--accent);
    position: relative;
}
.v41d-tools { display: flex; align-items: center; flex-wrap: wrap; border: 1px solid var(--ed-border); background: var(--ed-bg) }
#plan-model-picker { display: inline-flex; align-items: center; gap: 4px; min-width: 0 }
#plan-model { max-width: min(180px, 48vw) }
#plan-status { min-height: 1.3em; margin: 0 2px }
.at-zoom { display: flex; align-items: center; gap: 5px; margin-left: auto }
#zoom-level { min-width: 42px; text-align: center; font-size: 11px; color: var(--subtext) }
.v41d-viewport {
    height: max(320px, calc(100dvh - 180px));
    overflow: auto;
    border: 1px solid var(--ed-border);
    overscroll-behavior: contain;
    touch-action: none;
    cursor: grab;
}
.v41d-viewport:active { cursor: grabbing }
.v41d-sizing { margin-inline: auto }
.v41d-scene { position: relative; transform-origin: top left }
.v41d-background, .v41d-cablelayer, #plan-devices { position: absolute; inset: 0 }
.v41d-cablelayer { width: 100%; height: 100%; z-index: 2; pointer-events: none }
.v41d-wireline { fill: none; stroke: var(--plan-jack-edge); stroke-linecap: round; stroke-linejoin: round }
.plan-wire-preview { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; pointer-events: none }
.v41d-wirehit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer }
.v41d-route[data-state="unknown"] .v41d-wireline { stroke-dasharray: 4 3 }
.v41d-route[data-kind="interface-link"] .v41d-wireline { stroke: var(--accent); stroke-dasharray: 2 4 }
.v41d-route[data-state="down"] .v41d-wireline { stroke: var(--fault); stroke-dasharray: 5 3 }
.v41d-route.picked .v41d-wireline, .v41d-route:focus .v41d-wireline { stroke: var(--accent); stroke-width: 3.5 }
#plan-devices { pointer-events: none }
.at-workspace .v41d-device {
    position: absolute;
    width: 222px;
    height: 72px;
    border: 1px solid #aaa3b3;
    color: var(--ed-ink);
    pointer-events: auto;
    cursor: default;
}
.at-workspace .plan-rack {
    z-index: 1;
    background: repeating-linear-gradient(to bottom, var(--surface-alt) 0 41px, var(--edge) 41px 42px) 0 31px / 100% 100%;
    border: 2px solid var(--subtext);
}
.at-workspace .plan-shelf {
    z-index: 2;
    background: var(--accent-soft);
    border: 1px dashed var(--accent);
    border-bottom: 5px solid var(--accent);
}
.at-workspace .plan-device { z-index: 3 }
.at-workspace .plan-rack .v41d-grab { min-height: 30px; background: var(--surface) }
.at-workspace .plan-shelf .v41d-grab {
    position: absolute;
    right: 0;
    bottom: 2px;
    background: var(--surface);
}
.at-workspace .plan-shelf:hover, .at-workspace .plan-shelf:focus-within { z-index: 4 }
.at-workspace .plan-shelf :is(.plan-move, .plan-resize) { right: -32px }
.at-workspace .plan-device[data-shelf] { border-bottom: 4px solid var(--accent) }
.at-workspace .plan-units { font-size: 11px; white-space: nowrap }
.at-workspace .v41d-grab { max-width: calc(100% - 32px); overflow: hidden }
.at-workspace .v41d-dname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.at-workspace .plan-auto-position { flex: 0 0 auto; font-size: 10px; color: var(--subtext) }
.at-workspace:not(.editing) .v41d-grab { max-width: 100% }
.at-workspace:not(.editing) .v41d-dname { flex: 1 1 auto }
.at-workspace:not(.editing) :is(.v41d-portlabel, .v41d-fselect) { display: none }
.plan-move, .plan-resize {
    display: none;
    position: absolute;
    right: 0;
    min-width: 30px;
    min-height: 21px;
    padding: 0;
    line-height: 1;
    touch-action: none;
}
.editing:not(.plan-readonly) .plan-move, .editing:not(.plan-readonly) .plan-resize { display: block }
.plan-move { top: 0; cursor: move }
.plan-resize { bottom: 0; cursor: nwse-resize }
.plan-field { display: grid; gap: 3px; margin: 6px 0 }
.plan-field input, .plan-port-editor select { width: 100%; min-width: 0 }
form :is(input, select), .plan-field input, .plan-port-editor select, #plan-model {
    border: 1px solid var(--edge);
    border-radius: 5px;
    padding: 5px;
    background: var(--bg);
}
form :is(input, select) { max-width: 100% }
.collection-policy { display: grid; gap: 10px; max-width: 720px; margin-top: 18px }
.collection-policy :is(fieldset, details) { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--edge); border-radius: 4px }
.collection-policy label { display: inline-grid; gap: 4px; margin: 4px 8px 4px 0 }
.collection-policy input[type="number"] { width: 8rem }
.collection-policy button { justify-self: start }
.deployment-panel, .edge-panel { min-width: 0; overflow-wrap: anywhere }
.deployment-panel .collection-policy { grid-template-columns: minmax(0, 1fr) }
.deployment-panel :is(label, input, select, button) { min-width: 0; max-width: 100%; box-sizing: border-box }
.deployment-panel :is(input, select, button) { min-height: 40px }
.plan-port-editor { margin-top: 8px }
.at-workspace .v41d-port[data-type="wifi"], .at-workspace .v41d-port[data-type="cellular"],
.at-workspace .v41d-port[data-type="isp"], .at-workspace .v41d-port[data-type="logical"],
.at-workspace .v41d-port[data-type="virtual"] { border-radius: 50%; background: var(--accent-soft) }
.at-workspace .v41d-port[data-type="power"] { border-style: dotted }
.at-workspace .v41d-port[aria-pressed="true"] { outline: 3px solid var(--accent) }
.at-portbtn { min-height: 36px }
.editing .v41d-device { cursor: move }
.v41d-device.chosen { outline: 1.5px solid var(--plan-select) }
.v41d-device.is-dim { opacity: .28 }
.v41d-grab { display: flex; align-items: center; gap: 4px; padding: 4px 5px }
.v41d-portlabel, .v41d-fselect { padding: 1px 4px; font-size: 9px; line-height: 1.35; border-radius: 3px; white-space: nowrap }
.at-workspace .plan-port-bank .v41d-port { width: 14px; height: 10px }
.at-workspace .plan-port-bank .v41d-port[data-port-state="down"] { border-color: var(--fault); border-style: dashed }
.at-workspace .plan-port-bank .v41d-port[data-port-state="up"]::after { background: #43a680 }
.plan-device-note { position: absolute; left: 7px; bottom: 6px; font-size: 10px; color: var(--subtext); pointer-events: none }
.plan-device .plan-device-note { bottom: 21px; max-width: calc(100% - 38px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.plan-statusline { position: absolute; left: 7px; right: 7px; bottom: 4px; font-size: 10px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--subtext); pointer-events: none }
.plan-device:is([data-rack], [data-shelf]) .plan-statusline { position: static; flex: 0 1 90px; min-width: 0; font-size: 9px; line-height: 12px }
.plan-device[data-state="down"] { border-color: var(--fault) }
.plan-device[data-state="unknown"] .plan-statusline { font-style: italic }
.plan-detail-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px }
.v41d-workspace:not(.editing) #plan-preset { display: none }
.plan-caption { display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; color: var(--subtext); font-size: 11px; flex-wrap: wrap }
.at-panel {
    position: absolute;
    right: 9px;
    bottom: 38px;
    z-index: 6;
    width: min(370px, calc(100% - 18px));
    max-height: min(55dvh, 410px);
    overflow: auto;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: 6px;
    box-shadow: 0 4px 15px #0002;
}
.at-panel-head, .plan-tabs { display: flex; align-items: center; gap: 5px }
#inventory-tabs { flex-wrap: wrap }
.at-panel-head { justify-content: space-between; margin-bottom: 8px }
.at-panel-head h2 { font-size: 14px }
.at-panel-head button { padding: 1px 6px }
.at-portlist { display: flex; flex-wrap: wrap; gap: 4px }
.at-portbtn { text-align: left; margin-top: 4px; padding: 3px 5px }
.at-panel-body { margin-top: 7px }
.plan-reading { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 4px 10px }
.plan-reading dt { color: var(--subtext) }
.plan-reading dd { margin: 0; overflow-wrap: anywhere }
.section-title { justify-content: space-between }
.scroll { overflow: auto }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap }
th, td { padding: 7px 9px; border-bottom: 1px solid var(--edge) }
th { color: var(--subtext); background: var(--surface-alt); font-weight: 600 }
#feedback { color: var(--fault) }
#recovery { margin-bottom: 8px; overflow-wrap: anywhere }
.workspace-summary { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 18px }
.workspace-summary dd { margin: 0; font-weight: 600 }
.home-filters { display: flex; align-items: center; gap: 8px; padding: 12px; margin-bottom: 14px }
.home-filters .ui41u-search { flex: 1; background: var(--surface); min-height: 34px }
.home-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 10px; margin: 0 0 14px; padding: 12px 0; border-bottom: 1px solid var(--edge) }
.home-kpis dt { color: var(--subtext); font-size: 11px }
.home-kpis dd { margin: 5px 0 0; font-size: 18px; font-weight: 650; overflow-wrap: anywhere }
.home-workspace, .dashboard-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 18px 20px }
.home-workspace h2 { font-size: 13px; margin-bottom: 7px }
.metric-chart { margin: 0; min-width: 0 }
.metric-chart figcaption { font-weight: 650 }
.metric-chart svg { width: 100%; height: 115px }
.metric-chart p { margin-bottom: 0; font-size: 11px }
.metric-grid { fill: none; stroke: var(--edge) }
.metric-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round }
.metric-dot { fill: var(--accent) }
.metric-source { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 }
.metric-source select { min-width: 100px; max-width: 62vw; padding: 6px; background: var(--surface); border: 1px solid var(--edge); border-radius: 4px }
.metric-history { margin: 16px 0 }
.metric-history .scroll { max-height: 360px; margin-block: 8px }
.history-controls { display: flex; align-items: center; justify-content: end; gap: 8px }
.report-layout { display: grid; grid-template-columns: minmax(235px, 30%) minmax(0, 1fr); gap: 20px; align-items: start }
.report-layout > * { min-width: 0 }
#report-form label { display: grid; gap: 6px; margin-top: 12px }
#report-preview { min-height: 280px }
.dashboard-actions { margin-bottom: 12px }
.dashboard-actions .section-title { flex-wrap: wrap }
.dashboard-data { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.dashboard-data h2 { margin-bottom: 9px }
.dashboard-data progress { accent-color: var(--accent) }
.doc-layout { display: grid; grid-template-columns: minmax(180px, 255px) minmax(0, 1fr); gap: 26px }
.doc-layout details { border-top: 1px solid var(--edge); padding-block: 10px }
.doc-layout summary { cursor: pointer; font-weight: 650; margin-bottom: 16px }
.doc-layout input { display: block; width: 100%; margin: 5px 0 12px; padding: 8px; border: 1px solid var(--edge); border-radius: 4px; background: var(--surface) }
.doc-layout a { display: block; width: fit-content; margin-block: 8px; color: var(--accent) }
.doc-layout h3 { color: var(--subtext); font-size: 12px; font-weight: 600 }
.doc-layout article li { padding-block: 4px }
.home-workspace .scroll { max-height: 250px }
.home-map { display: grid; place-items: center; min-height: 205px; padding: 16px; border-radius: 4px; background: var(--surface-alt); color: var(--subtext); text-align: center }
.table-link { color: var(--accent) }
.inventory-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 30%); align-items: start; gap: 14px }
.inventory-grid:has(#inventory-inspector[hidden]) { grid-template-columns: minmax(0, 1fr) }
.inventory-grid .card { min-width: 0 }
.inventory-grid .ui41u-search { width: min(100%, 510px) }
#inventory-kpis > div, .inspector-grid > div { padding: 12px; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface) }
#inventory-kpis { border: 0 }
#inventory-tabs { border-bottom: 1px solid var(--edge); gap: 0 }
#inventory-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0 }
#inventory-tabs button[aria-pressed="true"] { border-color: var(--accent) }
#inventory-detail-tabs { flex-wrap: wrap; margin-block: 8px }
.inspector-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px }
.inspector-grid dd { margin: 4px 0 0; overflow-wrap: anywhere }
.inspector-grid dt { color: var(--subtext); font-size: 11px }
#search-dialog { width: min(480px, calc(100% - 24px)); max-height: 75dvh; padding: 14px; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); color: var(--text) }
#search-dialog::backdrop { background: #10102070 }
#search-dialog form { display: flex; justify-content: end }
#global-query { display: block; width: 100%; margin: 6px 0 10px; padding: 8px; border: 1px solid var(--edge); border-radius: 4px; background: var(--bg) }
#global-results { display: grid; gap: 4px }
#global-results a { justify-content: flex-start; min-height: 34px; padding: 4px; color: var(--accent) }
#inventory-list { margin-top: 12px; overflow: auto }
#site-directory button { margin: 0 6px 6px 0 }
#record-form { display: grid; gap: 9px; max-width: 460px; margin-top: 16px }
#record-form label { display: grid; gap: 3px }
#record-form :is(input, select) { width: 100%; min-width: 0; border: 1px solid var(--edge); background: var(--bg); padding: 7px; border-radius: 4px }
@media (max-width: 760px) {
    .app { --panel-width: min(235px, calc(100vw - 85px)) }
    .app:not(.panel-expanded) .sidewrap { display: none }
    .sidewrap:not([hidden]) ~ .shell, .panel-expanded .sidewrap:not([hidden]) ~ .shell { margin-left: 0 }
    .rail { gap: 12px }
    .railitem, .toptools :is(button, summary), #access button, #inventory-tabs button { min-height: 44px }
    .icon-button { width: 44px }
    #nav-toggle { display: inline-flex }
    .toptools { gap: 3px }
    .ui41u-heading { flex-wrap: wrap; gap: 6px }
    .ui41u-search { width: 100% }
    #page-scope select, .ui41u-search { min-height: 42px }
    .at-workspace .v41d-tools button, .at-workspace .at-panel button, #plan-model { min-height: 40px }
    .at-panel { right: 0; width: 100%; max-height: 44dvh }
    .v41d-viewport { height: max(320px, calc(100dvh - 240px)) }
    .home-workspace, .dashboard-grid, .inventory-grid { grid-template-columns: minmax(0, 1fr) }
    .report-layout { grid-template-columns: minmax(0, 1fr) }
    .doc-layout { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 380px) {
    .toptools { margin-left: auto }
    .pagebrand { display: none }
}
.admin-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-block: 12px }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px }
#home-sites { min-width: 0 }
.home-workspace > section:has(#home-sites) { grid-column: 1 / -1 }
.incident-actions { display: grid; gap: 6px; min-width: 180px }
.incident-actions textarea { max-width: 100%; box-sizing: border-box }
.admin-form label { display: grid; gap: 6px; min-width: 0; flex: 1 1 190px }
.admin-form :is(input, select) { width: 100%; min-width: 0; min-height: 42px; box-sizing: border-box }
.admin-form > div { flex-basis: 100%; overflow-wrap: anywhere }
#human-detail, #user-directory { min-width: 0; overflow-wrap: anywhere }
#human-detail input[readonly], #user-directory input[readonly] { max-width: 100%; box-sizing: border-box }
.admin-form > div button { margin: 3px }
#page-scope > div { min-width: 0; flex: 1 1 240px }
#page-scope label { display: grid; gap: 4px; min-width: 0 }
#page-scope :is(input, select) { min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 42px }
.notification-bell { position: relative }
.notification-count { position: absolute; top: -3px; right: -6px; min-width: 18px; padding: 1px 4px; border-radius: 12px; background: #6b42bd; color: #fff; font: 600 11px/16px system-ui; text-align: center }
.external-banner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; border-inline-start: 3px solid #a66a13; margin-block: 12px }
.external-banner p { flex: 1 1 260px; margin: 0 }
.external-banner button { margin-inline-start: auto }

.notification-list{display:grid;gap:12px;min-width:0}
.notification-item{min-width:0;overflow-wrap:anywhere}
.notification-item h2{font-size:1rem;margin-top:0}
.notification-item button{margin:8px 0 0 12px}
