:root {
    --bg: #f6f8fb;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #667085;
    --line: #dbe2ea;
    --line-soft: #e9edf3;
    --accent: #1e6bff;
    --green: #0f9f6e;
    --red: #c2413d;
    --shadow: 0 20px 60px rgba(24, 39, 75, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    overflow-x: hidden;
    background:
        linear-gradient(180deg, #fff 0, var(--bg) 420px),
        var(--bg);
}

body.admin-page {
    background: #f5f7fb;
}

body.admin-page .topbar {
    padding: 14px clamp(20px, 4vw, 56px);
    background: rgba(255, 255, 255, .94);
}

body.admin-page .topbar nav {
    margin-left: auto;
}

body.admin-page .topbar nav a:not(.button) {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
}

body.admin-page .topbar nav a:not(.button):hover {
    background: #f1f4f8;
}

.admin-top-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-top-tools span,
.admin-top-tools a,
.admin-top-tools button,
.admin-top-tools strong {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}

.admin-top-tools button {
    border-color: var(--line);
    color: #344054;
    background: #fff;
}

.admin-top-tools button.active {
    border-color: #b7ebd4;
    color: #067647;
    background: #e7f8ef;
}

.admin-top-tools .admin-range-label {
    color: #101828;
    background: #fff;
}

.admin-top-tools .admin-range-label::before {
    content: "";
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-radius: 3px;
    opacity: .7;
}

.admin-top-tools .admin-updated-label {
    color: #667085;
    background: #f8fafc;
}

.admin-top-tools strong {
    gap: 8px;
    color: #101828;
}

.admin-top-tools strong::before {
    content: "IL";
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: #111827;
    font-size: 10px;
    font-weight: 900;
}

.range-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 34px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.range-switch a {
    min-height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.range-switch a.active {
    color: #101828;
    background: #fff;
    box-shadow: 0 1px 4px rgba(24, 39, 75, .12);
}

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

button,
input {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 4vw, 56px);
    border-bottom: 1px solid rgba(219, 226, 234, .78);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: cover;
    background: #050507;
}

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

.brand strong {
    font-size: 15px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #475467;
    font-size: 14px;
    font-weight: 650;
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #111827;
    border-radius: 8px;
    color: #fff;
    background: #111827;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.button.small,
button.small {
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
}

.button.ghost {
    color: #111827;
    background: #fff;
    border-color: var(--line);
}

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

.notice {
    max-width: 1180px;
    margin: 18px auto 0;
    padding: 12px 16px;
    border: 1px solid #b7ebd4;
    border-radius: 8px;
    color: #075e45;
    background: #e9fff5;
    font-weight: 650;
}

.notice.error {
    border-color: #ffd1d1;
    color: #9f1d1d;
    background: #fff1f1;
}

main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 390px;
    gap: 42px;
    align-items: stretch;
    min-height: calc(100svh - 80px);
    padding: 58px 0 42px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 7vw, 86px);
    line-height: .96;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.hero p {
    max-width: 640px;
    margin: 26px 0 0;
    color: #4b5565;
    font-size: 19px;
    line-height: 1.65;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.account-card {
    align-self: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.card-top {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.card-top span,
.tool-card span,
.panel-heading span,
.metric-grid span,
.dashboard-preview span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-top strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.credit-ring {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    margin: 30px auto;
    border: 18px solid #e7edf8;
    border-top-color: #1e6bff;
    border-right-color: #f26a3d;
    border-radius: 999px;
    text-align: center;
}

.credit-ring span,
.credit-ring strong {
    display: block;
}

.credit-ring span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.credit-ring strong {
    font-size: 18px;
}

.account-card ul {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    color: #46505f;
}

.account-card li {
    padding-left: 18px;
    position: relative;
}

.account-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111827;
}

.account-card a {
    color: #1e6bff;
    font-weight: 800;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.section-title h1,
.section-title h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
}

.section-title p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.tools-section,
.preview-admin {
    padding: 42px 0 64px;
}

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

.tool-card {
    min-height: 260px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.tool-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-weight: 850;
}

.tool-card h3 {
    margin: 8px 0;
    font-size: 26px;
}

.tool-card p {
    min-height: 76px;
    color: #566273;
    line-height: 1.55;
}

.tool-card div:last-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tool-card div:last-child a:not(.button) {
    color: #475467;
    font-weight: 750;
}

.preview-admin {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.preview-admin h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
}

.preview-admin p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.dashboard-preview,
.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-preview div,
.metric-grid article,
.panel,
.login-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.dashboard-preview div {
    min-height: 150px;
    padding: 20px;
}

.dashboard-preview strong,
.metric-grid strong {
    display: block;
    margin-top: 12px;
    font-size: 27px;
}

.admin-shell {
    display: grid;
    width: min(1380px, calc(100% - 40px));
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 24px;
    padding: 32px 0 64px;
    overflow: hidden;
}

.login-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: center;
    padding: 28px;
}

.login-panel h1 {
    margin: 0;
    font-size: 44px;
}

.login-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.login-form,
.login-form label {
    display: grid;
    gap: 10px;
}

.login-form label,
.credit-form input,
.delete-form input {
    color: #475467;
    font-size: 13px;
    font-weight: 750;
}

input {
    min-height: 38px;
    width: 100%;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-nav {
    position: sticky;
    top: 82px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 45px rgba(24, 39, 75, .06);
}

.admin-nav-head {
    padding: 8px 10px 14px;
    border-bottom: 1px solid var(--line-soft);
}

.admin-nav .nav-section {
    margin: 12px 10px 2px;
    color: #7b8798;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.admin-nav-head strong,
.admin-nav-head span {
    display: block;
}

.admin-nav-head strong {
    font-size: 18px;
}

.admin-nav-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-nav a,
.admin-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    min-height: 38px;
    width: 100%;
    padding: 0 10px;
    border: 0;
    color: #344054;
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
}

.nav-icon {
    position: relative;
    display: inline-grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #cfd8e6;
    border-radius: 6px;
    color: #475467;
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    display: block;
}

.grid-icon::before,
.apps-icon::before {
    width: 10px;
    height: 10px;
    background:
        linear-gradient(currentColor 0 0) 0 0 / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 100% 0 / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 0 100% / 4px 4px no-repeat,
        linear-gradient(currentColor 0 0) 100% 100% / 4px 4px no-repeat;
}

.users-icon::before {
    width: 11px;
    height: 7px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 0 0 10px 10px;
}

.users-icon::after {
    position: absolute;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.files-icon::before,
.card-icon::before {
    width: 11px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.income-icon::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.income-icon::after {
    position: absolute;
    width: 2px;
    height: 10px;
    background: currentColor;
}

.access-icon::before {
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.trends-icon::before {
    width: 12px;
    height: 9px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.trends-icon::after {
    position: absolute;
    width: 10px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: skew(-18deg) rotate(-12deg);
}

.cohort-icon::before {
    width: 13px;
    height: 10px;
    background:
        linear-gradient(currentColor 0 0) 0 0 / 3px 10px no-repeat,
        linear-gradient(currentColor 0 0) 5px 3px / 3px 7px no-repeat,
        linear-gradient(currentColor 0 0) 10px 6px / 3px 4px no-repeat;
}

.credit-icon::before {
    width: 12px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.gift-icon::before {
    width: 11px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.gift-icon::after {
    position: absolute;
    width: 2px;
    height: 13px;
    background: currentColor;
}

.storage-icon::before {
    width: 12px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 999px / 5px;
}

.system-icon::before {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.system-icon::after {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
}

.provider-icon::before {
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.provider-icon::after {
    position: absolute;
    width: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.audit-icon::before {
    width: 10px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.audit-icon::after {
    position: absolute;
    width: 5px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
}

.exit-icon::before {
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-left: 0;
    border-radius: 0 2px 2px 0;
}

.admin-nav a.active {
    color: #111827;
    background: #eef2f7;
    border-radius: 8px;
}

.admin-nav a:hover,
.admin-nav button:hover {
    color: #111827;
    background: #f5f7fb;
    border-radius: 8px;
}

.admin-nav a.active .nav-icon,
.admin-nav a:hover .nav-icon,
.admin-nav button:hover .nav-icon {
    border-color: #b9c7db;
    color: #1e6bff;
    background: #fff;
}

.admin-nav-foot {
    margin-top: 10px;
    padding: 12px 10px 0;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.admin-content {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.control-panel {
    min-width: 0;
}

.summary-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background:
        radial-gradient(circle at 96% 8%, rgba(37, 99, 235, .12), transparent 34%),
        #fff;
    box-shadow: 0 16px 42px rgba(24, 39, 75, .055);
}

.summary-hero h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1;
}

.summary-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.summary-hero-status {
    min-width: 210px;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
}

.summary-hero-status span,
.summary-hero-status small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.summary-hero-status strong {
    display: block;
    margin: 10px 0;
    color: #101828;
    font-size: 24px;
}

.summary-hero-status small {
    font-weight: 700;
    text-transform: none;
}

.summary-kpis,
.summary-main {
    margin-bottom: 18px;
}

.summary-intel {
    margin-top: 0;
}

.priority-card {
    margin-bottom: 16px;
}

.action-queue {
    display: grid;
    gap: 10px;
}

.action-queue a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfe;
}

.action-queue a:hover {
    border-color: #c7d7f4;
    background: #f8fbff;
}

.action-queue i {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 1px #dbe3ef;
}

.action-queue .ok i {
    background: #0f9f6e;
}

.action-queue .warn i {
    background: #f59e0b;
}

.action-queue .info i {
    background: #2563eb;
}

.action-queue strong,
.action-queue small {
    display: block;
}

.action-queue strong {
    overflow: hidden;
    color: #101828;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-queue small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-queue em {
    align-self: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #344054;
    background: #eef2f7;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.summary-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.summary-shortcuts a {
    display: grid;
    gap: 6px;
    min-height: 86px;
    padding: 15px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 39, 75, .045);
}

.summary-shortcuts strong {
    color: #101828;
    font-size: 15px;
}

.summary-shortcuts span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.summary-shortcuts a:hover {
    border-color: #c7d7f4;
    background: #fbfcff;
}

.control-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.control-toolbar h1 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
}

.control-toolbar p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 15px;
}

.control-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: start;
}

.control-actions span,
.control-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #475467;
    font-size: 13px;
    font-weight: 750;
}

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

.executive-grid article,
.command-card {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(24, 39, 75, .055);
}

.executive-grid article {
    min-height: 106px;
    padding: 17px;
}

.executive-grid span,
.command-card .panel-heading span {
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.executive-grid strong {
    display: block;
    margin-top: 12px;
    color: #101828;
    font-size: 28px;
    line-height: 1;
}

.executive-grid small {
    display: block;
    margin-top: 10px;
    color: #667085;
    font-size: 12px;
}

.trend-badge {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    margin-top: 10px;
    padding: 0 8px;
    border-radius: 999px;
    color: #475467;
    background: #f1f4f8;
    font-size: 11px !important;
    font-weight: 850;
}

.trend-badge.up {
    color: #067647;
    background: #e7f8ef;
}

.trend-badge.down {
    color: #b42318;
    background: #fff1f1;
}

.trend-badge.flat {
    color: #475467;
    background: #eef2f7;
}

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

.metric-grid article {
    padding: 18px;
}

.metric-grid strong {
    font-size: 26px;
}

.control-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.control-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
}

.control-hero p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.control-status {
    min-width: 160px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #f8fafc;
}

.control-status span,
.app-detail dt {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.control-status strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.app-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
}

.app-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    color: #344054;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.app-tab-mark,
.app-row-brand b {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    color: #fff;
    background: var(--app-accent, #2563eb);
    font-size: 11px;
    font-weight: 900;
}

.app-tab-mark.all {
    color: #344054;
    background: #eef2f7;
}

.app-row-brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.app-row-brand span {
    min-width: 0;
}

.anchor-target {
    display: block;
    scroll-margin-top: 96px;
}

.app-tabs a.active {
    border-color: #dbe6ff;
    color: #0f172a;
    background: #eef4ff;
    box-shadow: inset 0 -2px 0 #2563eb;
}

.app-health-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.app-health-strip article {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 39, 75, .045);
}

.app-health-strip span,
.app-health-strip small {
    display: block;
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.app-health-strip strong {
    display: block;
    margin: 8px 0 6px;
    overflow: hidden;
    color: #101828;
    font-size: 22px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-health-strip small {
    font-weight: 700;
    text-transform: none;
}

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

.ops-radar article {
    position: relative;
    min-width: 0;
    padding: 15px 15px 15px 18px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--radar-accent, #2563eb) 10%, transparent), transparent 72%),
        #fff;
    box-shadow: 0 12px 30px rgba(24, 39, 75, .045);
}

.ops-radar article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--radar-accent, #2563eb);
}

.ops-radar article.clear {
    --radar-accent: #0f9f6e;
}

.ops-radar article.attention {
    --radar-accent: #f59e0b;
}

.ops-radar span,
.ops-radar small {
    display: block;
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.ops-radar strong {
    display: block;
    margin: 8px 0 6px;
    overflow: hidden;
    color: #101828;
    font-size: 18px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: normal;
}

.ops-radar small {
    font-weight: 700;
    text-transform: none;
}

.users-radar {
    margin-top: -4px;
}

.users-radar strong {
    overflow-wrap: anywhere;
}

.income-radar {
    margin-top: -4px;
}

.analytics-radar,
.system-radar,
.business-radar,
.storage-radar,
.gift-radar,
.credit-radar,
.provider-radar,
.audit-radar,
.access-radar {
    margin-top: -4px;
}

.command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 16px;
    margin-bottom: 16px;
}

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

.command-grid.single {
    grid-template-columns: minmax(0, 1fr);
}

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

.command-card {
    min-width: 0;
    padding: 18px;
    overflow: hidden;
}

.command-card .panel-heading {
    margin-bottom: 14px;
}

.command-card h2 {
    font-size: 20px;
}

.panel-link {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    color: #2563eb;
    background: #fff;
    font-size: 12px;
    font-weight: 850;
    text-transform: none;
}

.control-table {
    min-width: 760px;
}

.control-table th,
.control-table td {
    padding: 12px 10px;
}

.control-table td {
    max-width: 220px;
}

.control-table td:not(:first-child) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.control-table td strong,
.control-table td small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-footnote {
    margin: 18px 0 0;
    color: #667085;
    font-size: 13px;
    font-style: italic;
}

.app-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--app-accent, #111827);
    font-size: 28px;
    font-weight: 850;
}

.mini-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.mini-metrics div {
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfe;
}

.spark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 18px;
}

.spark-card {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfe;
}

.spark-card span,
.spark-card small {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.spark-card strong {
    display: block;
    margin-top: 6px;
    color: #101828;
    font-size: 24px;
}

.spark-card svg {
    display: block;
    width: 100%;
    height: 86px;
    margin: 6px 0;
    overflow: visible;
}

.spark-card polyline {
    fill: none;
    stroke: #7c3aed;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.spark-card polygon {
    fill: rgba(124, 58, 237, .13);
}

.spark-card.blue polyline {
    stroke: #2563eb;
}

.spark-card.blue polygon {
    fill: rgba(37, 99, 235, .13);
}

.compact-heading {
    margin-top: 14px;
}

.compact-heading h2 {
    font-size: 15px;
}

.app-event-list {
    display: grid;
    gap: 0;
    margin: 2px 0 14px;
}

.app-event-list div:not(.panel-heading) {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
}

.app-event-list i {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 1px #dbe3ef;
}

.app-event-list .purple i {
    background: #7c3aed;
}

.app-event-list .green i {
    background: #0f9f6e;
}

.app-event-list strong,
.app-event-list small {
    display: block;
}

.app-event-list strong {
    overflow: hidden;
    color: #101828;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-event-list small {
    margin-top: 2px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-event-list em {
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.mini-metrics strong,
.mini-metrics span {
    display: block;
}

.mini-metrics strong {
    font-size: 24px;
}

.mini-metrics span {
    margin: 4px 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.mini-metrics i,
.distribution-list i {
    display: block;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #eef2f7;
}

.mini-metrics i::before {
    display: none;
}

.rank-list,
.distribution-list {
    display: grid;
    gap: 10px;
}

.rank-list div {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.rank-list b {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    color: #344054;
    background: #f1f4f8;
    font-size: 12px;
}

.rank-list strong,
.rank-list small {
    display: block;
}

.rank-list small {
    margin-top: 2px;
    color: var(--muted);
}

.rank-list em,
.distribution-list em {
    color: #475467;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.distribution-list div {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 58px minmax(90px, 1fr) 42px;
    gap: 10px;
    align-items: center;
}

.distribution-list span,
.distribution-list strong {
    color: #344054;
    font-size: 13px;
}

.distribution-list strong {
    text-align: right;
}

.distribution-list b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.distribution-list.access b {
    background: #0f9f6e;
}

.command-grid.operations {
    margin-top: 16px;
}

.command-grid.revenue {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    margin-top: 16px;
}

.income-kpis {
    margin-bottom: 18px;
}

.users-kpis {
    margin-bottom: 18px;
}

.users-overview {
    margin-bottom: 16px;
}

.cohort-kpis {
    margin-bottom: 18px;
}

.provider-kpis {
    margin-bottom: 18px;
}

.audit-kpis {
    margin-bottom: 18px;
}

.command-grid.audit-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
}

.audit-timeline {
    position: relative;
    display: grid;
    gap: 0;
}

.audit-timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e6ebf2;
}

.audit-timeline div {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.audit-timeline i {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border: 5px solid #fff;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 1px #dbe3ef;
}

.audit-timeline .purple i {
    background: #7c3aed;
}

.audit-timeline .green i {
    background: #0f9f6e;
}

.audit-timeline .red i {
    background: #c2413d;
}

.audit-timeline strong,
.audit-timeline small {
    display: block;
}

.audit-timeline small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-timeline em {
    color: #667085;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.audit-table {
    min-width: 760px;
}

.provider-overview {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
}

.provider-list {
    display: grid;
    gap: 10px;
}

.provider-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.provider-list span strong,
.provider-list span small {
    display: block;
}

.provider-list span small {
    margin-top: 3px;
    color: var(--muted);
}

.provider-list em,
.provider-list b {
    font-style: normal;
    font-weight: 850;
}

.provider-list b {
    padding: 5px 9px;
    border-radius: 999px;
    color: #9a5b00;
    background: #fff7df;
    font-size: 12px;
}

.provider-list b.ok {
    color: #067647;
    background: #e7f8ef;
}

.provider-table-card {
    margin-bottom: 16px;
}

.provider-table {
    min-width: 1120px;
}

.cohort-table-card {
    margin-bottom: 16px;
}

.cohort-table {
    min-width: 1040px;
}

.cohort-bar {
    display: block;
    width: 92px;
    height: 7px;
    margin-bottom: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.cohort-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.income-overview {
    margin-top: 0;
}

.income-total {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.income-total strong,
.income-total span {
    display: block;
}

.income-total strong {
    color: #101828;
    font-size: 38px;
    line-height: 1;
}

.income-total span {
    max-width: 240px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.income-mix {
    display: grid;
    gap: 14px;
}

.income-mix div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
}

.income-mix span,
.income-mix em {
    color: #667085;
    font-size: 12px;
    font-weight: 850;
}

.income-mix strong {
    color: #101828;
    font-size: 17px;
    text-align: right;
}

.income-mix i {
    grid-column: 1 / -1;
    display: block;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
}

.income-mix i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0f9f6e;
}

.income-mix em {
    grid-column: 1 / -1;
    font-style: normal;
}

.analytics-kpis {
    margin-bottom: 18px;
}

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

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

.system-status {
    position: relative;
    min-height: 116px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(24, 39, 75, .055);
}

.system-status::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 17px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #0f9f6e;
    box-shadow: 0 0 0 5px rgba(15, 159, 110, .11);
}

.system-status.warn::after {
    background: #f59e0b;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, .13);
}

.system-status span,
.system-status small {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.system-status strong {
    display: block;
    margin-top: 13px;
    color: #101828;
    font-size: 25px;
    line-height: 1;
}

.system-status small {
    margin-top: 10px;
    font-weight: 700;
    text-transform: none;
}

.analytics-card {
    background:
        radial-gradient(circle at 92% 12%, rgba(37, 99, 235, .12), transparent 32%),
        #fff;
}

.analytics-card strong {
    display: block;
    margin: 4px 0 2px;
    color: #101828;
    font-size: 36px;
    line-height: 1;
}

.analytics-card svg {
    display: block;
    width: 100%;
    height: 150px;
    margin-top: 14px;
    overflow: visible;
}

.analytics-card polyline {
    fill: none;
    stroke: #2563eb;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.analytics-card polygon {
    fill: rgba(37, 99, 235, .13);
}

.analytics-card.purple {
    background:
        radial-gradient(circle at 92% 12%, rgba(124, 58, 237, .12), transparent 32%),
        #fff;
}

.analytics-card.purple polyline {
    stroke: #7c3aed;
}

.analytics-card.purple polygon {
    fill: rgba(124, 58, 237, .13);
}

.analytics-card.green {
    background:
        radial-gradient(circle at 92% 12%, rgba(15, 159, 110, .12), transparent 32%),
        #fff;
}

.analytics-card.green polyline {
    stroke: #0f9f6e;
}

.analytics-card.green polygon {
    fill: rgba(15, 159, 110, .13);
}

.analytics-card.orange {
    background:
        radial-gradient(circle at 92% 12%, rgba(245, 158, 11, .14), transparent 32%),
        #fff;
}

.analytics-card.orange polyline {
    stroke: #f59e0b;
}

.analytics-card.orange polygon {
    fill: rgba(245, 158, 11, .16);
}

.revenue-card {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(15, 159, 110, .06) 42%, rgba(255, 255, 255, 0) 72%),
        #fff;
}

.revenue-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 8px;
}

.revenue-hero div,
.money-breakdown div {
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.revenue-hero span,
.money-breakdown span,
.revenue-hero small,
.money-breakdown small {
    display: block;
}

.revenue-hero span,
.money-breakdown span {
    color: #667085;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.revenue-hero strong {
    display: block;
    margin: 8px 0;
    color: #101828;
    font-size: 32px;
    line-height: 1;
}

.revenue-hero small,
.money-breakdown small {
    color: var(--muted);
    font-size: 12px;
}

.revenue-spark {
    display: block;
    width: 100%;
    height: 150px;
    margin-top: 10px;
    overflow: visible;
}

.revenue-spark polyline {
    fill: none;
    stroke: #0f9f6e;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 5;
}

.revenue-spark polygon {
    fill: rgba(15, 159, 110, .13);
}

.money-breakdown {
    display: grid;
    gap: 10px;
}

.money-breakdown div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: center;
}

.money-breakdown strong {
    color: #101828;
    font-size: 18px;
    text-align: right;
}

.money-breakdown small {
    grid-column: 1 / -1;
}

.health-list,
.incident-list,
.storage-health {
    display: grid;
    gap: 10px;
}

.health-list div,
.storage-health div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--line-soft);
}

.health-list span strong,
.health-list span small,
.storage-health span strong,
.storage-health span small {
    display: block;
}

.health-list span small,
.storage-health span small,
.incident-list span,
.incident-list small {
    color: var(--muted);
}

.health-list em,
.storage-health em,
.storage-health b {
    font-style: normal;
    font-weight: 850;
}

.health-list i {
    grid-column: 1 / -1;
    display: block;
    overflow: hidden;
    height: 7px;
    border-radius: 999px;
    background: #eef2f7;
}

.health-list i b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #0f9f6e;
}

.incident-list div {
    display: grid;
    gap: 3px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.incident-list strong {
    color: #101828;
}

.incident-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.good-news {
    padding: 12px;
    border: 1px solid #b7ebd4;
    border-radius: 8px;
    color: #067647;
    background: #ecfdf3;
    font-style: normal;
}

.app-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.app-metrics article {
    background: #fbfcfe;
}

.app-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 16px;
}

.app-control-grid.bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.subpanel {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
}

.app-detail dl {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.app-detail dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.app-detail dd {
    margin: 0;
    max-width: 180px;
    overflow: hidden;
    color: #111827;
    font-weight: 750;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.grid.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel {
    padding: 20px;
    min-width: 0;
    overflow: hidden;
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 12px;
}

.panel-heading.subheading {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.panel-heading h2 {
    margin: 0;
}

.bars {
    display: grid;
    gap: 10px;
}

.bar-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.bar-row div {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.bar-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1e6bff;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-list div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
}

.compact-list span,
.compact-list small,
.muted {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.users-table {
    min-width: 1500px;
}

.users-table th:nth-child(1),
.users-table td:nth-child(1) {
    min-width: 260px;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    min-width: 190px;
}

th,
td {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

td small {
    display: block;
    max-width: 300px;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.state {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.state.on {
    color: #067647;
    background: #e7f8ef;
}

.state.off {
    color: #9f1d1d;
    background: #fff1f1;
}

.state.warn {
    color: #9a5b00;
    background: #fff7df;
}

.actions {
    display: flex;
    align-items: center;
    min-width: 860px;
    gap: 8px;
    white-space: nowrap;
}

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

.actions button,
.model-card button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.credit-form input,
.delete-form input {
    width: 116px;
}

.file-metrics {
    margin-bottom: 18px;
}

.asset-links {
    min-width: 260px;
}

.asset-links a {
    display: inline-flex;
    margin-right: 10px;
    color: var(--accent);
    font-weight: 800;
}

.asset-links small {
    max-width: 520px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.model-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfe;
}

.model-card span,
.model-card small {
    color: var(--muted);
    font-size: 12px;
}

.model-card strong {
    min-height: 42px;
}

.muted-button {
    color: #344054;
    background: #eef2f7;
    border-color: #eef2f7;
}

@media (max-width: 980px) {
    nav {
        display: none;
    }

    .hero,
    .preview-admin,
    .login-panel,
    .grid.two,
    .admin-shell,
    .command-grid,
    .command-grid.lower,
    .command-grid.three,
    .command-grid.revenue,
    .command-grid.analytics-grid,
    .provider-overview,
    .command-grid.audit-layout,
    .app-control-grid,
    .app-control-grid.bottom {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .tools-grid,
    .metric-grid,
    .executive-grid,
    .app-health-strip,
    .ops-radar,
    .system-status-grid,
    .model-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-nav {
        position: static;
    }
}

@media (max-width: 640px) {
    main,
    .admin-shell {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        padding: 14px;
    }

    .brand small {
        display: none;
    }

    .admin-top-tools {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .admin-top-tools span {
        display: none;
    }

    .app-health-strip,
    .ops-radar {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        max-width: 100%;
        font-size: 38px;
        line-height: 1.08;
    }

    .hero p {
        max-width: 100%;
        font-size: 18px;
    }

    .account-card {
        width: 100%;
    }

    .tools-grid,
    .metric-grid,
    .dashboard-preview,
    .model-grid {
        grid-template-columns: 1fr;
    }

    .section-title,
    .panel-heading,
    .control-hero {
        display: block;
    }

    .app-metrics {
        grid-template-columns: 1fr;
    }

    .control-toolbar,
    .control-actions,
    .summary-hero {
        display: block;
    }

    .control-actions span,
    .control-actions a {
        margin-top: 10px;
    }

    .control-status {
        margin-top: 14px;
    }

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

    .summary-shortcuts {
        grid-template-columns: 1fr;
    }

    .system-status-grid {
        grid-template-columns: 1fr;
    }

    .distribution-list div {
        grid-template-columns: 1fr 52px;
    }

    .distribution-list i,
    .distribution-list em {
        grid-column: 1 / -1;
    }

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

    .revenue-hero {
        grid-template-columns: 1fr;
    }
}

/* Creative Studio · editorial Liquid Glass · 2026-07 */
:root {
    --studio-ink: #151510;
    --studio-muted: #68655d;
    --studio-paper: #f7f1e7;
    --studio-paper-deep: #e9dfd2;
    --studio-moss: #253529;
    --studio-green: #60715a;
    --studio-coral: #d6775d;
    --studio-plum: #62426d;
    --studio-glass: rgba(255, 255, 255, .42);
    --studio-glass-strong: rgba(255, 255, 255, .66);
    --studio-line: rgba(21, 21, 16, .12);
    --studio-shadow: 0 28px 80px rgba(50, 43, 33, .14);
    --studio-shadow-soft: 0 16px 44px rgba(50, 43, 33, .09);
    --studio-ease: cubic-bezier(.2, .8, .2, 1);
}

body:not(.admin-page) {
    color: var(--studio-ink);
    background:
        linear-gradient(rgba(21, 21, 16, .032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 21, 16, .026) 1px, transparent 1px),
        radial-gradient(circle at 8% 5%, rgba(214, 119, 93, .17), transparent 31rem),
        radial-gradient(circle at 88% 11%, rgba(96, 113, 90, .17), transparent 32rem),
        linear-gradient(135deg, #fbf8f1 0%, var(--studio-paper) 52%, #efe7dc 100%);
    background-size: 74px 74px, 74px 74px, auto, auto, auto;
}

body:not(.admin-page) .topbar {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 50;
    width: min(1180px, calc(100% - 28px));
    min-height: 64px;
    padding: 10px 12px 10px 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
    box-shadow: 0 18px 54px rgba(52, 45, 35, .12);
    backdrop-filter: blur(28px) saturate(1.45);
    -webkit-backdrop-filter: blur(28px) saturate(1.45);
    transform: translateX(-50%);
}

body:not(.admin-page) .brand-logo {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(50, 43, 33, .18);
}

body:not(.admin-page) .brand strong {
    color: var(--studio-ink);
    font-size: 14px;
}

body:not(.admin-page) .brand small {
    display: none;
}

body:not(.admin-page) .topbar nav {
    color: rgba(21, 21, 16, .72);
    font-size: 13px;
}

body:not(.admin-page) .topbar nav a:not(.button) {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    transition: color .22s var(--studio-ease), background .22s var(--studio-ease);
}

body:not(.admin-page) .topbar nav a:not(.button):hover {
    color: var(--studio-ink);
    background: rgba(255, 255, 255, .56);
}

.public-main {
    width: min(1240px, calc(100% - 44px));
}

.public-main h1,
.public-main h2,
.public-main h3,
.studio-footer strong {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    letter-spacing: -.025em;
}

.studio-hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
    gap: clamp(48px, 6vw, 92px);
    align-items: center;
    min-height: 100svh;
    padding: 126px 0 86px;
}

.studio-hero-copy h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(68px, 7.7vw, 112px);
    line-height: .88;
}

.studio-hero-copy > p {
    max-width: 590px;
    margin: 30px 0 0;
    color: rgba(21, 21, 16, .70);
    font-size: 19px;
    line-height: 1.62;
}

.public-main .button,
.studio-footer .button,
body:not(.admin-page) .topbar .button {
    min-height: 44px;
    padding: 0 20px;
    border-color: rgba(21, 21, 16, .15);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--studio-ink), var(--studio-moss));
    box-shadow: 0 14px 34px rgba(30, 39, 29, .22);
}

.public-main .button.ghost {
    color: rgba(21, 21, 16, .82);
    border-color: var(--studio-line);
    background: rgba(255, 255, 255, .38);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.public-main .button:hover,
body:not(.admin-page) .topbar .button:hover {
    transform: translateY(-2px);
}

.hero-promise {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    max-width: 465px;
    margin-top: 46px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 22px;
    background: rgba(255, 255, 255, .32);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(24px) saturate(1.25);
}

.hero-promise > span {
    width: 52px;
    aspect-ratio: 1;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--studio-coral), var(--studio-green));
}

.hero-promise p {
    margin: 0;
    color: rgba(21, 21, 16, .66);
    font-size: 13px;
    line-height: 1.46;
}

.studio-hero-visual {
    position: relative;
    min-height: 600px;
}

.hero-product {
    position: absolute;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: var(--studio-shadow);
    background: #18191a;
}

.hero-product img,
.studio-tool-frame img,
.studio-about figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-product-main {
    inset: 4% 6% 8% 2%;
    border-radius: 47% 53% 38% 62% / 42% 38% 62% 58%;
    transform: rotate(-1.5deg);
}

.hero-product-main img {
    object-position: center;
}

.hero-product-side {
    right: -1%;
    bottom: 3%;
    width: 35%;
    aspect-ratio: .82;
    border-radius: 30px;
    transform: rotate(3deg);
}

.hero-product-float {
    top: 30%;
    right: -3%;
    width: 34%;
    aspect-ratio: 1.25;
    border-radius: 24px;
    transform: rotate(-2deg);
}

.hero-glass-lens {
    position: absolute;
    left: -4%;
    bottom: 13%;
    z-index: 3;
    display: grid;
    width: 174px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 24px 60px rgba(50, 43, 33, .16);
    backdrop-filter: blur(24px) saturate(1.35);
}

.hero-glass-lens span {
    width: 108px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8), rgba(214,119,93,.32) 35%, rgba(96,113,90,.38) 68%, rgba(98,66,109,.28));
    box-shadow: inset 0 0 0 1px rgba(21, 21, 16, .10);
}

.hero-float-note {
    position: absolute;
    top: 8%;
    right: 0;
    z-index: 4;
    width: 220px;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 21px;
    color: rgba(21, 21, 16, .72);
    background: rgba(255, 255, 255, .38);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(24px);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.studio-register {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr);
    gap: clamp(44px, 7vw, 100px);
    align-items: center;
    padding: clamp(48px, 6vw, 78px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 34px;
    background: rgba(255, 255, 255, .39);
    box-shadow: var(--studio-shadow);
    backdrop-filter: blur(28px) saturate(1.25);
}

.register-copy h2,
.studio-section-head h2,
.studio-pay h2,
.studio-about h2,
.studio-closing h2 {
    margin: 0;
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: .94;
}

.register-copy > p,
.studio-section-head p,
.studio-pay > div p,
.studio-about p {
    color: rgba(21, 21, 16, .67);
    line-height: 1.62;
}

.register-copy ul,
.studio-tool ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.register-copy li,
.studio-tool li {
    position: relative;
    padding-left: 20px;
    color: rgba(21, 21, 16, .70);
    font-size: 13px;
    font-weight: 600;
}

.register-copy li::before,
.studio-tool li::before {
    content: "";
    position: absolute;
    top: .35em;
    left: 0;
    width: 9px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.studio-signup {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.studio-signup label {
    display: grid;
    gap: 7px;
    color: rgba(21, 21, 16, .76);
    font-size: 12px;
    font-weight: 700;
}

.studio-signup input {
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--studio-line);
    border-radius: 13px;
    color: var(--studio-ink);
    background: rgba(255, 255, 255, .52);
    outline: none;
}

.studio-signup input:focus {
    border-color: rgba(37, 53, 41, .48);
    box-shadow: 0 0 0 4px rgba(96, 113, 90, .12);
}

.studio-signup small {
    color: var(--studio-muted);
    text-align: center;
}

.studio-tools {
    padding: 150px 0 70px;
}

.studio-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .65fr);
    gap: 80px;
    align-items: end;
    margin-bottom: 64px;
}

.studio-section-head p {
    margin: 0 0 8px;
    font-size: 17px;
}

.tool-showcase {
    display: grid;
    gap: 26px;
}

.studio-tool {
    display: grid;
    grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
    gap: 42px;
    align-items: center;
    min-height: 410px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .69);
    border-radius: 30px;
    background: rgba(255, 255, 255, .34);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(24px) saturate(1.18);
}

.studio-tool.reverse {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
}

.studio-tool.reverse .studio-tool-copy { order: 2; }
.studio-tool.reverse .studio-tool-frame { order: 1; }

.tool-number {
    display: block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
}

.studio-tool .section-logo {
    width: auto;
    max-width: 170px;
    max-height: 54px;
    margin-bottom: 20px;
    object-fit: contain;
    object-position: left center;
}

.studio-tool h3 {
    margin: 0;
    font-size: clamp(42px, 4.2vw, 62px);
    line-height: .95;
}

.studio-tool p {
    margin: 14px 0 0;
    color: rgba(21, 21, 16, .69);
    line-height: 1.58;
}

.studio-tool .tool-audience {
    color: var(--studio-ink);
    font-weight: 600;
}

.studio-tool-frame {
    min-height: 340px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: 24px;
    background: #171819;
    box-shadow: 0 24px 60px rgba(35, 29, 25, .18);
}

.studio-tool-frame img { object-position: center; }

.studio-text-link,
.tool-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: var(--studio-moss);
    font-size: 13px;
    font-weight: 700;
}

.studio-text-link:hover span { transform: translateX(4px); }

.tool-status {
    padding: 9px 13px;
    border: 1px solid rgba(98, 66, 109, .18);
    border-radius: 999px;
    color: var(--studio-plum);
    background: rgba(98, 66, 109, .08);
}

.studio-pay {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 70px;
    align-items: start;
    padding: 120px 0;
}

.studio-pay ol {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.studio-pay li {
    min-height: 230px;
    padding: 6px 30px;
    border-left: 1px solid var(--studio-line);
}

.studio-pay li strong,
.studio-pay li span {
    display: block;
}

.studio-pay li strong {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .37);
    box-shadow: var(--studio-shadow-soft);
}

.studio-pay li span {
    font-weight: 700;
}

.studio-pay li p {
    color: var(--studio-muted);
    font-size: 13px;
    line-height: 1.5;
}

.studio-about {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 8vw, 110px);
    align-items: center;
    padding: 46px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 34px;
    background: rgba(255, 255, 255, .34);
    box-shadow: var(--studio-shadow);
    backdrop-filter: blur(24px);
}

.studio-about figure {
    height: 470px;
    overflow: hidden;
    margin: 0;
    border-radius: 45% 55% 36% 64% / 51% 38% 62% 49%;
    background: var(--studio-paper-deep);
}

.studio-about .about-lede {
    color: var(--studio-ink);
    font-size: 19px;
    font-weight: 600;
}

.studio-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 110px 0 40px;
    padding: 38px 46px;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(214, 119, 93, .12), rgba(96, 113, 90, .13)), rgba(255, 255, 255, .34);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(22px);
}

.studio-closing h2 { max-width: 620px; font-size: 48px; }
.studio-closing > div { display: flex; flex-wrap: wrap; gap: 12px; }

.studio-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 54px;
    align-items: center;
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: 36px 0 48px;
    border-top: 1px solid var(--studio-line);
    color: var(--studio-muted);
    font-size: 12px;
}

.studio-footer div { display: grid; gap: 3px; }
.studio-footer strong { color: var(--studio-ink); font-size: 22px; }
.studio-footer nav { gap: 22px; color: var(--studio-muted); font-size: 12px; }

/* Admin: one calm hierarchy, one visual home for every datum. */
body.admin-page {
    color: var(--studio-ink);
    background:
        linear-gradient(rgba(21, 21, 16, .016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 21, 16, .013) 1px, transparent 1px),
        radial-gradient(circle at 5% 5%, rgba(214, 119, 93, .11), transparent 28rem),
        radial-gradient(circle at 96% 8%, rgba(96, 113, 90, .10), transparent 32rem),
        #f8f4ed;
    background-size: 68px 68px, 68px 68px, auto, auto, auto;
}

body.admin-page .topbar {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 60;
    width: min(1480px, calc(100% - 28px));
    min-height: 66px;
    padding: 9px 12px 9px 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    background: rgba(255, 255, 255, .48);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(28px) saturate(1.35);
    transform: translateX(-50%);
}

body.admin-page .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

body.admin-page .brand strong { color: var(--studio-ink); }
body.admin-page .brand small { color: var(--studio-muted); }

.admin-top-tools {
    gap: 8px;
}

.admin-top-tools .admin-range-label,
.admin-top-tools > a,
.admin-global-search input,
.range-switch {
    min-height: 40px;
    border: 1px solid rgba(21, 21, 16, .10);
    border-radius: 13px;
    color: rgba(21, 21, 16, .75);
    background: rgba(255, 255, 255, .52);
    box-shadow: none;
}

.admin-global-search input {
    width: 220px;
    padding: 0 14px;
    outline: none;
}

.admin-global-search input:focus {
    border-color: rgba(96, 113, 90, .5);
    box-shadow: 0 0 0 4px rgba(96, 113, 90, .10);
}

.range-switch { padding: 4px; }
.range-switch a { border: 0; background: transparent; }
.range-switch a.active { color: var(--studio-ink); background: rgba(255, 255, 255, .8); }

.admin-shell {
    width: min(1480px, calc(100% - 28px));
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 28px;
    padding-top: 108px;
}

.admin-nav {
    top: 108px;
    max-height: calc(100svh - 122px);
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 26px;
    background: rgba(255, 255, 255, .43);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(26px) saturate(1.25);
}

.admin-nav-head {
    padding: 5px 8px 18px;
    border-bottom-color: rgba(21, 21, 16, .08);
}

.admin-nav-head strong {
    color: var(--studio-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 20px;
}

.admin-nav-head span { color: var(--studio-muted); }

.admin-nav .nav-section {
    margin: 14px 9px 4px;
    color: rgba(21, 21, 16, .42);
    font-size: 10px;
    letter-spacing: .12em;
}

.admin-nav a,
.admin-nav button {
    min-height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    color: rgba(21, 21, 16, .72);
}

.admin-nav a.active {
    color: var(--studio-ink);
    background: linear-gradient(135deg, rgba(214, 119, 93, .10), rgba(96, 113, 90, .11)), rgba(255, 255, 255, .58);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}

.admin-nav a:hover,
.admin-nav button:hover { background: rgba(255, 255, 255, .54); }

.nav-icon {
    border-color: rgba(21, 21, 16, .09);
    border-radius: 8px;
    background: rgba(255, 255, 255, .45);
}

.admin-nav-foot {
    margin-top: 15px;
    color: rgba(21, 21, 16, .42);
    font-size: 10px;
}

.admin-content { min-width: 0; padding-bottom: 70px; }

.summary-hero {
    display: block;
    padding: 5px 4px 24px;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

.summary-hero h1,
.section-title h1,
.control-hero h1 {
    margin: 0;
    color: var(--studio-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(48px, 5vw, 70px);
    font-weight: 600;
    line-height: .95;
    letter-spacing: -.025em;
}

.summary-hero p,
.section-title p,
.control-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--studio-muted);
}

.summary-metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
    padding: 18px 8px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 25px;
    background: rgba(255, 255, 255, .48);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(24px) saturate(1.18);
}

.summary-metric-strip article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-width: 0;
    padding: 10px 18px;
    border-left: 1px solid rgba(21, 21, 16, .09);
}

.summary-metric-strip article:first-child { border-left: 0; }

.metric-symbol {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(96, 113, 90, .12);
    border-radius: 50%;
    color: var(--studio-moss);
    background: rgba(96, 113, 90, .12);
}

.summary-metric-strip article:nth-child(2) .metric-symbol { color: #a65339; background: rgba(214, 119, 93, .13); }
.summary-metric-strip article:nth-child(3) .metric-symbol { color: var(--studio-plum); background: rgba(98, 66, 109, .12); }
.summary-metric-strip article.attention .metric-symbol { color: #b23a2b; background: rgba(214, 91, 70, .13); }

.summary-metric-strip span,
.summary-metric-strip strong,
.summary-metric-strip small { display: block; }
.summary-metric-strip span { color: var(--studio-muted); font-size: 11px; font-weight: 700; }
.summary-metric-strip strong { margin-top: 3px; color: var(--studio-ink); font-size: 26px; line-height: 1; }
.summary-metric-strip small { margin-top: 6px; color: var(--studio-muted); font-size: 10px; }
.summary-metric-strip .trend-badge { display: inline-block; padding: 0; border: 0; background: none; }

.command-card,
.panel,
.control-panel,
.system-status,
.analytics-card,
.revenue-hero > div {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: rgba(255, 255, 255, .45);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(22px) saturate(1.15);
}

.priority-card { margin: 0 0 18px; padding: 0; overflow: hidden; }
.priority-card .panel-heading { padding: 17px 19px; border-bottom: 1px solid rgba(21, 21, 16, .08); }
.priority-card .action-queue { gap: 0; }
.priority-card .action-queue a {
    min-height: 60px;
    border: 0;
    border-top: 1px solid rgba(21, 21, 16, .07);
    border-radius: 0;
    background: transparent;
}
.priority-card .action-queue a:first-child { border-top: 0; }

.summary-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: 18px;
}

.summary-workspace .command-card { margin: 0; padding: 0; overflow: hidden; }
.summary-workspace .panel-heading { padding: 18px 20px; border-bottom: 1px solid rgba(21, 21, 16, .08); }
.panel-heading h2,
.command-card h2 {
    color: var(--studio-ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 25px;
    font-weight: 600;
}

.panel-heading > span { color: var(--studio-muted); }
.panel-link,
.row-link {
    border-color: rgba(21, 21, 16, .10);
    color: rgba(21, 21, 16, .72);
    background: rgba(255, 255, 255, .48);
}

.summary-timeline { padding: 0 20px 8px; }
.summary-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 66px;
    padding: 10px 0 10px 25px;
    border-bottom: 1px solid rgba(21, 21, 16, .07);
}
.summary-timeline article::before {
    content: "";
    position: absolute;
    left: 2px;
    width: 10px;
    height: 10px;
    border: 3px solid rgba(96, 113, 90, .18);
    border-radius: 50%;
    background: var(--studio-green);
}
.summary-timeline article.credits::before { background: var(--studio-plum); border-color: rgba(98, 66, 109, .18); }
.summary-timeline article.purchase::before { background: var(--studio-coral); border-color: rgba(214, 119, 93, .18); }
.summary-timeline time { color: var(--studio-muted); font-size: 10px; }
.summary-timeline strong,
.summary-timeline small { display: block; }
.summary-timeline strong { color: var(--studio-ink); font-size: 12px; }
.summary-timeline small { margin-top: 3px; color: var(--studio-muted); font-size: 10px; }
.summary-timeline > article > span { color: rgba(21, 21, 16, .68); font-size: 11px; font-weight: 700; }

.summary-apps .table-wrap { border: 0; border-radius: 0; background: transparent; }
.summary-apps table { min-width: 0; }
.summary-apps th { color: var(--studio-muted); background: transparent; }
.summary-apps td { border-bottom-color: rgba(21, 21, 16, .07); }
.summary-apps .state { white-space: nowrap; }

.table-wrap {
    border-color: rgba(21, 21, 16, .08);
    border-radius: 17px;
    background: rgba(255, 255, 255, .28);
}

th { color: var(--studio-muted); background: rgba(255, 255, 255, .35); }
td { border-bottom-color: rgba(21, 21, 16, .07); }
tbody tr:hover { background: rgba(255, 255, 255, .32); }

.control-footnote {
    color: rgba(21, 21, 16, .43);
    font-size: 10px;
}

@media (max-width: 1120px) {
    .studio-hero { grid-template-columns: 1fr; }
    .studio-hero-copy { padding-top: 36px; }
    .studio-hero-visual { min-height: 540px; }
    .studio-register,
    .studio-section-head,
    .studio-pay,
    .studio-about { grid-template-columns: 1fr; }
    .studio-tool,
    .studio-tool.reverse { grid-template-columns: 1fr; }
    .studio-tool.reverse .studio-tool-copy,
    .studio-tool.reverse .studio-tool-frame { order: initial; }
    .summary-metric-strip { grid-template-columns: repeat(2, 1fr); }
    .summary-metric-strip article:nth-child(3) { border-left: 0; border-top: 1px solid rgba(21,21,16,.09); }
    .summary-metric-strip article:nth-child(4) { border-top: 1px solid rgba(21,21,16,.09); }
    .summary-workspace { grid-template-columns: 1fr; }
    .admin-global-search { display: none; }
}

@media (max-width: 820px) {
    body:not(.admin-page) .topbar { top: 10px; }
    body:not(.admin-page) .topbar nav a:not(.button) { display: none; }
    .public-main { width: min(100% - 28px, 680px); }
    .studio-hero { padding-top: 112px; }
    .studio-hero-copy h1 { font-size: clamp(58px, 15vw, 82px); }
    .studio-hero-visual { min-height: 470px; }
    .hero-glass-lens { width: 132px; }
    .hero-glass-lens span { width: 78px; }
    .hero-product-float { top: 25%; width: 39%; }
    .studio-register,
    .studio-about { padding: 30px; }
    .studio-section-head { gap: 24px; }
    .studio-tools { padding-top: 100px; }
    .studio-tool { min-height: 0; padding: 22px; }
    .studio-tool-frame { min-height: 270px; }
    .studio-pay ol { grid-template-columns: 1fr; }
    .studio-pay li { min-height: 0; padding: 22px 0; border-left: 0; border-top: 1px solid var(--studio-line); }
    .studio-pay li strong { margin-bottom: 12px; }
    .studio-about figure { height: 380px; }
    .studio-closing { align-items: flex-start; flex-direction: column; padding: 30px; }
    .studio-footer { grid-template-columns: 1fr; gap: 22px; }
    .studio-footer nav { flex-wrap: wrap; }
    body.admin-page .topbar { position: sticky; top: 8px; left: auto; width: calc(100% - 16px); margin: 8px; transform: none; }
    body.admin-page .brand small,
    .admin-top-tools .admin-range-label,
    .admin-top-tools .admin-landing-link { display: none; }
    .admin-shell { width: calc(100% - 16px); grid-template-columns: 1fr; padding-top: 16px; }
    .admin-nav { position: relative; top: 0; max-height: none; }
}

@media (max-width: 560px) {
    body:not(.admin-page) .topbar { width: calc(100% - 18px); }
    body:not(.admin-page) .brand strong { font-size: 13px; }
    .studio-hero-copy h1 { font-size: 54px; }
    .studio-hero-copy > p { font-size: 17px; }
    .studio-hero-visual {
        min-height: 360px;
        margin-top: 34px;
    }
    .hero-product-main { inset: 8% 3% 5%; }
    .hero-product-main img { opacity: .92; }
    .hero-product-side { width: 42%; }
    .hero-product-float { right: -4%; width: 43%; }
    .hero-float-note { top: 0; width: 175px; font-size: 11px; }
    .hero-glass-lens { left: -4%; bottom: 9%; width: 104px; }
    .hero-glass-lens span { width: 62px; }
    .register-copy h2,
    .studio-section-head h2,
    .studio-pay h2,
    .studio-about h2 { font-size: 46px; }
    .studio-register,
    .studio-about { padding: 22px; border-radius: 25px; }
    .studio-tool { padding: 18px; border-radius: 24px; }
    .studio-tool h3 { font-size: 44px; }
    .studio-tool-frame { min-height: 215px; border-radius: 18px; }
    .studio-closing h2 { font-size: 40px; }
    .summary-metric-strip { grid-template-columns: 1fr; }
    .summary-metric-strip article,
    .summary-metric-strip article:nth-child(3) { border-left: 0; border-top: 1px solid rgba(21,21,16,.09); }
    .summary-metric-strip article:first-child { border-top: 0; }
    .summary-timeline article { grid-template-columns: 1fr auto; padding-left: 22px; }
    .summary-timeline time { grid-column: 1 / -1; }
    .admin-top-tools .range-switch { display: none; }
}

/* Public landing redesign */
.hero {
    grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    gap: clamp(28px, 5vw, 70px);
    min-height: calc(100svh - 75px);
    padding: clamp(42px, 7vw, 82px) 0 46px;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(46px, 6.1vw, 84px);
    line-height: .93;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.hero p {
    max-width: 720px;
    color: #344054;
    font-size: 20px;
}

.hot-tools {
    display: grid;
    gap: 16px;
    align-self: center;
    min-width: 0;
    scroll-margin-top: 110px;
}

.hot-tool {
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 22px 24px;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 8px;
    color: #111827;
    background: #fff;
    box-shadow: 0 28px 80px rgba(24, 39, 75, .13);
    min-width: 0;
}

.hot-tool::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--accent);
}

.tool-logo {
    display: block;
    width: min(245px, 82%);
    max-height: 74px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 18px;
}

.tool-logo[src*="reelipop"],
.section-logo[src*="reelipop"],
.tool-logo[src*="briefetti"],
.section-logo[src*="briefetti"] {
    width: min(280px, 88%);
    max-height: 92px;
    padding: 10px 12px;
    border-radius: 8px;
    object-fit: contain;
    background: #111827;
}


.hot-tool p {
    max-width: 520px;
    margin: 0;
    color: #475467;
    font-size: 16px;
    line-height: 1.55;
}

.hot-tool .tool-note {
    margin-top: 10px;
    color: #1e5fd7;
    font-weight: 850;
}

.hot-tool ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    padding: 0;
    list-style: none;
}

.hot-tool li,
.mini-points span {
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    color: #344054;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 800;
}

.tool-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.tool-links a:not(.button) {
    color: #344054;
    font-weight: 800;
}

.register-band {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: center;
    scroll-margin-top: 110px;
    margin: 12px 0 70px;
    padding: 26px;
    border: 1px solid #152033;
    border-radius: 8px;
    color: #fff;
    background: #101828;
}

.register-band h2,
.register-band p {
    margin: 0;
}

.register-band h2 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.04;
}

.register-band p {
    margin-top: 12px;
    color: #cbd5e1;
    line-height: 1.6;
}

.signup-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
}

