@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/Manrope.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --ink: #123242;
    --ink-deep: #061420;
    --ink-soft: #506975;
    --ink-muted: #607984;
    --ice: #81dff1;
    --ice-soft: #d8f3fb;
    --ice-mid: #a8dbea;
    --line: rgba(18, 50, 66, .12);
    --line-dark: rgba(216, 243, 251, .14);
    --paper: #ffffff;
    --mist: #f1f7f8;
    --admin: #071722;
    --admin-panel: #0d1326;
    --shadow: 0 22px 60px rgba(7, 35, 48, .08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --sidebar: 260px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--mist);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--mist);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

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

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    padding: 28px 20px 22px;
    overflow-y: auto;
    color: rgba(242, 251, 253, .86);
    background:
        radial-gradient(circle at 12% 0%, rgba(141, 204, 224, .16), transparent 34%),
        linear-gradient(145deg, #102f3f 0%, #092330 52%, #061b26 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 3px 8px 24px;
    border-bottom: 1px solid rgba(216, 243, 251, .12);
}

.brand img {
    width: 118px;
    height: auto;
    object-fit: contain;
}

.brand span {
    padding-left: 12px;
    border-left: 1px solid rgba(216, 243, 251, .18);
    color: rgba(216, 243, 251, .78);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding-top: 24px;
}

.nav a,
.nav-disabled {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(234, 248, 252, .72);
    font-size: 14px;
    font-weight: 560;
    transition: .18s ease;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(216, 243, 251, .09);
}

