/* Inter (latin, variable 400-700), self-hosted so pages don't wait on extra hosts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Access Management theme
 * Sits on top of stock Bootstrap 3.4 so existing markup and plugins
 * (modal, dropdown, tab, tooltip, collapse, select2) keep working.
 */

:root {
    --bg: #faf8f5;
    --surface: #ffffff;
    --surface-2: #f6f3ef;
    --border: #e8e3dc;
    --border-strong: #d6cfc5;
    --text: #1c1917;
    --text-2: #57534e;
    --muted: #8a837b;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-soft: #fff1e7;
    --ring: rgba(234, 88, 12, .22);
    --success: #15803d;
    --success-soft: #ecfdf3;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --warning: #b45309;
    --warning-soft: #fffbeb;
    --info: #2563eb;
    --info-soft: #eff6ff;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 1px 3px rgba(28, 25, 23, .04);
    --shadow-lg: 0 12px 32px rgba(28, 25, 23, .12);
}

/* ---------- Base ---------- */

html { -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: var(--text);
    font-family: inherit;
    font-weight: 650;
    letter-spacing: -0.015em;
}

h1 { font-size: 24px; margin: 0; }
h3 { font-size: 17px; }

a { color: var(--accent); }
a:hover, a:focus { color: var(--accent-hover); text-decoration: none; }

hr { border-color: var(--border); }

.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Layout ---------- */

.app-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.app-main > .container,
.app-main .container {
    width: auto;
    max-width: none;
    padding: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 650;
    font-size: 15px;
    white-space: nowrap;
}

.brand:hover, .brand:focus { color: var(--text); }
.brand img { width: 28px; height: 28px; }

.topnav {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topnav a {
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    color: var(--text-2);
    font-weight: 500;
}

.topnav a:hover { background: var(--surface-2); color: var(--text); }
.topnav .active a { background: var(--accent-soft); color: var(--accent-hover); }

.topbar-user { margin-left: auto; position: relative; }

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 5px;
    background: none;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
}

.user-button:hover, .open > .user-button { background: var(--surface-2); border-color: var(--border); }

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-hover);
    font-size: 12px;
    font-weight: 650;
    overflow: hidden;
    flex-shrink: 0;
}

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

.menu-toggle {
    display: none;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: 0;
    border-radius: 8px;
    color: var(--text);
}

@media (max-width: 767px) {
    .app-main { padding: 20px 16px 48px; }
    .topbar-inner { padding: 0 16px; gap: 12px; flex-wrap: wrap; height: auto; min-height: 56px; }
    .menu-toggle { display: block; }
    .topbar-collapse { display: none; width: 100%; padding: 4px 0 12px; }
    .topbar-collapse.in { display: block; }
    .topnav { flex-direction: column; }
    .topbar-user { margin: 8px 0 0; }
}

@media (min-width: 768px) {
    .topbar-collapse { display: flex !important; align-items: center; gap: 28px; flex: 1; }
}

/* ---------- Page header ---------- */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.page-header p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--muted);
    font-weight: 500;
}

.back-link:hover { color: var(--text); }

/* ---------- Cards ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.card + .card { margin-top: 20px; }
.card-body { padding: 24px; }

.card-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.card-toolbar .form-control { width: auto; flex: 1 1 150px; max-width: 220px; }

@media (max-width: 767px) {
    .card-toolbar .form-control { max-width: none; }
}
.card-footer { padding: 12px 16px; border-top: 1px solid var(--border); }

.stat-line { color: var(--muted); font-size: 13px; }
.stat-line strong { color: var(--text); font-weight: 600; }

/* ---------- Tables ---------- */

.table-responsive { position: relative; border: 0; margin: 0; }

.table { margin: 0; }

