/* ==========================================================================
   theme.css — the single shared stylesheet for the CRM.
   Follows the Investwell design reference: brand blue on the IW neutral scale, a gradient app bar,
   a softly tinted page, white cards and brand-tinted table heads / footers. Sizes are in rem so the
   UI scales with browser zoom; layout uses flexbox / grid and %, not fixed pixel boxes.
   Page-specific rules (leads, role editor) live with their page, not here.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------- */
:root {
    --brand: #1B4F9C;
    --brand-900: #0C2549;
    --brand-800: #123566;
    --brand-700: #153E7A;
    --brand-200: #BFCEE3;
    --brand-100: #DFE6F1;
    --brand-50: #F1F4F9;
    --page: #F3F6FB;

    --n-50: #FAFAFA;
    --n-100: #F5F5F5;
    --n-200: #E5E5E5;
    --n-300: #D4D4D4;
    --n-400: #A3A3A3;
    --n-500: #737373;
    --n-600: #525252;
    --n-700: #404040;
    --n-800: #262626;
    --n-900: #171717;
    --n-950: #0A0A0A;

    --ok: #15803D;
    --ok-bg: #F0FDF4;
    --ok-line: #BBF7D0;
    --danger: #DC2626;
    --danger-700: #B91C1C;
    --danger-bg: #FEF2F2;
    --danger-line: #FECACA;
    --warn: #D97706;
    --warn-bg: #FFFBEB;
    --warn-line: #FDE68A;

    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 0.875rem;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, .05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, .10), 0 4px 6px -4px rgba(0, 0, 0, .10);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, .10), 0 8px 10px -6px rgba(0, 0, 0, .10);
    --ring: 0 0 0 3px rgba(27, 79, 156, .15);
    --field-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 6px rgba(16, 24, 40, .07);
    --field-line: #D9E0EC;
    --overlay: rgba(10, 24, 50, .74);

    --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    --row-pad: 0.25rem;
    --offline-h: 2.25rem;

    --z-header: 40;
    --z-profile: 70;
    --z-modal: 80;
    --z-confirm: 85;
    --z-toast: 90;
    --z-tip: 95;
    --z-offline: 100;
    --z-loader: 2147483000;
}

/* ---------- Base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--n-950);
    background: var(--page);
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ico { flex: none; vertical-align: middle; }
i[data-icon] { display: inline-flex; line-height: 0; }
.mono { font-family: var(--mono); }
.break { word-break: break-all; }
.muted { color: var(--n-500); }
html.modal-open, html.is-loading { overflow: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(.5rem) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes menu { from { opacity: 0; transform: translateY(-.25rem); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 2.125rem; padding: 0 .75rem;
    border: 1px solid var(--n-200); background: #fff; color: var(--n-900);
    border-radius: var(--radius); font-weight: 600; white-space: nowrap; text-decoration: none;
    transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--n-100); color: var(--n-900); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-700); border-color: var(--danger-700); color: #fff; }
.btn-ghost { color: var(--n-600); font-weight: 500; }
.btn-lg { height: 2.5rem; }
.btn-sm { height: 2rem; padding: 0 .625rem; font-size: .75rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-signout { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger-700); }
.btn-signout:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-switch { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.btn-switch:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; padding: 0; flex: none;
    border: 1px solid var(--n-200); background: #fff; color: var(--n-600); border-radius: var(--radius);
    transition: background .12s, border-color .12s, color .12s;
}
.icon-btn:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand); }
.icon-btn.is-danger:hover { background: var(--danger-bg); border-color: var(--danger-line); color: var(--danger); }
.icon-btn.is-success:hover { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn-quiet { border-color: transparent; background: transparent; }
.lock-mark { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; color: var(--n-400); }

/* ---------- Forms -------------------------------------------------------- */
.field { min-width: 0; }
.label { display: block; margin-bottom: .375rem; font-size: .8125rem; font-weight: 500; }
.req { color: var(--danger); }
.hint { margin-top: .375rem; font-size: .75rem; line-height: 1.5; color: var(--n-500); }
.field-error { margin-top: .3125rem; font-size: .75rem; color: var(--danger); }

