/* MSRPme static MVP shell */
:root {
    --bg: #070b0c;
    --bg-2: #0b1012;
    --panel: rgba(12, 18, 20, 0.92);
    --panel-strong: #101719;
    --line: rgba(255, 255, 255, 0.16);
    --line-hot: rgba(255, 123, 0, 0.68);
    --text: #f2f3ef;
    --muted: #a7ada8;
    --dim: #6f7774;
    --orange: #ff7900;
    --orange-2: #ff9a2f;
    --good: #61d394;
    --danger: #ff5f56;
    --shadow: rgba(0, 0, 0, 0.38);
    --mono: "Courier New", Courier, monospace;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    background:
        linear-gradient(rgba(255, 123, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 123, 0, 0.028) 1px, transparent 1px),
        radial-gradient(circle at 50% 8%, rgba(255, 123, 0, 0.11), transparent 34rem),
        linear-gradient(180deg, #050809 0%, #0b1012 48%, #06090a 100%);
    background-size: 32px 32px, 32px 32px, auto, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(8, 12, 13, 0.62), rgba(8, 12, 13, 0.62)),
        url("assets/images/og-image.png");
    background-size: cover;
    background-position: center top;
    opacity: 0.14;
    filter: grayscale(1) contrast(1.2);
}

body.subpage::before {
    background-image: linear-gradient(rgba(8, 12, 13, 0.72), rgba(8, 12, 13, 0.72)), url("assets/images/og-image.png");
}

