:root {
    --ae-navy-950: #06172a;
    --ae-navy-900: #0b2139;
    --ae-navy-850: #0f2d4c;
    --ae-navy-800: #12385c;
    --ae-blue: #0b6ff0;
    --ae-blue-700: #075cd0;
    --ae-blue-100: #eaf3ff;
    --ae-sky: #39c4ff;
    --ae-cyan: #22b8f0;
    --ae-green: #19a957;
    --ae-green-100: #e9f9ef;
    --ae-yellow: #f5a524;
    --ae-red: #e5484d;
    --ae-purple: #7c3aed;
    --ae-orange: #f97316;
    --ae-bg: #f6f9fd;
    --ae-surface: #ffffff;
    --ae-soft: #f8fbff;
    --ae-line: #e2eaf4;
    --ae-line-strong: #d4e0ed;
    --ae-text: #16233d;
    --ae-muted: #60708d;
    --ae-muted-2: #8794aa;
    --ae-shadow: 0 12px 28px rgba(17, 42, 76, .07);
    --ae-shadow-soft: 0 8px 18px rgba(17, 42, 76, .045);
    --ae-radius: 14px;
    --ae-radius-lg: 18px;
    --ae-sidebar: 248px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--ae-bg);
    color: var(--ae-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

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

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

.ae-app {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--ae-sidebar) 1fr;
}

.ae-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, #102b49 0%, #0a2038 52%, #07192d 100%);
    color: #e7f3ff;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 6px 0 22px rgba(5, 17, 31, .16);
    z-index: 10;
}

.ae-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 2px 2px 24px;
}

.ae-eye {
    width: 50px;
    height: 34px;
    position: relative;
    display: grid;
    place-items: center;
}

.ae-eye:before {
    content: "";
    width: 46px;
    height: 27px;
    border: 4px solid var(--ae-sky);
    border-radius: 60% 60% 55% 55% / 75% 75% 45% 45%;
    transform: rotate(-2deg);
    position: absolute;
}

.ae-eye:after {
    content: "";
    width: 15px;
    height: 15px;
    background: var(--ae-sky);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(57, 196, 255, .15);
}

.ae-logo-text {
    color: #35c8ff;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: .02em;
}

.ae-nav {
    display: grid;
    gap: 7px;
    margin-top: 2px;
}

.ae-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 10px;
    padding: 0 13px;
    color: rgba(236, 247, 255, .92);
    font-weight: 650;
    transition: .15s ease;
}

.ae-nav a:hover,
.ae-nav a.active {
    background: linear-gradient(90deg, var(--ae-blue), #0c7cff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(11, 111, 240, .25);
}

.ae-nav-icon {
    width: 21px;
    display: grid;
    place-items: center;
    font-size: 17px;
    opacity: .95;
}

.ae-nav-caret {
    margin-left: auto;
    color: rgba(255, 255, 255, .65);
}

.ae-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 6px 2px;
}

