:root {
    color-scheme: light;
    --red-950: #4d0712;
    --red-900: #6f0b1b;
    --red-800: #861024;
    --red-700: #a30f2b;
    --red-600: #b91636;
    --red-100: #fce8ec;
    --red-50: #fff4f6;
    --ink: #1b1d24;
    --ink-soft: #4d525f;
    --muted: #747987;
    --line: #e5e6ea;
    --line-strong: #d6d8de;
    --surface: #ffffff;
    --surface-soft: #f7f7f8;
    --canvas: #f3f3f1;
    --blue: #376ba5;
    --blue-soft: #e9f1fb;
    --green: #25815b;
    --green-soft: #e8f6ef;
    --amber: #a96a09;
    --amber-soft: #fff3dc;
    --danger: #bc2439;
    --shadow-sm: 0 1px 2px rgba(20, 22, 28, .04), 0 4px 12px rgba(20, 22, 28, .04);
    --shadow-md: 0 16px 40px rgba(30, 24, 27, .10);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --sidebar-width: 254px;
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1:focus {
    outline: none;
}

code,
kbd {
    font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

code {
    font-size: .88em;
    color: #5d4650;
    background: #f3eef0;
    border-radius: 5px;
    padding: 2px 5px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(55, 107, 165, .24);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.eyebrow,
.panel__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--red-700);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .12em;
}

.eyebrow--light {
    color: #ffcbd4;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: .52;
    cursor: not-allowed;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--red-700), var(--red-800));
    box-shadow: 0 7px 18px rgba(163, 15, 43, .18);
}

.button--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--red-600), var(--red-700));
    box-shadow: 0 9px 22px rgba(163, 15, 43, .24);
}

.button--secondary {
    color: #343741;
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.button--secondary:hover:not(:disabled) {
    border-color: #b8bbc3;
    background: #fafafa;
}

.button--success {
    color: #fff;
    background: var(--green);
}

.button--ghost-danger {
    color: var(--danger);
    background: transparent;
    border-color: #efc7cd;
}

.button--wide {
    width: 100%;
}

.button--large {
    min-height: 48px;
    padding: 13px 20px;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}

.icon-button:hover {
    background: var(--surface-soft);
}

.link-button,
.text-link {
    padding: 0;
    border: 0;
    color: var(--red-700);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.link-button:disabled {
    color: var(--muted);
    cursor: default;
}

.text-link {
    font-size: 13px;
}

/* Brand */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
}

.brand-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
}

.brand-mark__shield {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: linear-gradient(145deg, var(--red-600), var(--red-900));
    border-radius: 12px 12px 15px 15px;
    box-shadow: 0 5px 14px rgba(163, 15, 43, .25);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand-mark__pulse {
    position: absolute;
    right: -1px;
    top: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ff4b62;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    font-size: 17px;
    line-height: .95;
    font-weight: 650;
    letter-spacing: .12em;
}

.brand-wordmark strong {
    color: var(--red-700);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .08em;
}

.brand-logo--inverse .brand-mark__shield {
    color: var(--red-900);
    background: #fff;
    box-shadow: 0 6px 18px rgba(30, 2, 9, .18);
}

.brand-logo--inverse .brand-wordmark,
.brand-logo--inverse .brand-wordmark strong {
    color: #fff;
}

/* Login */

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(440px, 47%) 1fr;
    background: #fff;
}

.login-story {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 255, 255, .10) 0 1px, transparent 2px) 0 0 / 24px 24px,
        linear-gradient(145deg, #680a1a 0%, #920d25 55%, #6f0819 100%);
}

.login-story::before,
.login-story::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
}

.login-story::before {
    width: 540px;
    height: 540px;
    right: -270px;
    bottom: 5%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .02), 0 0 0 160px rgba(255, 255, 255, .018);
}

.login-story::after {
    width: 250px;
    height: 250px;
    left: -140px;
    top: 28%;
}

.login-story__inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    padding: clamp(36px, 6vw, 72px);
    display: flex;
    flex-direction: column;
}

.login-story__content {
    margin: auto 0;
    max-width: 560px;
}

.login-story__content h1 {
    margin: 15px 0 22px;
    font-size: clamp(42px, 5vw, 68px);
    line-height: .99;
    letter-spacing: -.045em;
}

.login-story__content > p {
    max-width: 510px;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.65;
}

.login-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.login-proof__avatars {
    display: flex;
}

.login-proof__avatars span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: -8px;
    border: 2px solid #8c1025;
    border-radius: 50%;
    color: var(--red-900);
    background: #fff4f5;
    font-size: 10px;
    font-weight: 800;
}

.login-proof__avatars span:first-child {
    margin-left: 0;
}

.login-proof > div:last-child {
    display: flex;
    flex-direction: column;
}

.login-proof small {
    color: rgba(255, 255, 255, .62);
}