.input, .select {
    width: 100%; height: 2.25rem; padding: 0 .6875rem; font-size: .8125rem;
    border: 1px solid var(--field-line); border-radius: .625rem; box-shadow: var(--field-shadow);
    background: #fff; color: var(--n-900); outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.input::placeholder { color: var(--n-400); }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: var(--ring), var(--field-shadow); }
.input:disabled, .select:disabled { background: var(--n-100); color: var(--n-500); cursor: not-allowed; }
.input.is-invalid, .select.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus, .select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.input-mono { font-family: var(--mono); }
.select {
    cursor: pointer; appearance: none; padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .625rem center;
}
.select.is-placeholder { color: var(--n-400); }
.select option { color: var(--n-900); }
textarea.input { height: auto; min-height: 5.5rem; padding: .625rem .75rem; resize: vertical; line-height: 1.5; }

.input-wrap { position: relative; }
.input-has-action { padding-right: 2.5rem; }
.input-action {
    position: absolute; right: .25rem; top: .25rem; width: 1.875rem; height: 1.875rem;
    display: flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--n-500); border-radius: .375rem;
}
.input-action:hover { background: var(--n-100); color: var(--n-900); }

.search { position: relative; flex: 1 1 14rem; min-width: 11rem; }
.search > i { position: absolute; left: .6875rem; top: 0; bottom: 0; display: flex; align-items: center; color: var(--n-400); pointer-events: none; }
.search .input { padding-left: 2.125rem; }

.alert {
    display: flex; gap: .625rem; align-items: flex-start;
    padding: .625rem .75rem; border: 1px solid; border-radius: var(--radius);
    font-size: .8125rem; line-height: 1.5; animation: fade .15s ease-out;
}
.alert .ico { margin-top: .0625rem; }
.alert-error { background: var(--danger-bg); border-color: var(--danger-line); color: #991B1B; }
.alert-error .ico { color: var(--danger); }

.switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .75rem .875rem; border: 1px solid var(--n-200); border-radius: .625rem; background: var(--n-50);
}
.switch-title { font-size: .8125rem; font-weight: 600; }
.switch-sub { margin-top: .125rem; font-size: .75rem; color: var(--n-500); }
.switch { position: relative; flex: none; width: 2.625rem; height: 1.5rem; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--n-300); transition: background .15s; pointer-events: none; }
.switch-track::after {
    content: ""; position: absolute; top: .1875rem; left: .1875rem; width: 1.125rem; height: 1.125rem;
    border-radius: 50%; background: #fff; transition: transform .15s;
}
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(1.125rem); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Badges, chips, avatars -------------------------------------- */
.chip {
    display: inline-block; padding: .125rem .5rem; border-radius: .5rem;
    font-size: .6875rem; font-weight: 600; line-height: 1.5;
}
.chip-brand { background: var(--brand-50); color: var(--brand); }
.chip-tag { padding: .0625rem .375rem; border-radius: .375rem; font-size: .625rem; letter-spacing: .03em; background: var(--brand-50); color: var(--brand); }
.status {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .1875rem .5625rem; border: 1px solid; border-radius: .5rem;
    font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.status::before { content: ""; width: .375rem; height: .375rem; border-radius: 50%; background: currentColor; }
.status-active { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.status-active::before { background: #16A34A; }
.status-inactive { background: var(--n-100); border-color: var(--n-200); color: var(--n-600); }
.status-inactive::before { background: var(--n-400); }

.avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--brand); color: #fff; font-size: .875rem; font-weight: 600;
}
.avatar-lg { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; }
.avatar-soft { width: 1.875rem; height: 1.875rem; background: var(--brand-50); color: var(--brand); font-size: .8125rem; }

/* ---------- Auth pages (login, error) ----------------------------------- */
.auth-shell {
    min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
    padding: 1.75rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-800) 42%, var(--brand) 100%);
}
.auth-card-split {
    display: flex; flex-wrap: wrap; width: 100%; max-width: 61.25rem; overflow: hidden;
    background: #fff; border-radius: 1.125rem; box-shadow: 0 24px 60px rgba(8, 25, 52, .34);
}
.auth-brand {
    position: relative; overflow: hidden; flex: 1 1 23.75rem; min-width: 18rem;
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: 2.5rem 2.25rem; color: #fff;
    background: linear-gradient(160deg, var(--brand) 0%, var(--brand-800) 100%);
}
.auth-brand::before, .auth-brand::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.auth-brand::before { right: -5.6rem; top: -5.6rem; width: 16.25rem; height: 16.25rem; }
.auth-brand::after { right: -2.5rem; bottom: -7.5rem; width: 14.4rem; height: 14.4rem; background: rgba(255, 255, 255, .05); }
.auth-brand > * { position: relative; }
.auth-logo { display: inline-flex; align-self: flex-start; padding: .5rem .75rem; border-radius: .625rem; }
.auth-logo img { display: block; height: 1.75rem; width: auto; }
.auth-eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.auth-headline { margin-top: .75rem; font-size: 1.9375rem; line-height: 1.22; font-weight: 700; letter-spacing: -.025em; text-wrap: pretty; }
.auth-lede { margin-top: .875rem; max-width: 34ch; font-size: .875rem; line-height: 1.7; color: rgba(255, 255, 255, .82); }

