:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f6f8fb;
    color: #1f2937;
    overflow: hidden;
}

.page {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 14px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .08);
}

.header {
    margin-bottom: 12px;
}

.eyebrow {
    color: #d35400;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 4px 0 6px;
    font-size: 20px;
}

.header p,
.hint,
.form-message {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-size: 13px;
    font-weight: 700;
}

.action-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.action-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.action-option:has(input:checked) {
    border-color: #f97316;
    background: #fff7ed;
    color: #9a3412;
}

.flow-form[hidden] {
    display: none;
}

.flow-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 12px;
}

.flow-form::-webkit-scrollbar {
    width: 8px;
}

.flow-form::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 999px;
}

.flow-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 0;
    height: auto;
}

textarea[rows="2"] {
    min-height: 58px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #fed7aa;
    border-color: #f97316;
}

.hint {
    margin-top: 10px;
}

.form-message {
    min-height: 20px;
    margin-top: 12px;
}

.form-message.error {
    color: #b91c1c;
}

.form-message.success {
    color: #15803d;
    font-weight: 700;
}

fieldset {
    margin: 0;
    padding: 12px;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
}

legend {
    padding: 0 4px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.radio-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 400;
}

.radio-line input,
.action-option input {
    width: auto;
    margin: 0;
}

button {
    width: 100%;
    margin-top: 8px;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: #e85d04;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

button:hover:not(:disabled) {
    background: #c2410c;
}

button:disabled {
    cursor: wait;
    opacity: .65;
}