.login-story__legal {
    max-width: 520px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}

.login-panel {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px;
    background: #fff;
}

.login-card {
    width: min(440px, 100%);
}

.login-card__mobile-brand {
    display: none;
    margin-bottom: 44px;
}

.login-card h2 {
    margin: 8px 0 7px;
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -.035em;
}

.login-card > .muted {
    margin-bottom: 26px;
}

.demo-login-note {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid #ecd59c;
    border-radius: 10px;
    background: #fff9e9;
}

.demo-login-note__icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--amber);
    font-weight: 900;
}

.demo-login-note p {
    margin: 3px 0 0;
    color: #6b5b35;
    font-size: 12px;
}

.security-footnote {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 24px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

/* Forms */

.field {
    margin-bottom: 18px;
}

.field label,
.select-field > span {
    display: block;
    margin-bottom: 7px;
    color: #343741;
    font-size: 13px;
    font-weight: 700;
}

.field__label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.textarea {
    min-height: 96px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
    color: #a0a3ab;
}

.input:hover,
.select:hover,
.textarea:hover {
    border-color: #bfc2c9;
}

.input:focus,
.select:focus,
.textarea:focus {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(55, 107, 165, .12);
}

.input:disabled {
    color: var(--muted);
    background: #f2f3f4;
}

.password-field,
.input-prefix,
.input-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field .input {
    padding-right: 65px;
}

.password-field button {
    position: absolute;
    right: 11px;
    border: 0;
    color: var(--red-700);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.otp-code-input {
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: .35em;
    text-align: center;
}

.input-prefix > span,
.input-suffix > span {
    position: absolute;
    color: var(--muted);
    font-weight: 700;
}

.input-prefix > span {
    left: 12px;
}

.input-prefix .input {
    padding-left: 28px;
}

.input-suffix > span {
    right: 12px;
    font-size: 12px;
}

.input-suffix .input {
    padding-right: 68px;
}

.validation-message {
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
}

.valid.modified:not([type=checkbox]) {
    border-color: var(--green);
}

.invalid {
    border-color: var(--danger);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

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

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

.form-actions--end {
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.form-actions--stack {
    flex-direction: column;
}

.form-actions--stack .button {
    width: 100%;
}

.form-actions--stack > span {
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.form-alert {
    margin: 12px 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
}

.form-alert--error {
    color: var(--danger);
    border-color: #efc4cb;
    background: var(--red-50);
}

.form-alert--warning {
    color: #72510d;
    border-color: #ecd89f;
    background: var(--amber-soft);
}

.field-hint {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

/* Shell and navigation */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 22px 16px 18px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 7px;
}

.sidebar__close {
    display: none;
}

.side-nav {
    margin-top: 30px;
}

.side-nav__label {
    margin: 22px 12px 8px;
    color: #9a9da6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
}

.side-nav a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 43px;
    margin: 3px 0;
    padding: 8px 11px;
    border-radius: 9px;
    color: #555a66;
    font-weight: 650;
    transition: color .15s ease, background .15s ease;
}

.side-nav a:hover {
    color: var(--ink);
    background: #f6f5f5;
}

.side-nav a.active {
    color: var(--red-700);
    background: var(--red-50);
}

.side-nav a.active::before {
    content: "";
    position: absolute;
    left: -16px;
    width: 3px;
    height: 24px;
    border-radius: 0 5px 5px 0;
    background: var(--red-700);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: #777b84;
    font-size: 18px;
}

.side-nav a.active .nav-icon {
    color: var(--red-700);
}

.nav-counter {
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    margin-left: auto;
    padding: 0 6px;
    border-radius: 999px;
    color: #fff;
    background: var(--red-700);
    font-size: 10px;
}

.sidebar__support {
    display: flex;
    gap: 10px;
    margin: auto 4px 15px;
    padding: 13px;
    border: 1px solid #efe2e5;
    border-radius: 10px;
    background: #fff8f9;
}

.sidebar__support-mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--red-700);
    font-weight: 900;
}

.sidebar__support strong,
.sidebar__support span {
    display: block;
}

.sidebar__support strong {
    font-size: 12px;
}

.sidebar__support span {
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.sidebar__footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 8px 0;
    border-top: 1px solid var(--line);
}

.sidebar__footer strong,
.sidebar__footer small {
    display: block;
}

.sidebar__footer strong {
    font-size: 11px;
    letter-spacing: .05em;
}

.sidebar__footer small {
    color: var(--muted);
    font-size: 10px;
}

.environment-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #28a874;
    box-shadow: 0 0 0 4px #e5f6ef;
}

.workspace {
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(12px);
}

.topbar__menu {
    display: none;
}

.global-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(390px, 42vw);
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #858994;
    background: #f8f8f8;
    text-align: left;
    cursor: pointer;
}