.auth-form { flex: 1 1 25rem; min-width: 18rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 2.5rem 2.25rem; }
.auth-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.auth-sub { margin-top: .375rem; font-size: .8125rem; line-height: 1.6; color: var(--n-500); }
.auth-copy { margin-top: .75rem; font-size: .75rem; color: var(--n-400); }

.auth-wrap { width: 100%; max-width: 25rem; }
.auth-box { display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: 2rem 1.5rem; text-align: center; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.auth-box .auth-logo { align-self: center; padding: 0; margin-bottom: 1rem; }

/* ---------- App shell ---------------------------------------------------- */
.app-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.app-main { flex: 1; width: 100%; margin: 0 auto; padding: 1.5rem 1.25rem 3.5rem; }

.app-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: linear-gradient(95deg, var(--brand-900) 0%, var(--brand-800) 55%, var(--brand) 100%);
    border-bottom: 1px solid var(--brand-900);
}
html.is-offline .app-header { top: var(--offline-h); }
html.is-offline body { padding-top: var(--offline-h); }
.app-header-inner {
    margin: 0 auto; padding: .375rem 1.25rem; min-height: 3.75rem;
    display: flex; align-items: center; gap: .875rem;
}
.brand { display: inline-flex; flex: none; align-items: center; padding: .3125rem .5625rem; border-radius: .5rem; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 1.5rem; width: auto; }
.header-sep { flex: none; width: 1px; height: 1.5rem; background: rgba(255, 255, 255, .22); }

.offline-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-offline); height: var(--offline-h);
    display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 0 1rem;
    background: var(--warn-bg); border-bottom: 1px solid var(--warn-line); color: #92400E;
    font-size: .8125rem; font-weight: 500; text-align: center;
}


/* Navigation */
.app-nav { display: flex; align-items: center; flex: 1; min-width: 0; flex-wrap: wrap; gap: .125rem; }
.nav-item { position: relative; }
.nav-btn {
    display: inline-flex; align-items: center; gap: .375rem;
    height: 2.125rem; padding: 0 .6875rem; border: 0; border-radius: .4375rem;
    background: transparent; color: rgba(255, 255, 255, .84); font-size: .875rem; font-weight: 500; white-space: nowrap; text-decoration: none;
    transition: color .12s, background .12s;
}
.nav-btn:hover { text-decoration: none; }
.nav-btn .ico:last-child { opacity: .6; }
.nav-btn .menu-ico { font-size: .9375rem; }
.nav-item:hover > .nav-btn, .nav-item.is-open > .nav-btn { color: #fff; background: rgba(255, 255, 255, .15); }
.nav-item.has-active > .nav-btn { color: #fff; background: rgba(255, 255, 255, .2); font-weight: 600; }
.nav-shortcut > .nav-btn > .ico:first-child { color: #FCD34D; opacity: 1; }
.nav-divider { flex: none; width: 1px; height: 1.125rem; margin: 0 .375rem; background: rgba(255, 255, 255, .22); }

.menu-panel {
    display: none; position: absolute; z-index: 60; min-width: 15rem; max-width: 22rem;
    padding: .25rem; background: #fff; border: 1px solid var(--n-200);
    border-radius: .625rem; box-shadow: var(--shadow-md); animation: menu .12s ease-out;
}
.menu-dropdown { left: 0; top: 100%; margin-top: .125rem; }
.menu-dropdown.flip { left: auto; right: 0; }
.menu-flyout { left: 100%; top: -.25rem; margin-left: .25rem; z-index: 61; min-width: 14rem; }
.menu-flyout.flip { left: auto; right: 100%; margin: 0 .25rem 0 0; }
.is-open > .menu-panel { display: block; }

.menu-heading { padding: .375rem .625rem .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--n-400); }
.menu-sub { position: relative; }
.menu-item {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    padding: .5rem .625rem; border: 0; border-radius: .4375rem; background: transparent;
    color: var(--n-800); font-size: .8125rem; text-align: left; white-space: nowrap; text-decoration: none;
}
.menu-item:hover, .menu-sub.is-open > .menu-parent { background: var(--n-100); color: var(--n-900); text-decoration: none; }
.menu-item.is-active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.menu-sub.has-active > .menu-parent { color: var(--brand); font-weight: 600; }
.menu-ico { flex: none; width: 1rem; text-align: center; font-size: .875rem; color: var(--n-400); }
.menu-item.is-active .menu-ico, .menu-sub.has-active > .menu-parent .menu-ico { color: var(--brand); }
.menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-caret { display: inline-flex; opacity: .5; }

/* Profile */
.profile { position: relative; flex: none; }
.profile-btn {
    display: flex; align-items: center; gap: .625rem; height: 2.75rem; padding: 0 .5rem 0 .375rem;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: .625rem; background: rgba(255, 255, 255, .08); text-align: left;
    transition: background .12s, border-color .12s;
}
.profile-btn:hover, .profile-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .3); }
.profile-btn .avatar { background: #fff; color: var(--brand); font-weight: 700; }
.profile-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.profile-name { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 600; color: #fff; }
.profile-role { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6875rem; color: rgba(255, 255, 255, .72); }
.profile-chevron { color: rgba(255, 255, 255, .7); }

.profile-panel {
    position: absolute; right: 0; top: calc(100% + .5rem); z-index: var(--z-profile);
    width: 20rem; max-width: calc(100vw - 2rem); overflow: hidden;
    background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); animation: pop .13s ease-out;
}
.profile-panel .avatar { background: var(--brand); color: #fff; }
.profile-head { display: flex; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--n-200); }
.profile-head-text { min-width: 0; }
.profile-head-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; }
.profile-head .chip { margin-top: .25rem; }
.profile-list { display: flex; flex-direction: column; gap: .75rem; margin: 0; padding: .75rem 1rem; }
.profile-row { display: flex; align-items: flex-start; gap: .625rem; }
.profile-row > .ico, .profile-row > i { margin-top: .125rem; color: var(--n-400); }
.profile-row > div { min-width: 0; }
.profile-row dt { font-size: .6875rem; color: var(--n-500); }
.profile-row dd { margin: 0; font-size: .8125rem; }
.ip-list { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .1875rem !important; }
.ip-chip { padding: .125rem .375rem; border: 1px solid var(--n-200); border-radius: .375rem; background: var(--n-50); font-family: var(--mono); font-size: .6875rem; }
.profile-foot { padding: .625rem .75rem; border-top: 1px solid var(--n-200); }

