.demo-stack { display:grid; gap:16px; min-width:0; }
.demo-stack label { display:grid; gap:7px; min-width:0; }
.demo-stack input,.demo-stack select,.demo-stack textarea { width:100%; min-width:0; }
.demo-actions { display:flex; flex-wrap:wrap; align-items:end; gap:12px; min-width:0; }
.demo-actions label { display:grid; gap:7px; flex:1 1 220px; min-width:0; }
.demo-actions select { width:100%; min-width:0; }
.demo-actions .btn { min-height:44px; }
.demo-stack .btn { justify-self:start; min-height:44px; }
.demo-stack h3 { margin:8px 0 0; }
@media (max-width:760px) { .demo-actions {display:grid;} .demo-actions label {width:100%;} .demo-actions .btn {width:100%;} }
/* Phone: a six-option status filter is wider than the screen, so it wraps; options get a touch-sized height. */
@media (max-width:760px) { .segmented {flex-wrap:wrap; max-width:100%;} .segmented button {height:40px;} }
/* Published tickets: organisation filter beside the search, with a count of what is shown. */
.report-toolbar .published-ticket-org { flex:0 1 16rem; min-width:12rem; }
.published-ticket-org .select { width:100%; min-height:40px; }
.published-ticket-count { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; flex:1 1 100%; margin:0; font-size:.8rem; color:var(--text-2); }
.published-ticket-count .link-btn { min-height:32px; font-size:.8rem; }
@media (max-width:760px) { .report-toolbar .published-ticket-org { flex:1 1 100%; } }
/* Notification bell in the top bar. The count uses the action colour, not red: it is news, not a breach. */
.bell-btn { position:relative; }
.bell-count { position:absolute; top:1px; right:0; min-width:17px; height:17px; padding:0 4px; border-radius:var(--r-pill); background:var(--cobalt); color:#fff; font-size:.66rem; font-weight:700; line-height:17px; text-align:center; box-shadow:0 0 0 2px var(--surface); }
.bell-popover { width:min(400px, calc(100vw - 24px)); max-height:min(560px, calc(100vh - 80px)); display:flex; flex-direction:column; border:1px solid var(--border); border-radius:12px; background:var(--surface); box-shadow:var(--shadow-2); z-index:80; transform-origin:var(--radix-popover-content-transform-origin); animation:pop-in var(--dur-2) var(--ease); }
.bell-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-bottom:1px solid var(--border); }
.bell-head h2 { margin:0; font-size:.95rem; }
.bell-head .link-btn { min-height:32px; font-size:.8rem; }
.bell-body { overflow-y:auto; padding:6px; }
.bell-empty { margin:0; padding:22px 14px; color:var(--text-2); font-size:.85rem; text-align:center; }
.bell-group h3 { margin:8px 8px 4px; font-size:.7rem; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--text-3); }
.bell-group ul { margin:0; padding:0; list-style:none; }
.bell-item { display:grid; gap:2px; width:100%; min-height:44px; padding:8px; border:0; border-radius:var(--r-sm); background:none; color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.bell-item:hover, .bell-item:focus-visible { background:var(--surface-2); }
.bell-item-top { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:.72rem; color:var(--text-3); }
.bell-kind { padding:1px 7px; border-radius:var(--r-pill); background:var(--cobalt-soft); color:var(--cobalt-text); font-weight:600; }
.bell-item strong { font-size:.85rem; }
.bell-item-title { font-size:.8rem; color:var(--text-2); overflow-wrap:anywhere; }
.bell-more { display:block; padding:6px 8px 8px; font-size:.8rem; }
.bell-foot { display:grid; gap:6px; padding:10px 14px 12px; border-top:1px solid var(--border); font-size:.8rem; }
.bell-foot a { min-height:24px; }
.bell-sla.is-overdue { color:var(--red-text); font-weight:600; }
.bell-note { color:var(--text-3); font-size:.72rem; }
/* SLA follow-up: plain-language explanation under the list. */
.sla-help { display:grid; gap:0; margin:0; padding:4px 16px 12px; }
.sla-help > div { display:grid; grid-template-columns:11rem minmax(0,1fr); gap:4px 16px; padding:10px 0; border-bottom:1px solid var(--border); }
.sla-help > div:last-child { border-bottom:0; }
.sla-help dt { font-size:.82rem; font-weight:600; color:var(--text); }
.sla-help dd { margin:0; font-size:.85rem; color:var(--text-2); }
@media (max-width:760px) { .sla-help > div { grid-template-columns:minmax(0,1fr); } }