.global-search > span:first-child {
    font-size: 20px;
    line-height: 1;
}

.global-search__placeholder {
    overflow: hidden;
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search kbd {
    padding: 2px 6px;
    border: 1px solid #dddfe3;
    border-radius: 5px;
    color: #9497a0;
    background: #fff;
    font-size: 9px;
}

.topbar__actions,
.user-chip {
    display: flex;
    align-items: center;
}

.topbar__actions {
    gap: 13px;
}

.notification-button {
    position: relative;
    border: 0;
    font-size: 21px;
}

.notification-dot {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--red-600);
}

.user-chip {
    gap: 10px;
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.avatar,
.group-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--red-800);
    background: #f4dfe4;
    font-size: 11px;
    font-weight: 900;
}

.avatar--large {
    width: 44px;
    height: 44px;
    font-size: 13px;
}

.avatar--xl {
    width: 62px;
    height: 62px;
    font-size: 17px;
}

.user-chip__copy {
    display: flex;
    flex-direction: column;
    min-width: 125px;
}

.user-chip__copy strong {
    font-size: 12px;
}

.user-chip__copy small {
    color: var(--muted);
    font-size: 10px;
}

.user-chip__logout {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    color: #888c95;
    background: transparent;
    cursor: pointer;
}

.user-chip__logout:hover {
    color: var(--red-700);
    background: var(--red-50);
}

.demo-ribbon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 20px;
    border-bottom: 1px solid #ead6a7;
    color: #6d581e;
    background: #fff8e6;
    font-size: 11px;
}

.demo-ribbon__badge {
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    background: var(--amber);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
}

.main-content {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 30px clamp(20px, 3vw, 42px) 56px;
}

.nav-scrim {
    display: none;
}

/* General content */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.page-header p {
    margin: 7px 0 0;
    color: var(--muted);
}

.page-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
    background: #fff;
    text-transform: capitalize;
}

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 22px 17px;
    border-bottom: 1px solid var(--line);
}

.panel__header h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: -.018em;
}

.panel__eyebrow {
    margin-bottom: 5px;
    color: #989ba4;
    font-size: 9px;
}

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

.stat-card {
    min-height: 152px;
    padding: 18px 19px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.stat-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card__icon,
.mini-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--red-700);
    background: var(--red-100);
    font-size: 17px;
    font-weight: 900;
}

.stat-card--blue .stat-card__icon,
.mini-icon--blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.stat-card--green .stat-card__icon,
.mini-icon--green {
    color: var(--green);
    background: var(--green-soft);
}

.stat-card--amber .stat-card__icon,
.mini-icon--amber {
    color: var(--amber);
    background: var(--amber-soft);
}

.stat-card__delta {
    color: var(--green);
    font-size: 10px;
    font-weight: 750;
}

.stat-card__value {
    display: block;
    margin-top: 14px;
    font-size: 27px;
    line-height: 1;
    letter-spacing: -.035em;
}

.stat-card__label {
    display: block;
    margin-top: 7px;
    color: #3e424c;
    font-weight: 700;
}

.stat-card small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr);
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-grid--bottom {
    grid-template-columns: 1.15fr .85fr;
}

.panel--chart {
    min-height: 340px;
}

.chart-summary {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 17px 22px 0;
}

.chart-summary strong {
    font-size: 26px;
    letter-spacing: -.03em;
}

.chart-summary span {
    color: var(--muted);
    font-size: 12px;
}

.bar-chart {
    display: flex;
    align-items: stretch;
    gap: clamp(9px, 3vw, 24px);
    height: 215px;
    padding: 18px 26px 22px;
}

.bar-chart__column {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.bar-chart__value {
    height: 20px;
    color: #7f838e;
    font-size: 10px;
    font-weight: 700;
}

.bar-chart__track {
    display: flex;
    align-items: flex-end;
    width: min(28px, 70%);
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: repeating-linear-gradient(to bottom, #f0f0f1 0, #f0f0f1 1px, transparent 1px, transparent 35px);
}

.bar-chart__track span {
    width: 100%;
    min-height: 8px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #d9334f, var(--red-700));
    box-shadow: 0 5px 12px rgba(163, 15, 43, .18);
}

.bar-chart__column small {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.attention-count {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--red-700);
    background: var(--red-100);
    font-size: 11px;
    font-weight: 900;
}

.attention-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.attention-item:last-child {
    border-bottom: 0;
}

.attention-item:hover {
    background: #fafafa;
}

.attention-item__icon,
.activity-row__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--red-700);
    background: var(--red-100);
    font-weight: 900;
}

.attention-item__icon--amber {
    color: var(--amber);
    background: var(--amber-soft);
}

.attention-item__icon--blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.attention-item strong,
.attention-item small {
    display: block;
}

.attention-item strong {
    font-size: 12px;
}

