:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #111827;
    --muted: #64748b;
    --line: #dbe3ee;
    --brand: #5668BF;
    --brand-dark: #3F4FA3;
    --brand-soft: #E8ECFF;
    --blue: #5668BF;
    --blue-soft: #e7efff;
    --danger: #b42318;
    --danger-dark: #8f1d14;
    --warning: #b45309;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, .10);
    --radius: 10px;
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -10%, rgba(86, 104, 191, .14), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(86, 104, 191, .12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, #eef3f8 100%);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
}

a:hover {
    color: var(--blue);
}

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

strong,
b {
    font-weight: 600;
}

h1 {
    letter-spacing: 0;
}

h2 {
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 16px;
}

p {
    color: var(--muted);
}

.auth-page {
    width: min(100%, 1180px);
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(360px, 440px);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
    padding: 48px clamp(20px, 4vw, 48px);
}

.auth-box,
.panel {
    width: min(100%, 980px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(219, 227, 238, .95);
    border-radius: var(--radius);
    padding: clamp(20px, 2.4vw, 30px);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.auth-box {
    max-width: 440px;
    justify-self: stretch;
}

.auth-hero {
    max-width: 660px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(86, 104, 191, .22);
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 650;
    padding: 8px 12px;
    margin-bottom: 18px;
}

.auth-hero h1 {
    max-width: 640px;
    color: #0f172a;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.06;
    margin-bottom: 18px;
}

.auth-hero p {
    max-width: 580px;
    font-size: 18px;
    line-height: 1.7;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.auth-benefits span {
    border: 1px solid rgba(219, 227, 238, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    padding: 13px;
    box-shadow: var(--shadow-sm);
}

.auth-links {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.auth-links p {
    margin: 0;
}

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

.form-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
}

.required-field::after {
    content: " *";
    color: var(--danger);
    font-weight: 800;
}

.candidate-enrollment {
    width: 60%;
    max-width: 1120px;
    margin-inline: auto;
    justify-self: center;
}

.enrollment-form {
    display: grid;
    gap: 20px;
}

.form-section {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(203, 213, 225, .72);
    border-radius: 8px;
    background: #fbfdff;
}

.form-section h2 {
    margin: 0;
    color: #334155;
    font-size: 17px;
}

.field-label {
    display: inline-block;
    color: #334155;
    font-weight: 700;
    font-size: 13px;
}

.wide-field {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.form-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbff;
}

.formation-preview-action {
    display: flex;
    align-items: end;
}

.link-button {
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--brand-dark);
    box-shadow: none;
}

.link-button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    box-shadow: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .46);
}

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

.modal-panel {
    position: relative;
    width: min(100%, 720px);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    box-shadow: none;
    font-size: 24px;
    line-height: 1;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    box-shadow: none;
}

.formation-preview-summary {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    padding: 10px 12px;
}

.formation-preview-summary strong {
    font-size: 24px;
    color: var(--brand-dark);
}

.modal-panel h3 {
    margin: 18px 0 8px;
    color: #334155;
    font-size: 15px;
}

.modal-panel ul {
    margin: 0;
    padding-left: 20px;
    color: #334155;
}

.formation-preview-scroll {
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    padding: 12px 14px;
}

.modal-panel li {
    margin: 6px 0;
}

.modal-panel li span {
    color: var(--muted);
}

.side-frame-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(15, 23, 42, .28);
}

.side-frame-backdrop[hidden],
.side-frame[hidden] {
    display: none;
}

.side-frame {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    display: grid;
    grid-template-rows: auto auto 1fr;
    width: min(100%, 520px);
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -18px 0 42px rgba(15, 23, 42, .18);
}

.side-frame-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}

.side-frame-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.side-frame-head p {
    margin: 0;
}

.side-frame .modal-close {
    position: static;
    flex: 0 0 auto;
}

.side-frame-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.side-frame-summary span {
    display: grid;
    gap: 3px;
    color: var(--ink);
    font-weight: 700;
}

.side-frame-summary strong {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.side-frame-content {
    display: grid;
    align-content: start;
    gap: 12px;
    overflow: auto;
    padding: 18px 22px 24px;
}

.response-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
}

