html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #0b1020;
    color: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: #8bb6ff;
}

a:hover {
    color: #bad4ff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #f8fafc;
    margin-top: 0;
}

.page-title {
    margin: 0 0 0.8rem;
}

.panel {
    background: linear-gradient(180deg, #121a2f 0%, #10182b 100%);
    border: 1px solid #25324f;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.stack-md > * + * {
    margin-top: 1rem;
}

.muted {
    color: #9baac6;
}

.warning-text {
    color: #ffcc73;
}

.error-text {
    color: #ff8f8f;
}

.success-text {
    color: #8ee6b7;
}

button,
input[type="button"],
input[type="submit"] {
    background: linear-gradient(180deg, #3f5d97 0%, #314a7b 100%);
    border: 1px solid #4b6fb3;
    color: #f3f6ff;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    transition: transform 0.08s ease, background-color 0.15s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background: linear-gradient(180deg, #4b6fb3 0%, #38578f 100%);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
    transform: translateY(1px);
}

textarea,
input[type="text"],
input[type="number"],
select {
    background: #0d162c;
    color: #e5e7eb;
    border: 1px solid #304262;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
}

textarea:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: 2px solid #4f7ecf;
    outline-offset: 1px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.4rem 0.55rem;
}

thead tr {
    background: #16213a;
}

tbody tr {
    border-top: 1px solid #273654;
}

tbody tr:nth-child(even) {
    background: rgba(19, 31, 56, 0.5);
}

.draft-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.action-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.selection-box {
    max-height: 14rem;
    overflow: auto;
    border: 1px solid #304262;
    border-radius: 8px;
    padding: 0.6rem;
    background: #0d162c;
}

.current-row {
    background: rgba(92, 132, 209, 0.23) !important;
}

fieldset {
    border: 1px solid #304262;
    border-radius: 8px;
    padding: 0.75rem;
}

legend {
    color: #d8e2f8;
    padding: 0 0.35rem;
}

details {
    border: 1px solid #273654;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    background: rgba(13, 22, 44, 0.7);
}

summary {
    cursor: pointer;
    color: #d4e1fd;
}

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