.attention-item small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.activity-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 21px;
    border-bottom: 1px solid #eeeeef;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-row__icon--solicitud {
    color: var(--blue);
    background: var(--blue-soft);
}

.activity-row__icon--grupo {
    color: var(--green);
    background: var(--green-soft);
}

.activity-row__icon--operador {
    color: var(--amber);
    background: var(--amber-soft);
}

.activity-row__content strong,
.activity-row__content small {
    display: block;
}

.activity-row__content strong {
    font-size: 12px;
}

.activity-row__content small,
.activity-row time {
    color: var(--muted);
    font-size: 10px;
}

.compact-list__row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
}

.compact-list__row:hover {
    background: #fafafa;
}

.compact-list__row:last-child {
    border-bottom: 0;
}

.compact-list__row > span:nth-child(2) strong,
.compact-list__row > span:nth-child(2) small,
.expiry-date strong,
.expiry-date small {
    display: block;
}

.compact-list__row > span:nth-child(2) strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-list__row small {
    color: var(--muted);
    font-size: 10px;
}

.expiry-date {
    text-align: right;
}

.expiry-date strong {
    color: var(--red-700);
    font-size: 11px;
}

.safety-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid #e2d6d8;
    border-radius: 10px;
    color: #65565a;
    background: #fbf8f8;
}

.safety-note__mark {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: var(--red-700);
    font-weight: 900;
}

.safety-note p {
    margin: 0;
    font-size: 11px;
}

/* Status, filters and tables */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #5f626c;
    background: #f0f1f2;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #989ba4;
}

.status-pill--success {
    color: #1e704f;
    background: var(--green-soft);
}

.status-pill--success .status-pill__dot {
    background: var(--green);
}

.status-pill--info {
    color: #315f91;
    background: var(--blue-soft);
}

.status-pill--info .status-pill__dot {
    background: var(--blue);
}

.status-pill--warning {
    color: #875907;
    background: var(--amber-soft);
}

.status-pill--warning .status-pill__dot {
    background: #d58b12;
}

.status-pill--danger {
    color: #9f1e32;
    background: var(--red-100);
}

.status-pill--danger .status-pill__dot {
    background: var(--danger);
}

.filter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-card--groups,
.filter-card--members {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 180px 210px;
    align-items: end;
}

.filter-card--audit {
    display: grid;
    grid-template-columns: 1fr 190px;
    align-items: end;
}

.segmented-control {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
}

.segmented-control button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 35px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    color: #6d717b;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.segmented-control button:hover {
    background: #f5f5f6;
}

.segmented-control button.is-active {
    color: var(--red-700);
    background: var(--red-50);
}

.segmented-control button span {
    min-width: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    color: #747780;
    background: #ecedef;
    font-size: 9px;
}

.segmented-control button.is-active span {
    color: #fff;
    background: var(--red-700);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(380px, 45%);
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
}

.search-field--large {
    width: 100%;
}

.search-field span {
    color: #8d9099;
    font-size: 19px;
}

.search-field input {
    min-width: 0;
    width: 100%;
    height: 36px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
}

.select-field select {
    width: 100%;
    min-height: 38px;
    padding: 7px 30px 7px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
}

.split-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.split-view--selected {
    grid-template-columns: minmax(0, 1fr) 350px;
}

.table-panel {
    min-width: 0;
    overflow: hidden;
}

.table-panel__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 17px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}

.table-panel__meta strong {
    color: var(--ink);
}

.table-panel__meta--strong {
    color: var(--ink);
}

.legend {
    display: flex;
    gap: 14px;
    color: var(--muted);
    font-size: 10px;
}

.legend span,
.donut-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legend__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9b9ea7;
}

.legend__dot--green {
    background: var(--green);
}

.legend__dot--blue {
    background: var(--blue);
}

.legend__dot--amber {
    background: #d18a17;
}

.legend__dot--red {
    background: var(--danger);
}

.legend__dot--gray {
    background: #9b9ea7;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    height: 42px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    color: #888c96;
    background: #fafafa;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    min-height: 59px;
    padding: 12px 14px;
    border-bottom: 1px solid #eeeeef;
    color: #474b55;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

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

.data-table tbody tr:hover,
.data-table tbody tr.is-selected {
    background: #fbf8f8;
}

.data-table td > strong,
.data-table td > span,
.data-table td > small {
    display: block;
}

.data-table td > strong,
.data-table td a:not(.table-action) {
    color: #252831;
    font-weight: 750;
}

.data-table td a:not(.table-action):hover {
    color: var(--red-700);
}

.data-table td small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.data-table--groups {
    min-width: 950px;
}

.data-table--audit {
    min-width: 1100px;
}

.table-action {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--red-700);
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.table-action:hover {
    border-color: #e5bcc4;
    background: var(--red-50);
}

.group-cell,
.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 215px;
}

