/* ──────────────────────────────────────────────────────────────────── */
/* Work-With-PUB — Continuum Submission flow (Task #326)                */
/* Cyber-Luxe theme: gold-on-black, Orbitron heads, sharp 4-8px radii,  */
/* notched buttons (clip-path), gold glow.                              */
/* ──────────────────────────────────────────────────────────────────── */

/* Tokens (--cs-*) live in cyberlux-shared.css and alias to --cx-*.
   This file consumes those shared tokens directly; no per-surface
   palette re-definitions remain. */

/* ── Task #542: Reserve right-side gutter for corner widgets ─────── */
/* When the Producer Mix widget and/or Transmission dock are mounted, */
/* their bottom-right anchored panels would otherwise sit on top of   */
/* the right edge of the submission cards. The widgets toggle a body  */
/* data attribute and write the live measured width into              */
/* --corner-widget-gutter so the conversation surface reserves space  */
/* equal to the widest visible widget + 24px margin.                  */
body[data-corner-widgets] #cs-mount {
    padding-right: var(--corner-widget-gutter, 360px);
    transition: padding-right 180ms ease-out;
}
@media (max-width: 640px) {
    body[data-corner-widgets] #cs-mount { padding-right: 0; }
}

/* ── Headline panel ──────────────────────────────────────────────── */
.cs-headline {
    position: relative;
    margin: 30px auto 36px;
    max-width: 1200px;
    padding: 32px 30px;
    background: linear-gradient(135deg, var(--cs-void-1) 0%, #0d0d0d 60%, var(--cs-void) 100%);
    border: 1px solid var(--cs-amber-40);
    box-shadow: var(--cs-glow-soft), inset 0 0 60px rgba(0, 0, 0, 0.6);
    clip-path: var(--cs-clip-notch);
}
.cs-headline::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 215, 0, 0.04) 27px 28px);
    pointer-events: none;
}
.cs-headline-inner { position: relative; z-index: 1; }

.cs-eyebrow {
    color: var(--cs-gold); font-family: var(--cs-font-display);
    font-size: 0.78em; letter-spacing: 0.42em; text-transform: uppercase;
    margin: 0 0 12px; font-weight: 500;
}
.cs-h1 {
    color: var(--cs-gold); font-family: var(--cs-font-display);
    font-size: 2.4em; line-height: 1.05; margin: 0 0 14px;
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800;
    text-shadow: 0 0 24px rgba(255, 215, 0, 0.45);
}
.cs-sub {
    color: #ddd; font-family: var(--cs-font-body); font-weight: 400;
    font-size: 1.05em; max-width: 760px; line-height: 1.55; margin: 0 0 18px;
}

.cs-trio-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.cs-persona-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 215, 0, 0.18);
    font-family: var(--cs-font-body); font-weight: 500;
    font-size: 0.92em; color: #f3e8c0;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.cs-persona-dot { width: 9px; height: 9px; }
.cs-persona-dot.signal    { background: var(--cs-signal);    box-shadow: 0 0 8px var(--cs-signal); }
.cs-persona-dot.architect { background: var(--cs-architect); box-shadow: 0 0 8px var(--cs-architect); }
.cs-persona-dot.continuum { background: var(--cs-continuum); box-shadow: 0 0 8px var(--cs-continuum); }

