:root {
    --bg-app: #eef3fb;
    --bg-card: #ffffff;
    --primary: #1e3a8a;
    --primary-dark: #15306f;
    --primary-soft: #dbe7ff;
    --success: #169c5f;
    --text-main: #162033;
    --text-muted: #677289;
    --border-soft: #e2e8f0;
    --shadow-main: 0 18px 50px rgba(30, 58, 138, 0.14);
}

html[data-theme="dark"] {
    --bg-app: #0b1220;
    --bg-card: #111b2d;
    --primary: #7aa2ff;
    --primary-dark: #5f87e9;
    --primary-soft: rgba(122, 162, 255, 0.16);
    --success: #3fd08a;
    --text-main: #e6edf9;
    --text-muted: #9aa9c3;
    --border-soft: #2b3b57;
    --shadow-main: 0 24px 60px rgba(2, 8, 23, 0.42);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-app) 100%);
    color: var(--text-main);
}

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

.app-layout-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-layout-main {
    flex: 1 0 auto;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 26%),
        linear-gradient(180deg, #0f172a 0%, var(--bg-app) 100%);
}

.global-shell-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 1rem 1rem 0;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(238, 243, 251, 0.92) 100%);
    backdrop-filter: blur(14px);
}

html[data-theme="dark"] .global-shell-header {
    background: linear-gradient(180deg, rgba(10, 15, 27, 0.95) 0%, rgba(11, 18, 32, 0.9) 100%);
}

.global-shell-inner {
    width: min(100%, 1360px);
    margin: 0 auto;
    padding: 0.55rem 1rem 1rem;
    border: 1px solid rgba(115, 145, 203, 0.28);
    border-radius: 24px;
    background: linear-gradient(180deg, #eef5ff 0%, #dce9ff 100%);
    box-shadow: var(--shadow-main);
}

html[data-theme="dark"] .global-shell-inner {
    border-color: rgba(111, 144, 212, 0.24);
    background: linear-gradient(180deg, #253d6c 0%, #2c4a80 100%);
}

.global-brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.global-brand-wrap,
.global-brand-logo {
    display: block;
}

.global-brand-wrap {
    width: 290px;
    min-width: 290px;
    height: 82px;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(154, 180, 230, 0.38);
    border-radius: 22px;
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.12);
}

html[data-theme="dark"] .global-brand-wrap {
    background: rgba(245, 248, 255, 0.96);
    border-color: rgba(174, 197, 245, 0.28);
}

.global-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.global-brand-logo-product {
    filter: drop-shadow(0 8px 18px rgba(7, 16, 39, 0.18));
}

.global-top-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.global-top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(30, 58, 138, 0.11);
    color: #26437b;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.global-top-nav a.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 10px 18px rgba(30, 58, 138, 0.12);
}

html[data-theme="dark"] .global-top-nav a {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(230, 237, 249, 0.82);
}

html[data-theme="dark"] .global-top-nav a.active {
    background: rgba(122, 162, 255, 0.18);
    color: #dfe9ff;
}

.shell-menu {
    margin-top: 1rem;
}

.shell-menu-mobile {
    display: none;
}

.shell-menu-toggle {
    display: none;
}

.theme-switcher-shell {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(161, 183, 226, 0.6);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.12);
}

.theme-switcher-shell .theme-switcher-label {
    color: #5f6f8d;
}

.theme-switcher-shell .theme-switcher-button {
    color: #5e6e8a;
}

.theme-switcher-shell .theme-switcher-button:hover {
    background: rgba(30, 58, 138, 0.08);
}

.theme-switcher-shell .theme-switcher-button.is-active {
    background: #ffffff;
    color: var(--primary);
}

html[data-theme="dark"] .theme-switcher-shell {
    background: rgba(12, 20, 36, 0.34);
    border-color: rgba(173, 197, 249, 0.18);
    box-shadow: none;
}

html[data-theme="dark"] .theme-switcher-shell .theme-switcher-label,
html[data-theme="dark"] .theme-switcher-shell .theme-switcher-button {
    color: rgba(230, 237, 249, 0.86);
}

html[data-theme="dark"] .theme-switcher-shell .theme-switcher-button:hover {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .theme-switcher-shell .theme-switcher-button.is-active {
    background: rgba(255, 255, 255, 0.96);
    color: #17336f;
}

.global-logout-form {
    margin: 0;
}

.global-logout-form-nav {
    display: flex;
    margin-left: auto;
}

.global-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.15rem;
    border: 1px solid rgba(58, 94, 166, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    color: #26437b;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.global-logout-button-nav {
    min-height: 46px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.global-logout-button:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(58, 94, 166, 0.3);
    transform: translateY(-1px);
}

html[data-theme="dark"] .global-logout-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.14);
    color: #eef4ff;
}

html[data-theme="dark"] .global-logout-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.global-shell-footer {
    padding: 0 1rem 1rem;
}

