:root {
    color-scheme: light;
    --page: #f4f6fa;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --surface-muted: #eef2f7;
    --ink: #172033;
    --ink-soft: #344054;
    --muted: #667085;
    --muted-light: #98a2b3;
    --line: #e4e8ef;
    --line-strong: #d5dbe5;
    --nav: #111b2e;
    --nav-soft: #1a2942;
    --nav-text: #d0d8e6;
    --primary: #12877d;
    --primary-dark: #0e7068;
    --primary-soft: #e7f6f4;
    --danger: #d14343;
    --danger-soft: #fff0f0;
    --warning: #d17b18;
    --warning-soft: #fff5e7;
    --success: #218963;
    --success-soft: #eaf8f2;
    --info: #3d6fc4;
    --info-soft: #edf3ff;
    --shadow-xs: 0 1px 2px rgb(16 24 40 / .04);
    --shadow-sm: 0 2px 8px rgb(16 24 40 / .05), 0 1px 2px rgb(16 24 40 / .04);
    --shadow-md: 0 14px 36px rgb(16 24 40 / .09);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-width: 264px;
    font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--page); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 20px; height: 20px; fill: currentColor; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(18 135 125 / .2); outline-offset: 2px; }

/* App shell */
.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    padding: 24px 16px 18px;
    color: var(--nav-text);
    background:
        radial-gradient(circle at 12% 6%, rgb(38 103 113 / .28), transparent 23%),
        linear-gradient(180deg, #111c30 0%, #10192a 100%);
    border-right: 1px solid rgb(255 255 255 / .05);
}
.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 2px 10px 26px; color: #fff; }
.brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / .14);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #1ba79b, #0f6e70);
    box-shadow: 0 8px 22px rgb(7 95 91 / .28);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.03em;
}
.brand-copy { display: grid; min-width: 0; }
.brand-copy strong { color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .055em; }
.brand-copy small { color: #8fa1bc; font-size: 10px; letter-spacing: .025em; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav-label { padding: 10px 12px 7px; color: #71839e; font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.nav-label--spaced { margin-top: 18px; }
.nav-link {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border-radius: 10px;
    color: #aebbd0;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-link svg { width: 19px; height: 19px; color: #8293ad; }
.nav-link:hover { color: #fff; background: rgb(255 255 255 / .055); transform: translateX(1px); }
.nav-link:hover svg { color: #b7c7dd; }
.nav-link.is-active { color: #fff; background: linear-gradient(90deg, rgb(27 167 155 / .2), rgb(27 167 155 / .08)); }
.nav-link.is-active::before { position: absolute; inset: 11px auto 11px -16px; width: 3px; border-radius: 0 3px 3px 0; background: #30c4b7; content: ""; }
.nav-link.is-active svg { color: #4cd0c4; }
.sidebar-footer { display: grid; grid-template-columns: 38px minmax(0, 1fr) 34px; align-items: center; gap: 10px; padding: 15px 10px 3px; border-top: 1px solid rgb(255 255 255 / .08); }
.user-avatar { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / .12); border-radius: 10px; color: #e8fffc; background: #1e766f; font-size: 13px; font-weight: 800; }
.user-avatar--small { width: 34px; height: 34px; border-radius: 9px; }
.user-copy { display: grid; min-width: 0; }
.user-copy strong { overflow: hidden; color: #f7f9fc; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy span { color: #7f91ac; font-size: 10px; }
.sidebar-footer form { margin: 0; }
.mobile-header { display: none; }
.sidebar-overlay { display: none; }
.app-main { min-height: 100vh; margin-left: var(--sidebar-width); }
.content-shell { width: min(1520px, 100%); margin: 0 auto; padding: 38px 38px 70px; }

/* Common controls */
.eyebrow { display: block; margin-bottom: 7px; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-header h1, .client-hero h1 { margin-bottom: 6px; color: var(--ink); font-size: clamp(27px, 2.3vw, 36px); line-height: 1.18; letter-spacing: -.035em; }
.page-description { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--ink-soft);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-weight: 650;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button svg { width: 17px; height: 17px; }
.button:hover { border-color: #b9c2cf; background: #fbfcfd; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button--primary { border-color: var(--primary); color: #fff; background: linear-gradient(180deg, #16978c, #117f76); box-shadow: 0 5px 13px rgb(18 135 125 / .2); }
.button--primary:hover { border-color: var(--primary-dark); color: #fff; background: linear-gradient(180deg, #148c82, #0d716a); }
.button--ghost { border-color: transparent; color: var(--muted); background: transparent; box-shadow: none; }
.button--ghost:hover { background: var(--surface-muted); box-shadow: none; }
.button--small { min-height: 36px; padding: 7px 12px; font-size: 12px; }
.button--large { min-height: 50px; padding: 12px 18px; }
.button--full { width: 100%; }
.icon-button { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 9px; color: var(--ink-soft); background: transparent; cursor: pointer; }
.icon-button:hover { background: var(--surface-muted); }
.icon-button--on-dark { color: #8fa1bc; }
.icon-button--on-dark:hover { color: #fff; background: rgb(255 255 255 / .07); }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--primary); }
.back-link svg { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-size: 12px; font-weight: 750; white-space: nowrap; }
.text-link:hover { color: var(--primary-dark); }
.text-link svg { width: 16px; height: 16px; }
.messages { display: grid; gap: 10px; margin-bottom: 20px; }
.message { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #b8e6d7; border-radius: 10px; color: #176849; background: #edfbf5; font-weight: 600; }
.message svg { width: 18px; height: 18px; }

/* Dashboard */
.page-header--dashboard { margin-bottom: 24px; }
.priority-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.priority-card { position: relative; display: grid; min-height: 134px; grid-template-columns: 46px 1fr 18px; align-items: start; gap: 14px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.priority-card::after { position: absolute; right: -34px; bottom: -44px; width: 110px; height: 110px; border-radius: 50%; background: var(--tone-soft); opacity: .7; content: ""; }
.priority-card:hover { border-color: color-mix(in srgb, var(--tone) 35%, var(--line)); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.priority-card--danger { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.priority-card--warning { --tone: var(--warning); --tone-soft: var(--warning-soft); }
.priority-card--success { --tone: var(--success); --tone-soft: var(--success-soft); }
.priority-card--info { --tone: var(--info); --tone-soft: var(--info-soft); }
.priority-card__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; color: var(--tone); background: var(--tone-soft); }
.priority-card__icon svg { width: 21px; height: 21px; }
.priority-card__copy { display: grid; }
.priority-card__copy small { margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.priority-card__copy strong { color: var(--ink); font-size: 31px; line-height: 1.12; letter-spacing: -.045em; }
.priority-card__copy > span { margin-top: 4px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.priority-card__arrow { align-self: center; width: 17px; height: 17px; color: var(--muted-light); }
.registry-strip { display: grid; grid-template-columns: minmax(230px, 1.4fr) repeat(3, minmax(100px, .65fr)) auto; align-items: center; gap: 16px; margin-bottom: 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.registry-strip__title { display: flex; align-items: center; gap: 11px; }
.registry-strip__icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.registry-strip__icon svg { width: 18px; height: 18px; }
.registry-strip__title > div { display: grid; }
.registry-strip__title strong { font-size: 12px; }
.registry-strip__title span { color: var(--muted); font-size: 10px; }
.registry-stat { display: grid; padding-left: 18px; border-left: 1px solid var(--line); }
.registry-stat strong { color: var(--ink); font-size: 18px; line-height: 1.2; }
.registry-stat span { color: var(--muted); font-size: 10px; }
.registry-stat--warning strong { color: var(--warning); }
.dashboard-sections { display: grid; gap: 16px; }

/* Cards and tables */
.data-card, .toolbar-card, .info-card, .form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.data-card { overflow: hidden; }
.data-card__header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.data-card__heading { display: flex; align-items: center; gap: 12px; }
.data-card__heading h2 { margin: 0 0 2px; color: var(--ink); font-size: 15px; letter-spacing: -.012em; }
.data-card__heading p { margin: 0; color: var(--muted); font-size: 11px; }
.data-card__icon { display: inline-flex; width: 38px; height: 38px; flex: 0 0 38px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.data-card__icon svg { width: 18px; height: 18px; }
.data-card--warning .data-card__icon { color: var(--warning); background: var(--warning-soft); }
.data-card--danger .data-card__icon { color: var(--danger); background: var(--danger-soft); }
.data-card--success .data-card__icon { color: var(--success); background: var(--success-soft); }
.count-pill { display: inline-flex; min-width: 32px; height: 28px; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--surface-subtle); font-size: 11px; font-weight: 800; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 1040px; border-collapse: separate; border-spacing: 0; }
.data-table th { padding: 11px 15px; border-bottom: 1px solid var(--line); color: #7b8799; background: #fafbfc; font-size: 9px; font-weight: 800; letter-spacing: .075em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid #edf0f4; color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fbfcfd; }
.data-table--organizations { min-width: 1020px; }
.data-table--licenses { min-width: 1080px; }
.entity-link { display: inline-flex; min-width: 210px; max-width: 330px; align-items: center; gap: 10px; }
.entity-link > span:last-child, .table-entity, .requisites, .date-stack, .license-primary > span:last-child { display: grid; }
.entity-link strong, .table-entity strong, .license-primary strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 720; text-overflow: ellipsis; }
.entity-link small, .table-entity small, .requisites small, .license-primary small, .date-stack small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.entity-link:hover strong, .table-entity:hover strong { color: var(--primary); }
.entity-avatar { display: inline-flex; width: 32px; height: 32px; flex: 0 0 32px; align-items: center; justify-content: center; border: 1px solid #c9e9e5; border-radius: 9px; color: var(--primary-dark); background: var(--primary-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.entity-avatar--large { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 13px; }
.entity-avatar--hero { width: 64px; height: 64px; flex-basis: 64px; border-radius: 17px; font-size: 22px; }
.license-number { color: var(--ink); font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; font-weight: 650; white-space: nowrap; }
.date-value { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-value--strong, .date-stack strong { color: var(--ink); font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.owner { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 11px; white-space: nowrap; }
.owner > span { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border-radius: 7px; color: #38506f; background: #e8edf5; font-size: 9px; font-weight: 800; }
.owner--empty { padding: 4px 8px; border: 1px dashed #d4dae3; border-radius: 7px; color: var(--muted); background: #fafbfc; }
.status-badge { --status-color: #64748b; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid color-mix(in srgb, var(--status-color) 25%, white); border-radius: 999px; color: color-mix(in srgb, var(--status-color) 88%, #172033); background: color-mix(in srgb, var(--status-color) 10%, white); font-size: 10px; font-weight: 750; white-space: nowrap; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--status-color); }
.status-badge--active { --status-color: var(--success); }
.status-badge--muted { --status-color: #8995a7; }
.number-chip { display: inline-flex; min-width: 28px; height: 27px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 7px; color: #42526b; background: #edf1f6; font-size: 11px; font-weight: 800; }
.number-chip--soft { min-width: auto; padding-inline: 10px; color: var(--primary-dark); background: var(--primary-soft); }
.row-action { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted-light); }
.row-action:hover { color: var(--primary); background: var(--primary-soft); }
.row-action svg { width: 17px; height: 17px; }
.muted-dash { color: var(--muted-light); }
.empty-panel { display: flex; min-height: 112px; align-items: center; justify-content: center; gap: 12px; padding: 22px; color: var(--muted); }
.empty-panel > span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; color: var(--success); background: var(--success-soft); }
.empty-panel > span svg { width: 18px; height: 18px; }
.empty-panel strong { display: block; margin-bottom: 2px; color: var(--ink-soft); font-size: 12px; }
.empty-panel p { margin: 0; font-size: 11px; }

/* Toolbars and filters */
.toolbar-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 13px; }
.toolbar-card--stacked { align-items: stretch; flex-direction: column; gap: 12px; }
.toolbar { display: flex; min-width: 0; flex: 1; align-items: flex-end; gap: 9px; }
.toolbar--filters { display: grid; grid-template-columns: minmax(280px, 1fr) 190px 190px auto auto; }
.search-field { position: relative; display: block; min-width: 240px; flex: 1; }
.search-field svg { position: absolute; z-index: 1; top: 50%; left: 12px; width: 18px; height: 18px; color: #8a96a8; transform: translateY(-50%); pointer-events: none; }
.search-field input { width: 100%; height: 42px; padding: 9px 12px 9px 39px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: #fff; outline: none; }
.search-field input::placeholder { color: #98a2b3; }
.search-field input:focus { border-color: #55aaa3; box-shadow: 0 0 0 3px rgb(18 135 125 / .1); }
.result-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.result-count strong { color: var(--ink-soft); }
.select-field { display: grid; gap: 4px; }
.select-field > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.select-field select { width: 100%; height: 42px; padding: 8px 34px 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink-soft); background: #fff; outline: none; }
.select-field select:focus { border-color: #55aaa3; box-shadow: 0 0 0 3px rgb(18 135 125 / .1); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 11px; border-top: 1px solid var(--line); }
.filter-chip { display: inline-flex; min-height: 30px; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 700; }
.filter-chip:hover, .filter-chip.is-active { border-color: #a7d7d2; color: var(--primary-dark); background: var(--primary-soft); }
.filter-chip--success.is-active { border-color: #aadcc8; color: var(--success); background: var(--success-soft); }
.filter-chip--warning.is-active { border-color: #edc994; color: var(--warning); background: var(--warning-soft); }
.filter-chip--danger.is-active { border-color: #efb5b5; color: var(--danger); background: var(--danger-soft); }
.list-summary { display: flex; justify-content: space-between; margin: 0 3px 9px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.list-summary strong { color: var(--ink-soft); }
.license-primary { display: flex; min-width: 195px; align-items: center; gap: 10px; }
.document-icon { display: inline-flex; width: 35px; height: 35px; flex: 0 0 35px; align-items: center; justify-content: center; border-radius: 9px; color: var(--info); background: var(--info-soft); }
.document-icon svg { width: 18px; height: 18px; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }

/* Client detail */
.client-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.client-hero__identity { display: flex; min-width: 0; align-items: center; gap: 17px; }
.client-hero__identity > div { min-width: 0; }
.client-hero h1 { overflow: hidden; margin: 5px 0 4px; font-size: 25px; text-overflow: ellipsis; white-space: nowrap; }
.client-hero p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.client-hero__meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.client-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.client-stats > div { display: flex; min-height: 76px; align-items: center; gap: 11px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.client-stat__icon { display: inline-flex; width: 37px; height: 37px; flex: 0 0 37px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.client-stat__icon svg { width: 18px; height: 18px; }
.client-stats p { display: grid; min-width: 0; margin: 0; }
.client-stats strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.client-stats p span { color: var(--muted); font-size: 10px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); align-items: start; gap: 16px; }
.detail-layout__side { display: grid; gap: 14px; }
.license-stack { display: grid; }
.license-item { padding: 19px; border-bottom: 1px solid var(--line); }
.license-item:last-child { border-bottom: 0; }
.license-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.license-item__label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.license-item h3 { margin: 0 0 3px; color: var(--ink); font-family: "Cascadia Mono", Consolas, monospace; font-size: 14px; }
.license-item__top p { margin: 0; color: var(--muted); font-size: 10px; }
.license-timeline { display: grid; grid-template-columns: minmax(90px, 1fr) 1px minmax(90px, 1fr) 1px minmax(90px, 1fr); align-items: center; gap: 12px; margin: 16px 0 13px; padding: 12px 14px; border-radius: 10px; background: var(--surface-subtle); }
.license-timeline > div { display: grid; }
.license-timeline > div span { color: var(--muted); font-size: 9px; }
.license-timeline > div strong { color: var(--ink-soft); font-size: 11px; font-variant-numeric: tabular-nums; }
.license-timeline > i { width: 1px; height: 24px; background: var(--line); }
.license-item__footer { display: flex; align-items: center; gap: 10px; }
.license-item__footer .text-link { margin-left: auto; }
.days-label { color: var(--muted); font-size: 10px; }
.days-label--warning { color: var(--warning); font-weight: 750; }
.info-card { overflow: hidden; padding: 17px; }
.info-card > header { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.info-card > header > span { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; color: var(--primary); background: var(--primary-soft); }
.info-card > header svg { width: 16px; height: 16px; }
.info-card h2 { margin: 0; color: var(--ink); font-size: 13px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0; }
.info-list > div { display: grid; gap: 2px; }
.info-list__wide { grid-column: 1 / -1; }
.info-list dt, .note-block > span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.info-list dd { margin: 0; color: var(--ink-soft); font-size: 11px; font-weight: 650; }
.raw-notes, .muted-note { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.muted-note { color: var(--muted); }
.contact-card { display: grid; gap: 4px; padding: 11px; border-radius: 9px; background: var(--surface-subtle); font-size: 11px; }
.contact-card a { color: var(--primary); }
.note-block + .note-block { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.note-block p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }

/* Forms */
.form-card { overflow: hidden; }
.form-card__header { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.form-card__header h2 { margin: 0 0 2px; font-size: 14px; }
.form-card__header p { margin: 0; color: var(--muted); font-size: 10px; }
.form-card__icon { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.form-card__icon svg { width: 18px; height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; padding: 22px 20px; }
.form-grid__wide { grid-column: 1 / -1; }
.field-group { display: grid; align-content: start; gap: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 680; }
.field-group > span:first-child { display: block; }
.field-group small { color: var(--muted); font-size: 9px; font-weight: 450; }
.required, .field-error { color: var(--danger); }
.field-error { font-size: 10px; font-weight: 600; }
.input, .field-group select, .field-group input[type="text"], .field-group input[type="number"], .field-group input[type="email"], .field-group input[type="date"], .field-group textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    outline: none;
}
.field-group textarea { min-height: 92px; resize: vertical; }
.input:focus, .field-group select:focus, .field-group input:focus, .field-group textarea:focus { border-color: #55aaa3; box-shadow: 0 0 0 3px rgb(18 135 125 / .1); }
.checkbox { width: 19px; height: 19px; accent-color: var(--primary); }
.field-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.field-group li label { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }
.form-actions { display: flex; gap: 9px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface-subtle); }
.form-alert { padding: 10px 12px; border: 1px solid #f0bcbc; border-radius: 9px; color: #a33a3a; background: var(--danger-soft); font-size: 11px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding: 4px 2px; }
.pagination__info { color: var(--muted); font-size: 11px; }
.pagination__actions { display: flex; gap: 8px; }

/* Login */
.auth-body { overflow-x: hidden; background: #fff; }
.auth-main, .auth-shell { min-height: 100vh; }
.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(460px, 1.12fr) minmax(420px, .88fr); }
.login-showcase { position: relative; display: flex; min-height: 100vh; flex-direction: column; padding: 38px 56px 30px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #101b30 0%, #152641 55%, #123f45 130%); }
.login-showcase::before { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgb(255 255 255 / .18) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .18) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, black, transparent 70%); content: ""; }
.login-showcase__glow { position: absolute; top: 12%; left: 25%; width: 420px; height: 420px; border-radius: 50%; background: rgb(22 167 154 / .16); filter: blur(90px); }
.brand-lockup--login { position: relative; z-index: 1; padding: 0; }
.login-showcase__content { position: relative; z-index: 1; width: min(580px, 100%); margin: auto 0; }
.login-kicker { display: inline-flex; margin-bottom: 17px; padding: 5px 9px; border: 1px solid rgb(81 210 197 / .25); border-radius: 999px; color: #83e2d8; background: rgb(31 156 145 / .1); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.login-showcase h1 { margin-bottom: 17px; font-size: clamp(35px, 4vw, 53px); line-height: 1.09; letter-spacing: -.045em; }
.login-showcase__content > p { width: min(510px, 100%); margin-bottom: 36px; color: #aebbd0; font-size: 14px; line-height: 1.7; }
.login-benefits { display: grid; gap: 14px; }
.login-benefits > div { display: flex; align-items: center; gap: 13px; }
.login-benefits > div > span { display: inline-flex; width: 35px; height: 35px; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / .1); border-radius: 10px; color: #68d8cd; background: rgb(255 255 255 / .04); font-size: 9px; font-weight: 800; }
.login-benefits p { display: grid; margin: 0; }
.login-benefits strong { font-size: 12px; }
.login-benefits small { color: #889ab5; font-size: 10px; }
.login-showcase__footer { position: relative; z-index: 1; margin: 0; color: #71839e; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.login-panel { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 44px; background: #fff; }
.login-form-wrap { width: min(390px, 100%); }
.login-mobile-brand { display: none; }
.login-form-wrap h2 { margin: 0 0 7px; color: var(--ink); font-size: 29px; letter-spacing: -.035em; }
.login-intro { margin-bottom: 27px; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 16px; }
.input-with-icon { position: relative; display: block; }
.input-with-icon svg { position: absolute; z-index: 1; top: 50%; left: 12px; width: 18px; height: 18px; color: #8f9bad; transform: translateY(-50%); }
.input-with-icon .input { height: 46px; padding-left: 40px; }
.login-form .field-group { font-size: 11px; }
.login-form .button { margin-top: 4px; }
.login-form .button svg { margin-left: auto; }
.login-help { margin: 24px 0 0; color: var(--muted-light); font-size: 10px; text-align: center; }

/* Responsive */
@media (max-width: 1220px) {
    .priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .registry-strip { grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(90px, .6fr)); }
    .registry-strip .text-link { display: none; }
    .client-stats { grid-template-columns: repeat(2, 1fr); }
    .toolbar--filters { grid-template-columns: minmax(260px, 1fr) 170px 170px auto; }
    .toolbar--filters .button--ghost { display: none; }
}

@media (max-width: 980px) {
    :root { --sidebar-width: 244px; }
    .content-shell { padding: 30px 24px 60px; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-layout__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toolbar--filters { grid-template-columns: 1fr 1fr; }
    .toolbar--filters .search-field { grid-column: 1 / -1; }
    .toolbar--filters .button { align-self: end; }
    .login-showcase { padding-inline: 38px; }
}

@media (max-width: 760px) {
    .app-body { padding-top: 62px; }
    .sidebar { width: min(286px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px rgb(8 15 28 / .22); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-overlay { position: fixed; z-index: 40; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; visibility: hidden; opacity: 0; background: rgb(8 15 28 / .46); transition: opacity .2s ease, visibility .2s ease; }
    .sidebar-overlay.is-visible { visibility: visible; opacity: 1; }
    .mobile-header { position: fixed; z-index: 30; inset: 0 0 auto; display: flex; height: 62px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .95); backdrop-filter: blur(14px); }
    .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .035em; }
    .mobile-brand span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: var(--primary); font-size: 9px; }
    .app-main { margin-left: 0; }
    .content-shell { padding: 24px 15px 50px; }
    .page-header { align-items: stretch; flex-direction: column; margin-bottom: 20px; }
    .page-actions, .page-header > .button { align-self: flex-start; }
    .priority-grid { grid-template-columns: 1fr; }
    .priority-card { min-height: 116px; }
    .registry-strip { grid-template-columns: 1fr 1fr 1fr; }
    .registry-strip__title { grid-column: 1 / -1; }
    .registry-stat { padding-left: 0; border-left: 0; }
    .toolbar-card { align-items: stretch; flex-direction: column; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .search-field { min-width: 0; }
    .result-count { padding-left: 3px; }
    .toolbar--filters { display: grid; grid-template-columns: 1fr; }
    .toolbar--filters .search-field { grid-column: auto; }
    .filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 3px; }
    .client-hero { align-items: stretch; flex-direction: column; padding: 18px; }
    .client-hero h1, .client-hero p { white-space: normal; }
    .client-stats { grid-template-columns: 1fr 1fr; }
    .detail-layout__side { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid__wide { grid-column: auto; }
    .license-timeline { grid-template-columns: 1fr; }
    .license-timeline > i { width: 100%; height: 1px; }
    .license-item__footer { align-items: flex-start; flex-wrap: wrap; }
    .license-item__footer .text-link { width: 100%; margin: 4px 0 0; }
    .login-layout { grid-template-columns: 1fr; }
    .login-showcase { display: none; }
    .login-panel { padding: 30px 22px; }
    .login-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 40px; }
    .login-mobile-brand span { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; color: #fff; background: var(--primary); font-size: 11px; }
    .login-mobile-brand strong { font-size: 12px; letter-spacing: .05em; }
    .data-table--dashboard { min-width: 0; table-layout: fixed; }
    .data-table--dashboard th, .data-table--dashboard td { padding-inline: 10px; }
    .data-table--dashboard th:nth-child(2), .data-table--dashboard td:nth-child(2),
    .data-table--dashboard th:nth-child(3), .data-table--dashboard td:nth-child(3),
    .data-table--dashboard th:nth-child(5), .data-table--dashboard td:nth-child(5),
    .data-table--dashboard th:nth-child(6), .data-table--dashboard td:nth-child(6) { display: none; }
    .data-table--dashboard th:nth-child(4), .data-table--dashboard td:nth-child(4) { width: 92px; }
    .data-table--dashboard th:last-child, .data-table--dashboard td:last-child { width: 38px; }
}

@media (max-width: 480px) {
    .client-stats { grid-template-columns: 1fr; }
    .client-hero__identity { align-items: flex-start; }
    .entity-avatar--hero { width: 50px; height: 50px; flex-basis: 50px; border-radius: 14px; font-size: 17px; }
    .client-hero h1 { font-size: 21px; }
    .page-actions { width: 100%; }
    .page-actions .button { flex: 1; }
    .registry-strip { grid-template-columns: 1fr 1fr; }
    .registry-stat:last-of-type { grid-column: 1 / -1; }
    .pagination { align-items: stretch; flex-direction: column; gap: 10px; }
    .pagination__actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