.signup-form input {
    min-height: 46px;
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.signup-form input::placeholder {
    color: #aab4c4;
}

.signup-form button {
    min-height: 46px;
    color: #111827;
    background: #fff;
    border-color: #fff;
}

.visual-tools {
    display: grid;
    gap: 34px;
    padding: 18px 0 70px;
}

.visual-tool {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 28px;
    align-items: center;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.visual-tool.reverse {
    grid-template-columns: 1.12fr .88fr;
}

.visual-tool.reverse .visual-copy {
    order: 2;
}

.section-logo {
    width: min(280px, 88%);
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
}

.visual-copy h2 {
    margin: 22px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: .98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.visual-copy p {
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.mini-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.visual-frame {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .15);
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 26px 70px rgba(24, 39, 75, .18);
}

.visual-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.pay-section,
.about-section {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
    align-items: start;
    scroll-margin-top: 110px;
    padding: 66px 0;
    border-top: 1px solid var(--line);
}

.pay-section h2,
.about-card h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1;
}

.pay-section p,
.about-card p {
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
}

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

.pay-grid article,
.proof-grid article {
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.pay-grid strong,
.proof-grid strong {
    display: block;
    margin-bottom: 20px;
    font-size: 38px;
    line-height: 1;
}

.pay-grid span,
.proof-grid span,
.about-card span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.pay-grid p {
    margin-bottom: 0;
    font-size: 15px;
}

.about-section {
    grid-template-columns: 1fr .82fr;
    padding-bottom: 92px;
}

.about-card {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 8px;
    color: #fff;
    background: #111827;
}

.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    object-position: center;
    margin: 0 0 28px;
    border-radius: 8px;
}

.about-card span {
    color: #cbd5e1;
}

.about-card p {
    color: #d7deea;
}

.about-card .button.ghost {
    color: #111827;
    border-color: #fff;
    background: #fff;
}

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

@media (min-width: 1081px) {
    .hot-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .hot-tool {
        padding: 18px;
    }

    .tool-logo {
        width: min(190px, 100%);
        max-height: 58px;
        margin-bottom: 12px;
    }

    .tool-logo[src*="reelipop"],
    .section-logo[src*="reelipop"],
    .tool-logo[src*="briefetti"],
    .section-logo[src*="briefetti"] {
        width: min(220px, 100%);
        max-height: 70px;
        padding: 8px 10px;
    }

    .hot-tool p {
        font-size: 14px;
        line-height: 1.42;
    }

    .hot-tool .tool-note {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.35;
    }

    .hot-tool ul {
        gap: 6px;
        margin: 12px 0;
    }

    .hot-tool li,
    .hot-tool .button.small {
        font-size: 12px;
    }
}

@media (max-width: 1080px) {
    .hero,
    .register-band,
    .visual-tool,
    .visual-tool.reverse,
    .pay-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .visual-tool.reverse .visual-copy {
        order: 0;
    }

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

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    main {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
        overflow-x: hidden;
    }

    .hero,
    .hero-copy,
    .hot-tools,
    .register-band,
    .visual-tools,
    .visual-tool,
    .pay-section,
    .about-section {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;
        font-size: 30px;
        line-height: 1.04;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hero p,
    .visual-copy p,
    .pay-section p,
    .about-card p {
        font-size: 16px;
        width: min(100%, 330px);
        max-width: 330px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hot-tool,
    .register-band,
    .visual-tool,
    .about-card {
        padding: 18px;
        width: 100%;
        max-width: 100%;
    }

    .hot-tool p,
    .hot-tool li,
    .tool-links,
    .mini-points,
    .mini-points span {
        max-width: 330px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .hot-tool li,
    .mini-points span {
        white-space: normal;
    }

    .pay-grid,
    .proof-grid {
        grid-template-columns: 1fr;
    }
}

/* Liquid crystal redesign */
:root {
    --liquid-paper: #f7f4ed;
    --liquid-ink: #141316;
    --liquid-muted: #62666f;
    --liquid-line: rgba(20, 19, 22, .12);
    --liquid-glass: rgba(255, 255, 255, .56);
    --liquid-glass-strong: rgba(255, 255, 255, .74);
    --liquid-violet: #7a35f3;
    --liquid-cyan: #21c6df;
    --liquid-coral: #ff6a4d;
    --liquid-moss: #7c9b5d;
    --liquid-shadow: 0 26px 80px rgba(34, 28, 49, .13);
    --liquid-shadow-soft: 0 14px 42px rgba(34, 28, 49, .08);
}

html {
    scroll-padding-top: 118px;
}

body {
    color: var(--liquid-ink);
    background:
        linear-gradient(rgba(20, 19, 22, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 19, 22, .02) 1px, transparent 1px),
        radial-gradient(circle at 16% 8%, rgba(122, 53, 243, .13), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(33, 198, 223, .13), transparent 30%),
        radial-gradient(circle at 48% 96%, rgba(255, 106, 77, .10), transparent 32%),
        var(--liquid-paper);
    background-size: 42px 42px, 42px 42px, auto, auto, auto, auto;
}

body.admin-page {
    background:
        linear-gradient(rgba(20, 19, 22, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 19, 22, .02) 1px, transparent 1px),
        radial-gradient(circle at 10% 4%, rgba(33, 198, 223, .10), transparent 30%),
        radial-gradient(circle at 88% 22%, rgba(122, 53, 243, .10), transparent 34%),
        #f5f4ef;
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.topbar,
body.admin-page .topbar {
    top: 14px;
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 28px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 18px 55px rgba(35, 31, 48, .10);
    backdrop-filter: blur(26px) saturate(1.25);
}

body.admin-page .topbar {
    width: min(1420px, calc(100% - 36px));
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20);
}

.brand strong {
    font-size: 18px;
}

.brand small,
nav,
.hero p,
.hot-tool p,
.visual-copy p,
.pay-section p,
.about-card p {
    color: var(--liquid-muted);
}

nav a:not(.button) {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 999px;
}

nav a:not(.button):hover {
    background: rgba(255, 255, 255, .72);
}

.button,
button,
.signup-form button {
    min-height: 44px;
    border-radius: 14px;
    color: #fff;
    border-color: rgba(16, 18, 27, .92);
    background: #10121b;
    box-shadow: 0 12px 28px rgba(16, 18, 27, .16);
}

.button.ghost {
    color: #12131a;
    border-color: rgba(18, 19, 26, .13);
    background: rgba(255, 255, 255, .62);
    box-shadow: none;
}

main {
    width: min(1240px, calc(100% - 40px));
}

.hero {
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
    min-height: calc(100svh - 82px);
    padding: clamp(74px, 9vw, 118px) 0 54px;
}

.hero h1,
.pay-section h2,
.about-card h2,
.visual-copy h2,
.register-band h2 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-weight: 760;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(50px, 7.2vw, 104px);
    line-height: .88;
}

.hero p {
    max-width: 670px;
    font-size: 21px;
}

.hot-tools {
    gap: 18px;
}

.hot-tool,
.visual-tool,
.register-band,
.pay-grid article,
.proof-grid article,
.about-card,
.account-card {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 26px;
    background: var(--liquid-glass);
    box-shadow: var(--liquid-shadow);
    backdrop-filter: blur(24px) saturate(1.22);
}

.hot-tool {
    padding: 24px 24px 22px 28px;
}

.hot-tool::before {
    width: 6px;
    border-radius: 999px;
    margin: 18px 0;
    background: linear-gradient(180deg, var(--accent), var(--liquid-cyan));
}

.tool-logo,
.section-logo {
    filter: drop-shadow(0 10px 18px rgba(20, 19, 22, .10));
}

.tool-logo[src*="reelipop"],
.section-logo[src*="reelipop"],
.tool-logo[src*="briefetti"],
.section-logo[src*="briefetti"] {
    border-radius: 16px;
    background: #08090d;
}

.hot-tool li,
.mini-points span,
.panel-link,
.trend-badge,
.state {
    border-radius: 999px;
    border-color: rgba(20, 19, 22, .10);
    background: rgba(255, 255, 255, .60);
}

.register-band {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(122, 53, 243, .32), transparent 44%),
        linear-gradient(320deg, rgba(33, 198, 223, .28), transparent 38%),
        #10121b;
}

.register-band p {
    color: rgba(255, 255, 255, .78);
}

.signup-form input {
    min-height: 50px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .13);
}

.visual-tool {
    background: rgba(255, 255, 255, .52);
}

.visual-frame {
    border-radius: 24px;
    border-color: rgba(255, 255, 255, .64);
    background: #090a10;
    box-shadow: 0 24px 70px rgba(34, 28, 49, .18);
}

.pay-section,
.about-section {
    border-top: 1px solid rgba(20, 19, 22, .10);
}

.pay-grid article,
.proof-grid article {
    background: rgba(255, 255, 255, .50);
}

.pay-grid strong,
.proof-grid strong {
    color: transparent;
    background: linear-gradient(135deg, var(--liquid-violet), var(--liquid-cyan));
    -webkit-background-clip: text;
    background-clip: text;
}

.about-card {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(122, 53, 243, .30), transparent 42%),
        #10121b;
}

.about-photo {
    border-radius: 20px;
}

.admin-shell {
    width: min(1420px, calc(100% - 36px));
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 26px;
    padding-top: 34px;
}

.admin-nav,
.summary-hero,
.executive-grid article,
.command-card,
.panel,
.control-panel,
.revenue-hero div,
.dashboard-preview div,
.metric-grid div {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: var(--liquid-glass-strong);
    box-shadow: var(--liquid-shadow-soft);
    backdrop-filter: blur(24px) saturate(1.2);
}

.admin-nav {
    top: 104px;
    padding: 18px;
    gap: 6px;
}

.admin-nav-head {
    border-bottom-color: rgba(20, 19, 22, .08);
}

.admin-nav a,
.admin-nav button {
    min-height: 42px;
    border-radius: 14px;
}

.admin-nav a.active {
    color: #10121b;
    background:
        linear-gradient(135deg, rgba(122, 53, 243, .16), rgba(33, 198, 223, .16)),
        rgba(255, 255, 255, .68);
}

.admin-nav a:hover,
.admin-nav button:hover {
    background: rgba(255, 255, 255, .62);
}

.nav-icon {
    border-radius: 9px;
    border-color: rgba(20, 19, 22, .11);
    background: rgba(255, 255, 255, .55);
}

.summary-hero {
    border-radius: 30px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(122, 53, 243, .14), transparent 45%),
        linear-gradient(315deg, rgba(33, 198, 223, .14), transparent 42%),
        rgba(255, 255, 255, .72);
}