.table > thead > tr > th {
    padding: 10px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table > thead > tr > th a { color: inherit; }
.table > thead > tr > th a:hover { color: var(--text); }

.table > tbody > tr > td {
    padding: 11px 16px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.table > tbody > tr:first-child > td { border-top: 0; }
.table-condensed > tbody > tr > td { padding: 9px 16px; }
.table-hover > tbody > tr:hover { background: #fdfbf8; }

/* Tables are wrapped in cards; drop Bootstrap's grid lines and zebra stripes */
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-left: 0; border-right: 0; }
.table-bordered { border: 0; }
.table-striped > tbody > tr:nth-of-type(odd) { background: transparent; }
.table-striped.table-hover > tbody > tr:hover { background: #fdfbf8; }

.card > .table-responsive:first-child .table > thead > tr > th:first-child { border-top-left-radius: var(--radius-lg); }
.card > .table-responsive:first-child .table > thead > tr > th:last-child { border-top-right-radius: var(--radius-lg); }

.table .group-row > td {
    padding: 8px 16px;
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.table .empty-row > td { padding: 40px 16px; color: var(--muted); text-align: center; }

.cell-strong { font-weight: 550; color: var(--text); }
.cell-sub { color: var(--muted); font-size: 12.5px; }
.cell-actions { text-align: right; white-space: nowrap; }
.cell-actions .btn + .btn, .cell-actions .btn + .d-inline-block { margin-left: 4px; }
.d-inline-block { display: inline-block; }
.btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }

.sorting .glyphicon { font-size: 9px; margin-left: 2px; top: 0; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 550;
    font-size: 14px;
    line-height: 1;
    box-shadow: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn:focus, .btn:active:focus, .btn.active:focus { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.btn:active, .btn.active { box-shadow: none; }

.btn-sm, .btn-group-sm > .btn { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-block { display: flex; width: 100%; }
.btn .glyphicon { top: 0; font-size: .9em; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active,
.btn-primary:active:hover, .btn-primary:active:focus, .open > .dropdown-toggle.btn-primary {
    background: var(--accent-hover); border-color: var(--accent-hover); color: #fff;
}
.btn-primary.disabled, .btn-primary[disabled], .btn-primary.disabled:hover, .btn-primary[disabled]:hover {
    background: var(--accent); border-color: var(--accent); opacity: .6;
}

.btn-default { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active,
.btn-default:active:hover, .btn-default:active:focus {
    background: var(--surface-2); border-color: var(--border-strong); color: var(--text);
}

.btn-success { background: var(--text); border-color: var(--text); color: #fff; }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success:active:hover {
    background: #3a3531; border-color: #3a3531; color: #fff;
}

.btn-danger, .btn-red { background: var(--surface); border-color: #f3c9c9; color: var(--danger); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger:active:hover,
.btn-red:hover, .btn-red:focus {
    background: var(--danger-soft); border-color: #eeb0b0; color: #b91c1c;
}

.btn-info, .btn-warning { background: var(--surface); border-color: var(--border-strong); color: var(--text-2); }
.btn-info:hover, .btn-info:focus, .btn-warning:hover, .btn-warning:focus,
.btn-info:active, .btn-warning:active {
    background: var(--surface-2); border-color: var(--border-strong); color: var(--text);
}

.btn-link { height: auto; padding: 8px 0; color: var(--text-2); font-weight: 500; }
.btn-link:hover, .btn-link:focus { color: var(--text); text-decoration: none; box-shadow: none; }

.btn-group > .btn { border-radius: 9px; }
.btn-group > .btn + .btn { margin-left: 8px; }
.btn-embossed { box-shadow: none; }

.btn-loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */

label, .control-label { color: var(--text); font-weight: 550; font-size: 13.5px; }

.form-control {
    height: 40px;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    box-shadow: none;
    color: var(--text);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}

.form-control::placeholder { color: #a8a29e; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.form-control[disabled], .form-control[readonly] { background: var(--surface-2); color: var(--muted); }
textarea.form-control { height: auto; min-height: 96px; }
select.form-control { padding-right: 32px; }

.input-sm { height: 34px; padding: 6px 10px; font-size: 13px; border-radius: 8px; }

.form-group { margin-bottom: 18px; }
.help-block { color: var(--muted); font-size: 13px; }

.form-horizontal .control-label { padding-top: 10px; text-align: left; }

@media (min-width: 768px) {
    .form-horizontal .control-label { text-align: right; }
}

.checkbox label, .radio label { font-weight: 450; color: var(--text); }

input[type="checkbox"], input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
}

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

.form-card .form-group:last-child { margin-bottom: 0; }

select.input-sm { height: 34px; line-height: normal; }

.site-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding-top: 10px;
}

.site-checklist label { display: block; margin: 0 !important; }
.site-checklist .form-control { margin-top: 8px; }

/* select2 */
.select2-container--bootstrap .select2-selection { border-color: var(--border-strong); border-radius: 9px; box-shadow: none; }
.select2-container--bootstrap.select2-container--focus .select2-selection,
.select2-container--bootstrap.select2-container--open .select2-selection { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.select2-container--bootstrap .select2-results__option--highlighted[aria-selected] { background: var(--accent); }

/* ---------- Labels / pills ---------- */

.label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.label-success { background: var(--success-soft); color: var(--success); }
.label-danger { background: var(--danger-soft); color: var(--danger); }
.label-warning { background: var(--warning-soft); color: var(--warning); }
.label-info, .label-primary { background: var(--info-soft); color: var(--info); }
.label-default { background: var(--surface-2); color: var(--text-2); }
a.label:hover, a.label:focus { opacity: .85; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-on { background: #22c55e; }
.dot-off { background: #d6d3d1; }

/* ---------- Alerts ---------- */

#message:empty { display: none; }

.alert {
    position: relative;
    padding: 12px 40px 12px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 500;
}

.alert .close { position: absolute; top: 10px; right: 14px; opacity: .45; text-shadow: none; font-weight: 400; }
.alert .close:hover { opacity: .8; }
.alert-success { background: var(--success-soft); border-color: #bbf0cf; color: #166534; }
.alert-danger { background: var(--danger-soft); border-color: #fbd0d0; color: #991b1b; }
.alert-warning { background: var(--warning-soft); border-color: #fce5a8; color: #92400e; }
.alert-info { background: var(--info-soft); border-color: #cfe0fd; color: #1e40af; }

/* ---------- Tabs ---------- */

.nav-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.nav-tabs:before, .nav-tabs:after { display: none; }
.nav-tabs > li { float: none; margin-bottom: -1px; }

.nav-tabs > li > a {
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--muted);
    font-weight: 550;
}

.nav-tabs > li > a:hover { background: none; border-color: transparent; color: var(--text); }

.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
    background: none;
    border: 0;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}

/* ---------- Dropdowns / modals / tooltips ---------- */

.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

.dropdown-menu > li > a { padding: 8px 12px; border-radius: 7px; color: var(--text); }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--surface-2); color: var(--text); }
.dropdown-menu .divider { margin: 6px 0; background: var(--border); }
.dropdown-header { padding: 6px 12px 4px; color: var(--muted); }

.modal-backdrop.in { opacity: .35; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header { padding: 20px 24px 8px; border: 0; }
.modal-title { font-size: 17px; font-weight: 650; }
.modal-body { padding: 8px 24px 20px; color: var(--text-2); }
.modal-footer { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }
.modal .close { margin-top: -2px; font-size: 24px; font-weight: 400; opacity: .4; }
.modal-footer .btn-group { display: flex; flex-direction: row-reverse; gap: 8px; float: right; }
.modal-footer .btn-group > .btn { float: none; margin: 0; border-radius: 9px !important; }

@media (min-width: 768px) {
    .modal-dialog { margin-top: 12vh; }
}

.tooltip-inner { max-width: 320px; padding: 8px 10px; background: var(--text); border-radius: 8px; text-align: left; font-size: 12.5px; }
.tooltip.right .tooltip-arrow { border-right-color: var(--text); }
.tooltip.top .tooltip-arrow { border-top-color: var(--text); }

/* ---------- Pagination ---------- */

.pager-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.pager-bar p { margin: 0; color: var(--muted); font-size: 13px; }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.pagination > li > a, .pagination > li > span {
    float: none;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 8px !important;
    color: var(--text-2);
    font-weight: 500;
}

.pagination > li > a:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.pagination > .active > span, .pagination > .active > span:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination > .disabled > span { background: none; border-color: transparent; color: #c9c3bb; }

/* ---------- Auth pages ---------- */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 12vh 16px 48px; }

.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--text); font-weight: 650; font-size: 16px; }
.auth-brand:hover { color: var(--text); }
.auth-brand img { width: 36px; height: 36px; }

.auth-card { width: 100%; max-width: 420px; padding: 32px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .lead-text { margin: 0 0 24px; color: var(--muted); }
.auth-card .btn-block + .btn-block { margin-top: 8px; }
.auth-card .g-recaptcha { display: flex; justify-content: center; margin: 4px 0 18px; }

.auth-footer { margin-top: 20px; color: var(--muted); text-align: center; }
.auth-footer a { font-weight: 550; }

.auth-split { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.auth-split .checkbox { margin: 0; }
.auth-split a { font-size: 13.5px; font-weight: 500; }

.label-row { display: flex; justify-content: space-between; align-items: baseline; }

/* ---------- Utilities kept from the previous theme ---------- */

.m-t-0 { margin-top: 0 !important; }
.m-t-1 { margin-top: 8px !important; }
.m-t-2 { margin-top: 16px !important; }
.m-t-3 { margin-top: 24px !important; }
.m-b-1 { margin-bottom: 8px !important; }
.m-b-2 { margin-bottom: 16px !important; }
.m-b-3 { margin-bottom: 24px !important; }
.m-b-4 { margin-bottom: 32px !important; }
.m-b-5 { margin-bottom: 40px !important; }
.m-l-2 { margin-left: 16px !important; }
.p-t-2 { padding-top: 10px !important; }

.text-xs-center { text-align: center; }
.text-xs-right { text-align: right; }
.text-md-nowrap { white-space: nowrap; }

@media (min-width: 992px) {
    .text-md-center { text-align: center; }
}

/* ---------- Invites ---------- */

.invite-link-row { display: flex; gap: 8px; }
.invite-link-row .form-control { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- App launcher ---------- */

.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.segmented a { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-weight: 550; font-size: 13px; }
.segmented a:hover { color: var(--text); }
.segmented a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.section-title { margin: 28px 0 12px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.section-title:first-of-type { margin-top: 4px; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }

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

.app-tile {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    color: var(--text);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.app-tile:hover, .app-tile:focus { border-color: var(--border-strong); box-shadow: var(--shadow-lg); color: var(--text); transform: translateY(-1px); }

.app-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.app-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.app-name { font-weight: 650; font-size: 15px; margin-bottom: 1px; }
.app-desc { margin-bottom: 4px; color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-meta { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-go { color: var(--muted); font-size: 16px; transition: color .15s, transform .15s; }
.app-tile:hover .app-go { color: var(--accent); transform: translateX(2px); }

/* ---------- v3 additions ---------- */

.field-error { margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 500; }
.has-error .form-control { border-color: #f0a3a3; }

dialog.confirm {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

dialog.confirm::backdrop { background: rgba(28, 25, 23, .35); }
dialog.confirm .confirm-body { padding: 22px 24px 18px; }
dialog.confirm h4 { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
dialog.confirm p { margin: 0; color: var(--text-2); }
dialog.confirm .confirm-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; background: var(--surface-2); border-top: 1px solid var(--border); }

.inline-form { display: inline; }
.credential { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.card-body > h3:first-child { margin-top: 0; }
