* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #0b111f;
    color: #f5f7fb;
    line-height: 1.5;
}

header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, #162447, #1f4068);
}

header h1 {
    margin: 0 0 0.25rem;
    font-size: 2.25rem;
}

header .lead {
    margin: 0;
    color: #d6dcf8;
}

main {
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.card {
    background: rgba(21, 34, 56, 0.95);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.card h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.card.collapsible summary {
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    margin: 0 -0.5rem 1rem;
    padding: 0.25rem 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f5f7fb;
}

.card.collapsible summary::-webkit-details-marker {
    display: none;
}

.card.collapsible details[open] summary {
    border-bottom: 1px solid rgba(78, 168, 222, 0.35);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    margin-top: 1.75rem;
    font-size: 1.15rem;
    color: #a3b5e9;
}

form {
    display: grid;
    gap: 1.25rem;
}

.field {
    display: grid;
    gap: 0.5rem;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #c5d1f3;
}

.field-hint {
    margin: 0;
    font-size: 0.9rem;
    color: #9fb5e7;
}

label {
    font-weight: 600;
    color: #c5d1f3;
}

input,
select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(85, 115, 170, 0.5);
    background: rgba(11, 17, 31, 0.8);
    color: #f5f7fb;
    font-size: 1rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #4ea8de;
    box-shadow: 0 0 0 2px rgba(78, 168, 222, 0.3);
}

.hint {
    margin: 0;
    color: #9fb5e7;
    font-size: 0.95rem;
}

button {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    border: none;
}

.button.primary {
    background: #4ea8de;
    color: #0b111f;
}

.button.secondary {
    background: rgba(78, 168, 222, 0.15);
    color: #d1e8ff;
    border: 1px solid rgba(78, 168, 222, 0.45);
}

.button.accent {
    background: #7cc29c;
    color: #0b111f;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(78, 168, 222, 0.35);
}

#statusArea {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(12, 18, 32, 0.85);
    border-left: 4px solid transparent;
    min-height: 2.5rem;
    white-space: pre-line;
}

#statusArea.status-info {
    border-left-color: #4ea8de;
    color: #cfe8ff;
}

#statusArea.status-success {
    border-left-color: #7cc29c;
    color: #d6f5e4;
}

#statusArea.status-error {
    border-left-color: #f07167;
    color: #ffdedb;
}

dt {
    font-weight: 600;
    color: #c5d1f3;
}

dd {
    margin: 0 0 0.75rem 0;
    color: #f5f7fb;
}

.actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.next-steps {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(22, 36, 71, 0.6);
    border: 1px solid rgba(78, 168, 222, 0.25);
}

.links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.positions-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(12, 18, 32, 0.85);
    border: 1px solid rgba(78, 168, 222, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
}

.positions-grid input[type="checkbox"] {
    width: auto;
}

.positions-note {
    margin-top: 0.75rem;
    color: #9fb5e7;
    font-size: 0.95rem;
}

.plan-columns {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 1.25rem;
    align-items: start;
}

.plan-columns--roles {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-columns--single {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
}

.plan-column h3 {
    margin-top: 0;
    color: #9fb5e7;
}

.plan-list {
    list-style: disc;
    margin: 0;
    padding-left: 1.1rem;
    color: #f5f7fb;
}

.plan-list li {
    margin-bottom: 0.5rem;
}

.plan-list li.empty-state {
    list-style: none;
    padding-left: 0;
    color: #9fb5e7;
}

.plan-raw {
    margin-top: 1.5rem;
}

.plan-raw summary {
    cursor: pointer;
    color: #7cc4ff;
}

.plan-raw pre {
    margin-top: 0.75rem;
    background: rgba(12, 18, 32, 0.85);
    border: 1px solid rgba(78, 168, 222, 0.25);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    max-height: 320px;
}

.qualification-note {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: rgba(22, 36, 71, 0.7);
    border: 1px solid rgba(78, 168, 222, 0.35);
    color: #d6dcf8;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.qualification-note strong {
    color: #9fb5e7;
}

footer {
    padding: 1rem;
    text-align: center;
    color: #7a8ec2;
    font-size: 0.95rem;
}

a {
    color: #7cc4ff;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    header h1 {
        font-size: 1.75rem;
    }

    .card {
        padding: 1.25rem;
    }

    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    button {
        width: 100%;
    }
}