.ae-avatar-sm,
.ae-avatar {
    border-radius: 50%;
    background:
        radial-gradient(circle at 45% 36%, #ffe4d6 0 18%, transparent 19%),
        linear-gradient(145deg, #f7c7b1, #d89173);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}

.ae-avatar-sm {
    width: 42px;
    height: 42px;
}

.ae-user-name {
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.ae-user-role {
    color: rgba(231, 243, 255, .72);
    font-size: 12px;
}

.ae-online {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #39d96f;
    border-radius: 50%;
    margin-left: 4px;
}

.ae-main {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,253,.98) 180px),
        var(--ae-bg);
}

.ae-patient-bar {
    height: 104px;
    background: var(--ae-surface);
    border-bottom: 1px solid var(--ae-line);
    box-shadow: 0 5px 18px rgba(15, 35, 65, .04);
    display: grid;
    grid-template-columns: 360px 210px 260px 260px 190px 210px 1fr;
    align-items: center;
    padding: 0 22px;
    gap: 0;
    overflow: hidden;
}

.ae-patient-box {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding-right: 20px;
}

.ae-avatar {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
}

.ae-patient-name {
    font-size: 19px;
    font-weight: 900;
    color: var(--ae-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ae-patient-meta {
    margin-top: 6px;
    color: var(--ae-muted);
    font-weight: 650;
    font-size: 13px;
}

.ae-top-info {
    border-left: 1px solid var(--ae-line);
    padding: 0 18px;
    min-width: 0;
}

.ae-top-label {
    color: var(--ae-muted);
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.ae-top-value {
    color: var(--ae-text);
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ae-top-value.blue { color: var(--ae-blue); }

.ae-state-select {
    display: inline-flex;
    align-items: center;
    background: var(--ae-green-100);
    color: #0c7a39;
    border: 1px solid #8cdfae;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    font-weight: 800;
}

.ae-top-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--ae-text);
    font-size: 20px;
}

.ae-bell {
    position: relative;
}

.ae-bell:after {
    content: "5";
    position: absolute;
    top: -10px;
    right: -9px;
    width: 18px;
    height: 18px;
    background: #f43f5e;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}

.ae-page {
    padding: 18px 28px 34px;
}

.ae-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.ae-title {
    margin: 0;
    font-size: 25px;
    letter-spacing: -.02em;
    font-weight: 900;
    color: var(--ae-text);
}

.ae-subtitle {
    margin-top: 6px;
    color: var(--ae-muted);
    font-weight: 580;
}

.ae-date-button,
.ae-top-button {
    height: 48px;
    border: 1px solid var(--ae-line);
    background: var(--ae-surface);
    border-radius: 10px;
    padding: 0 18px;
    color: var(--ae-text);
    font-weight: 760;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--ae-shadow-soft);
}

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

.ae-kpi {
    position: relative;
    background: var(--ae-surface);
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-radius-lg);
    min-height: 132px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    box-shadow: var(--ae-shadow-soft);
    overflow: hidden;
}

.ae-kpi:after {
    content: "";
    position: absolute;
    left: 22px;
    bottom: 0;
    width: 58px;
    height: 3px;
    background: var(--ae-blue);
    border-radius: 99px 99px 0 0;
}

.ae-kpi.green:after { background: var(--ae-green); }
.ae-kpi.purple:after { background: var(--ae-purple); }
.ae-kpi.orange:after { background: var(--ae-orange); }

.ae-kpi-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: var(--ae-blue);
    background: var(--ae-blue-100);
}

.ae-kpi.green .ae-kpi-icon {
    background: #eafaf1;
    color: var(--ae-green);
}

.ae-kpi.purple .ae-kpi-icon {
    background: #f1eaff;
    color: var(--ae-purple);
}

.ae-kpi.orange .ae-kpi-icon {
    background: #fff3e8;
    color: var(--ae-orange);
}

.ae-kpi-label {
    color: var(--ae-muted);
    font-size: 13px;
    font-weight: 700;
}

.ae-kpi-value {
    margin-top: 5px;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -.03em;
}

.ae-kpi-foot {
    margin-top: 6px;
    color: var(--ae-muted);
    font-size: 13px;
}

.ae-positive { color: var(--ae-green); font-weight: 900; }

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

.ae-card-pad {
    padding: 18px;
}

.ae-card-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--ae-text);
}

.ae-card-sub {
    color: var(--ae-muted);
    font-size: 13px;
    margin-top: 4px;
}

.ae-module-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}

.ae-module {
    min-height: 92px;
    border: 1px solid var(--ae-line);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
}

.ae-module-icon {
    width: 56px;
    height: 56px;
    border-radius: 13px;
    background: var(--ae-blue-100);
    color: var(--ae-blue);
    display: grid;
    place-items: center;
    font-size: 28px;
    box-shadow: inset 0 0 0 1px #d5e7ff;
}

.ae-module-title {
    font-weight: 900;
    font-size: 16px;
}