body.card-page::before {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.site-header,
.site-footer {
    border-color: var(--line);
    background: rgba(5, 8, 9, 0.82);
    backdrop-filter: blur(12px);
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.nav-wrap,
.footer-wrap,
.page-wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.nav-wrap {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-mark {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
    letter-spacing: 0;
}

.brand-main {
    font-family: var(--mono);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

.brand-main span:first-child {
    color: var(--orange);
}

.brand-tag {
    margin-top: 8px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text);
}

.nav-links a:hover {
    color: var(--orange-2);
}

.cta-link,
.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--line-hot);
    border-radius: 2px;
    background: transparent;
    color: var(--orange-2);
    font-family: var(--mono);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.button.primary {
    background: linear-gradient(180deg, #ff8a12, #ef6f00);
    color: #130b03;
    border-color: #ff8a12;
}

.button.secondary {
    color: var(--text);
    border-color: var(--line);
}

.button.danger {
    color: #ffb3ad;
    border-color: rgba(255, 95, 86, 0.7);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.pulse-confirm {
    border-color: rgba(97, 211, 148, 0.9) !important;
    color: #dff8ea !important;
    box-shadow: 0 0 0 3px rgba(97, 211, 148, 0.16), 0 0 22px rgba(97, 211, 148, 0.16);
    transition: border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.button.primary.pulse-confirm,
.success-button.pulse-confirm {
    background: linear-gradient(180deg, #79e3a7, #4ebf7c);
    color: #04130b !important;
}

.cta-link::after,
.button.arrow::after {
    content: "->";
    font-family: var(--mono);
}

.hero {
    padding: 52px 0 30px;
}

body.subpage .section {
    padding: 24px 0 36px;
}

body.subpage .nav-wrap {
    min-height: 76px;
}

.hero-grid,
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.eyebrow {
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h1 {
    max-width: 880px;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    text-transform: uppercase;
}

h3 {
    margin-bottom: 10px;
    font-family: var(--mono);
    color: var(--orange-2);
    font-size: 1rem;
    text-transform: uppercase;
}

.lede {
    max-width: 720px;
    color: #d3d6d0;
    font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.panel,
.metric-card,
.step-card,
.example-chip,
.form-panel,
.mission-card,
.console-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 18px 44px var(--shadow);
}

.panel,
.form-panel,
.mission-card,
.console-panel {
    padding: 28px;
}

.panel.accent {
    border-color: rgba(255, 123, 0, 0.42);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 0 0;
}

.metric-card {
    min-height: 128px;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2.05rem, 5.6vw, 4.15rem);
}

.compact-hero-action {
    margin-top: 18px;
}

.compact-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 11, 12, 0.66);
}

.compact-stat {
    flex: 1 1 180px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
}

.compact-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8faf3;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.compact-stat strong {
    display: block;
    margin-top: 3px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: clamp(1.15rem, 2.6vw, 1.65rem);
    line-height: 1;
}

.live-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 0 rgba(97, 211, 148, 0.42);
    animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(97, 211, 148, 0.42);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(97, 211, 148, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(97, 211, 148, 0);
    }
}

.metric-label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.metric-value {
    margin-top: 8px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--orange);
}

.section {
    padding: 28px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    padding: 22px;
}

.step-number {
    color: var(--orange);
    font-family: var(--mono);
    font-weight: 800;
}

.example-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.example-chip {
    padding: 10px 13px;
    border: 1px solid rgba(255, 123, 0, 0.34);
    background: rgba(255, 123, 0, 0.09);
    color: #fff4e8;
    font-family: var(--mono);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: default;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.example-chip:hover {
    border-color: rgba(255, 154, 47, 0.68);
    background: rgba(255, 123, 0, 0.15);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.create-page-wrap {
    max-width: 920px;
}

.field.full,
.objective-card,
.generated-links {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #eef2ea;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.label-natural {
    text-transform: none;
}

.form-panel label,
.objective-card label,
.generated-links label {
    color: #f4f6ef;
}

.form-panel .eyebrow,
.objective-head .eyebrow {
    color: var(--orange-2);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 123, 0, 0.24);
    border-radius: 2px;
    background: rgba(24, 20, 16, 0.78);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

textarea {
    min-height: 116px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: var(--orange);
}

.objective-card {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.035);
}

.objective-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.small-button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    cursor: pointer;
}

.small-button:hover {
    color: var(--orange-2);
    border-color: var(--line-hot);
}

.objective-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.objective-actions .button {
    min-height: 44px;
}

.generated-links,
.notice {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 123, 0, 0.45);
    background: rgba(255, 123, 0, 0.055);
}

.url-box {
    overflow-wrap: anywhere;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #f6d6b5;
    font-family: var(--mono);
    font-size: 0.9rem;
}

.mission-brief {
    white-space: pre-wrap;
    color: #e5e6df;
    font-family: var(--mono);
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.code-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.code-row input {
    text-transform: uppercase;
}

.summary-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-list span:last-child {
    color: var(--orange-2);
    font-family: var(--mono);
    text-align: right;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

.good {
    color: var(--good);
}

.danger-text {
    color: var(--danger);
}

p,
.helper-text,
.mission-card .lede,
.panel p,
.form-panel p,
.console-panel p {
    color: #dce1dc;
}

.muted {
    color: #c1c8c2;
}

.mission-card {
    border-color: rgba(255, 123, 0, 0.38);
    background: rgba(10, 15, 16, 0.96);
}

.mission-focus {
    padding: clamp(24px, 5vw, 46px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.mission-focus h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.mission-focus .lede {
    max-width: 820px;
    margin-bottom: 28px;
    color: #edf0ea;
}

.mission-brief {
    color: #f3f4ef;
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.78;
}

.objective-panel {
    margin-top: 22px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(255, 123, 0, 0.34);
    background: rgba(255, 255, 255, 0.035);
}

.objective-panel h3 {
    margin-bottom: 16px;
}

.helper-text {
    margin-bottom: 18px;
    font-size: 1rem;
}

.support-panel {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(10, 15, 16, 0.68);
    box-shadow: none;
}

.support-panel h3 {
    color: rgba(255, 154, 47, 0.86);
}

.support-panel p,
.support-panel .muted {
    color: #c8cec8;
}

.support-panel .button {
    min-height: 42px;
    padding: 10px 14px;
    color: #e8ece7;
    border-color: rgba(255, 123, 0, 0.38);
}

.compact-list {
    gap: 8px;
}

.compact-list li {
    padding-bottom: 9px;
    color: #cbd1cb;
    font-size: 0.92rem;
}

.compact-list span:last-child {
    color: #e7ece6;
}

.success-eyebrow,
.good {
    color: var(--good);
}

.success-state {
    border-color: rgba(97, 211, 148, 0.52);
}

.success-panel {
    border-color: rgba(97, 211, 148, 0.42);
    background: rgba(97, 211, 148, 0.055);
}

.success-notice {
    border-color: rgba(97, 211, 148, 0.44);
    background: rgba(97, 211, 148, 0.08);
    color: #def8e9;
}

.complete-state {
    background:
        linear-gradient(180deg, rgba(97, 211, 148, 0.075), rgba(10, 15, 16, 0.96));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), inset 0 0 0 1px rgba(97, 211, 148, 0.12);
}

.complete-message {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid rgba(97, 211, 148, 0.46);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.success-button {
    background: linear-gradient(180deg, #79e3a7, #4ebf7c);
    color: #04130b;
    border-color: #79e3a7;
}

.action-primary {
    margin-top: 30px;
}

.action-primary .button {
    min-width: min(100%, 280px);
}

.code-row input {
    min-height: 54px;
    border-color: rgba(255, 123, 0, 0.36);
    background: rgba(0, 0, 0, 0.42);
    color: #ffffff;
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 800;
}

.code-row .button {
    min-width: 190px;
}

.mission-sidebar {
    display: grid;
    gap: 22px;
}

.mission-sidebar .panel[style] {
    margin-top: 0 !important;
}

.console-panel h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.console-summary {
    margin: 18px 0 24px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.agent-list-box {
    margin-top: 20px;
}

.agent-list {
    display: grid;
    gap: 10px;
}

.compact-agent-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}

.progress-panel {
    max-height: 520px;
    overflow: hidden;
}

.progress-counters {
    margin-bottom: 14px;
}

.progress-list {
    display: grid;
    gap: 8px;
    max-height: 330px;
    overflow-y: auto;
    padding-right: 4px;
}

.progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #dce1dc;
    font-size: 0.86rem;
}

.progress-row strong {
    color: #f4f6ef;
    overflow-wrap: anywhere;
}

.agent-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.16);
}

.agent-row h3 {
    margin-bottom: 8px;
}

.compact-agent-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 10px 12px;
}

.compact-agent-row h3 {
    margin-bottom: 0;
    color: #f4f6ef;
}

.compact-agent-row p {
    margin: 2px 0 0;
    font-size: 0.82rem;
}

.agent-code-block {
    display: grid;
    gap: 2px;
    min-width: 120px;
}

.agent-code-block strong {
    color: #f4f6ef;
    font-family: var(--mono);
    font-size: 1rem;
}

.agent-row .url-box {
    margin-bottom: 8px;
}

.compact-agent-row .url-box {
    display: none;
}

.agent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.add-agent-form {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(160px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin: 18px 0 18px;
    padding: 14px;
    border: 1px solid rgba(255, 123, 0, 0.22);
    background: rgba(0, 0, 0, 0.18);
}

.add-agent-form .button {
    min-height: 46px;
    white-space: nowrap;
}

.mission-template-brief {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-template-brief p {
    margin-bottom: 0;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--line);
}

.footer-wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.footer-wrap a::before {
    content: "|";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.26);
}

.footer-wrap a:hover {
    color: var(--orange-2);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.preview-slot {
    display: grid;
    gap: 14px;
    min-height: 170px;
    padding: 14px;
    border: 1px solid rgba(255, 123, 0, 0.36);
    background:
        linear-gradient(rgba(255, 123, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 123, 0, 0.028) 1px, transparent 1px),
        rgba(10, 15, 16, 0.84);
    background-size: 24px 24px, 24px 24px, auto;
    color: #f5f7f1;
}

.preview-image-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 190px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.26);
    overflow: hidden;
}

.preview-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
}

