@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    src: url("../fonts/Inter-Variable.ttf") format("truetype");
}

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: italic;
    font-weight: 100 900;
    src: url("../fonts/Inter-VariableItalic.ttf") format("truetype");
}

:root {
    --bg: #f6f9fc;
    --surface: #ffffff;
    --surface-muted: #eef8fa;
    --text: #09213f;
    --muted: #5d7085;
    --line: #dbe5ef;
    --primary: #08b8c8;
    --primary-dark: #066f8e;
    --accent: #0b375d;
    --danger: #b94141;
    --warning: #d99524;
    --shadow: 0 18px 38px rgba(9, 33, 63, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.button-primary {
    background: var(--primary);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: #ffffff;
    border-color: var(--line);
    color: var(--primary-dark);
}

.button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.button svg {
    height: 18px;
    width: 18px;
}

.button-warning {
    background: var(--warning);
    color: #241700;
}

.button-danger {
    background: var(--danger);
    color: #ffffff;
}

.button-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--primary-dark);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    padding: 24px;
}

.narrow-panel {
    margin: 48px auto;
    max-width: 520px;
}

.section-header {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-header h2 {
    align-items: center;
    display: flex;
    font-size: 24px;
    gap: 10px;
    margin: 0;
}

.header-actions,
.form-actions,
.row-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alert {
    border-radius: var(--radius);
    margin: 0 0 16px;
    padding: 12px 14px;
}

.alert-success {
    background: #e7f5ed;
    border: 1px solid #b8ddc8;
    color: #1f6640;
}

.alert-error {
    background: #fbebeb;
    border: 1px solid #e8b7b7;
    color: #8f2f2f;
}

.status-pill {
    background: var(--surface-muted);
    border: 1px solid #c9ddd7;
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
}

.eyebrow {
    color: #2a4058;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.empty-state {
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

.app-modal {
    inset: 0;
    position: fixed;
    z-index: 1000;
}

.app-modal[hidden] {
    display: none;
}

.app-modal__backdrop {
    background: rgba(3, 26, 47, .52);
    inset: 0;
    position: absolute;
}

body.has-app-modal {
    overflow: hidden;
}

.modal-close {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    width: 34px;
}

@media (max-width: 720px) {
    .section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