.group-cell > span:last-child,
.person-cell > span:last-child {
    min-width: 0;
}

.group-cell a,
.group-cell small,
.person-cell strong,
.person-cell small {
    display: block;
}

.capacity {
    min-width: 120px;
}

.capacity > span:first-child {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
}

.progress-track,
.mini-progress {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #ebeced;
}

.progress-fill,
.mini-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.progress-fill--warning {
    background: #d28a15;
}

.progress-fill--danger {
    background: var(--danger);
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--amber) !important;
}

.empty-state {
    padding: 45px 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state > span {
    display: block;
    font-size: 32px;
}

.empty-state h3 {
    margin: 7px 0 3px;
    color: var(--ink);
}

.empty-state p {
    margin: 0;
}

.detail-drawer {
    position: sticky;
    top: 118px;
    align-self: start;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.detail-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.detail-drawer__header h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.detail-list {
    margin: 20px 0;
}

.detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeef;
}

.detail-list dt,
.detail-list dd {
    margin: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 11px;
}

.detail-list dd {
    color: #343741;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.detail-list dd a {
    color: var(--red-700);
}

.detail-list--compact {
    margin-bottom: 0;
}

.drawer-actions {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.drawer-disclaimer {
    margin: 17px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    padding: 10px 13px;
    border: 1px solid #bce1cf;
    border-radius: 9px;
    color: #256f51;
    background: var(--green-soft);
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    font-weight: 650;
}

.toast > span:first-child {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
}

.toast > button {
    margin-left: auto;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

/* Group details */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 11px;
}

.breadcrumb a {
    color: var(--red-700);
    font-weight: 700;
}

.entity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.entity-header__identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.entity-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--red-600), var(--red-900));
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 7px 18px rgba(163, 15, 43, .18);
}

.entity-header__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.entity-header h1 {
    margin: 0;
    font-size: clamp(23px, 3vw, 31px);
    letter-spacing: -.035em;
}

.entity-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.entity-header__actions {
    display: flex;
    gap: 9px;
}

.group-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 18px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.group-tabs a {
    padding: 8px 13px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.group-tabs a:hover {
    background: #f7f7f7;
}

.group-tabs a.active {
    color: var(--red-700);
    background: var(--red-50);
}

.group-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.group-kpis--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-kpis article {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.group-kpis article strong,
.group-kpis article small {
    display: block;
}

.group-kpis article strong {
    font-size: 15px;
}

.group-kpis article small {
    color: var(--muted);
    font-size: 10px;
}

.group-kpis .mini-progress {
    grid-column: 1 / -1;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr);
    gap: 18px;
}

.detail-grid > .panel {
    padding-bottom: 21px;
}

.detail-grid > .panel > form,
.commercial-summary {
    padding: 20px 22px 0;
}

.audit-hint {
    color: var(--muted);
    font-size: 10px;
}

.commercial-summary {
    margin: 0;
}

.commercial-summary > div {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.commercial-summary > div:last-child {
    border-bottom: 0;
}

.commercial-summary dt,
.commercial-summary dd {
    margin: 0;
}

.commercial-summary dt {
    color: var(--muted);
    font-size: 11px;
}

.commercial-summary dd {
    font-size: 12px;
}

.commercial-summary dd small {
    color: var(--muted);
}

.commercial-summary__note dd {
    padding: 10px;
    border-radius: 8px;
    color: #62535a;
    background: #f7f3f4;
}

.stack {
    display: grid;
    align-content: start;
    gap: 18px;
}

.stack .panel {
    overflow: hidden;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 20px 4px;
}

.contact-card strong,
.contact-card small {
    display: block;
}

.contact-card small {
    color: var(--muted);
    font-size: 10px;
}

.stack .detail-list {
    padding: 0 20px 15px;
}

.quick-actions-panel > a {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
}

.quick-actions-panel > a:last-child {
    border-bottom: 0;
}

.quick-actions-panel > a:hover {
    background: #fafafa;
}

.quick-actions-panel > a > span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--red-700);
    background: var(--red-100);
    font-weight: 900;
}

.quick-actions-panel strong,
.quick-actions-panel small {
    display: block;
}

.quick-actions-panel strong {
    font-size: 11px;
}

.quick-actions-panel small {
    color: var(--muted);
    font-size: 9px;
}

.invitation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border-color: #e9cdd3;
    background: linear-gradient(110deg, #fff, #fff7f8);
}