.summary-hero h1,
.control-hero h1 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(38px, 4.8vw, 64px);
}

.summary-hero-status {
    border-radius: 22px;
    border-color: rgba(20, 19, 22, .08);
    background: rgba(255, 255, 255, .58);
}

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

.executive-grid article {
    min-height: 122px;
}

.executive-grid strong {
    font-size: 32px;
}

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

.summary-shortcuts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.summary-shortcuts a {
    min-height: 112px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    background: rgba(255, 255, 255, .54);
    box-shadow: var(--liquid-shadow-soft);
    backdrop-filter: blur(22px) saturate(1.18);
}

.summary-shortcuts strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}

.summary-shortcuts span {
    color: var(--liquid-muted);
    line-height: 1.42;
}

.panel-heading h2,
.command-card h2 {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
    font-size: 25px;
}

.table-wrap {
    border-radius: 20px;
    border: 1px solid rgba(20, 19, 22, .08);
    background: rgba(255, 255, 255, .36);
}

th {
    color: #646b78;
    background: rgba(255, 255, 255, .42);
}

td {
    border-bottom-color: rgba(20, 19, 22, .07);
}

tbody tr:hover {
    background: rgba(255, 255, 255, .36);
}

.admin-top-tools span,
.admin-top-tools a,
.admin-top-tools button,
.admin-top-tools strong,
.range-switch,
.control-actions span,
.control-actions a,
input,
select,
textarea {
    border-radius: 14px;
    border-color: rgba(20, 19, 22, .12);
    background: rgba(255, 255, 255, .62);
}