.nav-toggle { display: none; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.nav-toggle:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; }

/* ---------- Page structure ---------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.page-head-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: .625rem; min-width: 0; }
.page-head h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--brand-900); }
.page-sub { font-size: .8125rem; color: var(--n-500); }
.page-body { margin-top: 1.25rem; }

.panel { min-width: 0; background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem .875rem; border-bottom: 1px solid var(--brand-200); background: var(--brand-50); }
.panel-title { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 600; }
.panel-title .ico { color: var(--brand); }
.panel-hint { font-size: .75rem; color: var(--n-500); }

.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: .625rem;
    margin-top: 1.25rem; padding: .75rem;
    background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius-lg);
}
.toolbar .select { width: auto; min-width: 9.5rem; flex: 0 1 auto; }
.toolbar .select-sm { min-width: 4.5rem; padding-right: 1.75rem; }
.toolbar .date-field { display: flex; align-items: center; gap: .375rem; }
.toolbar .date-field label { font-size: .8125rem; color: var(--n-500); white-space: nowrap; }
.toolbar .date-field .input { width: auto; font-size: .8125rem; }
.toolbar-gap { flex: 1 1 0; }
.toolbar .rows { display: flex; align-items: center; gap: .5rem; }
.toolbar .rows span { font-size: .8125rem; color: var(--n-500); white-space: nowrap; }

.table-card { margin-top: 1rem; background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius-lg); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table { width: 100%; min-width: 52rem; border-collapse: collapse; font-size: .8125rem; }
.table-sm { min-width: 40rem; }
.nowrap { white-space: nowrap; }
.cell-sub-plain { word-break: normal; }
.table th {
    padding: .5rem .75rem; background: var(--brand-50); border-bottom: 1px solid var(--brand-200);
    text-align: left; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--n-600); white-space: nowrap;
}
.table td { padding: var(--row-pad) .75rem; border-bottom: 1px solid var(--n-200); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--brand-50); }
.table .col-actions { text-align: right; }
.cell-user { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.cell-user-text { min-width: 0; }
.cell-user-name { display: flex; align-items: center; gap: .375rem; font-weight: 600; }
.cell-sub { display: block; font-size: .75rem; color: var(--n-500); word-break: break-all; }
.cell-actions { display: flex; justify-content: flex-end; gap: .375rem; }
.cell-ip { max-width: 14rem; font-family: var(--mono); font-size: .75rem; color: var(--n-600); word-break: break-all; }
.cell-muted { color: var(--n-500); }
.table-card.is-empty .table-scroll { display: none; }

.pager {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .75rem 1rem; border-top: 1px solid var(--brand-200); background: var(--brand-50);
}
.pager-info { font-size: .8125rem; color: var(--n-500); }
.pager-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.pager-btn {
    min-width: 2rem; height: 2rem; padding: 0 .5rem;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--n-200); border-radius: var(--radius); background: #fff; color: var(--n-700);
    font-size: .8125rem; font-weight: 500;
}
.pager-btn:hover:not(:disabled):not(.is-current) { background: var(--n-100); }
.pager-btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; cursor: default; }
.pager-btn:disabled { opacity: .45; cursor: not-allowed; }
.pager-icon { color: var(--n-600); padding: 0; width: 2rem; }
.pager-gap { padding: 0 .25rem; color: var(--n-400); }

.empty { display: flex; flex-direction: column; align-items: center; gap: .375rem; padding: 4rem 1.5rem; text-align: center; }
.empty-card {
    display: flex; flex-direction: column; align-items: center; gap: .375rem;
    padding: 3rem 1.5rem; text-align: center;
    background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius-lg);
}
.empty-card-page { margin-top: 1.25rem; }
.empty-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; margin-bottom: .5rem; border-radius: .75rem;
    background: var(--n-100); color: var(--n-400); font-size: 1.25rem; font-weight: 700;
}
.empty-icon-brand { background: var(--brand-50); color: var(--brand); }
.empty-icon-danger { background: var(--danger-bg); color: var(--danger); }
.empty-title { font-size: .9375rem; font-weight: 600; }
.empty-text { max-width: 27.5rem; font-size: .8125rem; line-height: 1.6; color: var(--n-500); }
.empty .btn, .empty-card .btn { margin-top: .875rem; }

/* Home shortcuts */
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; align-items: start; }
.shortcut-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .125rem .5rem; padding: .375rem; }
.shortcut { display: flex; align-items: center; gap: .625rem; padding: .5rem .625rem; border-radius: var(--radius); color: var(--n-900); text-decoration: none; }
.shortcut:hover { background: var(--brand-50); text-decoration: none; color: var(--n-900); }
.shortcut-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--radius); background: var(--brand-50); color: var(--brand); }
.shortcut-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.shortcut-name { font-size: .8125rem; font-weight: 600; }
.shortcut-path { font-size: .6875rem; color: var(--n-500); }