/* ── Gating cards ────────────────────────────────────────────────── */
.cs-gate {
    margin: 18px 0 0; padding: 22px;
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid var(--cs-amber-40);
    border-left: 3px solid var(--cs-gold);
    color: #f3e8c0;
    clip-path: var(--cs-clip-notch);
}
.cs-gate h3 {
    color: var(--cs-gold); margin: 0 0 8px;
    font-family: var(--cs-font-display); font-size: 1.1em;
    text-transform: uppercase; letter-spacing: 0.12em;
}
.cs-gate p  { margin: 0 0 12px; line-height: 1.5; color: #ddd; font-family: var(--cs-font-body); }
.cs-gate .cs-btn { margin-top: 6px; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.cs-btn {
    display: inline-block; padding: 11px 22px;
    background: linear-gradient(135deg, var(--cs-gold), #b89400);
    color: #000; border: 0;
    font-family: var(--cs-font-display); font-weight: 700;
    cursor: pointer; text-transform: uppercase; letter-spacing: 0.10em;
    font-size: 0.88em;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    text-decoration: none;
}
.cs-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: var(--cs-glow-strong);
}
.cs-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cs-btn-secondary {
    background: rgba(0, 0, 0, 0.6); border: 1px solid var(--cs-amber-40);
    color: var(--cs-gold);
}
.cs-btn-secondary:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.06); box-shadow: var(--cs-glow-soft);
}
.cs-btn-danger { background: linear-gradient(135deg, #c63a3a, #6b1a1a); color: #fff; }

/* ── Intake form ─────────────────────────────────────────────────── */
.cs-form { display: grid; gap: 18px; margin-top: 20px; }
.cs-field { display: flex; flex-direction: column; gap: 8px; }
.cs-field label {
    color: var(--cs-gold);
    font-family: var(--cs-font-display); font-weight: 500;
    font-size: 0.78em; letter-spacing: 0.20em; text-transform: uppercase;
}
.cs-field input[type="text"],
.cs-field input[type="number"],
.cs-field select,
.cs-field textarea {
    background: rgba(0, 0, 0, 0.55); color: #f0e8c8;
    border: 1px solid var(--cs-amber-25);
    border-radius: var(--cs-radius-sharp);
    padding: 11px 14px; font-size: 1em;
    font-family: var(--cs-font-body); font-weight: 400;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cs-field input[type="text"]:focus,
.cs-field input[type="number"]:focus,
.cs-field select:focus,
.cs-field textarea:focus {
    outline: 0; border-color: var(--cs-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}
.cs-field textarea { min-height: 110px; resize: vertical; }
.cs-field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; align-items: end; }
@media (max-width: 760px) { .cs-field-row { grid-template-columns: 1fr; } }

.cs-helper { color: #999; font-size: 0.85em; font-family: var(--cs-font-body); }

/* ── Duration slider — momentum-bar style energy glow ───────────── */
.cs-duration-wrap { display: grid; gap: 8px; }
.cs-duration-readout {
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--cs-font-display);
}
.cs-duration-value {
    color: var(--cs-gold); font-size: 1.6em; font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 0 12px rgba(255, 215, 0, var(--cs-energy, 0.05));
    transition: text-shadow 0.2s;
}
.cs-duration-value .cs-duration-unit {
    font-size: 0.55em; color: #aaa; margin-left: 6px; letter-spacing: 0.18em;
    text-shadow: none; font-weight: 500; text-transform: uppercase;
}
.cs-duration-bound {
    color: #777; font-size: 0.78em; letter-spacing: 0.16em; text-transform: uppercase;
}
.cs-duration-track {
    position: relative;
    height: 14px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid var(--cs-amber-25);
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
.cs-duration-fill {
    position: absolute; inset: 0 auto 0 0;
    width: var(--cs-fill, 0%);
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.55) 0%,
        rgba(255, 200, 0, 0.85) 60%,
        #FFE56B 100%);
    box-shadow:
        0 0 calc(8px + var(--cs-energy, 0) * 28px) rgba(255, 215, 0, calc(0.20 + var(--cs-energy, 0) * 0.55)),
        inset 0 0 12px rgba(255, 240, 150, calc(0.25 + var(--cs-energy, 0) * 0.45));
    transition: width 0.18s ease-out, box-shadow 0.18s;
}
.cs-duration-fill::after {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg,
        transparent 0 6px, rgba(0, 0, 0, 0.18) 6px 7px);
    opacity: calc(0.4 - var(--cs-energy, 0) * 0.3);
}
.cs-duration-input {
    -webkit-appearance: none; appearance: none;
    width: 100%; background: transparent; outline: none;
    height: 24px; margin: -19px 0 0; padding: 0; cursor: pointer;
    position: relative; z-index: 2;
}
.cs-duration-input::-webkit-slider-runnable-track { background: transparent; height: 24px; }
.cs-duration-input::-moz-range-track             { background: transparent; height: 24px; }
.cs-duration-input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 22px;
    background: linear-gradient(180deg, #fff7c2, var(--cs-gold) 50%, var(--cs-gold-dim));
    border: 1px solid #000;
    box-shadow: 0 0 calc(6px + var(--cs-energy, 0) * 18px) rgba(255, 215, 0, calc(0.5 + var(--cs-energy, 0) * 0.5));
    cursor: grab; margin-top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%);
}
.cs-duration-input::-moz-range-thumb {
    width: 18px; height: 22px;
    background: linear-gradient(180deg, #fff7c2, var(--cs-gold) 50%, var(--cs-gold-dim));
    border: 1px solid #000;
    box-shadow: 0 0 calc(6px + var(--cs-energy, 0) * 18px) rgba(255, 215, 0, calc(0.5 + var(--cs-energy, 0) * 0.5));
    cursor: grab;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 90%, 0 100%);
}
.cs-duration-input:active::-webkit-slider-thumb { cursor: grabbing; }
.cs-duration-input:active::-moz-range-thumb     { cursor: grabbing; }
.cs-duration-ticks {
    display: flex; justify-content: space-between;
    color: #666; font-size: 0.7em; font-family: var(--cs-font-display);
    letter-spacing: 0.14em; margin-top: 4px;
}

/* ── Reference uploads ───────────────────────────────────────────── */
.cs-refs-dropzone {
    border: 1px dashed var(--cs-amber-40);
    padding: 22px; text-align: center; color: #bbb; cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    font-family: var(--cs-font-body);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    clip-path: var(--cs-clip-notch);
}
.cs-refs-dropzone:hover {
    background: rgba(255, 215, 0, 0.05); border-color: var(--cs-gold);
    box-shadow: var(--cs-glow-soft);
}
.cs-refs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cs-refs-list .cs-ref-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    background: rgba(255, 215, 0, 0.08); border: 1px solid var(--cs-amber-25);
    color: #f3e8c0; font-size: 0.85em; font-family: var(--cs-font-body);
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

/* ── Persona-switch card ─────────────────────────────────────────── */
.cs-switches-card {
    margin-top: 22px; padding: 22px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(255, 215, 0, 0.04));
    border: 1px solid var(--cs-amber-25);
    border-left: 3px solid var(--cs-gold);
    clip-path: var(--cs-clip-notch);
}
.cs-switches-card h3 {
    color: var(--cs-gold); margin: 0 0 8px;
    font-family: var(--cs-font-display); font-size: 1.0em;
    text-transform: uppercase; letter-spacing: 0.14em;
}
.cs-switches-card p  { color: #ccc; margin: 0 0 14px; line-height: 1.5; font-family: var(--cs-font-body); }
.cs-switch-row {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px;
    padding: 11px 14px; margin: 6px 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.10);
    border-radius: var(--cs-radius-sharp);
}
.cs-switch-name {
    color: #f0e8c8; font-weight: 600; display: flex; align-items: center; gap: 10px;
    font-family: var(--cs-font-body);
}
/* Cyberlux per-persona delivery switch — Task #459.
   Mirrors the admin Continuum panel reference: separated rectangular
   tiles, gold-bordered when inactive, gold-filled when active. The card
   itself sits on the cyberlux black grid background. */
