:root {
    --bg: #f8f7f8;
    --surface: rgba(255, 255, 255, 0.97);
    --surface-soft: #fff9fc;
    --surface-deep: #090909;
    --line: #ece7ea;
    --line-strong: #d8cfd5;
    --text: #161216;
    --muted: #706872;
    --brand: #ff4f87;
    --brand-dark: #dd2b68;
    --brand-soft: #ffe1eb;
    --accent: #ff4f87;
    --accent-soft: #ffe1eb;
    --danger: #c72f59;
    --danger-soft: #fee4e2;
    --success: #0d7a4f;
    --success-soft: #def7ea;
    --warning: #b54708;
    --warning-soft: #fef0c7;
    --shadow: 0 24px 60px rgba(35, 10, 22, 0.13);
    --shadow-soft: 0 14px 30px rgba(35, 10, 22, 0.07);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 79, 135, 0.10), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 79, 135, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0, rgba(255, 255, 255, 0.05) 280px),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--brand-dark);
}

.admin-body {
    min-height: 100vh;
}

.admin-body::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    content: "";
    inset: 0 0 auto 0;
    opacity: 0.28;
    pointer-events: none;
    position: fixed;
    height: 280px;
    z-index: 0;
}

.admin-body--auth::before {
    background:
        radial-gradient(circle at 22% 14%, rgba(255, 79, 135, 0.22), transparent 30%),
        radial-gradient(circle at 84% 72%, rgba(255, 79, 135, 0.14), transparent 28%),
        #080808;
    height: 100%;
    opacity: 1;
}

.shell {
    position: relative;
    z-index: 1;
}

.topbar {
    align-items: center;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 28px;
    position: relative;
    z-index: 1000;
}

.topbar-brand {
    min-width: 0;
}

.brand-link {
    align-items: center;
    color: #fff;
    display: inline-flex;
    gap: 14px;
}

.brand-link:hover {
    color: #fff;
}

.brand-avatar {
    background: #fff;
    border: 1px solid rgba(255, 79, 135, 0.74);
    border-radius: 50%;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
    display: grid;
    flex: 0 0 44px;
    height: 44px;
    overflow: hidden;
    place-items: center;
    position: relative;
    width: 44px;
}

.brand-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    width: 100%;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    display: block;
    font-size: 18px;
    line-height: 1.05;
}

.brand-copy span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 600;
}

.topbar-meta {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    min-width: 0;
}