/* ---------- Modals ------------------------------------------------------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: var(--z-modal);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 2rem 1rem; overflow-y: auto;
    background: var(--overlay); backdrop-filter: blur(3px); animation: fade .12s ease-out;
}
.modal {
    width: 100%; max-width: 32.5rem; overflow: hidden; outline: none;
    background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: pop .15s ease-out;
}
.modal-sm { max-width: 26.25rem; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.25rem 0; }
.modal-title { font-size: 1.0625rem; font-weight: 600; color: var(--brand-900); }
.modal-sub { margin-top: .3125rem; font-size: .8125rem; color: var(--n-500); }
.modal-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 1rem; padding: 1.25rem; }
.modal-body .span-all { grid-column: 1 / -1; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding: .875rem 1.25rem; border-top: 1px solid var(--brand-200); background: var(--brand-50); }
.modal-close { width: 1.875rem; height: 1.875rem; border: 0; border-radius: var(--radius); background: transparent; color: var(--n-500); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--n-100); color: var(--n-900); }

.modal-confirm { z-index: var(--z-confirm); align-items: center; }
.confirm-body { display: flex; align-items: flex-start; gap: .75rem; padding: 1.25rem 1.25rem 0; }
.confirm-icon { display: flex; align-items: center; justify-content: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: .625rem; }
.confirm-icon.is-danger { background: var(--danger-bg); color: var(--danger); }
.confirm-icon.is-safe { background: var(--brand-50); color: var(--brand); }
.confirm-title { font-size: 1rem; font-weight: 600; }
.confirm-text { margin-top: .375rem; font-size: .8125rem; line-height: 1.6; color: var(--n-500); }
.confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding: 1.25rem; }

/* ---------- Toasts, tooltip ---------------------------------------------- */
.toast-root {
    position: fixed; right: 1rem; bottom: 1rem; z-index: var(--z-toast);
    display: flex; flex-direction: column; gap: .625rem;
    width: 21.25rem; max-width: calc(100vw - 2rem); pointer-events: none;
}
.toast {
    display: flex; align-items: flex-start; gap: .625rem; pointer-events: auto;
    padding: .75rem .75rem .75rem .875rem; background: #fff;
    border: 1px solid var(--n-200); border-left: 3px solid var(--brand); border-radius: .625rem;
    box-shadow: var(--shadow-md); animation: toast-in .16s ease-out;
}
.toast.is-leaving { opacity: 0; transform: translateX(.5rem); transition: opacity .15s, transform .15s; }
.toast-icon { display: inline-flex; margin-top: .0625rem; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: .8125rem; font-weight: 600; word-wrap: break-word; }
.toast-msg { margin-top: .1875rem; font-size: .75rem; line-height: 1.5; color: var(--n-500); word-wrap: break-word; }
.toast-close { flex: none; width: 1.375rem; height: 1.375rem; display: flex; align-items: center; justify-content: center; border: 0; border-radius: .375rem; background: transparent; color: var(--n-400); }
.toast-close:hover { background: var(--n-100); color: var(--n-900); }
.toast-success { border-left-color: #16A34A; } .toast-success .toast-icon { color: #16A34A; }
.toast-error { border-left-color: var(--danger); } .toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--warn); } .toast-warning .toast-icon { color: var(--warn); }
.toast-info { border-left-color: var(--brand); } .toast-info .toast-icon { color: var(--brand); }