.preview-image-wrap img.image-missing {
    display: none;
}

.preview-fallback {
    display: none;
    color: #f5f7f1;
    font-family: var(--mono);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.preview-image-wrap img.image-missing + .preview-fallback {
    display: block;
}

.preview-caption h3 {
    margin-bottom: 6px;
}

.preview-caption p {
    margin-bottom: 0;
    color: #d9ded8;
    font-size: 0.94rem;
    line-height: 1.45;
}

.lower-create-link {
    padding-top: 8px;
    padding-bottom: 0;
    text-align: center;
}

.card-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 32px 20px;
    background: #111;
}

.print-controls {
    width: min(720px, 100%);
    margin: 0 auto 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.card-footer {
    width: min(720px, 100%);
    margin: 22px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #c9cec8;
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.card-footer a:hover {
    color: var(--orange-2);
}

.signal-card {
    width: min(720px, 100%);
    min-height: 430px;
    margin: 0 auto;
    padding: 34px;
    border: 2px solid #111;
    background: #f4f0e8;
    color: #111;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.signal-card h1 {
    margin: 0 auto 28px;
    color: #111;
    font-size: clamp(2rem, 6vw, 3.8rem);
    text-align: center;
}

.signal-card p {
    color: #111;
}

.signal-card-center {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 12px;
    text-align: center;
}

.scan-line {
    margin: 0;
    font-family: var(--mono);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.mission-id-line {
    margin: 0;
    color: #333 !important;
    font-family: var(--mono);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.qr-placeholder {
    display: grid;
    place-items: center;
    width: 176px;
    aspect-ratio: 1;
    border: 2px solid #111;
    background:
        linear-gradient(45deg, #111 25%, transparent 25%),
        linear-gradient(-45deg, #111 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #111 75%),
        linear-gradient(-45deg, transparent 75%, #111 75%);
    background-size: 28px 28px;
    background-position: 0 0, 0 14px, 14px -14px, -14px 0;
    color: #f4f0e8;
    font-family: var(--mono);
    font-weight: 800;
    text-align: center;
}

.signal-layout {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 30px;
}

.hub-share-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid rgba(97, 211, 148, 0.26);
    background: rgba(97, 211, 148, 0.045);
}

.hub-share-box h3 {
    margin: 8px 0;
    color: #dff8ea;
}

.hub-share-box .url-box {
    margin-top: 12px;
}

.qr-holder,
.qr-card-target {
    display: grid;
    place-items: center;
    width: 196px;
    min-width: 196px;
    aspect-ratio: 1;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #f4f0e8;
}

.qr-card-target {
    width: 196px;
    min-width: 0;
    border-color: #111;
}

.qr-holder canvas,
.qr-holder img,
.qr-card-target canvas,
.qr-card-target img {
    display: block;
    width: 176px;
    height: 176px;
}

.hub-panel {
    max-width: 860px;
    margin: 0 auto;
}

.hub-brief {
    margin: 24px 0 0;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.035);
}

.hub-agent-section {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hub-agent-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.hub-agent-button {
    min-height: 64px;
    color: #f4f6ef;
    border-color: rgba(255, 123, 0, 0.52);
    background: rgba(255, 123, 0, 0.08);
    font-size: 1rem;
}

.hub-agent-button:hover {
    border-color: rgba(255, 154, 47, 0.88);
    background: rgba(255, 123, 0, 0.14);
}

@media (max-width: 900px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
        flex-wrap: wrap;
    }

    .hero-grid,
    .content-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid,
    .steps-grid,
    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid {
        gap: 32px;
    }

    .mission-sidebar {
        gap: 16px;
    }

    .support-panel {
        padding: 22px;
    }

    .agent-row,
    .compact-agent-row,
    .add-agent-form,
    .progress-row {
        grid-template-columns: 1fr;
    }

    .agent-actions {
        justify-content: flex-start;
    }

    .compact-agent-list,
    .progress-list {
        max-height: 360px;
    }

    .progress-panel {
        max-height: 520px;
    }

    .hub-share-box {
        grid-template-columns: 1fr;
    }

    .qr-holder {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .nav-wrap,
    .footer-wrap,
    .page-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        padding-top: 34px;
    }

    h1 {
        font-size: clamp(2.4rem, 18vw, 4.2rem);
    }

    .metrics-grid,
    .steps-grid,
    .preview-grid,
    .signal-layout {
        grid-template-columns: 1fr;
    }

    .panel,
    .form-panel,
    .mission-card,
    .console-panel {
        padding: 20px;
    }

    .code-row {
        flex-direction: column;
    }

    .code-row .button,
    .action-primary .button {
        width: 100%;
        min-width: 0;
    }

    .objective-panel {
        padding: 18px;
    }

    .mission-focus .lede {
        margin-bottom: 20px;
    }

    .mission-brief {
        font-size: 1.04rem;
        line-height: 1.72;
    }

    .support-panel {
        padding: 18px;
    }

    .footer-wrap {
        min-height: 42px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }
}

@media print {
    body,
    .card-stage {
        background: white;
    }

    .print-controls,
    .card-footer {
        display: none;
    }

    .signal-card {
        width: 100%;
        box-shadow: none;
        border: 2px solid #111;
    }
}