.global-shell-footer-inner {
    width: min(100%, 1360px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.25rem;
    color: #4f6692;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.global-footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.1rem 0.2rem;
}

.global-footer-logo {
    width: 168px;
    max-width: 42vw;
    height: auto;
    object-fit: contain;
}

.global-footer-logo-dark {
    display: none;
}

html[data-theme="dark"] .global-shell-footer-inner {
    color: rgba(230, 237, 249, 0.78);
}

html[data-theme="dark"] .global-footer-logo-wrap {
    min-height: 56px;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

html[data-theme="dark"] .global-footer-logo-light {
    display: none;
}

html[data-theme="dark"] .global-footer-logo-dark {
    display: block;
    width: 145px;
    filter: drop-shadow(0 8px 18px rgba(7, 16, 39, 0.2));
}

button,
input {
    font: inherit;
}

.theme-switcher-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.theme-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
}

.theme-switcher-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.theme-switcher-options {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.theme-switcher-button {
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-switcher-button:hover {
    transform: translateY(-1px);
    background: rgba(30, 58, 138, 0.08);
    color: var(--text-main);
}

.theme-switcher-button.is-active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(30, 58, 138, 0.18);
}

.theme-switcher-button i {
    font-size: 0.95rem;
}

html[data-theme="dark"] .theme-switcher {
    border-color: rgba(74, 96, 137, 0.7);
    background: rgba(17, 27, 45, 0.88);
}

html[data-theme="dark"] .theme-switcher-button:hover {
    background: rgba(122, 162, 255, 0.12);
}

html[data-theme="dark"] .content-section-card,
html[data-theme="dark"] .home-hero-card,
html[data-theme="dark"] .home-account-card,
html[data-theme="dark"] .profile-card-panel,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .list-panel,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .helper-card,
html[data-theme="dark"] .landing-section-card,
html[data-theme="dark"] .landing-dashboard-preview,
html[data-theme="dark"] .auth-card {
    background: rgba(17, 27, 45, 0.88);
    border-color: rgba(74, 96, 137, 0.42);
    box-shadow: var(--shadow-main);
}

html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .ghost-button-link,
html[data-theme="dark"] .landing-secondary-cta {
    background: rgba(122, 162, 255, 0.1);
    color: #dfe9ff;
}

html[data-theme="dark"] .agenda-card,
html[data-theme="dark"] .recent-card,
html[data-theme="dark"] .landing-doc-card,
html[data-theme="dark"] .landing-info-card,
html[data-theme="dark"] .landing-step-card,
html[data-theme="dark"] .landing-preview-stat,
html[data-theme="dark"] .landing-pill {
    background: rgba(12, 20, 36, 0.9);
    border-color: rgba(74, 96, 137, 0.5);
    color: var(--text-main);
}

html[data-theme="dark"] .detail-block,
html[data-theme="dark"] .config-hint,
html[data-theme="dark"] .empty-state {
    background: rgba(12, 20, 36, 0.82);
    border-color: rgba(74, 96, 137, 0.45);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
    background: rgba(12, 20, 36, 0.92);
    border-color: rgba(74, 96, 137, 0.55);
    color: var(--text-main);
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
    color: #7f90ad;
}

html[data-theme="dark"] .landing-doc-card strong,
html[data-theme="dark"] .landing-info-card strong,
html[data-theme="dark"] .landing-step-card strong,
html[data-theme="dark"] .recent-card strong,
html[data-theme="dark"] .agenda-body h3,
html[data-theme="dark"] .section-header h2 {
    color: var(--text-main);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.phone-frame {
    position: relative;
    width: min(100%, 1380px);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 38px;
    box-shadow: var(--shadow-main);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.hero-panel {
    background: linear-gradient(180deg, #274d9b 0%, var(--primary) 100%);
    padding: 1.5rem 1.35rem 1.65rem;
    color: #fff;
}

.hero-alert {
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-alert-success {
    background: rgba(22, 156, 95, 0.18);
}

.hero-alert-error {
    background: rgba(180, 35, 24, 0.22);
}

.hero-alert-warning {
    background: rgba(251, 191, 36, 0.2);
}

.hero-top,
.section-header,
.agenda-actions,
.brand-block,
.profile-card {
    display: flex;
    align-items: center;
}

.hero-top,
.section-header {
    justify-content: space-between;
}

.hero-top {
    justify-content: center;
    gap: 1rem;
}

.brand-block,
.profile-card {
    gap: 0.85rem;
}

.brand-logo-wrap {
    width: 220px;
    height: 68px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.65rem 0.85rem;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo-white {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
}

.notification-btn,
.icon-button,
.ghost-button,
.primary-button,
.fab-button {
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notification-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.profile-card {
    margin-top: 1.3rem;
    align-items: flex-start;
}

.avatar-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 1.2rem;
}

.profile-card h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.profile-card p,
.text-muted-soft {
    margin: 0;
}

.text-muted-soft,
.profile-card p {
    color: rgba(255, 255, 255, 0.78);
}

.seller-meta {
    display: block;
    margin-top: 0.18rem;
    color: rgba(255, 255, 255, 0.72);
}

.auth-strip {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.auth-button,
.auth-button-secondary,
.primary-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
}

.auth-button {
    padding: 0.75rem 0.95rem;
    background: #ffffff;
    color: var(--primary);
}

.auth-button-secondary {
    padding: 0.7rem 0.95rem;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.dashboard-filter-form {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 0.75rem;
}

.compact-field {
    display: grid;
    gap: 0.3rem;
}

.compact-field span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.compact-field select {
    width: 100%;
    border: 0;
    outline: none;
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    font: inherit;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-main);
    min-height: 50px;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.filter-reset-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 1.1rem 1.1rem 0;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.1rem 0.9rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
    min-height: 118px;
}

.stat-card strong {
    display: block;
    font-size: 1.45rem;
    line-height: 1.1;
}

.stat-card span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.stat-card-primary strong {
    color: var(--primary);
}

.stat-card-success strong {
    color: var(--success);
}

.stat-card-warning strong {
    color: #946200;
}

.pipeline-grid,
.quick-actions-grid {
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem 1.1rem 0;
}

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

.pipeline-card,
.quick-action-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.pipeline-card {
    padding: 1rem 0.9rem;
    text-align: center;
    min-height: 96px;
}

.pipeline-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pipeline-card strong {
    display: block;
    margin-top: 0.3rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.quick-actions-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0.85rem;
    padding: 0;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 124px;
}

.quick-action-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #edf3ff;
    color: var(--primary);
}

.content-section {
    padding: 1.15rem 1rem 0;
}

.content-section-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
}

.home-hero-card {
    padding: 1.15rem 1rem 0;
}

.home-account-card {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(30, 58, 138, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.home-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.home-account-row + .home-account-row {
    border-top: 1px solid var(--border-soft);
}

.home-account-row span {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.home-account-row strong {
    text-align: right;
    font-size: 0.92rem;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.page-header-compact {
    margin-bottom: 0;
}

.page-shell-top-spaced {
    padding-top: 1.25rem;
}

.stats-grid-home,
.stats-grid-analytics {
    padding-left: 0;
    padding-right: 0;
}

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

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

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

.dashboard-filter-form-panel {
    margin-top: 1rem;
}

.filter-reset-link-dark {
    color: var(--primary);
}

.summary-grid-compact {
    margin-bottom: 1rem;
}

.team-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.form-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}

.form-side-panel {
    display: grid;
    gap: 1rem;
}

.helper-card {
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(30, 58, 138, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.helper-card h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    color: var(--text-main);
}

.helper-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.15rem 1rem 0;
}

.section-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.section-header p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ghost-button {
    background: #edf3ff;
    color: var(--primary);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.ghost-button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3ff;
    color: var(--primary);
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.agenda-list,
.recent-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.85rem;
}

.agenda-card,
.recent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.agenda-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.9rem;
}

.agenda-time {
    padding-right: 0.55rem;
    border-right: 1px solid var(--border-soft);
}

.agenda-time strong {
    display: block;
    font-size: 1.1rem;
}

.agenda-time span,
.agenda-body small,
.recent-card p {
    color: var(--text-muted);
}

.recent-card small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.agenda-body h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.agenda-body p,
.recent-card strong,
.recent-card p {
    margin: 0.25rem 0 0;
}

.agenda-actions {
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.agenda-meta-badges {
    margin-top: 0.55rem;
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--primary);
}

.primary-button {
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.primary-button-link {
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    padding: 0.7rem 0.95rem;
}

.agenda-body-empty {
    display: grid;
    gap: 0.35rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.65rem;
    background: #e8fff2;
    color: #13834f;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fab-button {
    position: absolute;
    right: 1rem;
    bottom: 5.4rem;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(180deg, #2e62c5 0%, var(--primary) 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(30, 58, 138, 0.35);
}

.bottom-nav {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.9rem 0.7rem 1rem;
    margin-top: 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 0.6rem;
    border-radius: 16px;
    color: #7b88a5;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bottom-nav a.active {
    background: #edf3ff;
    color: var(--primary);
}

.notification-btn:hover,
.ghost-button:hover,
.ghost-button-link:hover,
.icon-button:hover,
.primary-button:hover,
.fab-button:hover,
.quick-action-card:hover {
    transform: translateY(-1px);
}

.page-shell {
    min-height: 100vh;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #eaf1fb 100%);
}

html[data-theme="dark"] .page-shell {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
        linear-gradient(180deg, #0c1424 0%, #10192c 100%);
}

.page-panel {
    width: min(100%, 1360px);
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.page-header-copy h1,
.list-header h2,
.company-card h3 {
    margin: 0;
}

.page-header-copy p,
.list-header p,
.empty-state p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.back-link,
.primary-link,
.ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    font-weight: 600;
}

.back-link {
    margin-bottom: 0.9rem;
    color: var(--primary);
}

.primary-link,
.primary-link-button {
    border: 0;
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

.ghost-link {
    border-radius: 14px;
    padding: 0.75rem 1rem;
    background: #edf3ff;
    color: var(--primary);
}

html[data-theme="dark"] .ghost-link {
    background: rgba(122, 162, 255, 0.12);
    color: #dfe9ff;
}

.ghost-link-button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.list-panel,
.form-panel {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 1.4rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 18px;
    padding: 0.95rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.alert-success {
    background: #e8fff2;
    color: #117446;
}

.alert-error {
    background: #fff0f0;
    color: #b42318;
}

.alert-warning {
    background: #fff7db;
    color: #946200;
}

html[data-theme="dark"] .alert-success {
    background: rgba(63, 208, 138, 0.14);
    color: #7ef0b3;
}

html[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.14);
    color: #ff9c9c;
}

html[data-theme="dark"] .alert-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #ffd27c;
}

.empty-state {
    padding: 2rem 1.2rem;
    text-align: center;
    border: 1px dashed #c8d6ef;
    border-radius: 22px;
    display: grid;
    gap: 0.7rem;
    place-items: center;
}

.empty-state i {
    font-size: 2rem;
    color: var(--primary);
}

.company-list {
    display: grid;
    gap: 1rem;
}

.company-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    background: #fff;
}

html[data-theme="dark"] .company-card {
    background: rgba(12, 20, 36, 0.9);
    border-color: rgba(74, 96, 137, 0.5);
    color: var(--text-main);
}

.company-card-main {
    display: grid;
    gap: 0.55rem;
}

.company-card-main p {
    margin: 0;
    font-weight: 600;
}

.detail-block {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: #f8fbff;
    color: var(--text-main);
    line-height: 1.55;
    word-break: break-word;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.company-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.company-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.company-card-actions form {
    margin: 0;
}

.company-card-actions > * {
    flex-shrink: 0;
}

.csv-panel {
    margin-bottom: 1.2rem;
}

.csv-panel[hidden] {
    display: none;
}

.csv-example {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre;
    padding: 1rem;
    border: 1px solid currentColor;
    border-radius: 0.5rem;
}

.csv-panel form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
}

.danger-button {
    border: 0;
    border-radius: 14px;
    padding: 0.75rem 1rem;
    background: #fff0f0;
    color: #b42318;
    cursor: pointer;
    font-weight: 600;
}

.status-pill-blue {
    background: var(--primary-soft);
    color: var(--primary);
}

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

.company-form-panel {
    padding: 1.6rem;
}

.company-form-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    margin-bottom: 1.2rem;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(124, 159, 255, 0.14), rgba(59, 130, 246, 0.06)),
        rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(99, 127, 214, 0.18);
}

.company-form-hero-copy {
    display: grid;
    gap: 0.3rem;
    align-content: center;
}

.company-form-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
}

.company-form-hero-copy strong {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}

.company-owner-chip {
    min-width: 230px;
    display: grid;
    gap: 0.18rem;
    align-content: center;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.company-owner-chip-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.company-owner-chip strong {
    font-size: 0.98rem;
    color: var(--text-main);
}

.company-owner-chip small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.company-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.company-field-span-12 {
    grid-column: span 12;
}

.company-field-span-7 {
    grid-column: span 7;
}

.company-field-span-5 {
    grid-column: span 5;
}

.company-field-span-2 {
    grid-column: span 2;
}

.field {
    display: grid;
    gap: 0.45rem;
    color: var(--text-main);
    font-weight: 600;
}

.field input {
    width: 100%;
    border: 1px solid #d6e0f0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: #fff;
    outline: none;
    min-height: 52px;
}

.field input:focus {
    border-color: #8fb0f0;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d6e0f0;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: #fff;
    outline: none;
    font: inherit;
    color: var(--text-main);
    resize: vertical;
}

.field select {
    min-height: 52px;
}

.field select:focus,
.field textarea:focus {
    border-color: #8fb0f0;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.field-uf {
    max-width: 120px;
}

.company-field-uf {
    max-width: none;
}

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

.company-helper-card {
    padding: 1.3rem;
}

.company-helper-card h2 {
    font-size: 1.02rem;
}

.company-helper-card p {
    font-size: 0.96rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.25rem;
}

.profile-grid,
.summary-grid {
    display: grid;
    gap: 1rem;
}

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

.profile-card-panel,
.summary-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 1.4rem;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
}

.profile-card-panel {
    height: 100%;
    min-width: 0;
}

.profile-panel-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-panel-top h2,
.profile-card-panel h2,
.summary-card strong {
    margin: 0;
}

.profile-panel-top p,
.config-hint p {
    margin: 0.3rem 0 0;
    color: var(--text-muted);
}

.profile-avatar-large {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: linear-gradient(180deg, #2e62c5 0%, var(--primary) 100%);
    color: #fff;
}

.info-list,
.action-stack,
.status-stack,
.profile-form {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.profile-form {
    margin-top: 0.9rem;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-soft);
}

.info-row span {
    color: var(--text-muted);
}

.info-row strong,
.config-hint p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.status-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.status-chip-success {
    background: #e8fff2;
    color: #117446;
}

.status-chip-warning {
    background: #fff7db;
    color: #946200;
}

.status-chip-muted {
    background: #edf2f7;
    color: #4a5568;
}

.config-hint {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #f8fbff;
}

.field-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.empresa-cnpj-feedback {
    margin: 0.45rem 0 0;
}

.empresa-cnpj-feedback[data-state="loading"] {
    color: var(--primary);
}

.empresa-cnpj-feedback[data-state="success"] {
    color: var(--success);
}

.empresa-cnpj-feedback[data-state="warning"] {
    color: var(--warning);
}

.form-actions-left {
    justify-content: flex-start;
}

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

.summary-card {
    text-align: center;
}

.summary-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.summary-card strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.7rem;
    color: var(--primary);
}

.full-width {
    width: 100%;
}

.status-pill-warning {
    background: #fff7db;
    color: #946200;
}

.status-pill-muted {
    background: #edf2f7;
    color: #4a5568;
}

.status-pill-success {
    background: #e8fff2;
    color: #117446;
}

.status-pill-danger {
    background: #fff0f0;
    color: #b42318;
}

.landing-shell {
    min-height: 100vh;
    padding: clamp(0.75rem, 1.8vw, 2rem) clamp(0.75rem, 2vw, 2.25rem) 3rem;
    background:
        radial-gradient(circle at 8% 7%, rgba(37, 99, 235, 0.11), transparent 24%),
        radial-gradient(circle at 94% 36%, rgba(56, 189, 248, 0.10), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #edf4fc 100%);
}

.landing-panel {
    display: grid;
    width: min(100%, 1640px);
    gap: 1.35rem;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.98fr) minmax(560px, 1.02fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
    min-height: min(880px, calc(100vh - 2rem));
    padding: clamp(2rem, 4.3vw, 5rem) clamp(1.5rem, 4.2vw, 4.75rem);
    border: 1px solid rgba(205, 220, 242, 0.72);
    border-radius: 38px;
    background:
        radial-gradient(circle at 100% 12%, rgba(218, 233, 255, 0.72), transparent 30%),
        linear-gradient(128deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 252, 255, 0.98) 51%, rgba(241, 247, 255, 0.98) 100%);
    box-shadow: 0 22px 70px rgba(31, 63, 119, 0.10);
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -8%;
    width: min(58vw, 940px);
    height: 140%;
    border-radius: 50% 0 0 50%;
    background: linear-gradient(145deg, rgba(225, 237, 255, 0.66), rgba(244, 249, 255, 0.18));
    transform: rotate(5deg);
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    top: 3rem;
    right: 8%;
    width: 100px;
    height: 60px;
    background-image: radial-gradient(#77a9ed 1.2px, transparent 1.2px);
    background-size: 14px 14px;
    opacity: 0.35;
    pointer-events: none;
}

.landing-hero-copy,
.landing-preview-wrap,
.landing-dashboard-preview,
.landing-hero-card-content,
.landing-info-stack,
.landing-doc-links {
    display: grid;
}

.landing-hero-copy {
    position: relative;
    z-index: 1;
    align-content: center;
    justify-items: start;
}

.landing-product-logo {
    width: clamp(250px, 22vw, 345px);
    max-width: 100%;
    height: auto;
    margin-bottom: clamp(1.6rem, 3.6vw, 3.6rem);
}

.landing-eyebrow {
    margin: 0 0 1.35rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid #b9d6ff;
    border-radius: 999px;
    background: rgba(246, 250, 255, 0.82);
    color: #0878ec;
    font-size: clamp(0.72rem, 0.86vw, 0.88rem);
    letter-spacing: 0.03em;
}

.landing-hero h1 {
    margin: 0;
    max-width: 760px;
    color: #080f23;
    font-size: clamp(2.55rem, 3.65vw, 4.15rem);
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.052em;
}

.landing-hero h1 span {
    color: #087cf0;
}

.landing-lead {
    margin: 1.45rem 0 0;
    max-width: 700px;
    color: #53678f;
    font-size: clamp(1rem, 1.1vw, 1.17rem);
    line-height: 1.72;
}

.landing-cta-row,
.landing-trust-row,
.landing-section-header,
.landing-check-list {
    display: flex;
}

.landing-cta-row {
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.landing-primary-cta,
.landing-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 64px;
    padding: 1rem 1.45rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-primary-cta {
    background: linear-gradient(180deg, #1687fa 0%, #0874e7 100%);
    color: #ffffff;
    box-shadow: 0 13px 28px rgba(8, 116, 231, 0.26);
}

.landing-secondary-cta {
    background: #ffffff;
    color: #132b66;
    border: 1px solid #d9e5f6;
    box-shadow: 0 10px 22px rgba(31, 63, 119, 0.08);
}

.landing-secondary-cta i {
    color: #087cf0;
    font-size: 1.35rem;
}

.landing-cta-mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 5px;
    background: #ffffff;
    font-size: 1.08rem;
}

.landing-cta-mark i {
    color: var(--primary);
}

.landing-trust-row {
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.7rem;
}

.landing-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 50px;
    padding: 0.72rem 1rem;
    border: 1px solid #e2ebf8;
    border-radius: 13px;
    background: rgba(247, 250, 255, 0.93);
    color: #17316b;
    font-size: 0.78rem;
    font-weight: 600;
}

.landing-trust-row i {
    color: #1687fa;
    font-size: 1rem;
}

.landing-preview-wrap {
    position: relative;
    z-index: 1;
    gap: 1.7rem;
    align-items: start;
    justify-items: center;
}

.landing-dashboard-preview {
    width: 100%;
    gap: 1rem;
    padding: clamp(1rem, 1.55vw, 1.55rem);
    border: 1px solid rgba(207, 220, 240, 0.72);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 55px rgba(46, 80, 135, 0.16);
    backdrop-filter: blur(10px);
}

.landing-dashboard-preview > h2,
.landing-pipeline-preview h3,
.landing-hero-card-content h3 {
    margin: 0;
    color: #10285f;
    font-size: 0.88rem;
    font-weight: 700;
}

.landing-preview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.landing-preview-stat {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    min-height: 98px;
    padding: 0.75rem;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(32, 56, 98, 0.055);
}

.landing-preview-stat-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1rem;
}

.landing-preview-stat-copy {
    display: grid;
    min-width: 0;
}

.landing-preview-stat-copy small,
.landing-preview-stat-copy em {
    overflow: hidden;
    color: #7b8bab;
    font-size: 0.62rem;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-preview-stat-copy strong {
    color: #101b43;
    font-size: 1.18rem;
    line-height: 1.25;
}

.landing-preview-stat-blue .landing-preview-stat-icon {
    background: #edf5ff;
    color: #1687fa;
}

.landing-preview-stat-cyan .landing-preview-stat-icon {
    background: #e7fbfd;
    color: #09b8cb;
}

.landing-preview-stat-violet .landing-preview-stat-icon {
    background: #f0efff;
    color: #6a61ff;
}

.landing-preview-stat-green .landing-preview-stat-icon {
    background: #ebf9f1;
    color: #35c974;
}

.landing-pipeline-preview,
.landing-hero-card-content {
    padding: 1rem;
    border: 1px solid #edf1f7;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(32, 56, 98, 0.04);
}

.landing-pipeline-preview h3 {
    margin-bottom: 0.8rem;
}

.landing-pipeline-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.landing-pipeline-column {
    --pipeline-color: #5b9dff;
    --pipeline-bg: #f2f7ff;
    overflow: hidden;
    border: 1px solid #edf1f7;
    border-radius: 10px;
    background: #ffffff;
}

.landing-pipeline-column header {
    display: flex;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    background: var(--pipeline-bg);
    color: #244173;
    font-size: 0.62rem;
}

.landing-pipeline-column header span {
    color: var(--pipeline-color);
    font-weight: 700;
}

.landing-pipeline-contact {
    --pipeline-color: #18a8bb;
    --pipeline-bg: #eafafd;
}

.landing-pipeline-proposal {
    --pipeline-color: #7569e9;
    --pipeline-bg: #f1efff;
}

.landing-pipeline-negotiation {
    --pipeline-color: #c89020;
    --pipeline-bg: #fff7e5;
}

.landing-pipeline-item {
    display: grid;
    grid-template-columns: 14px 1fr;
    align-items: center;
    gap: 0.45rem;
    min-height: 39px;
    margin: 0.38rem;
    padding: 0.42rem;
    border: 1px solid #f1f3f7;
    border-radius: 7px;
    background: #ffffff;
}

.landing-pipeline-item i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--pipeline-bg);
}

.landing-pipeline-item span {
    display: block;
    width: 70%;
    height: 5px;
    border-radius: 99px;
    background: #f0f2f5;
}

.landing-hero-card-content {
    gap: 0.75rem;
}

.landing-section-header h2,
.landing-doc-card strong,
.landing-step-card strong,
.landing-info-card strong {
    margin: 0;
}

.landing-check-list {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #53678f;
}

.landing-check-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 0.6rem;
    min-height: 42px;
    padding: 0.55rem 0.25rem;
    font-size: 0.74rem;
    line-height: 1.45;
}

.landing-check-list li + li {
    border-top: 1px solid #edf1f7;
}

.landing-check-list i {
    color: #1687fa;
    font-size: 1rem;
    text-align: center;
}

.landing-check-list strong {
    color: #152b5c;
}

.landing-company-signature {
    display: grid;
    place-items: center;
    min-height: 60px;
}

.landing-company-signature img {
    display: block;
    width: clamp(180px, 15vw, 245px);
    max-width: 70%;
    height: auto;
}

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

.landing-grid-secondary {
    align-items: start;
}

.landing-section-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e1eaf6;
    border-radius: 30px;
    padding: clamp(1.25rem, 2vw, 1.8rem);
    box-shadow: 0 16px 36px rgba(31, 63, 119, 0.06);
}

.landing-section-header {
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.landing-section-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #e7f0ff 0%, #dcecff 100%);
    color: var(--primary);
    flex-shrink: 0;
}

.landing-section-header p,
.landing-step-card p,
.landing-info-card p,
.landing-doc-card p {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.landing-step-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.landing-step-card,
.landing-info-card,
.landing-doc-card {
    padding: 1rem;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e6edf8;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.landing-info-stack,
.landing-doc-links {
    gap: 0.85rem;
}

.landing-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #edf4ff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.84rem;
}

.landing-doc-card {
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-primary-cta:hover,
.landing-secondary-cta:hover,
.landing-doc-card:hover {
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .global-shell-inner,
    .page-panel {
        width: min(100%, 1120px);
    }

    .phone-frame {
        width: min(100%, 1120px);
    }

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

    .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

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

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

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

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

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

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

    .quick-actions-grid-home,
    .quick-actions-grid-dashboard,
    .team-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .company-form-hero {
        flex-direction: column;
    }

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

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

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

    .landing-hero-copy {
        width: min(100%, 800px);
    }

    .landing-preview-wrap {
        width: min(100%, 920px);
        margin: 0 auto;
    }

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

@media (min-width: 1024px) {
    .list-panel,
    .form-panel,
    .profile-card-panel {
        padding: 1.6rem;
    }

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

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

    .company-form-panel {
        padding: 1.85rem;
    }

    .profile-grid {
        grid-template-columns: 1.1fr 1fr 0.95fr;
        align-items: start;
    }

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

    .company-card {
        min-height: 100%;
    }
}

@media (max-width: 768px) {
    .global-shell-header {
        padding: 0.75rem 0.75rem 0;
    }

    .global-shell-inner {
        padding: 0.35rem 0.9rem 0.9rem;
        border-radius: 22px;
    }

    .global-brand-row {
        justify-content: center;
        flex-direction: column;
    }

    .global-brand-wrap {
        width: 100%;
        min-width: 0;
        max-width: 290px;
    }

    .app-shell {
        padding: 1rem 0.75rem;
    }

    .phone-frame {
        width: 100%;
        border-radius: 28px;
    }

    .hero-top,
    .profile-card,
    .auth-strip,
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-filter-form,
    .stats-grid,
    .pipeline-grid,
    .quick-actions-grid,
    .summary-grid,
    .profile-grid,
    .form-grid,
    .dashboard-secondary-grid,
    .bottom-nav {
        grid-template-columns: 1fr;
    }

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

    .filter-actions,
    .form-actions,
    .company-card,
    .company-card-actions,
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        grid-column: auto;
    }

    .quick-action-card,
    .bottom-nav a {
        flex-direction: row;
        align-items: center;
    }

    .brand-logo-wrap {
        width: 100%;
        max-width: 240px;
    }

    .quick-action-card {
        min-height: unset;
    }

    .list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .agenda-card {
        grid-template-columns: 1fr;
    }

    .agenda-time {
        padding-right: 0;
        padding-bottom: 0.65rem;
        border-right: 0;
        border-bottom: 1px solid var(--border-soft);
    }

    .content-section-card {
        padding: 1rem;
    }

    .ghost-button-link,
    .primary-button-link,
    .primary-link,
    .ghost-link,
    .danger-button,
    .global-top-nav a {
        width: 100%;
        justify-content: center;
    }

    .theme-switcher-row,
    .home-hero-actions {
        width: 100%;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-switcher {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .global-logout-form,
    .global-logout-form-nav {
        width: 100%;
        margin-left: 0;
    }

    .global-logout-button,
    .global-logout-button-nav {
        width: 100%;
    }

    .theme-switcher-options {
        width: 100%;
    }

    .theme-switcher-button {
        flex: 1 1 0;
        justify-content: center;
    }

    .global-top-nav-desktop {
        display: none;
    }

    .shell-menu,
    .shell-menu-mobile {
        margin-top: 0.9rem;
        display: block;
    }

    .shell-menu-toggle {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.9rem 1rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
    }

    .shell-menu-toggle::-webkit-details-marker {
        display: none;
    }

    .shell-menu-mobile .global-top-nav {
        display: none;
        overflow: visible;
        margin-top: 0.8rem;
    }

    .shell-menu-mobile[open] .global-top-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .global-top-nav a {
        min-height: 58px;
        padding: 0.8rem 0.55rem;
        font-size: 0.76rem;
        line-height: 1.25;
        white-space: normal;
    }

    .global-shell-footer {
        padding: 0 0.75rem 0.9rem;
    }

    .global-shell-footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.9rem 1rem;
    }

    .global-footer-logo-wrap {
        min-height: 40px;
        padding: 0;
    }

    .global-footer-logo {
        width: 148px;
        max-width: 56vw;
    }

    html[data-theme="dark"] .global-footer-logo-wrap {
        min-height: 52px;
        padding: 0.4rem 0.85rem;
    }

    html[data-theme="dark"] .global-footer-logo-dark {
        width: 132px;
    }

    .home-account-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .home-account-row strong {
        text-align: left;
    }

    .profile-panel-top,
    .info-row,
    .status-chip {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-row strong {
        width: 100%;
        text-align: left;
    }

    .landing-shell {
        padding: 1rem 0.75rem 2rem;
    }

    .landing-hero {
        gap: 2.5rem;
        padding: 1.5rem 1rem 2rem;
        border-radius: 28px;
    }

    .landing-product-logo {
        margin-bottom: 1.8rem;
    }

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

    .landing-company-signature img {
        width: 210px;
    }

    .landing-cta-row,
    .landing-trust-row {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-primary-cta,
    .landing-secondary-cta {
        width: 100%;
    }

    .landing-trust-row span {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .app-shell {
        padding: 0;
    }

    .phone-frame {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
    }

    .stats-grid {
        gap: 0.65rem;
    }

    .dashboard-filter-form,
    .stats-grid,
    .pipeline-grid,
    .quick-actions-grid,
    .bottom-nav {
        grid-template-columns: 1fr;
    }

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

    .shell-menu-mobile[open] .global-top-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .global-top-nav a {
        font-size: 0.72rem;
        padding: 0.75rem 0.4rem;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-card {
        padding: 0.9rem 0.65rem;
    }

    .page-shell {
        padding: 1rem 0.75rem;
    }

    .page-header,
    .company-card,
    .company-card-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .company-form-hero {
        flex-direction: column;
    }

    .company-owner-chip {
        min-width: 0;
    }

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

    .company-field-span-12,
    .company-field-span-7,
    .company-field-span-5,
    .company-field-span-2 {
        grid-column: 1 / -1;
    }

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

    .field-uf {
        max-width: none;
    }

    .bottom-nav a {
        justify-content: flex-start;
    }

    .stat-card,
    .pipeline-card {
        min-height: unset;
    }

    .landing-dashboard-preview {
        padding: 0.75rem;
        border-radius: 20px;
    }

    .landing-preview-stat {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 0.45rem;
        min-height: 88px;
        padding: 0.55rem;
    }

    .landing-preview-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .landing-preview-stat-copy small,
    .landing-preview-stat-copy em {
        font-size: 0.55rem;
    }

    .landing-preview-stat-copy strong {
        font-size: 1rem;
    }

    .landing-pipeline-column header {
        padding: 0.5rem;
        font-size: 0.56rem;
    }

    .landing-check-list li {
        font-size: 0.68rem;
    }
}

/* Telas de login e cadastro */
.auth-shell {
    display: grid;
    align-content: center;
}

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

.auth-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(12px);
}

.auth-header {
    display: grid;
    justify-items: start;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
}

.auth-login-header {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
}

.auth-brand-centered {
    justify-content: center;
}

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

.auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.48rem 1rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(30, 58, 138, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.15;
}

.auth-subtitle {
    margin: 0.55rem 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.auth-login-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.9rem, 3.6vw, 2.3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.auth-login-subtitle {
    margin: 0;
    color: var(--text-muted);
    max-width: 28rem;
    font-size: 0.98rem;
    line-height: 1.5;
}

.auth-register-header {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
    margin-bottom: 0.6rem;
}

.auth-register-title {
    margin: 0;
    color: #0f2b93;
    font-size: clamp(1.55rem, 3vw, 1.95rem);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.auth-cnpj-feedback {
    margin-top: -0.65rem;
    margin-bottom: -0.05rem;
}

.auth-cnpj-feedback[data-state="loading"] {
    color: var(--primary);
}

.auth-cnpj-feedback[data-state="success"] {
    color: var(--success);
}

.auth-cnpj-feedback[data-state="warning"] {
    color: #b45309;
}

.auth-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}

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

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

.auth-switch {
    margin: 1.35rem 0 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 480px) {
    .auth-header {
        gap: 0.55rem;
        margin-bottom: 1rem;
    }

    .auth-login-header {
        gap: 0.5rem;
        margin-bottom: 0.9rem;
    }

    .auth-brand img {
        height: 46px;
    }

    .auth-kicker {
        font-size: 0.74rem;
        padding: 0.4rem 0.8rem;
    }

    .auth-register-header {
        gap: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .auth-register-title {
        font-size: 1.3rem;
    }

    .auth-login-title {
        font-size: 1.65rem;
    }

    .auth-login-subtitle {
        font-size: 0.92rem;
    }

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