/* /platform/management/ (both funnels), H2 · Console (rollout step 3, owner approved 23 Nov 2026).
   The page skeleton (hero, stage, callouts, cards, spec rows, close) is in core (system.css). Here: only the product
   drawing on the hero stage, which events raise an alert and which stay quiet, drawn with the platform UI primitives
   (copied from platform-ops.css, which /platform/protection/ keeps), and the three drawn records in the Records section.
   Navy and teal only; crimson only for risk. */

/* ------------------------------------------------------------ product UI primitives (from the platform kit) */
.ui { position: relative; background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--e1); color: var(--ink-200); font: 400 var(--fs-sm)/1.4 var(--display); text-align: left; }
.ui-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 55%, transparent); white-space: nowrap; }
.ui-bar .t { flex: none; font: 600 var(--fs-xs)/1 var(--display); color: var(--ink-50); }
.ui-body { padding: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-xs); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); color: var(--ink-200); white-space: nowrap; }
.chip.ok { color: var(--teal-300); border-color: var(--teal-a40); background: var(--teal-a06); }
.chip.risk { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 60%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.chip.dash { border-style: dashed; color: var(--ink-200); }
.sev { width: 8px; height: 8px; border-radius: var(--r-xs); flex: none; background: var(--ink-400); }
.sev.crit { background: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 25%, transparent); }
.sev.high { background: var(--red-400); }
.sev.ok { background: var(--teal-400); }

/* ------------------------------------------------------------ the hero drawing: raised vs quiet */
.m-stage { margin-bottom: 0; }
.noise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.noise .ui-body { padding: 6px 16px 10px; }
.noise ul { display: grid; margin: 0; padding: 0; list-style: none; }
.noise li { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink-50); font-size: var(--fs-md); line-height: 1.4; min-width: 0; }
.noise li + li { border-top: 1px solid var(--line); }
.noise li .end { margin-left: auto; flex: none; }
.noise .quiet li { color: var(--ink-200); }
@media (max-width: 767px) {
  .noise { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .noise .ui-body { padding: 4px 12px 8px; }
  .noise li { gap: 10px; padding: 10px 0; font-size: var(--fs-sm); }
}
/* ------------------------------------------------------------ Records: three cards, each showing its record */
/* Redesign, 24 Nov 2026 ("redesign this section": the three plain label rows read as a spec table). Each .card opens
   with a drawn well (.rec-art): a soft teal glow over a deeper navy, the drawing rising from its bottom edge (no bottom
   border, square bottom corners), then the title and one line (.rec-txt). Three columns from 1280 px; between 768 and
   1279 each card lies on its side (drawing left, words right); phones stack. The section adds faint contour lines from
   the top-right corner, opposite the navy section's own top-left glow (same mask layer as the company pages). */
.rec-sec::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--teal-a24);
  -webkit-mask-image: url(/img/bg-contours.svg), radial-gradient(45% 70% at 100% 0%, black, transparent 75%);
  mask-image: url(/img/bg-contours.svg), radial-gradient(45% 70% at 100% 0%, black, transparent 75%);
  -webkit-mask-size: cover, 100% 100%; mask-size: cover, 100% 100%; -webkit-mask-position: 100% 0, 0 0; mask-position: 100% 0, 0 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: source-in; mask-composite: intersect; }
.rec-card { padding: 0; overflow: hidden; }
.rec-art { position: relative; isolation: isolate; display: flex; justify-content: center; align-self: stretch; height: 280px; padding: var(--sp-7) var(--sp-6) 0;
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 85% at 50% 0%, var(--teal-a12), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--navy-950) 55%, transparent), color-mix(in srgb, var(--navy-950) 25%, transparent)); }
.rec-art > * { flex: 1 1 auto; max-width: 360px; min-width: 0; }
.rec-txt { padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.rec-txt .h3 { margin: 0 0 var(--sp-2); }
/* a window that rises from the bottom edge of the well */
.rec-ui { border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; box-shadow: var(--e2), 0 0 0 1px var(--teal-a12); }
.rec-ui .ui-bar .end { margin-left: auto; }

/* the evidence pack: a cover page on two stacked sheets */
.rp-doc { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: var(--r-sm) var(--r-sm) 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--teal-400) 6%, var(--navy-800)), var(--navy-850));
  box-shadow: var(--e2), 0 0 0 1px var(--teal-a12); text-align: left; }
