/* Console Inbox (stage 3). Layout comes from console_reference.css (.rack--inbox, .ticket, .tape);
   this file adds only what Inbox needs on top of Home's Console layer. The provenance strip itself
   is the shared Console rule in console_home.css. */
/* 1440: the mockup's rack starts at 163px (head plate 28px down, then a 46px band). The provenance
   strip takes the band the mockup gave its proposal banner. */
@media (min-width:768px) {
  .console-inbox { padding-top:28px; }
  .console-inbox .console-provenance { margin:0 0 9px; }
}
.console-inbox .mod-h, .console-inbox .mod-f, .console-inbox .legend, .console-inbox .ro-l, .console-inbox .ro-u, .console-inbox .tape-empty,
.console-inbox .inbox-show, .console-inbox .ticket > span, .console-inbox .lad-h .lh-p { position:relative; z-index:4; }
.console-inbox .unit--head .keys { gap:8px; }
.console-inbox .unit--head .key { padding:0 12px; }
.console-inbox .key-led { border-radius:50%; background:#3a3a3d; }
.console-inbox .key-led.is-lit { background:var(--amber); box-shadow:0 0 8px var(--amber); }

/* CH 20: ring, four-state legend, SHOW knob (a real radio group) with its submit key. */
.console-inbox .rack--inbox .gate { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; }
.console-inbox .legend { list-style:none; max-width:230px; }
.console-inbox .legend .lg-sub .lg-l { color:var(--legm); }
.console-inbox .inbox-show { display:grid; justify-items:center; gap:8px; }
.console-inbox .knob--show .knob-body { --ks:72px; position:relative; width:var(--ks); height:var(--ks); margin:44px 44px 6px; }
.console-inbox .knob--show .knob-opt--unreviewed { left:-6%; top:22%; transform:translate(-100%,-50%); }
.console-inbox .knob--show .knob-opt--credible { left:50%; top:-4%; transform:translate(-50%,-100%); }
.console-inbox .knob--show .knob-opt--spam { left:106%; top:22%; transform:translate(0,-50%); }
.console-inbox .knob--show .knob-opt { min-width:56px; z-index:4; }
.console-inbox .knob--show .knob-opt input { width:100%; height:100%; }
.console-inbox .knob--show legend { text-align:center; width:100%; }
/* S3: once JavaScript applies the knob on pick, its SHOW key is redundant (kept for no-JS). */
.console-inbox .inbox-show.is-live > .key { display:none; }

/* CH 21/24: six and four lamps. */
.console-inbox .ann .lamp-lens { min-height:56px; }
.console-inbox .mod--ops .ann { grid-template-columns:repeat(4,minmax(0,1fr)); }

/* CH 22 percent column. */
.console-inbox .lad-h li { grid-template-columns:minmax(0,1fr) auto 4.6em; }

/* CH 25 tape: paper tickets with one form per key; forms sit side by side, never nested. */
.console-inbox .tape { list-style:none; }
.console-inbox .ticket { position:relative; z-index:4; background:transparent; }
.console-inbox.no-gl .ticket { background:#efe9da; }
.console-inbox .tk-type { display:grid; gap:4px; justify-items:start; }
.console-inbox .tk-state { display:inline-flex; align-items:center; min-height:44px; min-width:44px; font:600 11.5px/1.1 var(--legf); letter-spacing:.06em; color:#4a463d; text-transform:uppercase; text-decoration:underline; text-underline-offset:3px; }
.console-inbox .tk-who small, .console-inbox .tk-what { overflow-wrap:anywhere; }
/* AA on the paper as drawn on both tiers (the GPU paper renders darker than the SVG-tier fill). */
.console-inbox .ticket .tk-who small, .console-inbox .ticket .tk-state { color:#26231d; }
.console-inbox .ticket .tk-type { color:#4f2a00; }
.console-inbox .tk-acts { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.console-inbox .tk-form { margin:0; display:contents; }
.console-inbox .tk-acts .key { min-height:44px; min-width:64px; justify-content:center; color:var(--leg); }
.console-inbox .tk-acts .key.key--ok { color:#1a1000; background-color:#f0a21f; background-image:linear-gradient(#ffc04e,#f0a21f); border-color:#ffd27a; }
.console-inbox .tape-empty { font:600 13px/1.4 var(--legf); letter-spacing:.06em; color:var(--leg); padding:8px 0; }
.console-inbox .sample { margin-left:6px; }

/* CH 25 footer: the owner's one key to the CRM board, which lives on its own page. */
.console-inbox .tape-keys { position:relative; z-index:4; display:flex; justify-content:flex-end; margin:10px 0 0; }
.console-inbox .tape-keys .key { min-height:44px; }

@media (max-width:767px) {
  .console-inbox .unit--head .keys { display:none; }
  .console-inbox .rack--inbox .gate { grid-template-columns:auto minmax(0,1fr); }
  .console-inbox .inbox-show { grid-column:1 / -1; }
  .console-inbox .mod--ops .ann { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .console-inbox .ticket { grid-template-columns:1fr; gap:8px; }
  /* S4: kind and state share one line on phones, so each ticket is shorter. */
  .console-inbox .tk-type { grid-auto-flow:column; justify-content:space-between; align-items:center; }
  .console-inbox .tk-acts { justify-content:stretch; }
  .console-inbox .tk-acts .key { flex:1 1 0; }
  /* The strip sits 12px in from the screen edge on phones (it ran edge to edge). */
  .console-inbox .console-provenance { margin-inline:12px; max-width:calc(100% - 24px); }
}
/* SVG tier: CH 22 ladders are amber like the GPU LEDs (the controller marks [data-3d].is-amber). */
.console-inbox.no-gl .is-amber .i-led { fill:#2b2620; } .console-inbox.no-gl .is-amber .i-led.is-on { fill:var(--amber); }