.ae-module-sub {
    color: var(--ae-muted);
    font-size: 12px;
    margin-top: 5px;
}

.ae-lower-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1.15fr .95fr .95fr;
    gap: 16px;
}

.ae-panel-head {
    height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid var(--ae-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ae-link {
    color: var(--ae-blue);
    font-weight: 800;
    font-size: 13px;
}

.ae-list {
    padding: 0 16px 16px;
}

.ae-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 54px;
    border-bottom: 1px solid var(--ae-line);
}

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

.ae-time {
    color: var(--ae-blue);
    font-weight: 900;
}

.ae-person {
    font-weight: 850;
}

.ae-note {
    color: var(--ae-muted);
    font-size: 12px;
    margin-top: 2px;
}

.ae-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 850;
    background: #eaf3ff;
    color: var(--ae-blue);
    border: 1px solid #cfe2ff;
}

.ae-badge.green {
    background: #eafaf1;
    color: #0b833d;
    border-color: #bee9cd;
}

.ae-badge.yellow {
    background: #fff7df;
    color: #9a6200;
    border-color: #ffe5a3;
}

.ae-badge.red {
    background: #fff1f2;
    color: #d11f3a;
    border-color: #ffcbd3;
}

.ae-action-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ae-action-tile {
    min-height: 78px;
    border-radius: 12px;
    border: 1px solid #cfe2ff;
    background: linear-gradient(180deg, #fff, #f9fcff);
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
}

.ae-action-tile.green { border-color: #c1ebce; }
.ae-action-tile.purple { border-color: #dccbff; }
.ae-action-tile.orange { border-color: #ffd9af; }

.ae-action-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--ae-blue-100);
    color: var(--ae-blue);
    font-size: 23px;
}

.ae-action-tile.green .ae-action-icon { background: #eafaf1; color: var(--ae-green); }
.ae-action-tile.purple .ae-action-icon { background: #f1eaff; color: var(--ae-purple); }
.ae-action-tile.orange .ae-action-icon { background: #fff3e8; color: var(--ae-orange); }

.ae-filter-bar {
    display: grid;
    grid-template-columns: 190px 250px 250px 1fr 210px 210px 160px;
    gap: 16px;
    background: var(--ae-surface);
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-radius);
    padding: 14px;
    margin-bottom: 16px;
}

.ae-field label {
    display: block;
    color: var(--ae-muted);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 6px;
}

.ae-input {
    height: 42px;
    width: 100%;
    border: 1px solid var(--ae-line-strong);
    border-radius: 8px;
    background: #fff;
    padding: 0 12px;
    display: flex;
    align-items: center;
    color: var(--ae-text);
    font-weight: 680;
}

.ae-patient-profile {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 18px;
}

.ae-profile-card {
    background: #fff;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-radius);
    padding: 18px;
}

.ae-profile-top {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
}

.ae-photo-lg {
    width: 140px;
    height: 170px;
    border-radius: 13px;
    background:
        radial-gradient(circle at 50% 30%, #ffe1d4 0 22%, transparent 23%),
        linear-gradient(160deg, #eec4b5, #d9dbe7);
}

.ae-profile-name {
    font-size: 27px;
    font-weight: 900;
    margin-bottom: 12px;
}

.ae-info-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.ae-info-item {
    border-top: 1px solid var(--ae-line);
    padding-top: 14px;
}

.ae-info-label {
    color: var(--ae-muted);
    font-size: 12px;
    font-weight: 800;
}

.ae-info-value {
    margin-top: 5px;
    font-weight: 800;
}

.ae-tabs {
    margin-top: 16px;
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--ae-line);
}

.ae-tab {
    height: 42px;
    display: flex;
    align-items: center;
    color: var(--ae-muted);
    font-weight: 800;
    position: relative;
}

.ae-tab.active {
    color: var(--ae-blue);
}

.ae-tab.active:after {
    content: "";
    position: absolute;
    height: 3px;
    background: var(--ae-blue);
    border-radius: 99px 99px 0 0;
    left: 0;
    right: 0;
    bottom: -1px;
}

.ae-profile-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ae-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.ae-mini-table th,
.ae-mini-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--ae-line);
    text-align: left;
    font-size: 13px;
}

.ae-mini-table th {
    color: var(--ae-muted);
    font-weight: 900;
    font-size: 12px;
}

.ae-side-stack {
    display: grid;
    gap: 14px;
}

.ae-side-card {
    background: #fff;
    border: 1px solid var(--ae-line);
    border-radius: var(--ae-radius);
    padding: 15px;
}

.ae-button {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 850;
    color: #fff;
    background: var(--ae-blue);
}

.ae-button.green { background: var(--ae-green); }
.ae-button.red { background: var(--ae-red); }
.ae-button.light {
    background: #fff;
    color: var(--ae-text);
    border: 1px solid var(--ae-line-strong);
}

.ae-button-row {
    display: grid;
    gap: 9px;
}

.ae-alert {
    padding: 11px;
    border: 1px solid #ffd7a8;
    background: #fff8ec;
    border-radius: 9px;
    color: #804a00;
    font-size: 12px;
    font-weight: 650;
    margin-top: 8px;
}

.ae-alert.red {
    background: #fff3f4;
    color: #b4232d;
    border-color: #ffcbd2;
}

.ae-doc-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 9px;
    align-items: center;
    border-bottom: 1px solid var(--ae-line);
    padding: 10px 0;
}

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

.ae-agenda-layout {
    display: grid;
    grid-template-columns: 310px 1fr 560px;
    gap: 16px;
}

.ae-calendar {
    padding: 16px;
}

.ae-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    text-align: center;
    color: var(--ae-muted);
    font-size: 12px;
}

.ae-calendar-day {
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 750;
}

.ae-calendar-day.active {
    background: var(--ae-blue);
    color: #fff;
}

.ae-schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.ae-schedule-table td {
    border-bottom: 1px solid var(--ae-line);
    padding: 8px 9px;
    font-size: 13px;
    height: 31px;
}

.ae-schedule-table tr.selected {
    background: #eaf4ff;
    outline: 1px solid #a6cdfb;
}

.ae-clinical-layout {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 16px;
}

.ae-clinical-main {
    display: grid;
    gap: 13px;
}

.ae-clinical-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.ae-clinical-card {
    background: #fff;
    border: 1px solid var(--ae-line);
    border-radius: 9px;
    overflow: hidden;
}

.ae-clinical-head {
    height: 35px;
    border-bottom: 1px solid var(--ae-line);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    color: var(--ae-blue);
    font-weight: 900;
    font-size: 13px;
}

.ae-step {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--ae-blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 12px;
}

.ae-clinical-body {
    padding: 12px;
}

.ae-form-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.ae-textarea {
    min-height: 78px;
    border: 1px solid var(--ae-line-strong);
    border-radius: 7px;
    background: #fbfdff;
    padding: 10px;
    color: var(--ae-text);
    font-size: 13px;
    line-height: 1.4;
}

.ae-field-mini label {
    display: block;
    color: var(--ae-muted);
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 4px;
}

.ae-input-mini {
    height: 30px;
    border: 1px solid var(--ae-line-strong);
    border-radius: 6px;
    background: #fbfdff;
    padding: 0 8px;
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 650;
}

.ae-eye-grid {
    display: grid;
    grid-template-columns: 80px repeat(2, 1fr);
    gap: 7px;
    align-items: center;
}

.ae-eye-grid .head {
    color: var(--ae-blue);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.ae-chip-row {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ae-chip {
    height: 23px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #b8d8ff;
    background: #eef7ff;
    color: var(--ae-blue);
    font-size: 11px;
    font-weight: 800;
}

.ae-axis {
    width: 108px;
    height: 108px;
    margin: 0 auto;
    background:
        linear-gradient(90deg, transparent 49%, #93b7df 49% 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, #93b7df 49% 51%, transparent 51%),
        radial-gradient(circle, #eaf4ff, #f7fbff);
    border-radius: 14px;
    border: 1px solid var(--ae-line);
    position: relative;
}

.ae-axis:after {
    content: "✦";
    color: var(--ae-blue);
    font-size: 42px;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.ae-right-fixed {
    display: grid;
    gap: 10px;
    align-content: start;
}

.ae-right-fixed .ae-button {
    width: 100%;
}

@media (max-width: 1460px) {
    .ae-patient-bar {
        grid-template-columns: 330px repeat(4, minmax(160px, 1fr)) 1fr;
        height: auto;
        min-height: 104px;
        row-gap: 10px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

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

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

    .ae-lower-grid,
    .ae-patient-profile,
    .ae-agenda-layout,
    .ae-clinical-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .ae-app { grid-template-columns: 1fr; }
    .ae-sidebar { position: relative; height: auto; }
    .ae-patient-bar { grid-template-columns: 1fr; }
    .ae-top-info { border-left: 0; border-top: 1px solid var(--ae-line); padding: 12px 0; }
    .ae-kpi-grid, .ae-module-grid, .ae-profile-grid, .ae-clinical-two, .ae-form-mini-grid, .ae-filter-bar { grid-template-columns: 1fr; }
}

/* ANA_EYES_DEV_1G — UI Interaction Layer */
.ae-clickable {
    cursor: pointer;
}

.ae-schedule-table tr {
    cursor: pointer;
    transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}

.ae-schedule-table tr:hover {
    background: #f3f8ff;
}

.ae-schedule-table tr.selected {
    background: #e7f2ff !important;
    box-shadow: inset 3px 0 0 var(--ae-blue);
}

.ae-tab {
    cursor: pointer;
}

.ae-tab-panel {
    display: none;
}

.ae-tab-panel.active {
    display: block;
}

.ae-interaction-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    background: #0f2d4c;
    color: #fff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 18px 45px rgba(5, 17, 31, .25);
    font-weight: 800;
    max-width: 380px;
    animation: ae-toast-in .18s ease-out;
}

@keyframes ae-toast-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ae-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 23, 42, .42);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ae-modal-backdrop.active {
    display: flex;
}

.ae-modal {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--ae-line);
    box-shadow: 0 28px 70px rgba(5, 17, 31, .28);
    overflow: hidden;
}

.ae-modal-head {
    min-height: 62px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ae-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ae-modal-title {
    font-size: 18px;
    font-weight: 950;
}

.ae-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--ae-line);
    background: #fff;
    cursor: pointer;
    font-weight: 900;
}

.ae-modal-body {
    padding: 20px;
    color: var(--ae-muted);
    line-height: 1.55;
}

.ae-modal-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--ae-line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ae-demo-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff8e6;
    color: #965800;
    border: 1px solid #ffe1a6;
    font-size: 12px;
    font-weight: 850;
}

.ae-button,
.ae-action-tile,
.ae-module {
    cursor: pointer;
}

.ae-button:active,
.ae-action-tile:active,
.ae-module:active {
    transform: translateY(1px);
}

.ae-detail-flash {
    animation: ae-detail-flash .55s ease;
}

@keyframes ae-detail-flash {
    0% { box-shadow: 0 0 0 0 rgba(11, 111, 240, .28); }
    45% { box-shadow: 0 0 0 5px rgba(11, 111, 240, .14); }
    100% { box-shadow: none; }
}

.ae-filter-active {
    border-color: #8ec5ff !important;
    background: #f0f7ff !important;
}

.ae-panel-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ae-mini-button {
    height: 28px;
    border: 1px solid var(--ae-line);
    background: #fff;
    color: var(--ae-blue);
    border-radius: 8px;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.ae-mini-button:hover {
    background: var(--ae-blue-100);
}

.ae-hidden {
    display: none !important;
}