.topbar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.topbar-nav > a,
.topbar-nav-trigger {
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #eef5ff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 7px 12px;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.topbar-nav > a:hover,
.topbar-nav > a.active,
.topbar-nav-trigger:hover,
.topbar-nav-trigger.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.topbar-nav-group {
    position: relative;
    z-index: 1001;
}

.topbar-nav-group summary {
    list-style: none;
}

.topbar-nav-group summary::-webkit-details-marker {
    display: none;
}

.topbar-nav-trigger {
    cursor: pointer;
    gap: 7px;
}

.topbar-nav-trigger span {
    color: rgba(223, 234, 249, 0.8);
    font-size: 12px;
    transition: transform 0.15s ease;
}

.topbar-nav-group[open] .topbar-nav-trigger span {
    transform: rotate(180deg);
}

.topbar-nav-dropdown {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    min-width: 190px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1002;
}

.topbar-nav-dropdown a {
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
}

.topbar-nav-dropdown a:hover,
.topbar-nav-dropdown a.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.topbar-user-menu {
    flex: 0 0 auto;
    position: relative;
    z-index: 1001;
}

.topbar-user-menu summary {
    list-style: none;
}

.topbar-user-menu summary::-webkit-details-marker {
    display: none;
}

.topbar-user {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 176px;
    padding: 8px 12px;
}

.topbar-user__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.topbar-user strong {
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.topbar-user__copy span {
    color: rgba(223, 234, 249, 0.74);
    font-size: 11px;
    font-weight: 700;
}

.topbar-user__chevron {
    color: rgba(223, 234, 249, 0.8);
    flex: 0 0 auto;
    font-size: 13px;
    transition: transform 0.15s ease;
}

.topbar-user-menu[open] .topbar-user__chevron {
    transform: rotate(180deg);
}

.topbar-user-dropdown {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    min-width: 190px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1002;
}

.topbar-user-dropdown a {
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
}

.topbar-user-dropdown a:hover,
.topbar-user-dropdown a.active {
    background: var(--brand-soft);
    color: var(--brand);
}

.shell {
    margin: 0 auto;
    max-width: 1380px;
    padding: 26px 24px 40px;
}

.shell-auth {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 74px);
}

.login-shell {
    margin: 0;
    max-width: none;
}

.page-hero {
    align-items: stretch;
    background: linear-gradient(120deg, #090909 0%, #161016 65%, #4d1830 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
    margin-bottom: 18px;
    overflow: hidden;
    padding: 26px 28px;
    position: relative;
}

.page-hero::before {
    background: url("luka-poster.png") no-repeat right 26px bottom -10px / auto 190px;
    content: "";
    inset: 0;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.page-hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.page-hero--compact {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 24px;
    padding-right: clamp(24px, 20vw, 300px);
}

.page-hero__content,
.page-hero__art {
    position: relative;
    z-index: 1;
}

.page-hero__eyebrow {
    color: rgba(236, 243, 255, 0.74);
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-hero__title {
    font-size: 31px;
    line-height: 1.05;
    margin: 0;
}

.page-hero__text {
    color: rgba(241, 247, 255, 0.82);
    font-size: 14px;
    margin: 10px 0 0;
    max-width: 760px;
}

.hero-pill-row,
.hero-kpi-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-pill,
.hero-kpi {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    min-height: 34px;
    padding: 8px 12px;
}

.hero-kpi {
    align-items: flex-start;
    border-radius: 8px;
    display: grid;
    gap: 2px;
    min-height: auto;
    min-width: 118px;
    padding: 11px 13px;
}

.hero-kpi span {
    color: rgba(225, 236, 252, 0.72);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-kpi strong {
    font-size: 22px;
    line-height: 1.05;
}

.page-hero__art {
    align-items: flex-end;
    display: flex;
    justify-content: flex-end;
}

.page-hero__art img {
    filter: drop-shadow(0 18px 32px rgba(5, 22, 47, 0.28));
    margin-right: -8px;
    max-height: 260px;
    object-fit: contain;
}

.page-index .page-hero {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
    padding: 22px 28px;
}

.page-index .page-hero::before {
    display: block;
}

.page-index .page-hero__art {
    display: none;
}

.page-index .accordion-card > summary {
    min-height: 50px;
    padding: 12px 16px;
}

.page-index .accordion-body {
    padding: 14px 16px 16px;
}

.auth-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 430px);
    width: min(1180px, 100%);
}

.auth-hero {
    background: linear-gradient(135deg, #090909 0%, #141014 68%, #351422 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    overflow: hidden;
    padding: 28px;
}

.auth-hero__copy h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.02;
    margin: 0;
}

.auth-hero__copy p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    margin: 12px 0 0;
    max-width: 480px;
}

.auth-hero__copy .page-hero__eyebrow {
    color: var(--brand);
}

.auth-points {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.auth-point {
    align-items: start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: grid;
    gap: 3px;
    grid-template-columns: 12px minmax(0, 1fr);
    padding: 12px 14px;
}

.auth-point::before {
    background: linear-gradient(180deg, var(--brand), var(--accent));
    border-radius: 999px;
    content: "";
    display: block;
    height: 12px;
    margin-top: 4px;
    width: 12px;
}

.auth-point strong {
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.auth-point span {
    color: rgba(255, 255, 255, 0.66);
    display: block;
    font-size: 13px;
}

.auth-hero__visual {
    align-items: center;
    display: flex;
    justify-content: center;
}

.auth-hero__visual img {
    filter: drop-shadow(0 16px 32px rgba(20, 44, 88, 0.16));
    max-height: 100%;
    object-fit: contain;
}

.auth-card {
    align-self: center;
    padding: 26px 24px;
}

.auth-card h2 {
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.auth-card h1 {
    margin-bottom: 8px;
}

.auth-card p {
    color: var(--muted);
    margin: 0 0 18px;
}

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

.grid {
    display: grid;
    gap: 14px;
}

.grid > * {
    min-width: 0;
}

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

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

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

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

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

.section-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-heading h1 {
    font-size: 24px;
    line-height: 1.12;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 4px 0 0;
}

.dashboard-jumpbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 18px;
    padding: 10px;
}

.dashboard-jumpbar a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--brand);
    display: inline-flex;
    font-size: 12px;
    min-height: 32px;
    padding: 7px 10px;
}

.dashboard-jumpbar a:hover {
    background: var(--brand-soft);
}

.section-kicker {
    color: var(--brand);
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.commercial-control {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: 18px;
}

.commercial-control__header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.commercial-control__header h2 {
    color: #102544;
    font-size: 21px;
    line-height: 1.2;
    margin: 0;
}

.commercial-control__header p {
    color: var(--muted);
    margin: 4px 0 0;
    max-width: 760px;
}

.commercial-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    min-height: 32px;
    padding: 7px 11px;
    text-transform: uppercase;
}

.commercial-status--ok {
    background: var(--success-soft);
    color: var(--success);
}

.commercial-status--alerta {
    background: var(--warning-soft);
    color: var(--warning);
}

.commercial-status--bloqueio {
    background: var(--danger-soft);
    color: var(--danger);
}

.commercial-control__body {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

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

.readiness-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line-strong);
    border-radius: 8px;
    min-width: 0;
    padding: 14px;
}

.readiness-card--ok {
    border-left-color: var(--success);
}

.readiness-card--alerta {
    border-left-color: var(--warning);
}

.readiness-card--bloqueio {
    border-left-color: var(--danger);
}

.readiness-card__top {
    align-items: center;
    display: flex;
    gap: 8px;
}

.readiness-card__top h3 {
    color: #102544;
    font-size: 15px;
    line-height: 1.25;
    margin: 0;
}

.readiness-dot {
    background: var(--line-strong);
    border-radius: 999px;
    flex: 0 0 10px;
    height: 10px;
    width: 10px;
}

.readiness-card--ok .readiness-dot {
    background: var(--success);
}

.readiness-card--alerta .readiness-dot {
    background: var(--warning);
}

.readiness-card--bloqueio .readiness-dot {
    background: var(--danger);
}

.readiness-card p {
    color: var(--muted);
    margin: 8px 0 0;
}

.readiness-list {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
}

.readiness-list div {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid #edf2f8;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-height: 34px;
    padding: 7px 9px;
}

.readiness-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

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

.next-actions {
    background: linear-gradient(180deg, #102544, #0d1c31);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(12, 29, 61, 0.16);
    color: #fff;
    padding: 15px;
}

.next-actions .section-kicker {
    color: rgba(228, 239, 255, 0.72);
}

.next-actions__header h3 {
    color: #fff;
    font-size: 17px;
    line-height: 1.2;
    margin: 0;
}

.next-actions__list {
    display: grid;
    gap: 9px;
    margin-top: 12px;
}

.next-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f3f8ff;
    display: grid;
    gap: 4px;
    padding: 11px 12px;
}

.next-action:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.next-action strong {
    color: #fff;
    display: block;
    font-size: 13px;
    line-height: 1.2;
}

.next-action span {
    color: rgba(230, 240, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.next-action--bloqueio {
    border-color: rgba(253, 162, 155, 0.38);
}

.next-action--alerta {
    border-color: rgba(254, 200, 75, 0.36);
}

.next-action--ok {
    border-color: rgba(171, 239, 198, 0.34);
}

.pilot-owners .section-title-row {
    align-items: flex-start;
}

.pilot-owners .section-title-row p {
    color: var(--muted);
    margin: 4px 0 0;
}

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

.pilot-owner-card {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
}

.pilot-owner-card > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pilot-owner-card strong {
    color: #102544;
    font-size: 17px;
    line-height: 1.2;
}

.pilot-owner-card small,
.pilot-owner-card p {
    color: var(--muted);
    line-height: 1.4;
}

.pilot-owner-card dl {
    display: grid;
    gap: 6px;
    margin: 4px 0;
}

.pilot-owner-card dl div {
    min-width: 0;
}

.pilot-owner-card dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.pilot-owner-card dd {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    min-width: 0;
    padding: 18px;
    position: relative;
}

.card h1,
.card h2,
.card h3 {
    color: #102544;
    margin: 0 0 12px;
}

.card h1 {
    font-size: 21px;
    line-height: 1.25;
}

.card h2 {
    font-size: 17px;
    line-height: 1.25;
}

.card h3 {
    font-size: 14px;
}

.metric {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    padding: 15px 16px 14px;
    position: relative;
}

.metric::before {
    background: linear-gradient(180deg, var(--brand), #3675d1);
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 4px;
}

.metric span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    margin-top: 6px;
}

.metric-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.metric-list span {
    background: #f4f8fd;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #233753;
    font-size: 13px;
    padding: 8px 10px;
}

.metric-link {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.metric-link:hover {
    border-color: rgba(17, 74, 157, 0.28);
    box-shadow: var(--shadow-soft);
    color: inherit;
    transform: translateY(-1px);
}

.code-block {
    background: #0f1f35;
    border-radius: 8px;
    color: #f7fbff;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 12px;
    overflow-wrap: anywhere;
    padding: 12px 14px;
}

.danger-metric::before {
    background: linear-gradient(180deg, var(--accent), var(--danger));
}

.funnel-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.funnel-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.86));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
}

.funnel-item span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.funnel-item strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    margin-top: 5px;
}

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

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

