:root {
    --navy-900: #1f2a3e;
    --navy-700: #364766;
    --navy-50: #f3f5f9;
    --crimson: #c8102e;
    --accent: #e30613;
    --line: #e4e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--navy-50);
    color: var(--navy-900);
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a { color: inherit; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner, .nav-links, .brand, .actions {
    display: flex;
    align-items: center;
}

.header-inner { justify-content: space-between; min-height: 73px; gap: 16px; }

.brand { gap: 10px; text-decoration: none; }

.brand img { height: 44px; width: auto; }

.brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.brand span {
    display: block;
    margin-top: 2px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.42em;
}

.nav-links { gap: 8px; }

.nav-links a, .text-button {
    color: var(--navy-700);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-links a:hover { background: var(--navy-50); }

main { padding: 32px 0 64px; }

h1 { font-size: 32px; line-height: 1.15; font-weight: 800; margin: 0 0 8px; }

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="file"], select {
    width: 100%;
    border: 1px solid #d5dbe6;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    color: var(--navy-900);
    background: #fff;
}

.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 14px; }

.check input { width: auto; }

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--crimson);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 20px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary { background: #fff; color: var(--navy-900); border: 1px solid #d5dbe6; }

.actions { gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.errors, .warning {
    background: #fff4f5;
    color: #8d1024;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 16px;
}

.table-wrap { overflow-x: auto; }

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

.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }

.logo-thumb { height: 36px; width: auto; }

.preview-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.muted { color: var(--navy-700); }

@media (max-width: 800px) {
    .grid, .header-inner { display: block; }
    .nav-links { margin-top: 8px; }
    h1 { font-size: 28px; }
}