.nav a.is-active {
    color: #fff;
    background: rgba(216, 243, 251, .11);
    border-color: rgba(216, 243, 251, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.nav-disabled {
    color: rgba(234, 248, 252, .38);
    cursor: default;
}

.nav-disabled em {
    color: rgba(168, 219, 234, .5);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-caption {
    margin: 22px 14px 7px;
    color: rgba(168, 219, 234, .52);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.sidebar-foot {
    padding: 18px 8px 0;
    border-top: 1px solid rgba(216, 243, 251, .11);
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(129, 223, 241, .18);
    border-radius: 999px;
    color: rgba(216, 243, 251, .76);
    background: rgba(129, 223, 241, .07);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dev-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ice);
    box-shadow: 0 0 14px rgba(129, 223, 241, .65);
}

.sidebar-foot p {
    margin: 12px 0 0;
    color: rgba(216, 243, 251, .38);
    font-size: 11px;
    line-height: 1.55;
}

.main {
    min-height: 100vh;
    margin-left: var(--sidebar);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 108px;
    align-items: center;
    gap: 24px;
    padding: 20px clamp(24px, 3.2vw, 54px);
    border-bottom: 1px solid rgba(18, 50, 66, .08);
    background: rgba(241, 247, 248, .92);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

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

.eyebrow,
.section-kicker {
    display: block;
    color: #39768b;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: clamp(26px, 2.2vw, 38px);
    font-weight: 430;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
}

.page-content {
    width: min(1460px, calc(100% - 64px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 18px 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 720;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

.button span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.button-primary {
    color: #fff;
    background: #153b4c;
    border-color: #153b4c;
}

.button-primary span {
    color: #16384a;
    background: var(--ice-soft);
}

.button-primary:hover {
    background: #0d2f3e;
    border-color: #0d2f3e;
}

.button-secondary {
    color: #1c4a5f;
    background: rgba(255, 255, 255, .66);
    border-color: rgba(18, 50, 66, .18);
}

.button-secondary:hover {
    background: #fff;
    border-color: rgba(18, 50, 66, .28);
}

.button[disabled] {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
}

.topbar-action {
    flex: 0 0 auto;
}

.hero-panel {
    position: relative;
    display: grid;
    min-height: 440px;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
    gap: 42px;
    align-items: center;
    overflow: hidden;
    padding: clamp(38px, 5vw, 72px);
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 50% 0%, rgba(158, 219, 236, .23), transparent 35%),
        linear-gradient(145deg, #153b4c, #092631 72%);
    box-shadow: 0 28px 72px rgba(7, 35, 48, .15);
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -260px;
    bottom: -290px;
    border: 1px solid rgba(216, 243, 251, .12);
    border-radius: 50%;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-panel .section-kicker,
.panel-dark .section-kicker {
    color: #a8dbea;
}

.hero-copy h2 {
    margin: 16px 0 24px;
    color: rgba(255, 255, 255, .98);
    font-size: clamp(46px, 5.2vw, 82px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.055em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(239, 250, 253, .74);
    font-size: clamp(15px, 1.1vw, 19px);
    font-weight: 400;
    line-height: 1.65;
}

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

.hero-panel .button-primary {
    color: #143747;
    background: #d8f3fb;
    border-color: rgba(255, 255, 255, .48);
}

.hero-panel .button-primary span {
    color: #fff;
    background: #39768b;
}

.hero-panel .button-secondary {
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .05);
    border-color: rgba(235, 250, 255, .26);
}

.hero-status {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid rgba(235, 250, 255, .18);
    border-radius: 26px;
    background: rgba(237, 250, 254, .08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.status-orbit {
    position: relative;
    display: grid;
    width: 220px;
    height: 220px;
    place-items: center;
    border: 1px solid rgba(216, 243, 251, .16);
    border-radius: 50%;
}

.status-logo {
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    border: 1px solid rgba(216, 243, 251, .17);
    border-radius: 50%;
    background: rgba(7, 23, 34, .32);
}

.status-logo img {
    width: 94px;
}

.orbit-item {
    position: absolute;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(216, 243, 251, .26);
    border-radius: 50%;
    color: #fff;
    background: #12394e;
    font-size: 13px;
    font-weight: 800;
}

.orbit-yandex {
    top: -5px;
    left: 87px;
}

.orbit-google {
    right: 1px;
    bottom: 28px;
}

.orbit-ai {
    left: 4px;
    bottom: 28px;
}

.status-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 21px;
}

.status-caption strong {
    color: #fff;
    font-size: 14px;
}

.status-caption span {
    margin-top: 3px;
    color: rgba(216, 243, 251, .58);
    font-size: 11px;
}

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

.metric-card {
    min-height: 172px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.metric-card > span {
    color: #39768b;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 14px;
    color: var(--ink);
    font-size: clamp(34px, 3.3vw, 56px);
    font-weight: 430;
    line-height: 1;
    letter-spacing: -.055em;
}

.metric-card strong em {
    margin-left: 2px;
    color: #8ba0aa;
    font-size: .42em;
    font-style: normal;
}

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

.split-grid,
.settings-grid,
.provider-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.panel,
.provider-panel {
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.panel-dark {
    color: rgba(255, 255, 255, .92);
    background: var(--admin);
    border-color: rgba(216, 243, 251, .08);
}

.panel-head,
.provider-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    justify-content: space-between;
}

.panel h3,
.provider-panel h3 {
    margin: 8px 0 0;
    color: var(--ink);
    font-size: clamp(28px, 2.7vw, 46px);
    font-weight: 420;
    line-height: 1.02;
    letter-spacing: -.05em;
}

.panel-dark h3 {
    color: #fff;
}

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(18, 50, 66, .12);
    border-radius: 999px;
    color: #607984;
    background: #f7fbfc;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .04em;
    white-space: nowrap;
    text-transform: uppercase;
}

.status-pill.is-ok {
    color: #236174;
    background: #eaf7f9;
    border-color: #cae7ec;
}

.status-pill.is-warn {
    color: #8a6b2c;
    background: #fcf7e9;
    border-color: #eadfbf;
}

.check-list {
    margin-top: 26px;
}

.check-row {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(18, 50, 66, .08);
}

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

.check-row i {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border: 1px solid rgba(18, 50, 66, .14);
    border-radius: 50%;
    color: #8ba0aa;
    font-size: 12px;
    font-style: normal;
}

.check-row.is-ready i {
    color: #1f6779;
    background: #e6f6f9;
    border-color: #c5e5eb;
}

.check-row div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.check-row strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.check-row span {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 12px;
}

.flow {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.flow > div {
    display: grid;
    grid-template-columns: 44px minmax(120px, .8fr) minmax(0, 1.35fr);
    gap: 14px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid rgba(216, 243, 251, .1);
}

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

.flow b {
    color: var(--ice);
    font-size: 11px;
    letter-spacing: .08em;
}

.flow span {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.flow small {
    color: rgba(216, 243, 251, .5);
    font-size: 11px;
    line-height: 1.5;
}

.notice {
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid #cee8ed;
    border-radius: 14px;
    color: #22556a;
    background: #edf9fb;
    font-size: 13px;
}

.form-stack {
    display: grid;
    gap: 17px;
    margin-top: 26px;
}

.form-stack label {
    display: grid;
    gap: 8px;
}

.form-stack label > span {
    color: #365c6e;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    outline: none;
    border: 1px solid rgba(18, 50, 66, .14);
    border-radius: 14px;
    color: var(--ink);
    background: #fbfdfd;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-stack input::placeholder,
.form-stack textarea::placeholder {
    color: #9aadb5;
}

.form-stack input:focus,
.form-stack textarea:focus,
.form-stack select:focus {
    border-color: rgba(60, 130, 153, .54);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(129, 223, 241, .14);
}

.form-help {
    color: #78909a;
    font-size: 11px;
    line-height: 1.55;
}

.form-help code {
    padding: 1px 4px;
    border-radius: 4px;
    color: #26586b;
    background: #edf5f7;
}

.empty-state {
    display: flex;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.empty-mark {
    display: grid;
    min-width: 58px;
    height: 58px;
    place-items: center;
    padding: 0 14px;
    border: 1px solid rgba(18, 50, 66, .14);
    border-radius: 18px;
    color: #39768b;
    background: #f4f9fa;
    font-size: 22px;
    font-weight: 450;
}

.empty-state h4 {
    margin: 18px 0 5px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.035em;
}

.empty-state p {
    max-width: 460px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 13px;
}

.project-list {
    margin-top: 22px;
}

.project-row,
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(18, 50, 66, .08);
}

.project-row:last-child,
.service-row:last-child {
    border-bottom: 0;
}

.project-row > div:first-child,
.service-row > div:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.project-row strong,
.service-row strong {
    color: var(--ink);
    font-size: 13px;
}

.project-row span,
.service-row span {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 11px;
}

.project-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.project-meta span {
    margin: 0;
}

.project-meta em,
.service-row em {
    padding: 4px 8px;
    border-radius: 999px;
    color: #39768b;
    background: #eef7f9;
    font-size: 9px;
    font-style: normal;
    font-weight: 760;
    text-transform: uppercase;
}

.provider-grid {
    align-items: stretch;
}

.provider-panel {
    display: flex;
    min-height: 490px;
    flex-direction: column;
}

.provider-head {
    align-items: center;
}

.provider-head > div:nth-child(2) {
    flex: 1;
}

.provider-letter {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: #163d4e;
    font-size: 18px;
    font-weight: 800;
}

.provider-letter.is-yandex {
    background: #12394e;
}

.provider-letter.is-google {
    background: #1b536a;
}

.provider-panel h3 {
    margin-top: 2px;
    font-size: 32px;
}

.service-list {
    flex: 1;
    margin: 24px 0 26px;
}

.service-row span {
    max-width: 520px;
}

.info-panel {
    margin-top: 18px;
}

.info-panel h3 {
    max-width: 900px;
}

.info-panel p {
    max-width: 920px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.settings-list {
    margin: 25px 0 0;
}

.settings-list > div {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 50, 66, .08);
}

.settings-list dt {
    color: var(--ink-muted);
    font-size: 12px;
}

.settings-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.text-ok {
    color: #236174 !important;
}

.text-warn {
    color: #8a6b2c !important;
}

.slash-list {
    margin-top: 24px;
}

.slash-list p {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(216, 243, 251, .08);
    color: rgba(234, 248, 252, .76);
    font-size: 13px;
}

.slash-list p:last-child {
    border-bottom: 0;
}

.slash-list b {
    color: #6fa9bd;
}

.page-404 {
    min-height: 520px;
}

.page-404 .button {
    margin-top: 22px;
}

@media (max-width: 1180px) {
    :root {
        --sidebar: 228px;
    }

    .brand img {
        width: 100px;
    }

    .brand span {
        font-size: 10px;
    }

    .hero-panel {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

@media (max-width: 980px) {
    .sidebar {
        width: 270px;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 24px 0 80px rgba(5, 22, 31, .22);
    }

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

    .main {
        margin-left: 0;
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-status {
        min-height: 260px;
    }

    .split-grid,
    .settings-grid,
    .provider-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar {
        min-height: 86px;
        padding: 16px 18px;
    }

    .topbar-action {
        display: none;
    }

    .topbar h1 {
        font-size: 27px;
    }

    .page-content {
        width: min(100% - 28px, 1460px);
        padding-top: 20px;
    }

    .hero-panel {
        min-height: auto;
        gap: 28px;
        padding: 30px 22px;
        border-radius: 22px;
    }

    .hero-copy h2 {
        margin-top: 12px;
        font-size: clamp(40px, 11vw, 58px);
    }

    .hero-copy p {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-status {
        min-height: 230px;
    }

    .status-orbit {
        width: 178px;
        height: 178px;
    }

    .status-logo {
        width: 108px;
        height: 108px;
    }

    .status-logo img {
        width: 78px;
    }

    .orbit-yandex {
        left: 66px;
    }

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

    .metric-card {
        min-height: 145px;
        padding: 20px;
    }

    .panel,
    .provider-panel {
        padding: 24px 20px;
        border-radius: 22px;
    }

    .flow > div {
        grid-template-columns: 36px 1fr;
    }

    .flow small {
        grid-column: 2;
    }

    .provider-head {
        flex-wrap: wrap;
    }

    .provider-head .status-pill {
        margin-left: 70px;
    }
}

@media (max-width: 520px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: 132px;
    }

    .panel-head {
        flex-direction: column;
    }

    .panel-head .status-pill {
        align-self: flex-start;
    }

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

    .settings-list dd {
        text-align: left;
    }

    .project-row,
    .service-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* Auth / account layer */
.workspace-card {
    margin: 18px 4px 0;
    padding: 14px 14px 13px;
    border: 1px solid rgba(216, 243, 251, .11);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
}

.workspace-card span,
.workspace-card small {
    display: block;
    color: rgba(216, 243, 251, .45);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.workspace-card strong {
    display: block;
    margin: 4px 0 2px;
    overflow: hidden;
    color: rgba(255, 255, 255, .94);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workspace-card small {
    color: rgba(168, 219, 234, .62);
    letter-spacing: .04em;
    text-transform: none;
}

.topbar-title {
    min-width: 0;
    flex: 1;
}

.topbar-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 14px;
}

.account-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-end;
}

.account-copy strong {
    max-width: 190px;
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy span {
    max-width: 190px;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-switch select {
    min-height: 38px;
    max-width: 220px;
    padding: 0 30px 0 12px;
    border: 1px solid rgba(18, 50, 66, .12);
    border-radius: 11px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font-size: 11px;
    font-weight: 650;
}

.logout-button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(18, 50, 66, .12);
    border-radius: 11px;
    color: #536c78;
    background: rgba(255, 255, 255, .7);
    cursor: pointer;
    font-size: 11px;
    font-weight: 720;
}

.logout-button:hover {
    color: var(--ink);
    background: #fff;
}

.notice-error {
    color: #8b3a3a;
    border-color: #efd0d0;
    background: #fff2f2;
}

.button-disabled {
    opacity: .52;
    cursor: default;
    pointer-events: none;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(129, 223, 241, .17), transparent 32%),
        linear-gradient(145deg, #133747 0%, #08232f 56%, #061a25 100%);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 20px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    color: rgba(216, 243, 251, .72);
}

.auth-brand img {
    width: 118px;
    height: auto;
}

.auth-brand span {
    padding-left: 14px;
    border-left: 1px solid rgba(216, 243, 251, .2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-card {
    width: min(520px, 100%);
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 28px;
    background: rgba(255, 255, 255, .965);
    box-shadow: 0 34px 100px rgba(2, 17, 24, .28);
}

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

.auth-card h1 {
    margin: 11px 0 16px;
    color: var(--ink);
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 410;
    line-height: 1;
    letter-spacing: -.055em;
}

.auth-intro {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.7;
}

.auth-intro b {
    color: var(--ink);
}

.auth-form {
    margin-top: 24px;
}

.auth-submit {
    width: 100%;
    margin-top: 2px;
}

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

.auth-existing {
    margin: 18px 0 0;
    color: var(--ink-muted);
    font-size: 12px;
    text-align: center;
}

.auth-existing a {
    color: #2d6b81;
    font-weight: 720;
}

.auth-foot {
    margin-top: 18px;
    color: rgba(216, 243, 251, .42);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.member-list {
    margin-top: 24px;
}

.member-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 50, 66, .08);
}

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

.member-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #d4e9ed;
    border-radius: 13px;
    color: #275c70;
    background: #eff8fa;
    font-size: 14px;
    font-weight: 800;
}

.member-copy {
    min-width: 0;
}

.member-copy strong,
.member-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-copy strong {
    color: var(--ink);
    font-size: 13px;
}

.member-copy span {
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 11px;
}

.member-role {
    padding: 5px 9px;
    border-radius: 999px;
    color: #39768b;
    background: #eef7f9;
    font-size: 9px;
    font-weight: 760;
    text-transform: uppercase;
}

.permission-note {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid rgba(18, 50, 66, .1);
    border-radius: 14px;
    color: var(--ink-muted);
    background: #f8fbfc;
    font-size: 12px;
}

.invitation-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(18, 50, 66, .08);
}

.invitation-history > div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(18, 50, 66, .06);
    font-size: 11px;
}

.invitation-history span {
    color: var(--ink);
}

.invitation-history em {
    color: var(--ink-muted);
    font-style: normal;
}

.invite-link-box {
    display: grid;
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #cce8ee;
    border-radius: 18px;
    background: #eef9fb;
}

.invite-link-box strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 12px;
}

.invite-link-box input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #bddde5;
    border-radius: 11px;
    color: #285d72;
    background: #fff;
    font-size: 11px;
}

.compact-form {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(18, 50, 66, .08);
}

.roles-panel {
    margin-top: 18px;
}

.role-matrix {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.role-matrix > div {
    min-height: 130px;
    padding: 18px;
    border: 1px solid rgba(216, 243, 251, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
}

.role-matrix strong {
    display: block;
    color: var(--ice);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.role-matrix span {
    display: block;
    margin-top: 10px;
    color: rgba(216, 243, 251, .58);
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1180px) {
    .topbar-account .account-copy {
        display: none;
    }

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

@media (max-width: 760px) {
    .topbar-account {
        gap: 8px;
    }

    .org-switch {
        display: none;
    }

    .logout-button {
        padding: 0 10px;
    }

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

    .invite-link-box {
        grid-template-columns: 1fr;
    }

    .role-matrix {
        grid-template-columns: 1fr;
    }
}


.member-role-form select {
    min-height: 34px;
    max-width: 170px;
    padding: 0 28px 0 10px;
    border: 1px solid #d3e7eb;
    border-radius: 10px;
    outline: none;
    color: #2d6174;
    background: #f5fafb;
    font-size: 10px;
    font-weight: 720;
}

.member-role-form select:focus {
    border-color: #98d5e1;
    box-shadow: 0 0 0 3px rgba(129, 223, 241, .12);
}


/* Integrations v2 */
.provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.connected-accounts {
    margin: 0 0 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(18, 50, 66, .08);
}

.connected-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(18, 50, 66, .06);
}

.connected-account-row > div:first-child {
    min-width: 0;
}

.connected-account-row strong,
.connected-account-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connected-account-row strong {
    color: var(--ink);
    font-size: 12px;
}

.connected-account-row span {
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 10px;
}

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

.connected-account-actions em {
    color: #2b6c7f;
    font-size: 9px;
    font-style: normal;
    font-weight: 760;
    text-transform: uppercase;
}

.text-button {
    padding: 0;
    border: 0;
    color: #8b5656;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.provider-note {
    padding: 14px 15px;
    border: 1px solid rgba(18, 50, 66, .1);
    border-radius: 14px;
    color: var(--ink-soft);
    background: #f8fbfc;
    font-size: 11px;
    line-height: 1.65;
}

.provider-note code,
.info-panel code {
    padding: 1px 5px;
    border-radius: 5px;
    color: #2d667a;
    background: #edf6f8;
    font-size: .92em;
}

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

@media (max-width: 760px) {
    .provider-grid {
        grid-template-columns: 1fr;
    }
}


.resource-panel {
    margin-top: 18px;
}

.compact-button {
    min-height: 42px;
    padding-inline: 16px;
}

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

.resource-column {
    overflow: hidden;
    border: 1px solid rgba(18, 50, 66, .09);
    border-radius: 18px;
    background: #fbfdfd;
}

.resource-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(18, 50, 66, .08);
    background: #f5fafb;
}

.resource-title strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 760;
}

.resource-title span {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #2f6b80;
    background: #e8f5f7;
    font-size: 10px;
    font-weight: 800;
}

.resource-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(18, 50, 66, .06);
}

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

.resource-row > div:first-child {
    min-width: 0;
}

.resource-row strong,
.resource-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-row strong {
    color: var(--ink);
    font-size: 12px;
}

.resource-row span {
    max-width: 430px;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 10px;
}

.resource-meta {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
}

.resource-meta em {
    color: #39768b;
    font-size: 9px;
    font-style: normal;
    font-weight: 760;
    text-transform: uppercase;
}

.resource-meta small {
    margin-top: 2px;
    color: #8ba0aa;
    font-size: 9px;
}

.resource-empty {
    padding: 28px 18px;
    color: var(--ink-muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 980px) {
    .resource-columns {
        grid-template-columns: 1fr;
    }
}