form {
    margin: 0;
}

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

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    color: #314966;
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 5px;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--text);
    display: block;
    font: inherit;
    min-height: 36px;
    padding: 7px 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(17, 74, 157, 0.14);
    outline: 0;
}

textarea {
    min-height: 86px;
    resize: vertical;
}

.agenda-options-form {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.agenda-options-form .form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.agenda-options-form__secondary {
    min-width: 132px;
    width: 132px;
}

button,
.button {
    align-items: center;
    background: linear-gradient(135deg, #ff5c91, #ef3472);
    border: 0;
    border-radius: 6px;
    box-shadow: 0 10px 18px rgba(255, 79, 135, 0.24);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-height: 32px;
    min-width: 86px;
    padding: 7px 11px;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

button:hover,
.button:hover {
    background: linear-gradient(135deg, #ef3472, #c91f58);
    color: #fff;
}

button:focus-visible,
.button:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 79, 135, 0.25);
    outline: 0;
}

button:active,
.button:active {
    transform: translateY(1px);
}

button.secundario,
.button.secundario,
.secondary-button {
    background: linear-gradient(135deg, #42556f, #556c88);
    box-shadow: none;
}

button.secundario:hover,
.button.secundario:hover,
.secondary-button:hover {
    background: linear-gradient(135deg, #36465d, #4c617b);
}

button.perigo {
    background: linear-gradient(135deg, var(--accent), var(--danger));
    min-width: 82px;
}

button.perigo:hover {
    background: linear-gradient(135deg, #d6361a, #8d2018);
}

.checkline {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.checkline input {
    display: inline-block;
    min-height: auto;
    width: auto;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.pagination-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 12px 0;
}

.pagination-bar .muted {
    margin: 0;
}

.form-note {
    margin: 0;
}

.toolbar {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.toolbar > div {
    min-width: 180px;
}

.report-toolbar {
    padding: 14px 16px;
}

.report-filter {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 180px 180px minmax(0, 1fr);
}

.report-filter .actions {
    align-items: center;
    margin-top: 0;
}

.audit-filter {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: 150px 150px 170px 220px 200px minmax(220px, 1fr) auto;
}

.audit-filter .actions {
    align-items: center;
    margin-top: 0;
}

.audit-origin-grid .metric {
    min-height: 86px;
}

.audit-detail {
    background: #f7faff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #243b5a;
    font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    max-height: 150px;
    overflow: auto;
    padding: 9px 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.page-relatorios .hero-kpi {
    min-width: 150px;
}

.page-relatorios .table-panel {
    max-height: 560px;
}

.table-wrap {
    margin: 0 -6px;
    overflow: auto;
    padding: 0 6px;
}

.table-check {
    display: inline-block;
    min-height: auto;
    width: auto;
}

.alerta {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    padding: 11px 13px;
}

.alerta.sucesso {
    background: var(--success-soft);
    border: 1px solid #abefc6;
    color: var(--success);
}

.alerta.erro {
    background: var(--danger-soft);
    border: 1px solid #fda29b;
    color: #7a271a;
}

table {
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid #e8eef6;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: normal;
}

th {
    background: #f4f8fe;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

tbody tr:hover td {
    background: #f9fbff;
}

td > a[href*="editar_curso"],
.table-panel td > a.button,
.table-panel td > a[href],
.table-panel td button,
.table-card td button,
.table-card td > a[href] {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 6px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 13px;
    justify-content: center;
    line-height: 1;
    min-height: 32px;
    min-width: 104px;
    padding: 7px 11px;
    width: 104px;
}

td > a[href*="editar_curso"]:hover,
.table-panel td > a.button:hover,
.table-panel td > a[href]:hover,
.table-card td > a[href]:hover {
    background: #bfdbfe;
}

.table-panel td button,
.table-card td button {
    box-shadow: none;
    font-size: 13px;
}

.table-panel td button.perigo,
.table-card td button.perigo {
    min-width: 104px;
}

.inline-form {
    display: inline-flex;
}

.inline-form + .inline-form,
td > a + .inline-form {
    margin-left: 6px;
}

.template-status-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.template-status-form select {
    min-height: 32px;
    width: 122px;
}

.template-status-form button {
    min-width: 86px;
}

.action-stack {
    display: grid;
    gap: 6px;
    grid-template-columns: 104px;
    max-width: 104px;
}

.action-stack button {
    font-size: 12px;
    min-height: 30px;
    min-width: 104px;
    padding: 6px 8px;
    width: 104px;
}

.muted {
    color: var(--muted);
}

.badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    min-height: 22px;
    padding: 5px 8px;
    text-transform: uppercase;
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-info {
    background: var(--brand-soft);
    color: var(--brand);
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-muted {
    background: #eef2f6;
    color: #475467;
}

.badge-admin {
    background: #ede9fe;
    color: #5b21b6;
}

.erro-texto {
    color: var(--danger);
    display: inline-block;
    font-size: 12px;
    margin-top: 4px;
}

.diagnostic-summary {
    margin: 6px 0 0;
}

.technical-detail {
    background: #f2f4f7;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #344054;
    display: block;
    font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
    max-width: 360px;
    padding: 8px;
    white-space: normal;
    word-break: break-word;
}

.preview {
    background: #0b1620;
    border: 1px solid #18344a;
    border-radius: 8px;
    color: #d8f3ff;
    font-family: "Cascadia Code", Consolas, "SFMono-Regular", monospace;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 0;
    margin-top: 12px;
    overflow-x: auto;
    padding: 14px;
    white-space: pre-wrap;
}

.section {
    margin-top: 14px;
}

.accordion-card {
    overflow: hidden;
    padding: 0;
}

.accordion-card > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    min-height: 58px;
    padding: 15px 18px;
}

.accordion-card > summary::-webkit-details-marker {
    display: none;
}

.accordion-card > summary span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.accordion-card > summary strong {
    color: #102544;
    font-size: 16px;
    line-height: 1.2;
}

.accordion-card > summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.accordion-card > summary::after {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand);
    content: "Abrir";
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.accordion-card[open] > summary {
    border-bottom: 1px solid var(--line);
}

.accordion-card[open] > summary::after {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    content: "Fechar";
}

.accordion-body {
    padding: 16px 18px 18px;
}

.table-card {
    display: flex;
    flex-direction: column;
}

.table-card h2 {
    flex: 0 0 auto;
}

.table-panel {
    margin: 0 -4px;
    max-height: 460px;
    max-width: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 4px 2px;
    width: 100%;
}

.table-panel--medium {
    max-height: 520px;
}

.table-panel--short {
    max-height: 240px;
}

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

.table-panel .inline-form,
.table-card .inline-form {
    display: flex;
    width: 104px;
}

.table-panel .inline-form + .inline-form,
.table-card .inline-form + .inline-form,
.table-panel td > a[href] + .inline-form,
.table-card td > a[href] + .inline-form {
    margin-left: 0;
    margin-top: 6px;
}

.table-panel th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.conversation-filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) 220px auto auto;
}

.conversation-filter-check {
    min-height: 36px;
}

.conversation-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: 310px minmax(0, 1fr) 300px;
}

.conversation-list,
.conversation-thread,
.conversation-sidebar {
    min-height: 620px;
}

.conversation-list-items {
    display: grid;
    gap: 8px;
    max-height: 720px;
    overflow: auto;
    padding-right: 2px;
}

.conversation-list-item {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.94));
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(18, 35, 61, 0.05);
    color: var(--text);
    display: grid;
    gap: 4px;
    padding: 11px;
}

.conversation-list-item:hover,
.conversation-list-item.active {
    background: #eef5ff;
    border-color: #a9c3ee;
    color: var(--text);
}

.conversation-list-title,
.conversation-meta {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.conversation-list-title em {
    align-items: center;
    background: var(--danger);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    justify-content: center;
    min-height: 20px;
    min-width: 20px;
    padding: 3px 6px;
}

.conversation-last {
    color: #344054;
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.conversation-meta small {
    color: var(--muted);
    font-size: 11px;
}

.conversation-thread {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
    display: flex;
    flex-direction: column;
    padding: 0;
}

.conversation-thread-header {
    align-items: center;
    background: linear-gradient(180deg, rgba(17, 74, 157, 0.04), rgba(255, 255, 255, 0));
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.conversation-thread-header h2 {
    margin-bottom: 2px;
}

.conversation-thread-header p {
    color: var(--muted);
    margin: 0;
}

.conversation-thread-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.message-stream {
    background:
        linear-gradient(180deg, rgba(240, 246, 255, 0.9), rgba(244, 248, 254, 0.92));
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    max-height: 560px;
    overflow: auto;
    padding: 18px;
}

.message-bubble {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 18px rgba(15, 34, 62, 0.05);
    max-width: min(78%, 680px);
    padding: 11px 12px;
}

.message-bubble.inbound {
    align-self: flex-start;
    background: #fff;
}

.message-bubble.outbound {
    align-self: flex-end;
    background: #e8f1ff;
    border-color: #bfd6fb;
}

.message-body {
    color: #101828;
    line-height: 1.45;
}

.message-bubble footer {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 7px;
}

.reply-box {
    border-top: 1px solid var(--line);
    padding: 16px 18px 18px;
}

.reply-box textarea {
    min-height: 92px;
}

.quick-replies {
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 11px;
}

.quick-replies__top {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.quick-replies__top label {
    margin: 0;
}

.quick-reply-controls {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 8px;
}

.quick-reply-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.quick-reply-button {
    font-size: 12px;
    min-width: auto;
}

.reply-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 10px;
}

.lead-details {
    display: grid;
    gap: 7px;
    margin: 0 0 14px;
}

.lead-details dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.lead-details dd {
    margin: 0 0 4px;
}

.side-note {
    background: var(--brand-soft);
    border: 1px solid #bfd6fb;
    border-radius: 8px;
    color: var(--brand);
    font-weight: 800;
    margin-bottom: 14px;
    padding: 10px;
}

.danger-note {
    background: var(--danger-soft);
    border-color: #fda29b;
    color: var(--danger);
}

.tag-list,
.conversation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.conversation-actions button {
    min-width: 92px;
}

.event-list {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-list li {
    border-left: 3px solid var(--line-strong);
    padding-left: 9px;
}

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

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

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

.lead-detail-header h2 {
    margin: 8px 0 4px;
}

.lead-detail-header p {
    color: var(--muted);
    margin: 0;
}

.lead-detail-header__actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

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

.lead-kpi-grid .metric {
    min-height: 88px;
}

.lead-detail-layout {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
}

.lead-detail-thread .message-stream {
    max-height: 720px;
}

.lead-detail-sidebar {
    display: grid;
    gap: 14px;
}

.lead-action-grid {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-action-grid form,
.lead-action-grid button {
    width: 100%;
}

.lead-tag-form,
.lead-note-form {
    display: grid;
    gap: 8px;
}

.lead-tag-form {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}

.lead-return-action {
    margin-bottom: 10px;
}

.lead-return-action button,
.lead-note-form button {
    width: 100%;
}

.lead-notes-list {
    margin-top: 12px;
}

button:disabled,
button:disabled:hover {
    background: #d0d5dd;
    box-shadow: none;
    color: #667085;
    cursor: not-allowed;
    transform: none;
}

.playbook-safety {
    background: var(--warning-soft);
    border: 1px solid #fedf89;
    border-radius: 8px;
    color: #7a4b00;
    display: grid;
    gap: 4px;
    padding: 10px 12px;
}

.playbook-safety strong,
.playbook-safety span {
    display: block;
}

.playbook-text-preview {
    max-width: 520px;
    white-space: normal;
}

.queue-filters {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) 220px auto auto auto;
}

.queue-board {
    display: grid;
    gap: 14px;
}

.queue-card {
    border-left: 5px solid var(--line-strong);
}

.queue-card--critico {
    border-left-color: var(--danger);
}

.queue-card--alerta {
    border-left-color: var(--warning);
}

.queue-card--info {
    border-left-color: var(--brand);
}

.queue-card__header {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.queue-card__header h2 {
    margin: 5px 0 3px;
}

.queue-card__header p {
    color: var(--muted);
    margin: 0;
}

.queue-card__badges {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.queue-priority {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    min-height: 24px;
    padding: 6px 9px;
    text-transform: uppercase;
}

.queue-priority--critico {
    background: var(--danger-soft);
    color: var(--danger);
}

.queue-priority--alerta {
    background: var(--warning-soft);
    color: var(--warning);
}

.queue-priority--info {
    background: var(--brand-soft);
    color: var(--brand);
}

.queue-priority--neutro {
    background: #eef2f6;
    color: #475467;
}

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

.queue-signal-grid > div {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    padding: 10px;
}

.queue-signal-grid span,
.queue-message span,
.queue-note strong {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.queue-signal-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.queue-message {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 11px 12px;
}

.queue-message p {
    color: #172b4d;
    margin: 5px 0;
}

.queue-message strong {
    color: var(--danger);
    font-size: 12px;
}

.queue-note {
    background: #f8fafc;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
}

.queue-note p {
    margin: 5px 0;
}

.queue-note span {
    color: var(--muted);
    font-size: 12px;
}

.queue-sla-history {
    color: #b42318;
    display: block;
    font-weight: 700;
    margin-top: 3px;
}

.queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.queue-actions button,
.queue-actions .button {
    min-width: 108px;
}

.queue-note-form {
    align-items: end;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 1fr) 220px auto;
    padding-top: 12px;
}

.queue-note-form textarea {
    min-height: 74px;
}

.demo-notes {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.demo-notes li {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #253b59;
    display: flex;
    gap: 8px;
    padding: 9px 10px;
}

.demo-notes li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.demo-steps {
    display: grid;
    gap: 12px;
}

.demo-step {
    display: grid;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr);
}

.demo-step__number {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), #1b62c9);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 18px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.demo-step p {
    margin: 0 0 7px;
}

.demo-step .button {
    margin-top: 4px;
}

.empty-state {
    margin: auto;
    max-width: 340px;
    padding: 32px;
    text-align: center;
}

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

@media (max-width: 860px) {
    .auth-layout,
    .auth-hero,
    .page-hero,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .grid-6,
    .form-grid,
    .conversation-filters,
    .quick-reply-controls,
    .queue-filters,
    .queue-note-form,
    .queue-signal-grid,
    .audit-filter,
    .report-filter,
    .conversation-layout,
    .lead-kpi-grid,
    .lead-detail-layout,
    .lead-action-grid {
        grid-template-columns: 1fr;
    }

    .page-hero__title,
    .auth-hero__copy h1 {
        font-size: 28px;
    }

    .page-hero::before {
        background-position: right 14px bottom -6px;
        background-size: auto 170px;
        opacity: 1;
    }

    .page-hero--compact {
        padding-right: min(38vw, 150px);
    }

    .page-hero__art {
        justify-content: center;
    }

    .page-hero__art img {
        margin-right: 0;
        max-height: 220px;
    }

    .conversation-list,
    .conversation-thread,
    .conversation-sidebar {
        min-height: auto;
    }

    .queue-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .lead-detail-header,
    .conversation-thread-header {
        align-items: stretch;
        flex-direction: column;
    }

    .lead-detail-header__actions,
    .hero-actions,
    .conversation-thread-actions {
        justify-content: flex-start;
    }

    .queue-card__badges {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .message-bubble {
        max-width: 94%;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
    }

    .topbar-meta {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .topbar-nav {
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
    }

    .topbar-nav > a,
    .topbar-nav-group {
        width: 100%;
    }

    .topbar-nav-trigger {
        justify-content: space-between;
        width: 100%;
    }

    .topbar-nav-dropdown {
        box-shadow: none;
        margin-top: 6px;
        position: static;
        width: 100%;
    }

    .topbar-user-menu,
    .topbar-user {
        min-width: 0;
        width: 100%;
    }

    .topbar-user-dropdown {
        box-shadow: none;
        margin-top: 6px;
        position: static;
        width: 100%;
    }

    .shell {
        padding: 16px;
    }

    .page-index .page-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .page-index .page-hero__art {
        display: none;
    }

    .page-index .page-hero__title {
        font-size: 26px;
    }

    .dashboard-jumpbar {
        margin-top: 0;
    }

    .commercial-control__header {
        align-items: stretch;
        flex-direction: column;
    }

    .commercial-status {
        justify-content: center;
        width: 100%;
    }

    .commercial-control__body,
    .readiness-grid,
    .pilot-owners-grid {
        grid-template-columns: 1fr;
    }

    .accordion-card > summary {
        align-items: flex-start;
    }

    .accordion-card > summary::after {
        margin-top: 1px;
    }

    .table-panel {
        overflow-x: hidden;
    }

    .table-panel table,
    .table-panel thead,
    .table-panel tbody,
    .table-panel tr,
    .table-panel th,
    .table-panel td {
        display: block;
        width: 100%;
    }

    .table-panel thead {
        display: none;
    }

    .table-panel tbody {
        display: grid;
        gap: 10px;
    }

    .table-panel tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
    }

    .table-panel td {
        align-items: start;
        border-bottom: 1px solid #edf2f8;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
        padding: 9px 10px;
    }

    .table-panel td:last-child {
        border-bottom: 0;
    }

    .table-panel td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .table-panel tbody tr:hover td {
        background: transparent;
    }

    .table-panel .action-stack {
        grid-template-columns: repeat(2, 104px);
        max-width: 214px;
    }

    .demo-step {
        grid-template-columns: 1fr;
    }
}