.invitation-card h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.invitation-card p {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.invitation-code {
    display: flex;
    align-items: center;
    gap: 9px;
}

.invitation-code code {
    padding: 10px 14px;
    color: var(--red-800);
    background: var(--red-100);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .08em;
}

.role-pill {
    display: inline-flex;
    width: max-content;
    padding: 4px 8px;
    border-radius: 6px;
    color: #646872;
    background: #eff0f1;
    font-size: 9px;
    font-weight: 800;
}

.role-pill--red {
    color: var(--red-700);
    background: var(--red-100);
}

.role-pill--blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.drawer-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.drawer-person strong,
.drawer-person small {
    display: block;
}

.drawer-person small {
    color: var(--muted);
}

.switch-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 15px;
    margin: 5px 0 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}

.switch-row strong,
.switch-row small {
    display: block;
}

.switch-row strong {
    font-size: 11px;
}

.switch-row small {
    color: var(--muted);
    font-size: 9px;
}

.switch-row input {
    position: absolute;
    opacity: 0;
}

.switch-row i {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #ced0d5;
    transition: background .15s;
}

.switch-row i::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .15s;
}

.switch-row input:checked + i {
    background: var(--red-700);
}

.switch-row input:checked + i::after {
    transform: translateX(16px);
}

/* Alerts */

.stats-grid--alerts {
    margin-top: 0;
}

.dashboard-grid--alerts {
    grid-template-columns: 1.2fr .8fr;
}

.response-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 22px 22px 15px;
}

.response-summary > div {
    padding: 13px;
    border-radius: 9px;
    background: #f8f8f8;
}

.response-summary strong,
.response-summary span {
    display: block;
}

.response-summary strong {
    font-size: 21px;
}

.response-summary span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.stacked-progress {
    display: flex;
    height: 12px;
    overflow: hidden;
    margin: 5px 22px 10px;
    border-radius: 999px;
    background: #eee;
}

.stacked-progress__help {
    background: var(--green);
}

.stacked-progress__cannot {
    background: var(--danger);
}

.stacked-progress__none {
    background: #b9bbc1;
}

.panel-note {
    margin: 0;
    padding: 4px 22px 20px;
    color: var(--muted);
    font-size: 9px;
}

.donut-placeholder {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px;
}

.donut-placeholder__ring {
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--green) 0 var(--resolved), #d9811d var(--resolved) 78%, #d3495e 78% 90%, #c8c9cd 90% 100%);
}

.donut-placeholder__ring::before {
    content: "";
    grid-area: 1 / 1;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #fff;
}

.donut-placeholder__ring > span {
    z-index: 1;
    grid-area: 1 / 1;
    text-align: center;
}

.donut-placeholder__ring strong,
.donut-placeholder__ring small {
    display: block;
}

.donut-placeholder__ring strong {
    font-size: 22px;
}

.donut-placeholder__ring small {
    color: var(--muted);
    font-size: 9px;
}

.donut-legend {
    min-width: 125px;
}

.donut-legend > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    color: var(--muted);
    font-size: 10px;
}

.donut-legend strong {
    color: var(--ink);
}

.filter-card--alerts {
    justify-content: flex-start;
}

.alert-sequence {
    color: var(--red-700) !important;
}

.response-chips {
    display: flex;
    gap: 5px;
}

.response-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    padding: 3px 6px;
    border-radius: 5px;
    color: #656972;
    background: #eff0f1;
    font-size: 9px;
    font-weight: 900;
}

.response-chip--yes {
    color: var(--green);
    background: var(--green-soft);
}

.response-chip--no {
    color: var(--danger);
    background: var(--red-100);
}

.alert-time {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    padding: 13px;
    border-radius: 9px;
    background: var(--red-50);
}

.alert-time > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--red-700);
    font-weight: 900;
}

.alert-time strong,
.alert-time small {
    display: block;
}

.alert-time strong {
    font-size: 11px;
}

.alert-time small {
    color: var(--muted);
    font-size: 9px;
}

.feature-flags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 21px;
}

.feature-flags > div {
    display: grid;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
}

.feature-flags > div.is-enabled {
    border-color: #bce0cf;
    color: var(--green);
    background: #f5fbf8;
}

.feature-flags span {
    font-size: 20px;
}

.feature-flags strong {
    color: var(--ink);
    font-size: 10px;
}

.feature-flags small {
    font-size: 9px;
}

.alert-detail h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.response-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.response-detail > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.response-detail strong {
    font-size: 17px;
}

.response-detail small {
    color: var(--muted);
    font-size: 8px;
}

.resolution-note {
    margin-top: 17px;
    padding: 13px;
    border-radius: 9px;
    background: #f7f7f8;
}

.resolution-note p {
    margin: 5px 0 0;
    font-size: 11px;
}

/* Operators and modal */

.security-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #d5e2ef;
    border-radius: 10px;
    color: #345d85;
    background: #f3f8fc;
}

.security-callout--neutral {
    color: #5b5960;
    border-color: var(--line);
    background: #f8f8f8;
}

.security-callout__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: #fff;
    background: var(--blue);
    font-weight: 900;
}

.security-callout--neutral .security-callout__icon {
    background: #6b6e76;
}

