:root {
    --bg: #050807;
    --bg-2: #08110f;
    --surface: #0b1210;
    --surface-2: #101a17;
    --surface-3: #14201c;
    --border: rgba(224, 239, 230, .11);
    --border-strong: rgba(224, 239, 230, .18);
    --text: #f4f7f5;
    --muted: #a4aea8;
    --muted-2: #758079;
    --accent: #a7ff35;
    --cyan: #62d6dd;
    --blue: #4ea1ff;
    --amber: #f5b942;
    --violet: #9b7cff;
    --danger: #ff7c7c;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -18%, rgba(32, 129, 114, .18), transparent 34rem),
        radial-gradient(circle at 10% 12%, rgba(78, 161, 255, .06), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

button,
input {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 76px;
    border-bottom: 1px solid var(--border);
    background: rgba(4, 8, 7, .88);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.topbar-inner {
width: min(calc(100% - 48px), 1320px);
    min-height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.brand-logo {
width: 176px;
    height: auto;
    display: block;
}

.command-hero {
position: relative;
    min-height: 318px;
    margin-bottom: 56px;
    padding: 52px 54px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 10%, rgba(98, 214, 221, .11), transparent 24rem),
        radial-gradient(circle at 78% 14%, rgba(167, 255, 53, .07), transparent 24rem),
        linear-gradient(145deg, #08110f 0%, #07100e 54%, #050807 100%);
    box-shadow: var(--shadow);
}

.command-hero-copy {
    position: relative;
    z-index: 3;
    width: min(690px, 100%);
}

.command-hero h1 {
margin-bottom: 18px;
    max-width: 720px;
    font-size: clamp(48px, 5vw, 66px);
    line-height: .96;
    letter-spacing: -.055em;
}

.command-hero .muted {
    margin-bottom: 26px;
    font-size: 16px;
}

.command-terrain {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 260px;
    opacity: .9;
    pointer-events: none;
}

.command-terrain svg {
    width: 100%;
    height: 100%;
}

.company-section {
    margin-top: 10px;
}

.workspace-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.login-logo {
    width: 170px;
    height: auto;
    display: block;
    margin-bottom: 62px;
}

.login-brand-copy {
    position: relative;
    z-index: 3;
}

.login-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 24% 10%, rgba(98, 214, 221, .13), transparent 28rem),
        radial-gradient(circle at 80% 8%, rgba(167, 255, 53, .07), transparent 24rem);
}

.login-terrain {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 48px;
    height: 300px;
    pointer-events: none;
    opacity: .85;
}

.login-terrain svg {
    width: 100%;
    height: 100%;
}

.login-hero span {
    color: #eafff6;
}

.nav-label {
    font-size: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}



.topbar-right {
display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
}

.staff-badge,
.status {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.status.ready {
    border-color: rgba(183, 255, 74, 0.25);
    background: rgba(183, 255, 74, 0.08);
    color: var(--accent);
}

.staff-badge {
border: 1px solid rgba(98, 214, 221, .18);
    background: rgba(98, 214, 221, .05);
    color: #8fe9d5;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    letter-spacing: .12em;
    font-size: 9px;
    font-weight: 900;
}

.link-button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
}

.link-button:hover {
    color: var(--text);
}

.page {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0 84px;
}

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

h1 {
    font-size: clamp(34px, 6vw, 60px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    margin: 10px 0 14px;
}

h2 {
    letter-spacing: -0.03em;
}

.eyebrow {
    color: #8fe9d5;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
    line-height: 1.55;
    max-width: 680px;
}

.tiny {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 800;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button.primary {
background: #62d6dd;
    border-color: #62d6dd;
    color: #06100f;
    box-shadow: 0 16px 48px rgba(98, 214, 221, .11);
}

.button.secondary {
    background: rgba(255, 255, 255, .025);
    border-color: var(--border);
}

.button.wide {
    width: 100%;
}

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

.company-card {
    position: relative;
    min-height: 236px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        var(--surface);
    display: flex;
    flex-direction: column;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(0,0,0,.08);
}

.company-card:hover,
.company-card.active {
    transform: translateY(-3px);
    border-color: rgba(98, 214, 221, .38);
    background:
        radial-gradient(circle at 18% 10%, rgba(98,214,221,.055), transparent 14rem),
        linear-gradient(180deg, rgba(98,214,221,.025), transparent),
        var(--surface);
    box-shadow: 0 22px 54px rgba(0,0,0,.16);
}

.company-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.company-card-top,
.company-card-body,
.company-card-footer {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.company-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.company-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-weight: 900;
}

.company-avatar.large {
    width: 48px;
    height: 48px;
}

.company-card-body {
    margin-top: 28px;
}

.company-card h2 {
    margin: 0 0 6px;
    font-size: 23px;
}

.company-meta {
    color: var(--muted);
    font-size: 13px;
}

.company-card-footer {
    margin-top: auto;
    padding-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.company-card-secondary-action {
position: relative;
    z-index: 2;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.company-card-secondary-action:hover {
    color: var(--text);
}

.company-card-primary-action {
color: #d9e2dc;
    font-size: 12px;
    font-weight: 800;
}

.company-card:hover .company-card-primary-action {
    color: var(--text);
    transform: translateX(2px);
}

.auth-shell {
    min-height: calc(100vh - 190px);
    display: grid;
    place-items: center;
}

.auth-panel {
    width: min(430px, 100%);
}

.form-card {
    margin-top: 32px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

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

.form-stack label {
    display: grid;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.form-stack input {
    width: 100%;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 13px 14px;
    outline: none;
}

.form-stack input:focus {
    border-color: var(--accent);
}

.form-stack small {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.4;
}

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

.form-error {
    border: 1px solid rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.08);
    color: #ffaaaa;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

.narrow {
    max-width: 650px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 13px;
}

.workspace-layout {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.workspace-sidebar {
    min-width: 0;
    position: sticky;
    top: 112px;
}

.workspace-company {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.staff-mode {
    display: grid;
    gap: 4px;
    margin: 18px 0;
    padding: 13px;
    border-radius: 11px;
    border: 1px solid rgba(183, 255, 74, 0.18);
    background: rgba(183, 255, 74, 0.06);
    font-size: 12px;
}

.staff-mode strong {
    color: var(--accent);
}

.staff-mode span {
    color: var(--muted);
    line-height: 1.35;
}

.workspace-nav {
    display: grid;
    gap: 5px;
    margin-top: 18px;
}

.nav-item {
    min-height: 42px;
    padding: 0 13px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 680;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
    transition: color 120ms ease, background 120ms ease, border-color 120ms ease;
}

.nav-item.active {
    background: rgba(98, 214, 221, .07);
    border-color: rgba(98, 214, 221, .14);
    color: var(--text);
}

.nav-item.disabled {
    opacity: 0.55;
    cursor: default;
}

.nav-item span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.metric-card,
.panel {
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255,255,255,.014), transparent),
        var(--surface);
    border-radius: 18px;
    box-shadow: 0 14px 44px rgba(0,0,0,.08);
}

.metric-card {
    padding: 18px;
    display: grid;
    gap: 10px;
}

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

.metric-card strong {
    font-size: 29px;
}

.panel {
    margin-top: 16px;
    padding: 24px;
}

.panel h2 {
    margin-bottom: 8px;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.technical-grid div {
    min-width: 0;
}

.technical-grid dt {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 7px;
}

.technical-grid dd {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.messages {
    width: min(1240px, calc(100% - 48px));
    margin: 18px auto 0;
}

.message {
    border-radius: 11px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.message.success {
    color: var(--accent);
}

.empty-state {
    padding: 60px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}

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

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

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

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

@media (max-width: 620px) {
    .topbar-inner {
        width: min(100% - 28px, 1320px);
    }

    .user-email,
    .staff-badge {
        display: none;
    }

    .page {
        width: min(100% - 28px, 1240px);
        padding-top: 34px;
    }

    .page-header {
        display: grid;
    }

    .company-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }
}

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

.integration-card {
    min-height: 210px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.integration-card h2 {
    margin: 0 0 8px;
}

.integration-card p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 13px;
}

.integration-card .button {
    margin-top: auto;
}

.row-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.row-line > span {
    color: var(--muted);
}

.metric-grid.one {
    grid-template-columns: minmax(240px, 320px);
}

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

.status.error {
    border-color: rgba(255, 107, 107, 0.35);
    color: #ffaaaa;
    background: rgba(255, 107, 107, 0.08);
}

.integration-detail {
    color: var(--muted);
    font-size: 12px;
}

.integration-error {
    color: #ffaaaa;
    font-size: 11px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.code-block {
    display: block;
    margin: 16px 0;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
}

.login-layout {
    min-height: calc(100vh - 170px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
    gap: 18px;
    align-items: stretch;
}

.login-brand-panel,
.login-form-panel {
    min-height: 650px;
    display: grid;
    place-items: center;
    padding: clamp(32px, 5vw, 64px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        var(--surface);
}

.login-brand-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 5vw, 72px);
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        linear-gradient(145deg, #08110f 0%, #07100e 52%, #050807 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 650px;
    box-shadow: var(--shadow);
}



.login-hero {
    max-width: 760px;
    margin-top: 24px;
    font-size: clamp(46px, 6vw, 82px);
    letter-spacing: -0.065em;
}

.login-copy {
    max-width: 570px;
    color: #b7bdc8;
    font-size: 17px;
    line-height: 1.65;
}

.login-proof {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 80px;
}

.login-proof > div {
    display: grid;
    gap: 7px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.login-proof strong {
    font-size: 13px;
}

.login-proof span {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.login-form-panel {
    display: grid;
    place-items: center;
    padding: clamp(30px, 5vw, 60px);
    border: 1px solid var(--border);
    background: var(--surface);
}

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

.login-brand {
    margin-bottom: 64px;
}

.login-heading {
    margin-bottom: 28px;
}

.login-heading h2 {
    margin: 0 0 8px;
    font-size: 36px;
    letter-spacing: -0.045em;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.field-label-row a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.login-submit {
    margin-top: 5px;
}

.login-security {
    margin: 22px 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

.reset-card {
    width: min(520px, 100%);
    padding: 34px;
    border-radius: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.reset-card h1 {
    font-size: clamp(38px, 5vw, 52px);
}

.reset-card .form-stack {
    margin-top: 28px;
}

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 430px;
    }

    .login-form-panel {
        min-height: auto;
    }

    .login-brand {
        margin-bottom: 36px;
    }
}

@media (max-width: 620px) {
    .login-brand-panel {
        display: none;
    }

    .login-layout {
        min-height: calc(100vh - 150px);
    }

    .login-form-panel {
        border: 0;
        background: transparent;
        padding: 20px 4px;
    }
}

.status.pending {
    border-color: rgba(255, 205, 86, 0.32);
    color: #ffd66b;
    background: rgba(255, 205, 86, 0.07);
}

.integration-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    align-items: flex-start;
}

.integration-actions {
    margin-top: auto;
    width: 100%;
}

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

.selected-resource {
    display: grid;
    gap: 5px;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.selected-resource span {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.selected-resource strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.disconnect-form {
    margin-top: 18px;
}

.link-danger {
    border: 0;
    background: transparent;
    color: #ff9e9e;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

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

.member-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

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

.member-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.member-actions select,
.form-stack select {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 11px;
}

@media (max-width: 720px) {
    .member-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .member-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.provider-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.014), transparent),
        var(--surface);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 14px 44px rgba(0,0,0,.08);
}

.provider-card-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid var(--border);
}

.provider-name {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.provider-card-header p {
    color: var(--muted);
    margin: 7px 0 0;
    font-size: 13px;
}

.provider-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.provider-services {
    display: grid;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.5fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

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

.service-copy {
    display: grid;
    gap: 5px;
}

.service-copy span,
.service-empty {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.service-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-chip {
    min-width: 190px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.resource-chip > div:first-child {
    display: grid;
    gap: 3px;
}

.resource-chip strong {
    font-size: 11px;
}

.resource-chip span {
    color: var(--muted);
    font-size: 9px;
}

.resource-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.resource-actions a,
.resource-actions button {
    color: var(--accent);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 9px;
}

.resource-actions button {
    color: #ff9e9e;
}

.header-actions,
.role-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.role-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.role-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.role-card h2 {
    margin: 0 0 6px;
}

.role-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.permission-summary {
    margin: 20px 0;
    display: grid;
    gap: 7px;
}

.permission-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
    font-size: 11px;
}

.permission-summary span {
    color: var(--accent);
    letter-spacing: 0.13em;
}

.permission-matrix {
    display: grid;
    gap: 14px;
    margin: 10px 0;
}

.permission-group {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
}

.permission-group > strong {
    display: block;
    margin-bottom: 12px;
}

.permission-option {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 9px !important;
    padding: 7px 0;
    color: var(--muted);
}

.permission-option input {
    width: auto !important;
}

.resource-edit-form {
    margin-top: 18px;
}

@media (max-width: 850px) {
    .service-row {
        grid-template-columns: 1fr;
    }

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

    .provider-card-header {
        flex-direction: column;
    }

    .provider-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

.topbar-platform-link {
color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.topbar-platform-link:hover {
    color: var(--accent);
}

.permission-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: -10px 0 20px;
    color: var(--muted);
    font-size: 11px;
}

.permission-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.permission-legend small {
    margin-left: auto;
}

.permission-summary-row {
    overflow: visible;
}

.permission-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.permission-dot {
    position: relative;
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    cursor: help;
    flex: 0 0 auto;
    outline: none;
}

.permission-dot.enabled {
    background: var(--accent);
}

.permission-dot.disabled {
    background: transparent;
}

.permission-dot::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 80;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(3px);
    width: max-content;
    max-width: 220px;
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #08090b;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    font-style: normal;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition:
        opacity 120ms ease,
        transform 120ms ease;
}

.permission-dot:hover::after,
.permission-dot:focus::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.platform-shell {
    max-width: 1060px;
    margin: 0 auto;
}

.platform-config-body {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
    gap: 28px;
    padding: 24px;
}

.platform-explanation {
    display: grid;
    align-content: start;
    gap: 14px;
}

.setting-note,
.callback-box {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.setting-note {
    display: grid;
    gap: 6px;
}

.setting-note strong {
    font-size: 13px;
}

.setting-note span,
.callback-box small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.callback-box {
    display: grid;
    gap: 8px;
}

.callback-box > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.callback-box code {
    overflow-wrap: anywhere;
    font-size: 11px;
    color: var(--accent);
}

.platform-form {
    margin-top: 0;
}

.secret-state {
    display: flex;
    align-items: center;
    gap: 10px;
}

.secret-state small {
    color: var(--muted);
}

.provider-auth-state {
    display: grid;
    justify-items: end;
    gap: 4px;
}

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

@media (max-width: 820px) {
    .platform-config-body {
        grid-template-columns: 1fr;
    }

    .permission-legend small {
        width: 100%;
        margin-left: 0;
    }
}

.crm-layout {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(420px, 1.18fr);
    gap: 18px;
    align-items: start;
}

.funnel-panel,
.lead-feed {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-title-row h2 {
    margin: 5px 0 0;
}

.tiny-link {
    color: var(--accent);
    font-size: 11px;
}

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

.funnel-stage {
    display: flex;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.funnel-bar {
    width: max(var(--funnel-width), 28%);
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
    transition:
        width 180ms ease,
        border-color 120ms ease,
        transform 120ms ease;
}

.funnel-stage:hover .funnel-bar,
.funnel-stage.selected .funnel-bar {
    border-color: rgba(183, 255, 74, .55);
    transform: translateY(-1px);
}

.funnel-stage.selected .funnel-bar {
    background: rgba(183, 255, 74, .06);
}

.funnel-bar > div {
    display: grid;
    gap: 4px;
}

.funnel-bar span {
    color: var(--muted);
    font-size: 9px;
}

.funnel-bar b {
    font-size: 20px;
}

.funnel-exits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.funnel-exits a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px dashed var(--border);
    border-radius: 9px;
    color: var(--muted);
    font-size: 10px;
}

.lead-list {
    display: grid;
    gap: 8px;
}

.lead-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
    transition:
        border-color 120ms ease,
        transform 120ms ease;
}

.lead-card:hover {
    border-color: rgba(183, 255, 74, .48);
    transform: translateY(-1px);
}

.lead-card-main {
    display: flex;
    gap: 11px;
    align-items: center;
    min-width: 0;
}

.lead-avatar {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: rgba(183, 255, 74, .08);
    border: 1px solid rgba(183, 255, 74, .18);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.lead-card-main > div:last-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.lead-card-main span {
    color: var(--muted);
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-card-meta {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.lead-card-meta small {
    max-width: 180px;
    color: var(--muted);
    text-align: right;
    font-size: 9px;
}

.lead-chevron {
    color: var(--accent);
}

.lead-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    margin: 18px 0 24px;
}

.lead-detail-header h1 {
    margin-bottom: 10px;
}

.lead-contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--muted);
    font-size: 12px;
}

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

.detail-list {
    display: grid;
    gap: 0;
}

.detail-list > div {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

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

.detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 11px;
}

.timeline {
    display: grid;
    margin-top: 22px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 9px;
    padding-bottom: 17px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 12px;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item i {
    width: 11px;
    height: 11px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--accent);
}

.timeline-item > div {
    display: grid;
    gap: 3px;
}

.timeline-item span,
.timeline-item small {
    color: var(--muted);
    font-size: 9px;
}

.metadata-json,
.api-example {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #090b0d;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: #bec6d2;
    font-size: 10px;
    line-height: 1.55;
}

.lead-automation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
    gap: 16px;
}

.secret-reveal {
    display: grid;
    grid-template-columns: .6fr 1.4fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid rgba(183, 255, 74, .38);
    border-radius: 14px;
    background: rgba(183, 255, 74, .05);
}

.secret-reveal h2,
.secret-reveal p {
    margin: 4px 0;
}

.secret-reveal p {
    color: var(--muted);
    font-size: 11px;
}

.secret-reveal code {
    padding: 12px;
    border-radius: 9px;
    background: #080a09;
    color: var(--accent);
    overflow-wrap: anywhere;
    font-size: 10px;
}

@media (max-width: 920px) {
    .crm-layout,
    .lead-detail-grid,
    .lead-automation-grid {
        grid-template-columns: 1fr;
    }

    .secret-reveal {
        grid-template-columns: 1fr;
    }
}

.crm-toolbar,
.crm-view-tabs,
.crm-filters,
.secret-reveal-values,
.ingestion-connection-row {
    display: flex;
    align-items: center;
}

.crm-toolbar {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.crm-view-tabs {
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}

.crm-view-tabs a {
    padding: 8px 13px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.crm-view-tabs a.active {
    background: var(--surface-2);
    color: var(--text);
}

.tiny-button {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.crm-filters {
    gap: 9px;
    align-items: end;
    flex-wrap: wrap;
    padding: 13px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
}

.crm-filters label {
    display: grid;
    gap: 5px;
    min-width: 130px;
}

.crm-filters label.grow {
    flex: 1 1 250px;
}

.crm-filters label > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.crm-filters input,
.crm-filters select {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
}

.kanban {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 290px);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 14px;
}

.kanban-column {
    min-height: 440px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}

.kanban-column > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}

.kanban-column > header > div {
    display: grid;
    gap: 3px;
}

.kanban-column > header span {
    color: var(--muted);
    font-size: 9px;
}

.kanban-column > header b {
    min-width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(183,255,74,.07);
    color: var(--accent);
    font-size: 11px;
}

.kanban-cards {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.kanban-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
}

.kanban-card:hover {
    border-color: rgba(183,255,74,.45);
}

.kanban-card span,
.kanban-card small,
.kanban-empty {
    color: var(--muted);
    font-size: 9px;
}

.kanban-empty {
    padding: 16px 8px;
    text-align: center;
}

.funnel-analytics-panel {
    padding: 24px;
}

.funnel-chart-table {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.funnel-chart-row {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(240px, 1fr) 82px 86px;
    gap: 16px;
    align-items: center;
    min-height: 56px;
}

.funnel-chart-stage {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.funnel-chart-stage > strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.funnel-chart-track {
    position: relative;
    height: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
}

.funnel-chart-fill {
    width: var(--funnel-percent);
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(183,255,74,.42), rgba(183,255,74,.90));
    transition: width 180ms ease;
}

.funnel-chart-row.won .funnel-chart-fill {
    background: linear-gradient(90deg, rgba(183,255,74,.55), rgba(183,255,74,1));
}

.funnel-chart-row.lost .funnel-chart-fill {
    background: linear-gradient(90deg, rgba(255,112,112,.40), rgba(255,112,112,.88));
}

.funnel-chart-row.lost .funnel-chart-percent strong {
    color: #ff8d8d;
}

.funnel-chart-count,
.funnel-chart-percent {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    white-space: nowrap;
}

.funnel-chart-count span {
    color: var(--muted);
    font-size: 10px;
}

.funnel-chart-percent strong {
    font-size: 14px;
}

.funnel-loss-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.funnel-loss-reasons small {
    color: var(--muted);
    font-size: 9px;
}

.crm-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
}

.crm-table th,
.crm-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 10px;
}

.crm-table th {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.crm-table tbody tr {
    cursor: pointer;
}

.crm-table tbody tr:hover {
    background: var(--surface-2);
}

.crm-table td:first-child {
    display: grid;
    gap: 3px;
}

.crm-table td:first-child span {
    color: var(--muted);
    font-size: 9px;
}

.pipeline-config-card {
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.pipeline-config-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.pipeline-config-head h2,
.pipeline-config-head p {
    margin: 0;
}

.pipeline-config-head p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.pipeline-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 20px;
    padding: 20px;
}

.stage-config-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 75px 110px 110px auto;
    gap: 7px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.stage-config-row input,
.stage-config-row select,
.lost-reason-new input {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
}

.stage-config-row.new {
    margin-top: 8px;
    border-bottom: 0;
}

.inline-check {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
}

.inline-check input {
    width: auto;
}

.lost-reason-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
}

.lost-reason-new {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px auto;
    gap: 7px;
    margin-top: 10px;
}

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

.security-notes {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.security-notes p {
    margin: 0;
}

.security-notes strong {
    color: var(--accent);
}

.secret-reveal-values {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.secret-reveal-values label {
    display: grid;
    gap: 5px;
}

.secret-reveal-values span {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ingestion-connection-row {
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.ingestion-connection-row > div:first-child {
    display: grid;
    gap: 4px;
}

.ingestion-connection-row span,
.ingestion-connection-row small {
    color: var(--muted);
    font-size: 9px;
}

@media (max-width: 980px) {
    .pipeline-config-grid,
    .ingestion-grid {
        grid-template-columns: 1fr;
    }

    .stage-config-row {
        grid-template-columns: 1fr 70px;
    }

    .crm-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   Zerka canonical additions
   ========================================================= */

.page-header.compact {
    margin-bottom: 24px;
}

.topbar-platform-link {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.topbar-platform-link:hover {
    color: var(--text);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
}

.language-switcher select {
    min-height: 32px;
    padding: 5px 30px 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

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

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

.settings-section {
    display: grid;
    gap: 20px;
}

.section-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.settings-section h2,
.settings-section p {
    margin-top: 5px;
}

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

.settings-grid > label,
.language-checkboxes {
    display: grid;
    gap: 7px;
    margin: 0;
}

.settings-grid > label.wide {
    grid-column: 1 / -1;
}

.settings-grid label > span,
.language-checkboxes legend {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.settings-grid input,
.settings-grid select,
.settings-grid textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    outline: none;
}

.settings-grid input:focus,
.settings-grid select:focus,
.settings-grid textarea:focus {
    border-color: rgba(183, 255, 74, .55);
}

.settings-grid textarea {
    resize: vertical;
}

.settings-grid small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.language-checkboxes ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.language-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface-2);
    font-size: 11px;
}

.settings-savebar {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.stage-table-head {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) 75px 110px 110px auto;
    gap: 7px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.stage-table-head span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.new-stage-label {
    margin-top: 18px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}





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

    .settings-grid > label.wide {
        grid-column: auto;
    }

    .stage-table-head {
        display: none;
    }
}

@media (max-width: 900px) {
    .funnel-chart-row {
        grid-template-columns: 120px minmax(160px, 1fr) 72px 76px;
        gap: 10px;
    }
}

@media (max-width: 680px) {
    .funnel-chart-row {
        grid-template-columns: 1fr auto;
    }

    .funnel-chart-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .funnel-chart-count {
        display: none;
    }

    .funnel-chart-percent {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Canonical app visual system — foundation components */
input,
select,
textarea {
    accent-color: var(--accent);
}

.form-stack input,
.form-stack select,
.form-stack textarea,
.settings-grid input,
.settings-grid select,
.settings-grid textarea,
.crm-filters input,
.crm-filters select {
    background: #0d1613;
    color: var(--text);
    border-color: var(--border);
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus,
.settings-grid input:focus,
.settings-grid select:focus,
.settings-grid textarea:focus {
    outline: none;
    border-color: rgba(98, 214, 221, .6);
    box-shadow: 0 0 0 3px rgba(98, 214, 221, .07);
}

.status.ready {
    border-color: rgba(167, 255, 53, .22);
    background: rgba(167, 255, 53, .06);
    color: var(--accent);
}

.staff-badge {
    border-color: rgba(98, 214, 221, .18);
    background: rgba(98, 214, 221, .05);
    color: #8fe9d5;
}

.topbar-platform-link:hover,
.tiny-link,
.field-label-row a,
.resource-actions a,
.callback-box code {
    color: #8fe9d5;
}

.company-card:hover,
.company-card.active {
    transform: translateY(-2px);
    border-color: rgba(98, 214, 221, .28);
    background:
        linear-gradient(180deg, rgba(98,214,221,.025), transparent),
        var(--surface);
}

.company-avatar {
    background:
        radial-gradient(circle at 25% 20%, rgba(98,214,221,.16), transparent 65%),
        var(--surface-2);
    border-color: rgba(98,214,221,.14);
}

.staff-mode {
    border-color: rgba(98, 214, 221, .14);
    background: rgba(98, 214, 221, .045);
}

.staff-mode strong {
    color: #8fe9d5;
}

.back-link:hover,
.link-button:hover,
.company-card-secondary-action:hover {
    color: var(--text);
}

.workspace-main {
    min-width: 0;
}

@media (max-width: 900px) {
    .workspace-sidebar {
        position: static;
    }

    .command-hero {
        padding: 40px 34px;
    }
}

@media (max-width: 620px) {
    .topbar-inner {
        min-height: 70px;
    }

    .brand-logo {
        width: 150px;
    }

    .command-hero {
        min-height: 300px;
        margin-bottom: 38px;
        padding: 34px 24px;
        border-radius: 22px;
    }

    .login-logo {
        width: 155px;
        margin-bottom: 38px;
    }
}


.user-email {
    color: #aeb8b2;
    font-size: 12px;
    white-space: nowrap;
}
