/* The Next step card and Help for this ticket on one screen (GitHub issue 600, the owner's U6; docs/adr/0355-next-step-and-one-
   screen-help.md; public/js/app/ticket-next-step.js, ticket-help-panel.js). The card heads the side panel's Overview,
   about 300 to 330 px wide: "NEXT STEP · Likely duplicate" (the kind in the accent color), why in plain words, then
   its actions as small buttons (the first filled, any other outline) and Not related or Dismiss as a quiet link, all
   wrapping, nothing cut. The Record workspace (docs/adr/0387-record-workspace-ticket-page.md): "a neutral card with a
   colored left edge, not a red block". It is drawn as the Overview's other cards are (ticket-record.css: the surface,
   a 1px line, the large radius), with a 3px edge in the accent; an outage or a major incident's edge and kind are in
   the warning amber.
   Nothing here is red: the SLA value in the header is the page's one red thing. The AI's own is marked with its spark.
   Each section below is one line, its summary after its count. Colors are the palette's tokens, so the dark theme
   follows. */

/* Its host is the first of the Overview's cards: as wide as the cards under it, spaced by the Overview's own gap. */
.th-top:empty { display:none; }
.th-top { padding:0; }
.ns-card[hidden] { display:none; }
.ns-card { display:flex; flex-direction:column; gap:var(--space-100); min-width:0; padding:var(--space-150); border:1px solid var(--line); border-left:3px solid var(--spruce); border-radius:var(--radius-lg); background:var(--surface); color:var(--ink); overflow-wrap:anywhere; }
.ns-card[data-kind="outage"] { border-left-color:var(--saffron); }
.ns-kicker { display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-25) var(--space-75); margin:0; color:var(--muted); font-size:var(--text-xs); line-height:var(--leading-tight); }
.ns-label { font-size:var(--text-2xs); font-weight:var(--weight-semibold); letter-spacing:.06em; text-transform:uppercase; }
.ns-kind { color:var(--spruce); font-weight:var(--weight-semibold); }
.ns-card[data-kind="outage"] .ns-kind { color:var(--warn-ink); }
.ns-why { margin:0; color:var(--ink); font-size:var(--text-sm); line-height:var(--leading-normal); }
.ns-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-75) var(--space-150); }
.ns-actions .save-button, .ns-actions .outline-button { min-height:var(--control-height-sm); padding:var(--space-25) var(--space-150); font-size:var(--text-sm); white-space:normal; text-align:left; }
.ns-actions .ns-dismiss { color:var(--muted); font-size:var(--text-sm); font-weight:var(--weight-medium); white-space:normal; }
.ns-actions .ns-dismiss:hover, .ns-actions .ns-dismiss:focus-visible { color:var(--ink); text-decoration:underline; }
@media (forced-colors:active) { .ns-card { border-left-width:3px; forced-color-adjust:auto; } }

/* A section's one line: its summary after its count, in muted words, wrapping where the column is narrow. */
.th-line { flex:1 1 0; min-width:0; color:var(--muted); font-size:var(--text-xs); font-weight:var(--weight-medium, 500); text-align:right; overflow-wrap:anywhere; }
.th-fold .th-title { flex:0 1 auto; }
.th-fold { gap:var(--space-75); padding-inline:var(--space-150); }
/* An open list stays short: each row's actions on one line of small links where the column allows. */
.th-panel .th-list { gap:var(--space-150); }
.th-panel .th-row .th-actions { gap:0 var(--space-100); }
.th-panel .th-row .th-actions .nt-link { font-size:var(--text-sm); }
.th-panel .th-body { padding-inline:var(--space-150); }
.th-fold .th-chev { margin-left:auto; }
.th-fold { min-height:32px; padding-block:var(--space-75); }
/* A section that opened itself because it needs you says so with its edge. */
.th-section.needs-you > .th-head .th-fold { box-shadow:inset 3px 0 0 var(--saffron); }

/* A phone: every button of the card and every section's line is a 44 px target. */
@media (max-width:700px) {
  .ns-actions .save-button, .ns-actions .outline-button, .ns-actions .nt-link { min-height:44px; }
  .th-fold, .th-section .th-more { min-height:44px; }
}