.security-callout p {
    margin: 2px 0 0;
    font-size: 11px;
}

.operator-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.operator-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.operator-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.operator-card__identity h2 {
    margin: 14px 0 2px;
    font-size: 17px;
}

.operator-card__identity p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 11px;
}

.operator-card__permissions {
    display: grid;
    gap: 6px;
    min-height: 117px;
    margin-top: 17px;
    padding: 14px;
    border-radius: 9px;
    background: #f8f8f8;
}

.operator-card__permissions > span:not(.eyebrow) {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #4e525c;
    font-size: 10px;
}

.operator-card__permissions i {
    color: var(--green);
    font-style: normal;
    font-weight: 900;
}

.operator-card__permissions small {
    color: var(--muted);
    font-size: 9px;
}

.operator-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.operator-card__footer small,
.operator-card__footer strong {
    display: block;
}

.operator-card__footer small {
    color: var(--muted);
    font-size: 9px;
}

.operator-card__footer strong {
    font-size: 10px;
}

.modal-backdrop {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(18, 14, 16, .55);
    backdrop-filter: blur(3px);
}

.modal-card {
    width: min(560px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    padding: 23px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 28px 80px rgba(20, 12, 15, .30);
}

.modal-card--wide {
    width: min(760px, 100%);
}

.modal-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.modal-card__header h2 {
    margin: 0;
    font-size: 23px;
}

.permissions-editor {
    margin: 4px 0 20px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fafafa;
}

.permissions-editor > div:first-child p {
    margin: 2px 0 14px;
    color: var(--muted);
    font-size: 11px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.permission-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #5b5e67;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.permission-option:hover {
    border-color: #dfb6be;
}

.permission-option.is-selected {
    color: var(--red-700);
    border-color: #dfb6be;
    background: var(--red-50);
}

.permission-option span {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    border: 1px solid #ccced3;
    border-radius: 5px;
    background: #fff;
    font-size: 10px;
    font-weight: 900;
}

.permission-option.is-selected span {
    color: #fff;
    border-color: var(--red-700);
    background: var(--red-700);
}

.permission-option strong {
    font-size: 9px;
}

/* Settings */

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 18px;
}

.settings-main {
    display: grid;
    gap: 16px;
}

.settings-section {
    padding: 21px;
}

.settings-section__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.settings-section__icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    border-radius: 9px;
    color: var(--red-700);
    background: var(--red-100);
    font-size: 13px;
    font-weight: 900;
}

.settings-section__header h2 {
    margin: 0;
    font-size: 17px;
}

.settings-section__header p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.video-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px dashed #d8c5c9;
    border-radius: 9px;
    background: #fbf8f8;
}

.video-preview__play {
    display: grid;
    place-items: center;
    width: 42px;
    height: 29px;
    flex: 0 0 auto;
    border-radius: 7px;
    color: #fff;
    background: #d62036;
    font-size: 11px;
}

.video-preview > div {
    min-width: 0;
    flex: 1;
}

.video-preview strong,
.video-preview small {
    display: block;
}

.video-preview strong {
    font-size: 11px;
}

.video-preview small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pricing-example {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 3px 16px;
    padding: 13px;
    border-radius: 9px;
    background: var(--green-soft);
}

.pricing-example > span {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pricing-example strong {
    font-size: 11px;
}

.pricing-example small {
    color: #49705e;
    font-size: 9px;
}

.settings-side {
    position: sticky;
    top: 118px;
}

.settings-summary {
    overflow: hidden;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .13), transparent 33%),
        linear-gradient(145deg, var(--red-800), var(--red-950));
}

.settings-summary .eyebrow {
    color: #f0aab7;
}

.settings-summary h2 {
    font-size: 19px;
}

.settings-price {
    display: flex;
    align-items: flex-start;
    margin: 24px 0;
}

.settings-price sup {
    margin-top: 7px;
    font-size: 17px;
}

.settings-price strong {
    font-size: 48px;
    line-height: .9;
    letter-spacing: -.06em;
}

.settings-price span {
    margin-left: 9px;
    color: #e7bec5;
    font-size: 9px;
    line-height: 1.35;
}

.settings-summary ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    list-style: none;
}

.settings-summary li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f0dce0;
    font-size: 10px;
}

.settings-summary li span {
    color: #8ce2bc;
}

.settings-side .form-actions {
    margin-top: 13px;
}

/* Miscellaneous states */

.loading-panel,
.access-gate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #e6c8ce;
    border-top-color: var(--red-700);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.access-gate {
    min-height: calc(100vh - 200px);
    flex-direction: column;
    text-align: center;
}

.access-gate__icon {
    display: grid;
    place-items: center;
    min-width: 58px;
    height: 58px;
    padding: 0 12px;
    border-radius: 16px;
    color: #fff;
    background: var(--red-700);
    font-weight: 900;
}

