/* Moved out of HelixID/content.mirage (W2c, 2026-10-13): loaded by a <link> at the same place in the template, so its cascade
   position is unchanged. */
    .helixid-user-admin {
        --helix-accent: #31d6c4;
        --helix-accent-strong: #64eadb;
        --helix-gold: #f2c66d;
        --helix-panel: rgba(8, 29, 43, .94);
        --helix-panel-soft: rgba(13, 43, 59, .86);
        --helix-border: rgba(105, 211, 211, .18);
        --helix-text: #edf9fa;
        --helix-muted: #91abb6;
        position: relative;
        padding: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        color: var(--helix-text);
        background: transparent;
        box-shadow: none;
    }
    .helixid-user-admin .ai-control-settings__card { border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
    .helixid-user-admin .ai-control-settings__card-header {
        position: relative;
        margin-bottom: 18px;
        padding: clamp(22px, 3vw, 36px);
        border: 1px solid var(--helix-border);
        border-radius: 22px;
        overflow: hidden;
        background: linear-gradient(125deg, rgba(16, 57, 73, .88), rgba(8, 30, 45, .7));
        box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    }
    .helixid-user-admin .ai-control-settings__card-title { margin: 0; color: #fff; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.035em; }
    .helixid-user-admin .ai-control-settings__card-subtitle { max-width: 760px; margin-top: 10px; color: #aac1ca; font-size: .98rem; line-height: 1.65; }
    .helixid-user-admin .ai-control-settings__card-body { display: grid; gap: 17px; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .helixid-user-admin .alert { margin: 0; padding: 14px 17px; border: 1px solid rgba(96, 221, 204, .22); border-radius: 14px; color: #dffcf8; background: rgba(23, 115, 105, .18); }
    .helixid-user-admin .alert-danger { border-color: rgba(255, 115, 119, .25); color: #ffd9dc; background: rgba(133, 37, 47, .2); }
    .helixid-user-admin .ai-control-settings__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
    .helixid-user-admin .ai-control-settings__metric {
        position: relative;
        min-height: 132px;
        padding: 21px;
        border: 1px solid var(--helix-border);
        border-radius: 19px;
        overflow: hidden;
        color: #a8bdc7;
        background: linear-gradient(145deg, rgba(16, 54, 70, .88), rgba(7, 25, 38, .96));
        box-shadow: 0 18px 35px rgba(0, 7, 15, .17), inset 0 1px rgba(255, 255, 255, .03);
    }
    .helixid-user-admin .ai-control-settings__metric::after { content: ""; position: absolute; right: -34px; bottom: -44px; width: 118px; height: 118px; border-radius: 50%; background: rgba(48, 212, 194, .08); }
    .helixid-user-admin .ai-control-settings__metric strong { display: block; margin-top: 15px; color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.055em; }
    .helixid-user-admin .ai-control-settings__empty,
    .helixid-user-admin .ai-control-settings__table-wrap { border: 1px solid var(--helix-border); border-radius: 18px; background: var(--helix-panel); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
    .helixid-user-admin .ai-control-settings__empty { padding: 22px; color: var(--helix-muted); }
    .helixid-user-admin .ai-control-settings__pager-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .helixid-user-admin .ai-control-settings__pager-toolbar,
    .helixid-user-admin .ai-control-settings__search-form { width: 100%; min-width: 0; }
    .helixid-user-admin .ai-control-settings__pager-toolbar { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
    .helixid-user-admin .ai-control-settings__pager { min-width: 0; }
    .helixid-user-admin .ai-control-settings__search-form { display: flex; align-items: end; gap: 11px; padding: 13px 14px; border: 1px solid var(--helix-border); border-radius: 16px; background: rgba(8, 29, 43, .76); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
    .helixid-user-admin .ai-control-settings__search-field { flex: 1 1 auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .helixid-user-admin .ai-control-settings__label { display: block; margin-bottom: 7px; color: var(--helix-gold); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
    .helixid-user-admin .ai-control-settings__input,
    .helixid-user-admin .ai-control-settings__select { min-height: 45px; border: 1px solid rgba(116, 190, 201, .22); border-radius: 12px; color: var(--helix-text); background: #071c2a; outline: none; }
    .helixid-user-admin .ai-control-settings__input:focus,
    .helixid-user-admin .ai-control-settings__select:focus { border-color: rgba(74, 222, 205, .62); box-shadow: 0 0 0 3px rgba(49, 214, 196, .1); }
    .helixid-user-admin .ai-control-settings__actions { display: flex; flex-wrap: wrap; gap: 10px; }
    .helixid-user-admin .ai-control-settings__button,
    .helixid-user-admin .ai-control-settings__link { min-height: 42px; padding: 10px 17px; border: 1px solid rgba(75, 223, 207, .28); border-radius: 12px; color: #eafffc; background: linear-gradient(135deg, rgba(31, 153, 143, .92), rgba(18, 104, 111, .92)); box-shadow: 0 9px 22px rgba(5, 49, 56, .2); cursor: pointer; }
    .helixid-user-admin .ai-control-settings__button--danger { border-color: rgba(255, 112, 119, .28); background: linear-gradient(135deg, rgba(153, 49, 59, .94), rgba(103, 32, 44, .94)); }
    .helixid-user-admin .ai-control-settings__table-wrap { overflow: auto; }
    .helixid-user-admin .ai-control-settings__table { width: 100%; border-collapse: separate; border-spacing: 0; color: #dcecef; }
    .helixid-user-admin .ai-control-settings__table th { padding: 14px 16px; border-bottom: 1px solid rgba(101, 205, 202, .16); color: var(--helix-gold); background: rgba(14, 56, 70, .76); font-size: .68rem; letter-spacing: .11em; text-align: left; text-transform: uppercase; white-space: nowrap; }
    .helixid-user-admin .ai-control-settings__table td { padding: 15px 16px; border-bottom: 1px solid rgba(91, 162, 176, .1); vertical-align: top; }
    .helixid-user-admin .ai-control-settings__table tbody tr:last-child td { border-bottom: 0; }
    .helixid-user-admin .ai-control-settings__table tbody tr:nth-child(odd) { background: rgba(6, 25, 36, .45); }
    .helixid-user-admin .ai-control-settings__table tbody tr:nth-child(even) { background: rgba(17, 49, 61, .42); }
    .helixid-user-admin .ai-control-settings__table tbody tr:hover { background: rgba(37, 107, 112, .28); }
    .helixid-user-admin .ai-control-settings__muted { color: var(--helix-muted); }
    .helixid-user-admin .ai-control-settings__badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border: 1px solid rgba(84, 225, 206, .22); border-radius: 999px; color: #bffbf2; background: rgba(35, 155, 143, .16); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .helixid-user-admin .ai-control-settings__dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(105, 220, 210, .28); border-radius: 20px; color: var(--helix-text); background: linear-gradient(145deg, #103448, #061824); box-shadow: 0 32px 90px rgba(0, 0, 0, .62); }
    .helixid-user-admin .ai-control-settings__dialog::backdrop { background: rgba(2, 10, 17, .82); backdrop-filter: blur(7px); }
    .helixid-user-admin .ai-control-settings__dialog form { padding: 25px; }
    .helixid-user-admin .ai-control-settings__dialog h3 { margin: 0; color: #fff; }
    .helixid-user-admin .ai-control-settings__dialog p { color: #a9c0c9; }
    .helixid-user-admin a { color: var(--helix-accent-strong); }
    @media (max-width: 900px) {
        .helixid-user-admin .ai-control-settings__metrics { grid-template-columns: 1fr; }
        .helixid-user-admin .ai-control-settings__search-form { align-items: stretch; flex-direction: column; }
    }
    .helixid-user-admin .helixid-user-admin__panel { display: grid; gap: 17px; padding: 20px; border: 1px solid var(--helix-border); border-radius: 18px; background: var(--helix-panel); box-shadow: inset 0 1px rgba(255,255,255,.025); }
    .helixid-user-admin .helixid-user-admin__form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .helixid-user-admin .helixid-user-admin__scopes { max-width: 440px; overflow-wrap: anywhere; color: #c8dadd; line-height: 1.55; }
    .helixid-user-admin .helixid-user-admin__activity { min-width: 220px; line-height: 1.6; }
    .helixid-user-admin .ai-control-settings__stack { display: grid; gap: 15px; }
    .helixid-user-admin .ai-control-settings__details { color: var(--helix-muted); }
    .helixid-user-admin .ai-control-settings__details summary { color: var(--helix-accent-strong); cursor: pointer; }
    .helixid-user-admin .helixid-mail__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .helixid-user-admin .helixid-mail__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .helixid-user-admin .helixid-mail__card { padding: 20px; border: 1px solid var(--helix-border); border-radius: 18px; background: linear-gradient(145deg, rgba(16, 54, 70, .88), rgba(7, 25, 38, .96)); box-shadow: 0 18px 35px rgba(0, 7, 15, .17), inset 0 1px rgba(255, 255, 255, .03); }
    .helixid-user-admin .helixid-mail__card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
    .helixid-user-admin .helixid-mail__alias { color: #fff; font-size: 1.08rem; font-weight: 800; }
    .helixid-user-admin .helixid-mail__address { margin-top: 4px; color: var(--helix-accent-strong); overflow-wrap: anywhere; }
    .helixid-user-admin .helixid-mail__badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
    .helixid-user-admin .helixid-mail__badge--muted { color: #afc1c8; border-color: rgba(155, 178, 187, .2); background: rgba(91, 108, 117, .16); }
    .helixid-user-admin .helixid-mail__check { display: flex; align-items: center; gap: 9px; color: #c8dadd; }
    .helixid-user-admin .helixid-mail__check input { width: 18px; height: 18px; accent-color: var(--helix-accent); }
    .helixid-user-admin .helixid-mail__section { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(105, 211, 211, .14); border-radius: 15px; background: rgba(6, 24, 35, .58); }
    .helixid-user-admin .helixid-mail__section h4 { margin: 0; color: var(--helix-gold); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
    .helixid-user-admin .helixid-mail__dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
    .helixid-user-admin .helixid-mail-record__detail { display: grid; gap: 17px; padding: 21px; border: 1px solid var(--helix-border); border-radius: 18px; background: var(--helix-panel); }
    .helixid-user-admin .helixid-mail-record__detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
    .helixid-user-admin .helixid-mail-record__detail h4 { margin: 0; color: #fff; font-size: 1.2rem; overflow-wrap: anywhere; }
    .helixid-user-admin .helixid-mail-record__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; padding: 15px; border: 1px solid rgba(105, 211, 211, .13); border-radius: 14px; background: rgba(6, 24, 35, .55); }
    .helixid-user-admin .helixid-mail-record__meta div { min-width: 0; color: #c8dadd; overflow-wrap: anywhere; }
    .helixid-user-admin .helixid-mail-record__meta strong { display: block; margin-bottom: 4px; color: var(--helix-gold); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
    .helixid-user-admin .helixid-mail-record__body { margin: 0; padding: 17px; border: 1px solid rgba(105, 211, 211, .13); border-radius: 14px; color: #e7f4f5; background: #061925; font: inherit; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
    .helixid-user-admin .helixid-mail-record__subject { color: #fff; font-weight: 800; }
    .helixid-user-admin .helixid-mail-record__counts { color: var(--helix-muted); white-space: nowrap; }
    .helixid-user-admin .helixid-mail-record__pager .pager__cluster--sortby,
    .helixid-user-admin .helixid-mail-record__pager .pager__cluster--sortmode { display: none; }
    @media (max-width: 900px) {
        .helixid-user-admin .helixid-user-admin__form-grid { grid-template-columns: 1fr; }
        .helixid-user-admin .helixid-mail__grid { grid-template-columns: 1fr; }
        .helixid-user-admin .helixid-mail__toolbar { align-items: stretch; flex-direction: column; }
        .helixid-user-admin .helixid-mail-record__detail-head { flex-direction: column; }
        .helixid-user-admin .helixid-mail-record__meta { grid-template-columns: 1fr; }
    }


/* HelixID 1.1.52 profile-photo geometry; profiles-files-20261015. */
.helixid-content--front .helixid-avatar {
    max-width: none;
    margin-bottom: 18px;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid var(--demo-line, #dce3ec);
    border-radius: var(--demo-radius-lg, 20px);
    background: var(--demo-white, #fff);
    color: inherit;
}
.helixid-content--front .helixid-avatar h3 { margin: 0 0 14px; color: inherit; font-size: 1.05rem; }
.helixid-content--front .helixid-avatar__body { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.helixid-content--front .helixid-avatar__preview {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border: 2px solid var(--demo-line, #dce3ec);
    border-radius: 50%;
    object-fit: cover;
    color: var(--demo-muted, inherit);
}
.helixid-content--front .helixid-avatar__preview--empty { display: inline-grid; place-items: center; color: inherit; font-size: 2.4rem; border-style: dashed; }
.helixid-content--front .helixid-avatar__controls { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 280px; gap: 12px; min-width: 0; }
.helixid-content--front .helixid-avatar__form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; max-width: none; padding: 0; border: 0; background: transparent; color: inherit; }
.helixid-content--front .helixid-avatar__controls .helixid-avatar__form { margin-top: 0; }
.helixid-content--front .helixid-avatar__form > label { flex: 1 0 100%; }
.helixid-content--front .helixid-avatar__form input[type="file"] { flex: 1 1 260px; width: auto; min-width: 0; max-width: 100%; padding: 8px; color: inherit; }
.helixid-content--front .helixid-avatar__form button { grid-column: auto; }
.helixid-content--front .helixid-avatar__hint { flex: 1 0 100%; order: 3; color: inherit; font-size: .8rem; line-height: 1.5; }
.sapphire-content-host > .helixid-content--front ~ .helixid-widget--front { display: none; }
@media (max-width: 640px) {
    .helixid-content--front .helixid-avatar__body { flex-direction: column; align-items: center; }
    .helixid-content--front .helixid-avatar__controls { width: 100%; }
}