.response-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.response-status {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.response-status.is-acquired {
    background: #dcfce7;
    color: #166534;
}

.response-status.is-progress {
    background: #ffedd5;
    color: #9a3412;
}

.response-domain {
    margin: 0 0 6px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.response-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.response-card dl div {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
}

.response-card dt {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.response-card dd {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.stage-period-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px 12px;
    margin: 0;
    grid-column: span 2;
}

.stage-period-fields legend {
    padding: 0 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea {
    min-height: 92px;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(86, 104, 191, .13);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #e9eef5;
    color: #64748b;
    cursor: not-allowed;
}

select option:checked {
    background: var(--brand);
    color: #fff;
}

.password-field {
    display: flex;
    gap: 8px;
}

.password-field input {
    flex: 1;
}

.password-field button {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    border: 1px solid #cbd5e1;
    background: #f8fbff;
    color: var(--brand-dark);
    padding: 10px;
    line-height: 1;
    box-shadow: none;
}

.password-field button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-field button:hover {
    background: var(--brand-soft);
    color: var(--brand-dark);
    box-shadow: none;
}

button {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #7182D6 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 11px 16px;
    box-shadow: 0 8px 16px rgba(86, 104, 191, .18);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(86, 104, 191, .24);
}

button:active {
    transform: translateY(0);
}

a.button-link,
button.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #7182D6 0%, var(--brand) 100%);
    color: #fff;
    font-weight: 700;
    padding: 11px 16px;
    box-shadow: 0 8px 16px rgba(86, 104, 191, .18);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

a.button-link:hover,
button.button-link:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(86, 104, 191, .24);
}

button.danger {
    background: var(--danger);
    box-shadow: 0 8px 16px rgba(180, 35, 24, .16);
}

button.danger-small {
    margin-left: 8px;
    padding: 6px 9px;
    background: var(--danger);
    font-size: 12px;
    box-shadow: none;
}

button.danger-small:hover,
button.danger:hover {
    background: var(--danger-dark);
}

button.secondary {
    background: #334155;
    box-shadow: 0 8px 16px rgba(51, 65, 85, .14);
}

button.invite-button {
    background: #15803d;
    box-shadow: 0 8px 16px rgba(21, 128, 61, .18);
}

button.invite-button:hover {
    background: #166534;
    box-shadow: 0 12px 22px rgba(21, 128, 61, .24);
}

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

.table-actions form {
    margin: 0;
}

.table-actions button,
.table-actions a {
    min-height: 34px;
    border-radius: 7px;
    font-size: 12px;
    padding: 7px 10px;
}

.table-actions a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--brand-dark);
}

.invite-actions {
    justify-content: center;
    min-width: 88px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    white-space: nowrap;
}

.badge.ok {
    border-color: #b7d9c5;
    background: #ecfdf3;
    color: #166534;
}

.badge.warning {
    border-color: #fed7aa;
    background: #fff7ed;
    color: var(--warning);
}

.badge.danger {
    border-color: #ffc9c2;
    background: #fff0ee;
    color: var(--danger);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.stat-box strong {
    display: block;
    color: var(--brand-dark);
    font-size: 28px;
    line-height: 1;
}

.stat-box span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.results-stats .stat-box strong {
    overflow-wrap: anywhere;
}

.alert {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert.ok {
    background: #E8ECFF;
    border-color: #D4DAFF;
    color: #3F4FA3;
}

.alert.error {
    background: #fff0ee;
    border-color: #ffc9c2;
    color: var(--danger);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #3F4FA3 0%, #5668BF 58%, #7182D6 100%);
    border-bottom: 1px solid rgba(191, 219, 254, .36);
    padding: 16px clamp(16px, 3vw, 42px);
    box-shadow: 0 10px 30px rgba(63, 79, 163, .22);
    backdrop-filter: blur(12px);
}

.topbar .topbar-page-title {
    position: absolute;
    left: 50%;
    top: 50%;
    max-width: min(42vw, 560px);
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    transform: translate(-50%, -50%);
}

.topbar-title {
    flex: 0 1 auto;
    min-width: 0;
}

.topbar h1 {
    margin-bottom: 3px;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.topbar p {
    margin-bottom: 0;
    color: #E8ECFF;
    font-weight: 800;
    text-align: center;
}

.brand-block > div {
    text-align: center;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.org-logo {
    width: 280px;
    max-width: 100%;
    border: none;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.topbar-user {
    display: grid;
    flex: 0 0 280px;
    gap: 4px;
    min-width: min(100%, 280px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
}

.topbar-user.is-visible {
    display: grid;
}

.topbar-user strong {
    color: var(--ink);
    font-size: 15px;
}

.topbar-user div {
    overflow-wrap: anywhere;
}

.topbar nav {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-account {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 10px;
}

.topbar-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 12px clamp(16px, 3vw, 42px);
    border-bottom: 1px solid rgba(219, 227, 238, .95);
    border-radius: 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.topbar nav form,
.topbar-account form,
.topbar-links form {
    margin: 0;
}

.topbar nav a,
.topbar-account a,
.topbar button {
    border: 1px solid rgba(219, 234, 254, .42);
    border-radius: 8px;
    color: #eff6ff;
    background: rgba(255, 255, 255, .12);
    padding: 10px 13px;
    box-shadow: none;
}

.topbar-links a {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand-dark);
    background: var(--surface-soft);
    padding: 10px 13px;
    box-shadow: none;
}

.topbar nav a:hover,
.topbar-account a:hover,
.topbar button:hover {
    border-color: rgba(255, 255, 255, .72);
    color: #fff;
    background: rgba(255, 255, 255, .20);
    transform: translateY(-1px);
}

.topbar-links a:hover {
    border-color: rgba(86, 104, 191, .35);
    color: var(--brand-dark);
    background: var(--brand-soft);
    transform: translateY(-1px);
}

.topbar nav a.avatar-link,
.topbar-account a.avatar-link {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    padding: 0;
    overflow: hidden;
}

.avatar-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-link span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 700;
}

.topbar nav a.logout-link,
.topbar-account a.logout-link {
    border-color: rgba(15, 23, 42, .34);
    background: rgba(15, 23, 42, .30);
    color: #fff;
}

.layout {
    display: grid;
    gap: 22px;
    padding: 24px clamp(16px, 3vw, 42px) 46px;
}

.panel {
    width: 100%;
}

.panel-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.panel.is-hidden {
    display: none;
}

.danger-zone {
    border-color: rgba(180, 35, 24, .28);
    background: #fff7f6;
}

.danger-zone h2 {
    color: var(--danger-dark);
}

.danger-zone p {
    max-width: 760px;
    color: #7f1d1d;
}

.candidate-picker {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr);
    gap: 14px;
    margin-top: 16px;
    align-items: end;
}

.candidate-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
}

.candidate-summary strong,
.candidate-summary span {
    color: var(--ink);
    font-size: 14px;
}

.candidate-edit-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(180deg, #7182D6, var(--brand));
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    flex: 0 0 auto;
    box-shadow: 0 10px 18px rgba(86, 104, 191, .20);
}

.candidate-edit-avatar:hover {
    color: #fff;
    filter: brightness(.96);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.candidate-table {
    min-width: 1220px;
}

th,
td {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.candidate-table th,
.candidate-table td {
    white-space: nowrap;
}

.candidate-table .table-actions {
    display: table-cell;
    text-align: center;
    white-space: nowrap;
}

.candidate-table .table-actions form,
.candidate-table .table-actions a,
.candidate-table .table-actions button {
    display: inline-flex;
    vertical-align: middle;
}

th {
    background: #f1f6ff;
    color: #334155;
    font-size: 13px;
    text-transform: none;
}

tbody tr {
    transition: background .12s ease;
}

tbody tr:hover {
    background: #f8fbff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tr.is-highlighted {
    background: #fff8db;
    outline: 2px solid #d99a16;
    outline-offset: -2px;
}

.sort-table {
    border: 0;
    background: transparent;
    color: #334155;
    padding: 0;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    box-shadow: none;
}

.sort-table:hover {
    color: var(--brand-dark);
    transform: none;
    box-shadow: none;
}

.sort-table::after {
    content: " \2195";
    color: var(--muted);
    font-weight: 600;
}

.sort-table.is-asc::after { content: " \2191"; }
.sort-table.is-desc::after { content: " \2193"; }
.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.topbar-title {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-block > div {
    min-width: 0;
}

.brand-block h1 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user {
    flex: 0 1 auto;
    min-width: 0;
}

.topbar-account {
    flex: 0 0 auto;
}
.brand-block h1 {
    max-width: 420px;
}
@media (max-width: 760px) {
    .auth-page {
        grid-template-columns: 1fr;
        padding: 28px 16px;
    }

    .auth-box {
        justify-self: stretch;
        max-width: none;
    }

    .auth-benefits,
    .form-grid.cols-3,
    .stats-grid,
    .candidate-picker {
        grid-template-columns: 1fr;
    }

    .stage-period-fields {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .candidate-enrollment {
        width: 100%;
    }

    .topbar .topbar-page-title {
        position: static;
        max-width: none;
        transform: none;
    }

    .wide-field {
        grid-column: auto;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions a,
    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        position: static;
    }

    .topbar-user {
        width: 100%;
    }

    .topbar nav {
        justify-content: flex-start;
        width: 100%;
    }

    .topbar-account {
        justify-content: flex-start;
        margin-left: 0;
        width: 100%;
    }

    .topbar-links {
        justify-content: flex-start;
    }

    .topbar nav a,
    .topbar-account a,
    .topbar nav form,
    .topbar nav button {
        flex: 1 1 150px;
        text-align: center;
    }

    .topbar-links a {
        flex: 1 1 150px;
        text-align: center;
    }
      .brand-block h1 {
        max-width: 220px;
    }
}