.access-gate h1 {
    margin: 4px 0 0;
}

.access-gate p {
    margin: 0 0 7px;
}

#blazor-error-ui {
    position: fixed;
    z-index: 9999;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 16px;
    border-radius: 9px;
    color: #fff;
    background: var(--red-900);
    box-shadow: var(--shadow-md);
}

#blazor-error-ui .reload {
    margin-left: 9px;
    color: #fff;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    margin-left: 12px;
    cursor: pointer;
}

.blazor-error-boundary {
    padding: 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--red-700);
}

.blazor-error-boundary::after {
    content: "Ocurrió un error inesperado.";
}

/* Responsive */

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .dashboard-grid--bottom,
    .dashboard-grid--alerts {
        grid-template-columns: 1fr;
    }

    .operator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-view--selected {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid .stack {
        grid-template-columns: 1fr 1fr;
    }

    .settings-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
    }
}

@media (max-width: 960px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        width: 268px;
        transform: translateX(-105%);
        box-shadow: var(--shadow-md);
        transition: transform .2s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar__close,
    .topbar__menu {
        display: inline-grid;
    }

    .nav-scrim {
        position: fixed;
        z-index: 25;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(23, 19, 21, .43);
    }

    .workspace {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        padding: 0 20px;
    }

    .global-search {
        margin-left: 12px;
    }

    .split-view--selected {
        grid-template-columns: 1fr;
    }

    .detail-drawer {
        position: fixed;
        z-index: 60;
        inset: 84px 12px 12px auto;
        width: min(390px, calc(100vw - 24px));
        max-height: calc(100vh - 96px);
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-side {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .login-shell {
        grid-template-columns: minmax(350px, 42%) 1fr;
    }

    .login-story__inner {
        padding: 38px;
    }

    .login-story__content h1 {
        font-size: 45px;
    }
}

@media (max-width: 760px) {
    .main-content {
        padding: 22px 14px 40px;
    }

    .topbar {
        min-height: 62px;
        padding: 0 13px;
    }

    .global-search {
        width: auto;
        flex: 1;
    }

    .global-search kbd,
    .user-chip__copy,
    .notification-button {
        display: none;
    }

    .user-chip {
        padding-left: 8px;
    }

    .demo-ribbon {
        justify-content: flex-start;
        padding: 7px 14px;
    }

    .page-header,
    .entity-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-header__actions,
    .entity-header__actions {
        width: 100%;
    }

    .page-header__actions .button,
    .entity-header__actions .button {
        flex: 1;
    }

    .stats-grid,
    .group-kpis,
    .group-kpis--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-card,
    .filter-card--groups,
    .filter-card--members,
    .filter-card--audit {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .filter-card .search-field {
        width: 100%;
    }

    .segmented-control {
        order: 2;
    }

    .table-panel__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .legend {
        flex-wrap: wrap;
    }

    .group-tabs {
        overflow-x: auto;
    }

    .group-tabs a {
        white-space: nowrap;
    }

    .detail-grid .stack,
    .settings-side {
        grid-template-columns: 1fr;
    }

    .form-grid,
    .form-grid--three {
        grid-template-columns: 1fr;
    }

    .commercial-summary > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .commercial-summary dd {
        text-align: left;
    }

    .invitation-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .invitation-code {
        width: 100%;
        flex-wrap: wrap;
    }

    .operator-grid {
        grid-template-columns: 1fr;
    }

    .permission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .response-summary {
        gap: 6px;
        padding-inline: 14px;
    }

    .donut-placeholder {
        justify-content: center;
        flex-wrap: wrap;
    }

    .login-shell {
        display: block;
    }

    .login-story {
        display: none;
    }

    .login-panel {
        min-height: 100svh;
        padding: 26px 20px;
    }

    .login-card__mobile-brand {
        display: block;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .group-kpis,
    .group-kpis--three {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 138px;
    }

    .bar-chart {
        gap: 5px;
        padding-inline: 14px;
    }

    .activity-row {
        grid-template-columns: 34px 1fr;
    }

    .activity-row time {
        grid-column: 2;
    }

    .entity-header__identity {
        align-items: flex-start;
    }

    .entity-header__title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .entity-header__actions {
        flex-direction: column;
    }

    .detail-drawer {
        inset: 70px 8px 8px;
        width: auto;
        max-height: calc(100vh - 78px);
    }

    .permission-grid {
        grid-template-columns: 1fr;
    }

    .modal-backdrop {
        padding: 8px;
    }

    .modal-card {
        max-height: calc(100vh - 16px);
        padding: 17px;
        border-radius: 16px;
    }

    .video-preview {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .pricing-example {
        grid-template-columns: 1fr;
    }

    .pricing-example > span {
        grid-row: auto;
    }
}

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