.warning-banner {
    color: var(--brand-orange);
    font-family: var(--font-code);
    margin-bottom: 20px;
}

h1 {
    text-transform: uppercase;
    color: var(--dark-teal);
    font-weight: 900;
}

.network-status {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--mid-sepia);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.intro-text {
    text-align: left;
    margin-bottom: 40px;
    color: var(--text-main);
    font-size: 1.1rem;
}

.sys-form {
    width: 100%;
    text-align: left;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 60px;
}

.form-group { margin-bottom: 30px; }

.sys-label {
    display: block;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--dark-teal);
    margin-bottom: 10px;
    font-weight: 700;
}

.sys-input, .sys-textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid rgba(var(--brand-blue-rgb), 0.3);
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.sys-input:focus, .sys-textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(var(--brand-orange-rgb), 0.1);
}

.sys-input::placeholder, .sys-textarea::placeholder {
    color: #aaa;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.4;
}

.sys-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.sys-textarea.long { min-height: 200px; }

#load-before-val { color: var(--brand-orange); }
#load-after-val { color: var(--brand-blue); }

.sys-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(var(--brand-blue-rgb), 0.2);
    outline: none;
    border-radius: 4px;
    margin-top: 10px;
}

.sys-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-orange);
    cursor: pointer;
    transition: transform 0.1s;
}

.sys-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.radio-group {
    background: rgba(var(--brand-blue-rgb), 0.05);
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.radio-label {
    display: block;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 10px;
    cursor: pointer;
}

.radio-label:last-child { margin-bottom: 0; }

.sys-radio {
    accent-color: var(--brand-orange);
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(var(--mid-sepia-rgb), 0.05);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(var(--mid-sepia-rgb), 0.2);
}

.sys-checkbox {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--brand-orange);
    cursor: pointer;
}

.checkbox-label {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-note {
    display: block;
    margin-top: 4px;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.btn-primary {
    display: block;
    width: 100%;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover { background: var(--dark-teal); }

.success-state-container { text-align: left; margin-bottom: 60px; }

.terminal-success-box {
    background: var(--bg-light);
    border: 1px solid var(--mid-sepia);
    border-left: 5px solid var(--mid-sepia);
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-family: var(--font-code);
    color: var(--dark-teal);
    font-size: 1rem;
    line-height: 1.6;
}

.terminal-success-box span { display: block; margin-bottom: 10px; }

.receipt-action-container {
    text-align: center;
    margin: 50px 0;
    background: rgba(var(--brand-orange-rgb), 0.05);
    border: 1px dashed var(--brand-orange);
    padding: 40px 20px;
    border-radius: 4px;
}

.receipt-action-title {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--brand-orange);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.btn-receipt-hero {
    display: inline-block;
    width: 100%;
    max-width: 450px;
    background: var(--brand-orange);
    color: #fff;
    border: none;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(var(--brand-orange-rgb), 0.2);
}

.btn-receipt-hero:hover {
    background: #8b552d;
    transform: translateY(-2px);
}

.receipt-action-desc {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 15px;
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.receipt-capture-zone { position: absolute; left: -9999px; top: 0; }

/* --- Visible on-page receipt preview ------------------------------------- */

.receipt-preview {
    margin: 40px 0;
    text-align: left;
}

.receipt-preview-title {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 15px;
}

/* Responsive variant of the receipt: fluid width, stacking columns.
   The hidden capture copy keeps the fixed 1200px layout for a crisp PNG. */
.receipt-render--responsive {
    width: 100%;
    padding: clamp(20px, 4vw, 45px);
    border-radius: 6px;
}

.receipt-render--responsive .receipt-header { margin-bottom: 30px; padding-bottom: 18px; }
.receipt-render--responsive .receipt-logo { height: 38px; }
.receipt-render--responsive .receipt-meta { font-size: 0.75rem; }
.receipt-render--responsive .receipt-title { font-size: 1.05rem; margin-bottom: 15px; }
.receipt-render--responsive .receipt-log-content { font-size: 0.85rem; line-height: 1.6; }
.receipt-render--responsive .manifesto-hero { font-size: 1.3rem; margin-bottom: 15px; }
.receipt-render--responsive .manifesto-heading { font-size: 0.9rem; }
.receipt-render--responsive .manifesto-text,
.receipt-render--responsive .manifesto-list { font-size: 0.85rem; margin-bottom: 18px; }
.receipt-render--responsive .receipt-footer { margin-top: 30px; padding-top: 18px; font-size: 0.75rem; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .receipt-render--responsive .receipt-body { flex-direction: column; gap: 25px; }
    .receipt-render--responsive .receipt-col-right {
        border-left: none;
        border-top: 1px dashed #30363d;
        padding-left: 0;
        padding-top: 25px;
    }
}

.receipt-render {
    width: 1200px;
    padding: 60px;
    background-color: #0d1117;
    color: #c9d1d9;
    font-family: 'Source Code Pro', monospace;
    text-align: left;
    border: 4px solid #358691;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 25px;
}

.receipt-logo { height: 50px; }
.receipt-meta { text-align: right; font-size: 0.9rem; color: #8b949e; }
.receipt-body { display: flex; gap: 50px; }
.receipt-col-left { flex: 1; min-width: 0; }
.receipt-col-right { flex: 1; min-width: 0; border-left: 1px dashed #30363d; padding-left: 50px; }

.receipt-title {
    color: #a26538;
    font-weight: 900;
    margin-bottom: 25px;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.receipt-log-content {
    white-space: pre-wrap;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #58a6ff;
    word-wrap: break-word;
}

.manifesto-font { font-family: 'Source Sans 3', sans-serif; }

.manifesto-hero {
    font-weight: 900;
    color: #a26538;
    font-size: 1.9rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.manifesto-subtitle { color: #358691; }

.manifesto-heading {
    color: #a26538;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-family: 'Source Code Pro', monospace;
}

.manifesto-text { margin-top: 0; margin-bottom: 30px; font-size: 1rem; line-height: 1.6; }
.manifesto-list { margin-top: 0; margin-bottom: 0px; font-size: 1rem; line-height: 1.6; }

.receipt-footer {
    margin-top: 50px;
    border-top: 1px dashed #30363d;
    padding-top: 25px;
    font-size: 0.9rem;
    color: #8b949e;
    display: flex;
    justify-content: space-between;
}

.receipt-footer-highlight { color: #358691; font-weight: bold; }

@media (max-width: 600px) {
    .sys-form { padding: 25px; }
    .btn-receipt-hero { font-size: 1rem; padding: 15px; }
}