.cs-switch-segments {
    display: inline-flex; gap: 6px;
    background: transparent; border: 0; border-radius: 0;
}
.cs-switch-segments .cs-switch-seg {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--cs-amber-40, var(--cs-amber-25));
    color: #f0e8c8;
    padding: 6px 14px; min-width: 56px; cursor: pointer;
    font-family: var(--cs-font-display); font-size: 0.78em;
    letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
    border-radius: 2px;
    transition: color 0.12s, background 0.12s, border-color 0.12s, box-shadow 0.12s;
}
.cs-switch-segments .cs-switch-seg:hover:not(.active) {
    background: rgba(255, 215, 0, 0.08);
    border-color: var(--cs-gold, #ffd233);
    color: #fff7c2;
}
.cs-switch-segments .cs-switch-seg.active {
    background: linear-gradient(135deg, var(--cs-gold, #ffd233), #b89400);
    border-color: var(--cs-gold, #ffd233);
    color: #000;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35) inset, 0 0 12px rgba(255, 215, 0, 0.32);
}
.cs-switch-segments .cs-switch-seg:focus-visible {
    outline: 1px dashed var(--cs-gold, #ffd233);
    outline-offset: 2px;
}

/* Persona color square next to the persona name (matches the small
   filled tiles in the admin reference image). */
.cs-switch-name .cs-persona-dot {
    width: 12px; height: 12px; border-radius: 0; display: inline-block;
    box-shadow: 0 0 6px currentColor;
}
.cs-switch-name .cs-persona-dot.signal    { background: #5ab0ff; color: #5ab0ff; }
.cs-switch-name .cs-persona-dot.architect { background: #ba7517; color: #ba7517; }
.cs-switch-name .cs-persona-dot.continuum { background: #c88cff; color: #c88cff; }

/* Switches card chrome — black grid panel matching admin Continuum. */
.cs-switches-card {
    background:
        linear-gradient(rgba(255,215,0,0.04), rgba(255,215,0,0.02)),
        repeating-linear-gradient(0deg, rgba(255,215,0,0.04) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(255,215,0,0.04) 0 1px, transparent 1px 32px),
        #050505;
    border: 1px solid var(--cs-amber-40, rgba(255,215,0,0.35));
    border-radius: 4px;
    padding: 16px 20px;
}
.cs-switches-card h3 {
    margin: 0 0 6px; color: var(--cs-gold, #ffd233);
    font-family: var(--cs-font-display); letter-spacing: 0.16em;
    text-transform: uppercase; font-size: 0.95em; font-weight: 800;
}
.cs-switches-card p {
    margin: 0 0 14px; color: rgba(240, 232, 200, 0.78);
    font-size: 0.86em; line-height: 1.55;
}
.cs-switch-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 8px 0;
    border-top: 1px solid rgba(255, 215, 0, 0.10);
}
.cs-switch-row:first-of-type { border-top: 0; }

/* ── Dialog log / vision review ──────────────────────────────────── */
.cs-dialog {
    margin-top: 22px; padding: 18px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: var(--cs-radius-sharp);
    max-height: 540px; overflow-y: auto;
}
/* Task #382 — when wrapped in the shared cyberlux screen+glare,
   drop the dialog's own chrome so the screen treatment shows. */
.cx-screen .cs-dialog {
    margin-top: 0; padding: 0;
    background: transparent; border: 0;
    border-radius: 0; max-height: 540px;
}
/* When wrapped in the shared screen, the row IS the cx-msg bubble.
   Drop the legacy two-column grid + dashed divider so the cx-msg
   accent border + Orbitron eyebrow take over cleanly.            */
.cx-screen .cs-dialog-row {
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.3));
    border-left: 2px solid var(--cx-msg-accent, var(--cx-gold));
}
.cx-screen .cs-dialog-row + .cs-dialog-row { margin-top: 10px; }
.cx-screen .cs-dialog-who {
    color: var(--cx-msg-accent, var(--cx-gold));
    font-family: var(--cx-font-display);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.15);
}
.cs-dialog-row {
    display: grid; grid-template-columns: 110px 1fr; gap: 14px;
    padding: 12px 0; border-bottom: 1px dashed rgba(255, 215, 0, 0.08);
}
.cs-dialog-row:last-child { border-bottom: 0; }
.cs-dialog-who {
    font-family: var(--cs-font-display);
    color: #888; font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.16em; padding-top: 2px;
    font-weight: 600;
}
.cs-dialog-who.signal    { color: var(--cs-signal); }
.cs-dialog-who.architect { color: var(--cs-architect); }
.cs-dialog-who.continuum { color: var(--cs-continuum); }
.cs-dialog-who.producer  { color: var(--cs-gold); }
.cs-dialog-body {
    color: #e8e0c8; line-height: 1.55; font-size: 0.96em;
    font-family: var(--cs-font-body); font-weight: 400;
}
.cs-dialog-headline {
    color: #fff; font-weight: 600; margin: 0 0 6px;
    font-family: var(--cs-font-body);
}
.cs-dialog-subline  { color: #999; font-size: 0.85em; margin-top: 4px; }
.cs-dialog-fit {
    display: inline-block; margin-top: 6px; padding: 3px 10px;
    background: rgba(255, 215, 0, 0.10); border: 1px solid var(--cs-amber-40);
    color: var(--cs-gold); font-family: var(--cs-font-display);
    font-size: 0.72em; letter-spacing: 0.10em; text-transform: uppercase;
}
.cs-dialog-audio { margin-top: 8px; }
.cs-dialog-audio audio { width: 100%; max-width: 360px; }
.cs-dialog-audio-pending { margin-top: 6px; padding: 6px 10px;
    border:1px dashed rgba(255,215,0,0.35); border-left:2px solid #ffd233;
    background: rgba(0,0,0,0.35); color: rgba(255,215,0,0.75);
    font-size:11px; letter-spacing:0.08em; text-transform:uppercase;
    font-family:'Rajdhani','Orbitron',sans-serif; border-radius:3px; }

.cs-pushback-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.cs-pushback-bar textarea {
    background: rgba(0, 0, 0, 0.55); color: #f0e8c8;
    border: 1px solid var(--cs-amber-25); border-radius: var(--cs-radius-sharp);
    padding: 10px 12px; font-size: 0.95em; min-height: 56px; resize: vertical;
    font-family: var(--cs-font-body);
}

.cs-actions {
    display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px;
    padding-top: 18px; border-top: 1px solid rgba(255, 215, 0, 0.10);
}

/* ── Status timeline ─────────────────────────────────────────────── */
.cs-timeline-wrap {
    margin-top: 22px; padding: 18px;
    background: rgba(0, 0, 0, 0.55); border: 1px solid var(--cs-amber-25);
    clip-path: var(--cs-clip-notch);
}
.cs-timeline-wrap h3 {
    color: var(--cs-gold); margin: 0 0 14px;
    font-family: var(--cs-font-display);
    letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.82em;
}
.cs-timeline {
    display: flex; gap: 0; align-items: stretch; overflow-x: auto;
    padding-bottom: 6px;
}
.cs-timeline-node {
    position: relative; min-width: 170px; padding: 10px 12px; flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.55);
    border-left: 3px solid var(--cs-gold);
    border-top: 1px solid rgba(255, 215, 0, 0.10);
    border-right: 1px solid rgba(255, 215, 0, 0.10);
    border-bottom: 1px solid rgba(255, 215, 0, 0.10);
    border-radius: 0 var(--cs-radius-sharp) var(--cs-radius-sharp) 0;
    font-family: var(--cs-font-body);
}
.cs-timeline-node + .cs-timeline-node { margin-left: 10px; }
.cs-timeline-node .cs-tn-actor {
    color: var(--cs-gold); font-family: var(--cs-font-display);
    font-size: 0.70em; letter-spacing: 0.18em; text-transform: uppercase;
}
.cs-timeline-node .cs-tn-label { color: #fff; font-weight: 600; margin: 4px 0 2px; font-size: 0.95em; }
.cs-timeline-node .cs-tn-time  { color: #888; font-size: 0.72em; }
.cs-timeline-node.actor-signal    { border-left-color: var(--cs-signal); }
.cs-timeline-node.actor-signal    .cs-tn-actor { color: var(--cs-signal); }
.cs-timeline-node.actor-architect { border-left-color: var(--cs-architect); }
.cs-timeline-node.actor-architect .cs-tn-actor { color: var(--cs-architect); }
.cs-timeline-node.actor-continuum { border-left-color: var(--cs-continuum); }
.cs-timeline-node.actor-continuum .cs-tn-actor { color: var(--cs-continuum); }
.cs-timeline-node.actor-producer  { border-left-color: var(--cs-gold); }
.cs-timeline-node.actor-pub       { border-left-color: var(--cs-signal); }
.cs-timeline-node.status-active   { box-shadow: var(--cs-glow-strong); animation: cs-pulse 1.6s ease-in-out infinite; }
.cs-timeline-node.status-failed   { border-left-color: #ff6b6b; }
@keyframes cs-pulse {
    0%, 100% { box-shadow: var(--cs-glow-soft); }
    50%      { box-shadow: var(--cs-glow-strong); }
}
.cs-timeline-empty {
    color: #888; font-style: italic; padding: 8px;
    font-family: var(--cs-font-body);
}

.cs-loading {
    color: #aaa; padding: 20px; text-align: center; font-style: italic;
    font-family: var(--cs-font-body);
}

/* Task #382 — themed modal styles retired here. csConfirm/csAlert/  */
/* csPrompt now render the shared cyberlux modal markup (.cx-modal-*) */
/* defined in cyberlux-shared.css. Hooks left on the action buttons   */
/* (.cs-modal-cancel / .cs-modal-ok) and the prompt textarea          */
/* (.cs-modal-input) so JS event wiring keeps working unchanged.      */

/* ── While-you-wait trio chatter (pre-vision flavour text) ──────── */
.cs-chatter {
    margin-top: 14px;
    max-height: 240px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 10px;
    padding-right: 4px;
}
.cs-chatter-line {
    display: grid; grid-template-columns: 110px 1fr; gap: 14px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.35);
    border-left: 2px solid var(--cs-amber-25);
    animation: cs-chatter-in 0.35s ease-out;
}
@keyframes cs-chatter-in {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: translateX(0); }
}
.cs-chatter-actor {
    font-family: var(--cs-font-display); font-size: 0.72em;
    font-weight: 700; letter-spacing: 0.20em; text-transform: uppercase;
    color: var(--cs-gold); align-self: center;
}
.cs-chatter-text {
    font-family: var(--cs-font-body); font-size: 0.96em; line-height: 1.5;
    color: #d2cdb6;
}
.cs-chatter-signal    { border-left-color: #5ab0ff; }
.cs-chatter-signal    .cs-chatter-actor { color: #5ab0ff; }
.cs-chatter-architect { border-left-color: #ffb44a; }
.cs-chatter-architect .cs-chatter-actor { color: #ffb44a; }
.cs-chatter-continuum { border-left-color: #c879ff; }
.cs-chatter-continuum .cs-chatter-actor { color: #c879ff; }
.cs-chatter-system    { border-left-color: rgba(255,215,0,0.4); }

/* ── Section divider between Continuum + standard request tabs ──── */
.cs-section-divider {
    position: relative;
    max-width: 1200px;
    margin: 36px auto 28px;
    padding: 0;
    text-align: center;
}
.cs-section-divider::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.35), transparent);
}
.cs-section-divider span {
    position: relative; display: inline-block;
    padding: 6px 18px;
    background: var(--cs-void);
    color: var(--cs-gold);
    font-family: var(--cs-font-display); font-weight: 600;
    font-size: 0.78em; letter-spacing: 0.32em; text-transform: uppercase;
    border: 1px solid var(--cs-amber-25);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}

/* ── Auto-detect drafting affordance ─────────────────────────────── */
.cs-brief-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; margin-bottom: -2px;
}
.cs-autodetect-btn {
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid var(--cs-amber-40);
    color: var(--cs-gold);
    font-family: var(--cs-font-display);
    font-size: 0.72em; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 12px; cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    transition: background 0.15s, box-shadow 0.15s;
}
.cs-autodetect-btn:hover:not(:disabled) {
    background: rgba(255, 215, 0, 0.14); box-shadow: var(--cs-glow-soft);
}
.cs-autodetect-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cs-autodetect-btn.cs-busy { opacity: 0.7; }
.cs-autodetect-status {
    font-family: var(--cs-font-body); color: #aaa; font-size: 0.85em;
}
.cs-autodetect-status.ok    { color: var(--cs-gold); }
.cs-autodetect-status.err   { color: #ff9090; }

/* ── Denial banner ───────────────────────────────────────────────── */
.cs-deny-banner {
    margin-top: 20px; padding: 22px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.10), rgba(0, 0, 0, 0.55));
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-left: 3px solid #ff6b6b;
    color: #fff;
    clip-path: var(--cs-clip-notch);
}
.cs-deny-banner h3 {
    color: #ff9090; margin: 0 0 8px;
    font-family: var(--cs-font-display);
    text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.0em;
}
.cs-deny-banner p  {
    color: #ddd; line-height: 1.5; white-space: pre-wrap;
    font-family: var(--cs-font-body);
}
/* Task #371 — top-of-view variant: louder presence and an inline audio
   surface for PUB's voiced reply so users don't miss the denial. */
.cs-deny-banner.cs-deny-banner-top {
    margin: 0 0 16px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.16), rgba(40, 0, 0, 0.65));
    border: 1px solid rgba(255, 107, 107, 0.55);
    border-left: 4px solid #ff6b6b;
    box-shadow: 0 0 22px rgba(255, 107, 107, 0.18);
    animation: cs-deny-pulse 2.4s ease-out 1;
}
@keyframes cs-deny-pulse {
    0%   { box-shadow: 0 0 0 rgba(255, 107, 107, 0.0); }
    40%  { box-shadow: 0 0 32px rgba(255, 107, 107, 0.55); }
    100% { box-shadow: 0 0 22px rgba(255, 107, 107, 0.18); }
}
.cs-deny-banner-eyebrow {
    color: #ff8a8a; font-family: var(--cs-font-display);
    font-size: 0.72em; letter-spacing: 0.22em; text-transform: uppercase;
    margin-bottom: 6px; opacity: 0.9;
}
.cs-deny-banner-audio {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px dashed rgba(255, 107, 107, 0.35);
}
.cs-deny-banner-audio-label {
    color: #ff9090; font-family: var(--cs-font-display);
    font-size: 0.7em; letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 6px;
}
.cs-deny-banner-audio audio {
    width: 100%; max-width: 480px; outline: none;
    filter: drop-shadow(0 0 6px rgba(255, 107, 107, 0.25));
}

/* ─── Task #404: Submission history dock ─────────────────────────── */
.cs-history-dock {
    margin-top: 32px;
    padding: 18px 18px 14px;
    border: 1px solid rgba(140, 220, 255, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(10, 20, 36, 0.55), rgba(8, 14, 26, 0.65));
    backdrop-filter: blur(6px);
}
.cs-history-dock-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 10px; gap: 12px;
}
.cs-history-dock-meta {
    font-size: 12px; color: rgba(180, 210, 240, 0.6);
    letter-spacing: 0.04em; text-transform: uppercase;
}
.cs-history-list { display: flex; flex-direction: column; gap: 6px; }
.cs-history-row {
    border: 1px solid rgba(140, 220, 255, 0.10);
    border-radius: 10px;
    background: rgba(14, 24, 42, 0.55);
    overflow: hidden;
    transition: border-color 160ms ease, background 160ms ease;
}
.cs-history-row:hover { border-color: rgba(140, 220, 255, 0.24); }
.cs-history-row-expanded {
    border-color: rgba(140, 220, 255, 0.35);
    background: rgba(18, 30, 52, 0.7);
}
.cs-history-row-unack {
    border-color: rgba(255, 130, 130, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 130, 130, 0.12) inset;
}
.cs-history-row-toggle {
    display: grid;
    grid-template-columns: 18px 1fr auto auto;
    gap: 12px; align-items: center;
    width: 100%; padding: 10px 14px;
    background: transparent; border: 0; color: inherit; cursor: pointer;
    text-align: left; font: inherit;
}
.cs-history-row-toggle:hover { background: rgba(140, 220, 255, 0.06); }
.cs-history-caret {
    color: rgba(180, 210, 240, 0.65);
    font-size: 12px; line-height: 1;
}
.cs-history-row-title {
    color: #e6f1ff; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-history-row-status {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.cs-history-row-date {
    color: rgba(180, 210, 240, 0.55);
    font-size: 12px; flex-shrink: 0;
}
.cs-history-badge {
    display: inline-block; padding: 3px 10px;
    border-radius: 999px; font-size: 11px;
    font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase; line-height: 1.4;
}
.cs-history-badge-approved {
    background: rgba(60, 200, 130, 0.15); color: #7ee3a9;
    border: 1px solid rgba(60, 200, 130, 0.4);
}
.cs-history-badge-denied {
    background: rgba(255, 100, 100, 0.14); color: #ff9a9a;
    border: 1px solid rgba(255, 100, 100, 0.4);
}
.cs-history-badge-abandoned {
    background: rgba(180, 180, 180, 0.10); color: #c8d2dc;
    border: 1px solid rgba(180, 180, 180, 0.28);
}
.cs-history-badge-other {
    background: rgba(140, 220, 255, 0.10); color: #b8d8f0;
    border: 1px solid rgba(140, 220, 255, 0.28);
}
.cs-history-badge-tombstone {
    background: rgba(120, 120, 120, 0.08); color: #8a96a4;
    border: 1px solid rgba(120, 120, 120, 0.24);
    text-transform: none; letter-spacing: 0;
    font-weight: 500; font-style: italic;
}
.cs-history-new-pill {
    display: inline-block; padding: 2px 7px;
    background: #ff5a5a; color: #fff;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.08em; border-radius: 999px;
    animation: cs-pulse 1.6s ease-in-out infinite;
}
@keyframes cs-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 90, 90, 0); }
}
.cs-history-voiced {
    color: #b8d8f0; font-size: 14px; opacity: 0.8;
}
.cs-history-row-tombstone {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px; align-items: center;
    padding: 8px 14px;
    background: rgba(14, 24, 42, 0.35);
    color: #8a96a4;
    cursor: default;
}
.cs-history-row-tombstone .cs-history-row-title {
    color: #8a96a4; font-style: italic; font-weight: 500;
}
.cs-history-row-body {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(140, 220, 255, 0.10);
    background: rgba(8, 16, 30, 0.5);
}
.cs-history-body-loading,
.cs-history-body-error {
    padding: 6px 0; font-size: 13px; color: rgba(180, 210, 240, 0.7);
}
.cs-history-body-error { color: #ff9a9a; }
.cs-history-brief {
    margin-bottom: 12px; padding: 10px 12px;
    background: rgba(140, 220, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(140, 220, 255, 0.4);
}
.cs-history-brief-eyebrow {
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(180, 210, 240, 0.6);
    margin-bottom: 4px;
}
.cs-history-brief-text {
    color: #d8e6f5; font-size: 13px; line-height: 1.5;
    white-space: pre-wrap;
}
.cs-history-denial {
    margin-bottom: 14px; padding: 12px 14px;
    background: rgba(255, 100, 100, 0.06);
    border: 1px solid rgba(255, 100, 100, 0.25);
    border-radius: 8px;
}
.cs-history-denial-eyebrow {
    font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: #ff9a9a;
    margin-bottom: 6px; font-weight: 600;
}
.cs-history-denial p {
    margin: 0; color: #f0e0e0; font-size: 14px;
    line-height: 1.5; white-space: pre-wrap;
}
.cs-history-denial-audio {
    margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255, 100, 100, 0.18);
}
.cs-history-denial-audio-label {
    font-size: 11px; color: rgba(255, 154, 154, 0.85);
    margin-bottom: 6px; letter-spacing: 0.04em;
}
.cs-history-denial-audio audio { width: 100%; }
.cs-history-log {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 360px; overflow-y: auto;
    padding-right: 4px;
}

/* ─── Task #404: Denial toast notification ───────────────────────── */
.cs-toast-root {
    position: fixed; top: 88px; right: 20px;
    z-index: 9999;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 380px;
    pointer-events: none;
}
.cs-deny-toast {
    pointer-events: auto;
    background: linear-gradient(180deg, rgba(40, 14, 18, 0.96), rgba(28, 10, 14, 0.98));
    border: 1px solid rgba(255, 100, 100, 0.55);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 80, 80, 0.18);
    padding: 14px 14px 12px;
    color: #ffe6e6;
    animation: cs-toast-in 280ms ease-out;
}
@keyframes cs-toast-in {
    from { opacity: 0; transform: translateX(20px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0)    scale(1); }
}
.cs-deny-toast-leaving {
    animation: cs-toast-out 200ms ease-in forwards;
}
@keyframes cs-toast-out {
    to { opacity: 0; transform: translateX(20px) scale(0.96); }
}
.cs-deny-toast-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.cs-deny-toast-title {
    flex: 1; min-width: 0;
    font-weight: 700; color: #fff; font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-deny-toast-close {
    background: transparent; border: 0;
    color: rgba(255, 200, 200, 0.7);
    font-size: 22px; line-height: 1; cursor: pointer;
    padding: 0 4px;
}
.cs-deny-toast-close:hover { color: #fff; }
.cs-deny-toast-reason {
    font-size: 13px; line-height: 1.5; color: #f6dcdc;
    margin-bottom: 10px; white-space: pre-wrap;
    max-height: 140px; overflow-y: auto;
}
.cs-deny-toast-audio {
    margin-bottom: 10px; padding: 8px 10px;
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.22);
    border-radius: 8px;
}
.cs-deny-toast-play {
    width: 100%;
    background: rgba(255, 100, 100, 0.18);
    color: #ffd6d6;
    border: 1px solid rgba(255, 100, 100, 0.35);
    border-radius: 6px;
    padding: 6px 10px; font-size: 12px; cursor: pointer;
    font-weight: 600;
}
.cs-deny-toast-play:hover:not(:disabled) {
    background: rgba(255, 100, 100, 0.28);
}
.cs-deny-toast-play:disabled {
    opacity: 0.65; cursor: default;
}
.cs-deny-toast-footer {
    display: flex; justify-content: flex-end;
}
.cs-deny-toast-view {
    background: transparent;
    color: #ffb8b8;
    border: 1px solid rgba(255, 154, 154, 0.45);
    border-radius: 6px;
    padding: 5px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.cs-deny-toast-view:hover {
    background: rgba(255, 154, 154, 0.12);
    color: #fff;
}
@media (max-width: 520px) {
    .cs-toast-root { left: 12px; right: 12px; max-width: none; top: 72px; }
}

/* ─── Task #510: Member-side under-glass parity ──────────────────────────
 * Adds the animated diagonal glare strip + reduced-motion fallback to
 * the member submission-flow surfaces (cs-headline / cs-gate /
 * cs-deny-banner / cs-timeline-wrap / cs-switches-card) so they share
 * the same under-glass treatment used by every Continuum admin panel.
 * The notched gold bezel + scanline already live above this block in
 * the original cyberlux pass; we only layer the glare here.
 *
 * cx-screen-glare keyframes live in cyberlux-shared.css, which the
 * member page (work-with-pub.html) already loads alongside this file.
 * ────────────────────────────────────────────────────────────────────── */
.cs-headline,
.cs-gate,
.cs-deny-banner,
.cs-timeline-wrap,
.cs-switches-card {
    position: relative;
    isolation: isolate;
}
.cs-headline::after,
.cs-gate::after,
.cs-deny-banner::after,
.cs-timeline-wrap::after,
.cs-switches-card::after {
    content: '';
    position: absolute;
    top: -40%; left: -30%;
    width: 60%; height: 220%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 35%,
        rgba(255, 240, 200, 0.06) 48%,
        rgba(255, 255, 255, 0.10) 50%,
        rgba(255, 240, 200, 0.06) 52%,
        rgba(255, 255, 255, 0.0) 65%,
        transparent 100%);
    transform: rotate(8deg) translateX(0);
    pointer-events: none;
    z-index: 1;
    animation: cx-screen-glare 11s ease-in-out infinite;
    filter: blur(2px);
    mix-blend-mode: screen;
    opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) {
    .cs-headline::after,
    .cs-gate::after,
    .cs-deny-banner::after,
    .cs-timeline-wrap::after,
    .cs-switches-card::after {
        animation: none;
        transform: rotate(8deg) translateX(60%);
        opacity: 0.28;
    }
}
.cs-headline > *,
.cs-gate > *,
.cs-deny-banner > *,
.cs-timeline-wrap > *,
.cs-switches-card > * {
    position: relative;
    z-index: 2;
}