.rp-doc > * { flex: none; }   /* the page runs on below the well: its last lines are cut, never squeezed */
.rp-doc::before, .rp-doc::after { content: ''; position: absolute; z-index: -1; height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.rp-doc::before { top: -9px; left: var(--sp-3); right: var(--sp-3); background: var(--navy-850); }
.rp-doc::after { top: -17px; left: var(--sp-6); right: var(--sp-6); background: var(--navy-900); }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.rp-kind { font: 600 var(--fs-xs)/1 var(--mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--teal-300); }
.rp-t { margin-top: var(--sp-1); font: 600 var(--fs-lg)/1.25 var(--display); letter-spacing: var(--tr-h3); color: var(--ink-50); }
.rp-s { font: 400 var(--fs-xs)/1.2 var(--mono); color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: var(--sp-2); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--line); }
.rp-stats > div { display: grid; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); background: var(--navy-900); min-width: 0; }
.rp-stats b { font: 600 var(--fs-xl)/1 var(--display); color: var(--ink-50); font-variant-numeric: tabular-nums; }
.rp-stats span { font-size: var(--fs-xs); color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-lines, .rm-lines { display: grid; gap: 6px; }
.rp-lines { margin-top: var(--sp-2); }
.rp-lines i, .rm-lines i { display: block; height: 6px; border-radius: var(--r-xs); background: var(--line); }
.rp-lines i:nth-child(2) { width: 86%; }
.rp-lines i:nth-child(3) { width: 62%; }
.rp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-1); }

/* the history: recorded steps on one line, AI steps in teal rings, the Kurikara Labs step filled */
.rh-steps { margin: 0; padding: var(--sp-2) var(--sp-4) var(--sp-3); list-style: none; }
.rh-steps li { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: 9px 0; }
.rh-steps li::before { content: ''; position: absolute; left: 6.5px; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.rh-steps li:first-child::before { top: 50%; }
.rh-steps li:last-child::before { bottom: 50%; }
.rh-n { position: relative; width: 14px; height: 14px; border-radius: var(--r-full); border: 2px solid var(--ink-400); background: var(--navy-900); }
.rh-steps .alert .rh-n { border-color: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 22%, transparent); }
.rh-steps .ai .rh-n { border-color: var(--teal-400); }
.rh-steps .kl .rh-n { border-color: var(--teal-400); background: var(--teal-400); box-shadow: 0 0 0 3px var(--teal-a24); }
.rh-t { color: var(--ink-50); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-art .chip { letter-spacing: 0.02em; }

/* the inbox: a critical alert, open, then the summary report */
.rm-list { margin: 0; padding: 0; list-style: none; }
.rm-list li { display: grid; gap: 6px; padding: var(--sp-3) var(--sp-4); min-width: 0; }
.rm-list li + li { border-top: 1px solid var(--line); }
.rm-list li.on { box-shadow: inset 2px 0 0 var(--red-500); background: color-mix(in srgb, var(--red-500) 6%, transparent); }
.rm-from { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font: 600 var(--fs-xs)/1.2 var(--display); color: var(--ink-200); }
.rm-from .chip { margin-left: auto; }
.rm-sub { color: var(--ink-50); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-lines { margin-top: 2px; }
.rm-lines i:nth-child(2) { width: 72%; }

@media (max-width: 1279px) {
  .rec-cards { grid-template-columns: minmax(0, 1fr); }
  .rec-card { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: center; }
  .rec-art { height: 100%; min-height: 272px; border-bottom: 0; border-right: 1px solid var(--line); }
  .rec-txt { padding: var(--sp-6) var(--sp-7); }
}
@media (max-width: 1023px) {
  .rec-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rec-art { padding-inline: var(--sp-5); }
  .rec-txt { padding: var(--sp-6); }
}
@media (max-width: 767px) {
  .rec-card { display: flex; }
  .rec-art { height: 264px; min-height: 0; padding: var(--sp-7) var(--sp-4) 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rec-txt { padding: var(--sp-5); }
  .rec-sec::before { -webkit-mask-image: url(/img/bg-contours.svg), radial-gradient(80% 40% at 100% 0%, black, transparent 75%);
    mask-image: url(/img/bg-contours.svg), radial-gradient(80% 40% at 100% 0%, black, transparent 75%); }
}
@media (max-width: 399px) {   /* the smallest phones: tighter drawing insets, so no label is cut */
  .rec-art { padding-inline: var(--sp-3); }
  .rh-steps { padding-inline: var(--sp-3); }
  .rh-steps li { gap: var(--sp-2); }
  .rp-doc { padding-inline: var(--sp-4); }
  .rp-stats > div { padding-inline: var(--sp-2); }
}
@media (max-width: 479px) {   /* C14: one breadcrumb line; the current page truncates */
  .breadcrumbs li { flex: none; white-space: nowrap; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Copy round, 25 Nov 2026 (owner: "i want the answers i chose...fix if it cut off"): the chosen labels in the
   product drawings wrap to a second line instead of being cut with an ellipsis, and tab rows wrap. Same fonts, colors
   and spacing; no text is shortened. ---- */
.ui-row > *, .ui-top .t, .ui-file, .ui-meta > *, .ui-tile .k, .ui-tile .ui-sub, .ui-row .ui-chip, .ui-body > .ui-chip,
.row b, .row .m, .d-tr b, .d-tr .m, .sg-log b, .rp-stats span, .rp-s, .i-ph .crumb, .ctx-feed li, .i-files li span,
.ev-list li > span:nth-child(2), .hit span, .ui-bar .crumb, .tile .l, .tri-row b, .cl-row b, .cl-crumb {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.ui-tabs, .cb-tabs { flex-wrap: wrap; row-gap: 8px; }
.cb-tabs span { white-space: normal; }
.ui-row .ui-chip, .ui-body > .ui-chip { max-width: 100%; }
