:root {
    color-scheme: dark;
    --bg: #0f1419;
    --paper: #1d252d;
    --paper-strong: #242d36;
    --paper-raised: #151c23;
    --paper-raised-2: #151c23;
    --text: #edf1f4;
    --muted: #adb7c0;
    --rule: #38424c;
    --rule-strong: #4f5b67;
    --panel-highlight: rgba(255, 255, 255, 0.04);
    --input-border: #5a6672;
    --charcoal: #0e141b;
    --navy: #0f1822;
    --stone: #77818b;
    --fog: #909aa4;
    --air: #d6dde4;
    --amber: #c8cfd6;
    --maroon: #d26b76;
    --deep-maroon: #b54a57;
    --teal: #bcc5cd;
    --shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
    --radius: 24px;
    --radius-small: 14px;
    --font: "Roboto", sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body,
button,
input,
textarea,
code {
    font-family: var(--font);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
    background: var(--bg);
}

body::before {
    content: none;
}

.shell {
    position: relative;
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.panel::before {
    content: none;
}

.hero {
    padding: 1.25rem 1.2rem 1.2rem;
    border: 0;
    background: transparent;
    color: white;
    box-shadow: none;
}

.hero::after {
    content: none;
}

.hero-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    flex: 0 0 auto;
    width: 128px;
    height: 128px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(9, 19, 29, 0.28));
}

.hero-titles {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.eyebrow {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(237, 241, 244, 0.72);
}

h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.status,
.hint {
    margin: 0.45rem 0 0;
    font-size: 0.97rem;
    line-height: 1.55;
    color: var(--muted);
}

.hero .status {
    margin-top: 0.8rem;
    color: rgba(237, 243, 250, 0.82);
}

.status[data-state="error"] {
    color: #ff8f9e;
}

.hero .status[data-state="error"] {
    color: #ffd1d7;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.grid.single {
    grid-template-columns: 1fr;
}

.compact,
.workflow-panel,
.append-panel,
.output-panel {
    padding: 1.1rem 1.15rem 1.2rem;
}

.workflow-panel {
    border-left: 0;
}

.append-panel {
    border-left: 0;
}

.output-panel {
    border-left: 0;
}

.workflow-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.input-group {
    width: 100%;
}

.input-group .label {
    display: block;
}

.command-field {
    position: relative;
    margin-top: 0.85rem;
}

.command-input {
    margin-top: 0;
    padding-right: 4rem;
    color: var(--text);
    background: var(--paper-raised);
}

.icon-button {
    padding: 0;
    border-radius: 10px;
    box-shadow: none;
}

.command-copy-button {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 2.3rem;
    height: 2.3rem;
    transform: translateY(-50%);
    border: 1px solid var(--input-border);
    background: #2a333d;
    color: #d7dee5;
}

.command-copy-button:focus-visible {
    outline: 2px solid rgba(193, 201, 209, 0.5);
    outline-offset: 2px;
}

.copy-icon {
    position: relative;
    display: block;
    width: 1rem;
    height: 1rem;
    margin: 0 auto;
}

.copy-icon::before,
.copy-icon::after {
    content: "";
    position: absolute;
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: rgba(16, 22, 30, 0.82);
}

.copy-icon::before {
    top: 0.16rem;
    left: 0.06rem;
}

.copy-icon::after {
    top: -0.06rem;
    left: 0.28rem;
}

.workflow-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin: -1.1rem -1.15rem 0.95rem;
    padding: 0.95rem 1.15rem 0.85rem;
    border-bottom: 0;
    background: #252e37;
}

.workflow-panel .panel-head {
    background: transparent;
}

.append-panel .panel-head {
    background: #37202c;
}

.output-panel .panel-head {
    background: #372010;
}

.label {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

button {
    appearance: none;
    border: 1px solid var(--input-border);
    border-radius: 999px;
    padding: 0.86rem 1.22rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    background: #2a333d;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
    box-shadow: none;
}

button:hover {
    transform: translateY(-1px);
    border-color: #6b7783;
    background: #333d48;
}

.icon-button:hover {
    transform: none;
    box-shadow: none;
}

button.primary {
    border-color: #6d7883;
    background: #3a4551;
    color: #f5f7f9;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

button.primary:hover {
    background: #45515e;
}

.command-copy-button:hover {
    transform: translateY(-50%);
    border-color: #6b7783;
    background: #333d48;
}

textarea {
    width: 100%;
    margin-top: 0.85rem;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-small);
    padding: 0.95rem 1rem;
    color: var(--text);
    background: var(--paper-raised);
    font-size: 0.97rem;
    line-height: 1.45;
    resize: vertical;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

textarea:focus {
    outline: 2px solid rgba(193, 201, 209, 0.22);
    border-color: #6b7783;
    background: #1a222b;
}

textarea::placeholder {
    color: rgba(152, 165, 179, 0.72);
}

.single-line {
    min-height: 3.4rem;
    height: 3.4rem;
    white-space: pre;
    overflow-x: auto;
    overflow-y: hidden;
    resize: none;
}

.append-mods {
    min-height: 3.4rem;
    height: 3.4rem;
}

.append-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

.output-inline {
    margin-top: 0;
    padding-right: 4rem;
}

code {
    font-size: 0.95em;
    font-weight: 500;
    color: #d7dee5;
}

@media (max-width: 960px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .site-logo {
        width: 104px;
        height: 104px;
    }

    .panel-head {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 700px) {
    .shell {
        width: min(100% - 1rem, 1200px);
        padding-top: 0.75rem;
    }

    .hero,
    .compact,
    .workflow-panel,
    .append-panel,
    .output-panel {
        padding: 1rem;
    }

    .panel-head {
        margin: -1rem -1rem 0.95rem;
        padding: 0.9rem 1rem 0.8rem;
    }

    .hero-brand {
        align-items: flex-start;
        gap: 0.85rem;
    }

    .site-logo {
        width: 72px;
        height: 72px;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    h1 {
        font-size: 1.18rem;
    }
}