@media (max-width: 1080px) {
    .topbar,
    body.admin-page .topbar {
        top: 8px;
        width: calc(100% - 20px);
        border-radius: 22px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hot-tools,
    .summary-shortcuts,
    .command-grid.lower,
    .executive-grid {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
    }

    .admin-nav {
        position: relative;
        top: auto;
    }
}

@media (max-width: 640px) {
    main {
        width: 100%;
        padding: 0 14px;
    }

    .brand small,
    body:not(.admin-page) .topbar nav a:not(.button) {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
        line-height: .92;
    }

    .hero p {
        font-size: 17px;
        max-width: 100%;
    }

    .hot-tool,
    .visual-tool,
    .register-band,
    .about-card {
        border-radius: 22px;
    }
}

/* Keep the admin system authoritative over the legacy compatibility rules above. */
body.admin-page {
    color: var(--studio-ink);
    background:
        linear-gradient(rgba(21, 21, 16, .016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 21, 16, .013) 1px, transparent 1px),
        radial-gradient(circle at 5% 5%, rgba(214, 119, 93, .11), transparent 28rem),
        radial-gradient(circle at 96% 8%, rgba(96, 113, 90, .10), transparent 32rem),
        #f8f4ed;
    background-size: 68px 68px, 68px 68px, auto, auto, auto;
}

body.admin-page .topbar {
    position: fixed;
    top: 14px;
    left: 50%;
    width: min(1480px, calc(100% - 28px));
    min-height: 66px;
    padding: 9px 12px 9px 18px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 24px;
    background: rgba(255, 255, 255, .48);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(28px) saturate(1.35);
    transform: translateX(-50%);
}

body.admin-page .admin-shell {
    width: min(1480px, calc(100% - 28px));
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 28px;
    padding-top: 108px;
}

body.admin-page .admin-nav {
    top: 108px;
    max-height: calc(100svh - 122px);
    padding: 18px 14px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 26px;
    background: rgba(255, 255, 255, .43);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(26px) saturate(1.25);
}

body.admin-page .admin-nav a.active {
    color: var(--studio-ink);
    background: linear-gradient(135deg, rgba(214, 119, 93, .11), rgba(96, 113, 90, .12)), rgba(255, 255, 255, .58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}

body.admin-page .admin-nav a.active .nav-icon {
    color: var(--studio-moss);
    border-color: rgba(96, 113, 90, .14);
    background: rgba(255, 255, 255, .56);
}

body.admin-page .admin-content .command-card,
body.admin-page .admin-content .panel,
body.admin-page .admin-content .control-panel {
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: rgba(255, 255, 255, .45);
    box-shadow: var(--studio-shadow-soft);
    backdrop-filter: blur(22px) saturate(1.15);
}

body.admin-page .admin-content .summary-hero {
    display: block;
    padding: 5px 4px 24px;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
}

.metric-symbol {
    position: relative;
}

.metric-symbol::before,
.metric-symbol::after {
    content: "";
    display: block;
}

.studio-register .studio-signup {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.studio-register .studio-signup label {
    display: grid;
    gap: 7px;
    color: rgba(21, 21, 16, .76);
    font-size: 12px;
    font-weight: 700;
}

.studio-register .studio-signup input {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--studio-line);
    border-radius: 13px;
    color: var(--studio-ink);
    background: rgba(255, 255, 255, .55);
    outline: none;
}

.studio-register .studio-signup input::placeholder {
    color: rgba(21, 21, 16, .40);
}

.studio-register .studio-signup button {
    width: 100%;
    min-height: 48px;
    color: #fff;
    border-color: var(--studio-moss);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--studio-ink), var(--studio-moss));
}

@media (max-width: 820px) {
    body.admin-page .topbar {
        position: sticky;
        top: 8px;
        left: auto;
        width: calc(100% - 16px);
        margin: 8px;
        transform: none;
    }

    body.admin-page .admin-shell {
        width: calc(100% - 16px);
        grid-template-columns: 1fr;
        padding-top: 16px;
    }

    body.admin-page .admin-nav {
        position: relative;
        top: 0;
        max-height: none;
    }
}
