.a1z26-tool {
    --a1z26-panel: #ffffff;
    --a1z26-panel-soft: #fcfcfd;
    --a1z26-text: #101418;
    --a1z26-muted: #5a6872;
    --a1z26-border: #d8dee4;
    --a1z26-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    color: var(--a1z26-text);
    font-family: "Inter", var(--font-sans);
    padding-top: 0;
}

html[data-theme="dark"] .a1z26-tool {
    --a1z26-panel: #181b1f;
    --a1z26-panel-soft: #20242a;
    --a1z26-text: #f1f3f5;
    --a1z26-muted: #9aa2ab;
    --a1z26-border: #2a3037;
}

.a1z26-tool * {
    box-sizing: border-box;
}

.a1z26-tool .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.a1z26-topbar,
.a1z26-status,
.a1z26-pill-row,
.a1z26-textarea-header {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.a1z26-topbar {
    justify-content: space-between;
}

.a1z26-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.a1z26-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
    height: 100%;
}

.a1z26-mini {
    margin: 0;
    color: var(--a1z26-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.a1z26-mini strong,
.a1z26-pill strong,
.a1z26-note strong {
    color: var(--a1z26-text);
}

.a1z26-mini code,
.a1z26-pill code,
.a1z26-note code {
    padding: 2px 6px;
    border: 1px solid var(--a1z26-border);
    border-radius: 8px;
    background: var(--a1z26-panel);
    color: var(--a1z26-text);
    font-family: var(--a1z26-mono);
    font-size: 0.86em;
    white-space: nowrap;
}

.a1z26-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.a1z26-textarea-header {
    justify-content: space-between;
}

.a1z26-textarea {
    width: 100%;
    min-width: 0;
    min-height: 240px;
    resize: vertical;
    padding: 12px;
    border: 1px solid var(--a1z26-border);
    border-radius: 14px;
    background: var(--a1z26-panel);
    color: var(--a1z26-text);
    font-family: var(--a1z26-mono);
    font-size: 0.94rem;
    line-height: 1.48;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.a1z26-textarea[readonly] {
    background: var(--a1z26-panel-soft);
}

.a1z26-textarea:focus,
.a1z26-button:focus-visible {
    border-color: rgba(11, 132, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(11, 132, 255, 0.1);
    outline: none;
}

.a1z26-button[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
}

.a1z26-copy-inline {
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
}

.a1z26-tool .cipher-option-row.is-disabled,
.a1z26-tool .cipher-stepper.is-disabled {
    opacity: 0.55;
}

@media (max-width: 560px) {
    .a1z26-topbar {
        align-items: stretch;
    }

    .a1z26-actions {
        width: 100%;
    }

    .a1z26-textarea {
        min-height: 220px;
    }
}