.tip {
    position: fixed; z-index: var(--z-tip); max-width: 16rem; padding: .3125rem .5rem;
    background: var(--n-900); color: #fff; border-radius: .375rem;
    font-size: .75rem; line-height: 1.35; pointer-events: none;
}

/* ---------- Global full-screen loader ------------------------------------ */
.loader-overlay {
    position: fixed; inset: 0; z-index: var(--z-loader);
    display: flex; align-items: center; justify-content: center;
    background: rgba(10, 24, 50, .55); backdrop-filter: blur(2px);
    cursor: progress; outline: none; animation: fade .12s ease-out;
}
.loader-box { display: flex; flex-direction: column; align-items: center; gap: .875rem; padding: 1.5rem; }
.loader-spinner {
    width: 3rem; height: 3rem; border-radius: 50%;
    border: .3125rem solid rgba(255, 255, 255, .28); border-top-color: #fff;
    animation: spin .8s linear infinite;
}
.loader-text { min-height: 1.25rem; font-size: .8125rem; font-weight: 600; color: #fff; }
.loader-text:empty { display: none; }

/* ---------- Server metrics ---------------------------------------------- */
.head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.kv { margin: 0; }
.kv-row { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem .875rem; border-bottom: 1px solid var(--n-100); font-size: .8125rem; }
.kv-row:last-child { border-bottom: 0; }
.kv-row dt { color: var(--n-500); white-space: nowrap; }
.kv-row dd { margin: 0; font-weight: 500; text-align: right; word-break: break-all; }
.kv-row dd.mono { font-size: .75rem; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 56.9375rem) {
    .app-header-inner { flex-wrap: wrap; gap: .5rem .75rem; }
    .header-sep { display: none; }
    .profile { margin-left: auto; }
    .nav-toggle { display: inline-flex; }

    .app-nav { display: none; order: 10; flex: 1 0 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .125rem; padding: .25rem 0 .5rem; border-top: 1px solid rgba(255, 255, 255, .18); }
    .nav-open .app-nav { display: flex; }
    .nav-item { position: static; }
    .nav-btn { width: 100%; height: 2.5rem; }
    .nav-btn > span { flex: 1; text-align: left; }
    .nav-divider { width: 100%; height: 1px; margin: .25rem 0; }

    .menu-panel, .menu-dropdown, .menu-flyout {
        position: static; min-width: 0; max-width: none; margin: 0; padding: 0 0 0 .75rem;
        border: 0; border-radius: 0; box-shadow: none; animation: none; background: transparent;
    }
    .menu-item { padding: .625rem; color: rgba(255, 255, 255, .88); }
    .menu-item:hover, .menu-sub.is-open > .menu-parent { background: rgba(255, 255, 255, .12); color: #fff; }
    .menu-item.is-active { background: rgba(255, 255, 255, .2); color: #fff; }
    .menu-ico, .menu-item.is-active .menu-ico, .menu-sub.has-active > .menu-parent .menu-ico { color: rgba(255, 255, 255, .7); }
    .menu-sub.has-active > .menu-parent { color: #fff; }
    .menu-heading { color: rgba(255, 255, 255, .55); }
    .menu-caret { transform: rotate(90deg); }
    .menu-sub.is-open > .menu-parent .menu-caret { transform: rotate(-90deg); }
}

@media (max-width: 40rem) {
    .profile .profile-meta, .profile .profile-chevron { display: none; }
    .profile-btn { padding: 0 .25rem; }
    .app-main { padding: 1rem 1rem 2.5rem; }
    .app-header-inner { padding-left: 1rem; padding-right: 1rem; }
    .toolbar .select, .toolbar .date-field { flex: 1 1 9rem; }
    .toolbar .date-field .input { flex: 1; min-width: 0; }
    .toolbar-gap { display: none; }
    .toolbar .rows { margin-left: auto; }
    .pager { justify-content: center; }
    .modal-backdrop { padding: 1rem .75rem; }
    .auth-brand, .auth-form { padding: 1.75rem 1.5rem; }
    .auth-headline { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .loader-spinner { animation-duration: 1.2s !important; animation-iteration-count: infinite !important; }
}

/* ---------- Shared additions: profile actions, pills, pickers, log viewer ---- */
.profile-foot { display: flex; flex-direction: column; gap: .5rem; }

.modal-md { max-width: 32rem; width: 100%; }
.modal-xl { max-width: 72rem; width: 100%; }
.modal-fill { display: flex; flex-direction: column; height: calc(100vh - 2.5rem); }
.modal-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .625rem; padding: .875rem 1.25rem; border-bottom: 1px solid var(--n-200); }
.modal-toolbar .grow { flex: 1 1 14rem; min-width: 0; }
.modal-scroll { padding: .75rem 1.25rem 1.25rem; overflow-y: auto; max-height: 55vh; }

/* Small rounded info badge (e.g. contact chips in a modal subheading). */
.info-pills { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; }
.info-pill {
    display: inline-flex; align-items: center; gap: .3125rem; max-width: 22rem;
    padding: .125rem .5625rem; border: 1px solid var(--brand-200); border-radius: 999px;
    background: var(--brand-50); color: var(--brand-700);
    font-size: .75rem; font-weight: 600; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.info-pill .ico { flex: none; }

/* Selectable row: primary text left, quiet secondary text right. */
.pick-row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    width: 100%; margin-bottom: .375rem; padding: .625rem .75rem; text-align: left;
    border: 1px solid var(--n-200); border-radius: var(--radius); background: #fff; color: var(--n-900);
    cursor: pointer; transition: background .12s, border-color .12s;
}
.pick-row:hover, .pick-row:focus-visible { background: var(--brand-50); border-color: var(--brand-200); outline: none; }
.pick-row-title { font-size: .875rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-row-meta { flex: none; font-size: .75rem; font-weight: 500; color: var(--n-500); }

/* Monospace read-only output (server logs). */
.log-viewer {
    flex: 1 1 auto; min-height: 0; margin: 0; padding: .875rem 1.25rem; overflow: auto;
    background: var(--brand-900); color: #E2E8F0;
    font: .75rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word;
}

/* ---------- Control sizing: one height, one search width, one row-selector ---- */
:root { --control-h: 2.25rem; }
.input, .select { height: var(--control-h); }
.btn-sm { height: calc(var(--control-h) - .25rem); }

/* Search never stretches across a whole toolbar: a fixed comfortable width that shrinks on small screens. */
.search { flex: 0 1 18rem; width: 18rem; max-width: 100%; min-width: 11rem; }
.search .input { width: 100%; height: var(--control-h); font-size: .8125rem; }

/* "Rows [10 v]" page-size picker — identical everywhere it appears. */
.rows { display: inline-flex; align-items: center; gap: .5rem; flex: none; margin: 0; font-size: .8125rem; color: var(--n-500); white-space: nowrap; }
.rows span { font-size: .8125rem; color: var(--n-500); white-space: nowrap; }
.rows .select, .select.select-sm { width: auto; min-width: 4.5rem; height: var(--control-h); padding: 0 1.75rem 0 .625rem; }

@media (max-width: 40rem) {
    .search { flex: 1 1 100%; width: 100%; }
}

/* ---------- Shared components (previously copy-pasted per page) -------------- */
/* Sortable table header button. */
.th-sort { display: inline-flex; align-items: center; gap: .3rem; padding: 0; border: 0; background: transparent; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.th-sort .sort-ico { display: inline-flex; opacity: .4; }
.th-sort:hover, .th-sort.is-sorted { color: var(--brand); }
.th-sort.is-sorted .sort-ico, .th-sort:hover .sort-ico { opacity: 1; }

/* Multi-select dropdown (.ms). */
.ms { position: relative; }
.ms-btn {
    position: relative; display: flex; align-items: center; width: 100%; height: var(--control-h); padding: 0 2rem 0 .6875rem; text-align: left;
    font-size: .8125rem; border: 1px solid var(--field-line); border-radius: .625rem; background: #fff; box-shadow: var(--field-shadow); color: var(--n-900);
}
.ms-btn:focus, .ms.is-open .ms-btn { outline: none; border-color: var(--brand); box-shadow: var(--ring), var(--field-shadow); }
.ms-btn::after { content: ""; position: absolute; right: .8125rem; top: 50%; width: .4rem; height: .4rem; margin-top: -.3rem; border-right: 2px solid var(--n-400); border-bottom: 2px solid var(--n-400); transform: rotate(45deg); }
.ms-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-ph { color: var(--n-400); }
.ms-panel { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + .25rem); max-height: 15rem; overflow-y: auto; padding: .375rem; background: #fff; border: 1px solid var(--field-line); border-radius: .625rem; box-shadow: var(--shadow-md); }
.ms-opt { display: flex; align-items: center; gap: .5rem; padding: .5rem .625rem; border-radius: .4375rem; cursor: pointer; font-size: .8125rem; }
.ms-opt:hover { background: var(--brand-50); }
.ms-opt.ms-all { font-weight: 700; border-bottom: 1px solid var(--n-200); margin-bottom: .25rem; padding-bottom: .625rem; }
.ms-empty { padding: .5rem; text-align: center; color: var(--n-500); }

/* Inline date control used in page header actions and toolbars. */
.head-actions .date-field { display: flex; align-items: center; gap: .375rem; }
.head-actions .date-field label { font-size: .8125rem; color: var(--n-500); white-space: nowrap; }
.head-actions .date-field .input { width: auto; font-size: .8125rem; }

/* ---------- Status pages (error, access denied) ------------------------------ */
.status-card { overflow: hidden; text-align: center; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.status-band { display: flex; justify-content: center; padding: 1.25rem 1rem; background: var(--brand-900); }
.status-logo { display: block; height: 2rem; width: auto; }
.status-body { display: flex; flex-direction: column; align-items: center; padding: 2rem 1.75rem 1.75rem; }
.status-art { display: flex; align-items: center; justify-content: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; }
.status-art-error { background: var(--danger-bg); color: var(--danger); box-shadow: 0 0 0 .5rem rgba(220, 38, 38, .06); }
.status-art-denied { background: var(--warn-bg); color: var(--warn); box-shadow: 0 0 0 .5rem rgba(217, 119, 6, .08); }
.status-title { margin: 1.5rem 0 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--brand-900); }
.status-text { max-width: 34ch; margin: .5rem 0 0; font-size: .875rem; line-height: 1.6; color: var(--n-500); }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.status-ref { margin: 1.5rem 0 0; padding-top: 1rem; width: 100%; border-top: 1px solid var(--n-100); font-size: .6875rem; color: var(--n-400); word-break: break-all; }

/* ---------- Home ------------------------------------------------------------- */
.home { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.25rem; }
.home-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl); color: #fff; background: linear-gradient(120deg, var(--brand-900), var(--brand));
}
.home-date { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.home-greet { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.home-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .8125rem; color: rgba(255, 255, 255, .8); }
.home-hero .chip-brand { background: rgba(255, 255, 255, .16); color: #fff; }
.home-stats { display: flex; gap: .625rem; }
.home-stat { display: flex; flex-direction: column; min-width: 5.5rem; padding: .625rem .875rem; border-radius: var(--radius); background: rgba(255, 255, 255, .12); }
.home-stat-n { font-size: 1.375rem; font-weight: 700; line-height: 1.1; }
.home-stat-l { font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
    display: flex; align-items: flex-start; gap: .75rem; padding: .875rem; color: var(--n-900); text-decoration: none;
    background: #fff; border: 1px solid var(--n-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
    transition: border-color .12s, box-shadow .12s, transform .12s;
}
@media (max-width: 40rem) { .home-hero { padding: 1rem; } .home-stats { width: 100%; } .home-stat { flex: 1; } }

/* ---------- Column picker (table "Columns" dropdown) ------------------------- */
.cols-picker { position: relative; flex: none; }
.cols-count { font-weight: 400; color: var(--n-500); }
.cols-panel {
    position: absolute; z-index: 20; right: 0; top: calc(100% + .375rem); width: min(42rem, 92vw); max-height: min(34rem, 70vh); overflow-y: auto;
    padding: 1rem 1.125rem; background: #fff; border: 1px solid var(--field-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.cols-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .625rem; border-bottom: 1px solid var(--n-100); }
.cols-title { font-size: .9375rem; font-weight: 700; color: var(--brand-900); }
.cols-actions { display: flex; flex-wrap: wrap; gap: .375rem; }
.cols-note { margin-top: .625rem; padding: .5rem .75rem; border-radius: var(--radius); background: var(--brand-50); font-size: .75rem; color: var(--n-600); }
.cols-group { margin-top: .875rem; }
.cols-group-title { margin-bottom: .375rem; font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--n-500); }
.cols-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .125rem .75rem; }
.cols-opt { display: flex; align-items: center; gap: .5rem; padding: .3125rem .25rem; border-radius: .375rem; font-size: .8125rem; cursor: pointer; }
.cols-opt:hover { background: var(--n-50); }
