/* RoTracker professional visual system */

body.rt-app {
    --c50: #eff8ff;
    --c100: #dbeeff;
    --c200: #b9ddff;
    --c300: #83c5f7;
    --c400: #45a9e8;
    --c500: #168dd1;
    --c600: #0874b8;
    --c700: #075d96;
    --c800: #0a4f7a;
    --c900: #0d4265;
    --rt-bg: #f3f7fb;
    --rt-surface: #ffffff;
    --rt-soft: #f7fafe;
    --rt-line: #dce6f0;
    --rt-text: #142236;
    --rt-muted: #64748b;
    --rt-shadow: 0 20px 55px -35px rgba(7, 24, 43, 0.42);
    color: var(--rt-text);
    background:
        radial-gradient(circle at 7% 0%, rgba(22, 141, 209, 0.09), transparent 30rem),
        radial-gradient(circle at 96% 12%, rgba(9, 168, 174, 0.07), transparent 28rem),
        var(--rt-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -0.008em;
}

.dark body.rt-app {
    --rt-bg: #07111f;
    --rt-surface: #101c2e;
    --rt-soft: #0c1728;
    --rt-line: #24344a;
    --rt-text: #e7eef7;
    --rt-muted: #91a2b7;
    --rt-shadow: 0 26px 70px -38px rgba(0, 0, 0, 0.9);
    background:
        radial-gradient(circle at 9% -8%, rgba(22, 141, 209, 0.2), transparent 34rem),
        radial-gradient(circle at 100% 16%, rgba(9, 168, 174, 0.1), transparent 30rem),
        var(--rt-bg);
}

body.rt-app::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(8, 116, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 116, 184, 0.035) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

body.rt-app button,
body.rt-app input,
body.rt-app select,
body.rt-app textarea {
    font-family: inherit;
}

body.rt-app #app-wrapper {
    min-height: 100vh;
}

body.rt-app #app-header {
    min-height: 78px;
    padding: 13px clamp(18px, 3vw, 42px) !important;
    border-color: rgba(190, 207, 224, 0.8) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 12px 40px -32px rgba(7, 24, 43, 0.8) !important;
    backdrop-filter: blur(20px) saturate(150%);
}

.dark body.rt-app #app-header {
    border-color: rgba(47, 67, 92, 0.75) !important;
    background: rgba(8, 20, 35, 0.9) !important;
}

body.rt-app #app-header img {
    width: 46px !important;
    height: 46px !important;
    padding: 4px;
    border: 1px solid rgba(178, 199, 219, 0.7);
    border-radius: 14px !important;
    background: white;
    box-shadow: 0 12px 28px -18px rgba(7, 24, 43, 0.65) !important;
}

body.rt-app #app-header h1 {
    color: #0b2037;
    font-size: 1.08rem !important;
    font-weight: 850 !important;
    letter-spacing: -0.025em;
}

.rt-brand-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.rt-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border: 1px solid rgba(8, 116, 184, 0.18);
    border-radius: 999px;
    color: #0874b8;
    background: rgba(21, 147, 223, 0.08);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    line-height: 1;
    text-transform: uppercase;
}

.dark .rt-role-badge {
    border-color: rgba(86, 193, 242, 0.2);
    color: #69cfff;
    background: rgba(21, 147, 223, 0.11);
}

.rt-role-badge.is-admin {
    border-color: rgba(220, 38, 38, 0.32);
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.dark .rt-role-badge.is-admin {
    border-color: rgba(248, 113, 113, 0.34);
    color: #f87171;
    background: rgba(248, 113, 113, 0.13);
}

body.rt-advisor .rt-role-badge {
    border-color: rgba(9, 168, 174, 0.2);
    color: #087f83;
    background: rgba(9, 168, 174, 0.09);
}

.dark body.rt-advisor .rt-role-badge {
    color: #5be0dc;
}

.dark body.rt-app #app-header h1 {
    color: #f7fbff;
}

body.rt-app #user-email-display {
    margin-top: 3px;
    color: #718399 !important;
    font-size: 0.64rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
}

body.rt-app #app-header nav {
    gap: 3px !important;
    padding: 5px !important;
    border: 1px solid #dce6f0;
    border-radius: 14px !important;
    background: #f2f6fa !important;
}

.dark body.rt-app #app-header nav {
    border-color: #223249;
    background: #091525 !important;
}

body.rt-app #app-header nav button {
    min-height: 37px;
    padding: 7px 15px !important;
    border-radius: 10px !important;
    color: #65768b !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
}

.dark body.rt-app #app-header nav button {
    color: #8fa0b5 !important;
}

body.rt-app #app-header nav button.bg-white,
.dark body.rt-app #app-header nav button.dark\:bg-slate-700 {
    color: #0874b8 !important;
    background: white !important;
    box-shadow: 0 7px 18px -12px rgba(7, 24, 43, 0.75) !important;
}

.dark body.rt-app #app-header nav button.dark\:bg-slate-700 {
    color: #66c9ff !important;
    background: #17263a !important;
}

body.rt-app #main-content,
body.rt-advisor main {
    width: min(1480px, 100%);
    max-width: 1480px !important;
    padding: clamp(18px, 2.2vw, 34px) !important;
}

body.rt-app #view-dashboard {
    gap: clamp(20px, 2vw, 30px) !important;
    align-items: start;
}

body.rt-tech #view-dashboard {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

body.rt-app #form-container,
body.rt-app #view-dashboard > div:first-child > div,
body.rt-app #view-dashboard > div:nth-child(2),
body.rt-app #view-history,
body.rt-app #view-admin,
body.rt-app #view-support,
body.rt-app #view-settings > div,
body.rt-app #view-quotes > div > div,
body.rt-advisor main section > div > div {
    border: 1px solid var(--rt-line) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--rt-shadow) !important;
}

.dark body.rt-app #form-container,
.dark body.rt-app #view-dashboard > div:first-child > div,
.dark body.rt-app #view-dashboard > div:nth-child(2),
.dark body.rt-app #view-history,
.dark body.rt-app #view-admin,
.dark body.rt-app #view-support,
.dark body.rt-app #view-settings > div,
.dark body.rt-app #view-quotes > div > div,
.dark body.rt-advisor main section > div > div {
    border-color: rgba(43, 61, 84, 0.9) !important;
    background: linear-gradient(145deg, rgba(18, 31, 50, 0.98), rgba(13, 24, 40, 0.98)) !important;
    box-shadow: var(--rt-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

body.rt-app #form-container,
body.rt-app #view-dashboard > div:nth-child(2) {
    padding: clamp(20px, 2vw, 30px) !important;
}

body.rt-app h1,
body.rt-app h2,
body.rt-app h3 {
    letter-spacing: -0.025em;
}

body.rt-app #form-container > h2,
body.rt-app #view-dashboard > div:nth-child(2) h2,
body.rt-advisor main h2 {
    color: #10243b;
    font-size: 1.08rem !important;
    font-weight: 850 !important;
}

body.rt-tech #form-container > h2::before,
body.rt-tech #view-dashboard > div:nth-child(2) h2::before,
body.rt-advisor main section > div:first-child > div:first-child > h2::before,
body.rt-advisor main section > div:nth-child(2) > div > div:first-child h2::before {
    display: block;
    margin-bottom: 7px;
    color: #0874b8;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

body.rt-tech #form-container > h2::before {
    content: "Repair entry";
}

body.rt-tech #view-dashboard > div:nth-child(2) h2::before {
    content: "Performance center";
}

body.rt-advisor main section > div:first-child > div:first-child > h2::before {
    content: "New repair order";
    color: #087f83;
}

body.rt-advisor main section > div:nth-child(2) > div > div:first-child h2::before {
    content: "Advisor workflow";
    color: #087f83;
}

.dark body.rt-app #form-container > h2,
.dark body.rt-app #view-dashboard > div:nth-child(2) h2,
.dark body.rt-advisor main h2 {
    color: #f3f8fd;
}

body.rt-app label,
body.rt-app .uppercase.tracking-wider {
    letter-spacing: 0.085em !important;
}

body.rt-app input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
body.rt-app select,
body.rt-app textarea {
    min-height: 44px;
    border-color: #cddbe8 !important;
    border-radius: 12px !important;
    color: #17283d;
    background: #f8fbfe !important;
    box-shadow: inset 0 1px 2px rgba(7, 24, 43, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.rt-app textarea {
    line-height: 1.55;
}

body.rt-tech textarea.line-notes {
    height: 145px;
    min-height: 145px;
}

.dark body.rt-app input:not([type="color"]):not([type="checkbox"]):not([type="radio"]),
.dark body.rt-app select,
.dark body.rt-app textarea {
    border-color: #2a3c54 !important;
    color: #e5edf6 !important;
    background: #0b1728 !important;
}

body.rt-app input:hover,
body.rt-app select:hover,
body.rt-app textarea:hover {
    border-color: #9bbbd4 !important;
}

body.rt-app input:focus,
body.rt-app select:focus,
body.rt-app textarea:focus {
    border-color: #1593df !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(21, 147, 223, 0.13) !important;
}

body.rt-app .bg-primary-600,
body.rt-app button.bg-primary-600 {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0874b8, #1593df) !important;
    box-shadow: 0 11px 25px -16px rgba(8, 116, 184, 0.9);
}

body.rt-app .bg-primary-600:hover,
body.rt-app button.bg-primary-600:hover {
    background: linear-gradient(135deg, #075f99, #087fca) !important;
}

body.rt-advisor button.bg-emerald-600,
body.rt-advisor #shop-chat-launcher {
    background: linear-gradient(135deg, #087f83, #09a8ae) !important;
    box-shadow: 0 11px 25px -16px rgba(9, 168, 174, 0.9);
}

body.rt-app button:not(.mobile-nav-btn) {
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background-color 0.16s ease;
}

body.rt-app button:not(.mobile-nav-btn):hover {
    transform: translateY(-1px);
}

body.rt-app button:not(.mobile-nav-btn):active {
    transform: translateY(0);
}

body.rt-app .line-item {
    border: 1px solid #d8e4ef !important;
    border-radius: 18px !important;
    background: linear-gradient(145deg, #fbfdff, #f4f8fc) !important;
}

body.rt-app #lines-container > .line-item:nth-child(even) {
    border-color: #bed7e8 !important;
    background: linear-gradient(145deg, #eef7fc, #e7f2f9) !important;
}

.repair-line-label {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    padding: 4px 9px;
    border: 1px solid #c9dbea;
    border-radius: 999px;
    color: #0874b8;
    background: #f8fbfe;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dark .repair-line-label {
    border-color: #315779;
    color: #6bcfff;
    background: #0d1d30;
}

.dark body.rt-app .line-item {
    border-color: #293b52 !important;
    background: linear-gradient(145deg, #101d30, #0b1728) !important;
}

.dark body.rt-app #lines-container > .line-item:nth-child(even) {
    border-color: #315779 !important;
    background: linear-gradient(145deg, #132b45, #10243b) !important;
}

body.rt-app #this-week-list li,
body.rt-app #advisor-ro-dashboard-list > li,
body.rt-app #advisor-ro-full-list > div,
body.rt-advisor #advisor-ro-list > div {
    border-radius: 18px !important;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

body.rt-app #this-week-list li:hover,
body.rt-app #advisor-ro-dashboard-list > li:hover,
body.rt-app #advisor-ro-full-list > div:hover,
body.rt-advisor #advisor-ro-list > div:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -28px rgba(7, 24, 43, 0.75);
}

body.rt-app #advisor-ro-dashboard-card {
    margin-top: 26px !important;
    padding-top: 22px !important;
    border-color: rgba(9, 168, 174, 0.28) !important;
}

body.rt-app #advisor-ro-dashboard-card h2 {
    letter-spacing: 0.08em !important;
}

body.rt-app #advisor-ro-active-count {
    border: 1px solid rgba(9, 168, 174, 0.2);
    color: #087f83 !important;
    background: rgba(9, 168, 174, 0.1) !important;
}

.dark body.rt-app #advisor-ro-active-count {
    color: #5be0dc !important;
    background: rgba(9, 168, 174, 0.13) !important;
}

body.rt-app #pay-period-progress-bar,
body.rt-app #progress-bar {
    background: linear-gradient(90deg, #0874b8, #18b7b9) !important;
}

body.rt-app .performance-chart-grid {
    align-items: stretch;
    gap: 14px !important;
}

body.rt-app .performance-chart-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 18px 16px 15px;
    border: 1px solid #dbe6f0;
    border-radius: 19px;
    background: #f6f9fc;
    box-shadow: none;
}

.dark body.rt-app .performance-chart-card {
    border-color: #293c54;
    background: #0d1a2c;
    box-shadow: none;
}

body.rt-app .performance-chart-title {
    margin-bottom: 14px;
    color: #6d7f94;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.dark body.rt-app .performance-chart-title {
    color: #91a2b7;
}

body.rt-app .donut-chart {
    width: 8.4rem !important;
    height: 8.4rem !important;
    flex: 0 0 auto;
    border: 5px solid #e7eef5;
    box-shadow: 0 0 0 1px rgba(7, 24, 43, 0.08);
    filter: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.dark body.rt-app .donut-chart {
    border-color: #17263a;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

body.rt-app .donut-chart:hover {
    transform: none;
    box-shadow: 0 0 0 1px rgba(7, 24, 43, 0.12);
}

body.rt-app .donut-chart::after {
    display: none;
}

body.rt-app .donut-hole {
    display: flex;
    width: 5.65rem !important;
    height: 5.65rem !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6f0;
    background: #f8fbfe !important;
    box-shadow: 0 0 0 4px rgba(7, 24, 43, 0.045);
}

.dark body.rt-app .donut-hole {
    border-color: #2a3d55;
    background: #0c192a !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

body.rt-app .donut-hole strong {
    color: #10243b;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.dark body.rt-app .donut-hole strong {
    color: #f4f9ff;
}

body.rt-app .donut-hole span {
    margin-top: 5px;
    color: #8292a5;
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

body.rt-app .chart-breakdown-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 16px;
}

body.rt-app .chart-breakdown-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid #e0e9f1;
    border-radius: 9px;
    background: #f9fbfd;
    color: #6b7d91;
    font-size: 0.59rem;
}

.dark body.rt-app .chart-breakdown-row {
    border-color: #263950;
    background: #0a1626;
    color: #9aabc0;
}

body.rt-app .chart-breakdown-label {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.rt-app .chart-breakdown-label i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 8%, transparent);
}

body.rt-app .chart-breakdown-row strong {
    color: #17283d;
    font-size: 0.67rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.dark body.rt-app .chart-breakdown-row strong {
    color: #eaf2fa;
}

body.rt-app table {
    border-collapse: separate;
    border-spacing: 0;
}

body.rt-app thead th {
    color: #718399 !important;
    background: #f6f9fc;
}

.dark body.rt-app thead th {
    color: #8da0b6 !important;
    background: #0b1728;
}

body.rt-app tbody tr:hover {
    background-color: rgba(21, 147, 223, 0.045) !important;
}

body.rt-app [id$="-modal"] {
    backdrop-filter: blur(10px);
}

body.rt-app [id$="-modal"] > div,
body.rt-app #shop-chat-panel {
    border-radius: 24px !important;
    border-color: var(--rt-line) !important;
    box-shadow: 0 30px 90px -34px rgba(0, 0, 0, 0.72) !important;
}

.dark body.rt-app [id$="-modal"] > div,
.dark body.rt-app #shop-chat-panel {
    border-color: #2a3c54 !important;
    background-color: #101c2e !important;
}

body.rt-app #shop-chat-launcher {
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 45px -20px rgba(4, 65, 104, 0.8) !important;
}

body.rt-app #auth-view {
    background:
        radial-gradient(circle at 18% 12%, rgba(21, 147, 223, 0.28), transparent 28rem),
        radial-gradient(circle at 85% 80%, rgba(9, 168, 174, 0.18), transparent 26rem),
        #061324 !important;
}

body.rt-app #auth-view > div {
    border: 1px solid rgba(190, 214, 234, 0.22) !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 35px 100px -42px rgba(0, 0, 0, 0.95) !important;
}

.dark body.rt-app #auth-view > div {
    background: rgba(15, 29, 48, 0.98) !important;
}

body.rt-app #auth-view img {
    width: 72px !important;
    height: 72px !important;
    padding: 5px;
    border: 1px solid #dbe7f1;
    border-radius: 20px !important;
    background: white;
}

body.rt-demo #demo-banner {
    border-color: rgba(84, 218, 222, 0.3) !important;
    background: linear-gradient(90deg, #063a53, #075d6a, #063a53) !important;
    letter-spacing: 0.08em;
}

/* Advisor workspace */
body.rt-advisor #app-header {
    min-height: 82px;
}

body.rt-advisor main section {
    gap: 28px !important;
}

body.rt-advisor main section > div > div {
    padding: clamp(21px, 2vw, 30px) !important;
}

body.rt-advisor main section > div:first-child > div:first-child {
    position: relative;
    overflow: hidden;
}

body.rt-advisor main section > div:first-child > div:first-child::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0874b8, #09a8ae);
}

body.rt-advisor main section > div:first-child > div:nth-child(2) {
    background:
        linear-gradient(145deg, rgba(248, 252, 255, 0.98), rgba(240, 248, 251, 0.98)) !important;
}

.dark body.rt-advisor main section > div:first-child > div:nth-child(2) {
    background:
        linear-gradient(145deg, rgba(15, 31, 49, 0.98), rgba(10, 25, 40, 0.98)) !important;
}

body.rt-advisor #advisor-ro-list > div {
    border-color: #d8e4ef !important;
    background: linear-gradient(145deg, #fbfdff, #f5f9fc) !important;
}

.dark body.rt-advisor #advisor-ro-list > div {
    border-color: #2b3d54 !important;
    background: linear-gradient(145deg, #101d30, #0b1728) !important;
}

body.rt-advisor #count-open,
body.rt-advisor #count-working,
body.rt-advisor #count-finished {
    margin-top: 5px;
    font-variant-numeric: tabular-nums;
}

/* Marketing site */
body.rt-site {
    --navy-950: #061426;
    --navy-900: #0a1d33;
    --navy-800: #102b49;
    --blue-700: #075f9c;
    --blue-600: #0874b8;
    --blue-500: #1593df;
    --teal-500: #09a8ae;
    --teal-400: #2bc9c8;
    color: #102238;
    background: #f6f9fc;
    letter-spacing: -0.008em;
}

body.rt-site .container {
    width: min(1240px, calc(100% - 48px));
}

body.rt-site .site-header {
    border-color: rgba(190, 207, 224, 0.75);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px -34px rgba(7, 24, 43, 0.65);
    backdrop-filter: blur(20px) saturate(150%);
}

body.rt-site .nav {
    min-height: 86px;
}

body.rt-site .brand-logo {
    width: 220px;
}

body.rt-site .nav-links {
    gap: 27px;
    color: #52657a;
    font-size: 0.84rem;
}

body.rt-site .nav-links a {
    position: relative;
}

body.rt-site .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
    transition: right 0.2s ease;
}

body.rt-site .nav-links a:hover::after {
    right: 0;
}

body.rt-site .button {
    min-height: 50px;
    border-radius: 13px;
    padding-inline: 24px;
    font-size: 0.9rem;
}

body.rt-site .button-primary {
    background: linear-gradient(135deg, #075f9c, #1593df);
    box-shadow: 0 16px 34px -18px rgba(8, 116, 184, 0.85);
}

body.rt-site .hero {
    min-height: 720px;
    padding: 110px 0 104px;
    color: white;
    background:
        radial-gradient(circle at 8% 12%, rgba(21, 147, 223, 0.28), transparent 34rem),
        radial-gradient(circle at 92% 82%, rgba(9, 168, 174, 0.2), transparent 31rem),
        linear-gradient(138deg, #061426 0%, #0a2039 58%, #092c42 100%);
}

body.rt-site .hero::before {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(100, 205, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 205, 255, 0.16) 1px, transparent 1px);
    background-size: 46px 46px;
}

body.rt-site .hero-grid {
    gap: clamp(54px, 7vw, 92px);
}

body.rt-site .eyebrow {
    color: #8cddff;
    border-color: rgba(113, 205, 244, 0.3);
    background: rgba(11, 54, 82, 0.7);
}

body.rt-site .hero h1 {
    max-width: 760px;
    margin-top: 28px;
    color: #f7fbff;
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.062em;
}

body.rt-site .gradient-text {
    background: linear-gradient(100deg, #62c7ff, #55ddd8);
    background-clip: text;
    -webkit-background-clip: text;
}

body.rt-site .hero-copy {
    color: #b8cadc;
    font-size: 1.13rem;
}

body.rt-site .hero .button-secondary {
    color: #e5f4ff;
    border-color: rgba(174, 214, 237, 0.3);
    background: rgba(255, 255, 255, 0.055);
}

body.rt-site .hero .button-secondary:hover {
    border-color: rgba(111, 210, 246, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

body.rt-site .hero-note {
    color: #9eb5c9;
}

body.rt-site .dashboard-card {
    border-color: rgba(128, 192, 225, 0.2);
    border-radius: 30px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(20, 51, 80, 0.94), rgba(7, 22, 39, 0.96));
    box-shadow: 0 45px 100px -48px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

body.rt-site .dash-title {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.rt-site .live-pill {
    border: 1px solid rgba(85, 221, 216, 0.22);
    box-shadow: 0 0 0 4px rgba(85, 221, 216, 0.045);
}

body.rt-site .dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(85, 221, 216, 0.08), transparent 42%);
}

body.rt-site .stat,
body.rt-site .ro-item {
    border-color: rgba(153, 196, 222, 0.13);
    background: rgba(255, 255, 255, 0.045);
}

body.rt-site .trust-strip {
    border-bottom: 1px solid #dfe8f1;
    background: white;
    box-shadow: 0 16px 42px -38px rgba(7, 24, 43, 0.65);
}

body.rt-site .section {
    padding: 108px 0;
}

body.rt-site .section-heading h2 {
    color: #10243a;
    font-size: clamp(2.15rem, 4.5vw, 3.65rem);
    letter-spacing: -0.052em;
}

body.rt-site .role-card,
body.rt-site .feature-card,
body.rt-site .pricing-card {
    border-color: #dbe5ee;
    box-shadow: 0 18px 50px -38px rgba(7, 24, 43, 0.55);
}

body.rt-site .role-card {
    border-radius: 26px;
    padding: 38px;
}

body.rt-site .role-card::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -65px;
    width: 150px;
    height: 150px;
    border: 28px solid rgba(21, 147, 223, 0.045);
    border-radius: 50%;
}

body.rt-site .role-card.advisor::after {
    border-color: rgba(9, 168, 174, 0.055);
}

body.rt-site .feature-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f8fbfd);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

body.rt-site .feature-card:hover {
    transform: translateY(-5px);
    border-color: #b9d9ec;
    box-shadow: 0 26px 60px -40px rgba(7, 64, 104, 0.65);
}

body.rt-site .pricing-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(21, 147, 223, 0.09), transparent 30rem),
        radial-gradient(circle at 90% 88%, rgba(9, 168, 174, 0.08), transparent 28rem),
        #f2f7fb;
}

body.rt-site .pricing-card {
    border-radius: 28px;
    padding: 40px;
}

body.rt-site .pricing-card.featured {
    background:
        radial-gradient(circle at 100% 0%, rgba(42, 201, 200, 0.14), transparent 20rem),
        linear-gradient(150deg, #102d4b, #061426);
}

body.rt-site .workflow {
    background:
        radial-gradient(circle at 15% 0%, rgba(21, 147, 223, 0.14), transparent 28rem),
        linear-gradient(145deg, #071527, #0a233b);
}

body.rt-site .workflow .section-heading h2 {
    color: #f5fbff;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body.rt-site .workflow .section-subtitle {
    color: #b8cadd;
}

body.rt-site .workflow-step {
    min-height: 190px;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.052);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.rt-site .cta {
    border: 1px solid rgba(109, 205, 236, 0.24);
    background:
        radial-gradient(circle at 88% 20%, rgba(63, 222, 216, 0.24), transparent 20rem),
        linear-gradient(125deg, #075f9c, #06416b 58%, #087f83);
}

body.rt-site .modal-backdrop {
    backdrop-filter: blur(11px);
}

body.rt-site .modal {
    border: 1px solid #d8e4ed;
    border-radius: 26px;
    box-shadow: 0 35px 100px -42px rgba(0, 0, 0, 0.72);
}

/* Performance pass for technician/demo workspaces on older hardware. */
body.rt-tech {
    text-rendering: optimizeSpeed;
}

body.rt-tech #app-header,
body.rt-tech [id$="-modal"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.rt-tech #app-header {
    background: rgba(255, 255, 255, 0.96) !important;
}

.dark body.rt-tech #app-header {
    background: rgba(8, 20, 35, 0.97) !important;
}

body.rt-tech::before {
    display: none;
}

body.rt-tech #form-container,
body.rt-tech #view-dashboard > div:first-child > div,
body.rt-tech #view-dashboard > div:nth-child(2),
body.rt-tech #view-history,
body.rt-tech #view-admin,
body.rt-tech #view-support,
body.rt-tech #view-settings > div,
body.rt-tech #view-quotes > div > div,
body.rt-tech [id$="-modal"] > div,
body.rt-tech #shop-chat-panel {
    box-shadow: 0 10px 28px -24px rgba(7, 24, 43, 0.55) !important;
}

body.rt-tech button:not(.mobile-nav-btn),
body.rt-tech #this-week-list li,
body.rt-tech #advisor-ro-dashboard-list > li,
body.rt-tech #advisor-ro-full-list > div {
    transition-property: background-color, border-color, color, opacity !important;
    transition-duration: 0.12s !important;
}

body.rt-tech button:not(.mobile-nav-btn):hover,
body.rt-tech #this-week-list li:hover,
body.rt-tech #advisor-ro-dashboard-list > li:hover,
body.rt-tech #advisor-ro-full-list > div:hover {
    transform: none !important;
}

body.rt-tech #view-dashboard,
body.rt-tech #view-history,
body.rt-tech #view-quotes,
body.rt-tech #view-settings,
body.rt-tech #view-support,
body.rt-tech #view-admin {
    content-visibility: auto;
    contain-intrinsic-size: 1px 820px;
}

body.rt-tech:not(.low-performance-mode) #view-dashboard,
body.rt-tech:not(.low-performance-mode) #view-history,
body.rt-tech:not(.low-performance-mode) #view-quotes,
body.rt-tech:not(.low-performance-mode) #view-settings,
body.rt-tech:not(.low-performance-mode) #view-support,
body.rt-tech:not(.low-performance-mode) #view-admin {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

body.rt-tech.low-performance-mode *,
body.rt-tech.low-performance-mode *::before,
body.rt-tech.low-performance-mode *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
}

body.rt-tech.low-performance-mode {
    background-image: none !important;
}

body.rt-tech.low-performance-mode #app-header,
body.rt-tech.low-performance-mode #mobile-bottom-nav,
body.rt-tech.low-performance-mode [id$="-modal"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.rt-tech.low-performance-mode #form-container,
body.rt-tech.low-performance-mode #view-dashboard > div:first-child > div,
body.rt-tech.low-performance-mode #view-dashboard > div:nth-child(2),
body.rt-tech.low-performance-mode #view-history,
body.rt-tech.low-performance-mode #view-admin,
body.rt-tech.low-performance-mode #view-support,
body.rt-tech.low-performance-mode #view-settings > div,
body.rt-tech.low-performance-mode #view-quotes > div > div,
body.rt-tech.low-performance-mode .performance-chart-card,
body.rt-tech.low-performance-mode .donut-chart,
body.rt-tech.low-performance-mode .donut-hole,
body.rt-tech.low-performance-mode [id$="-modal"] > div,
body.rt-tech.low-performance-mode #shop-chat-panel,
body.rt-tech.low-performance-mode #shop-chat-launcher {
    box-shadow: none !important;
}

body.rt-tech.low-performance-mode .donut-hole,
body.rt-tech.low-performance-mode .chart-breakdown-row,
body.rt-tech.low-performance-mode .performance-chart-card {
    background-image: none !important;
    filter: none !important;
}

body.rt-tech.low-performance-mode .donut-chart {
    filter: none !important;
}

body.rt-tech.low-performance-mode button:hover,
body.rt-tech.low-performance-mode .line-item:hover,
body.rt-tech.low-performance-mode #this-week-list li:hover,
body.rt-tech.low-performance-mode #advisor-ro-dashboard-list > li:hover,
body.rt-tech.low-performance-mode #advisor-ro-full-list > div:hover {
    transform: none !important;
}

body.rt-tech:not(.low-performance-mode) {
    background:
        radial-gradient(circle at 7% 0%, rgba(22, 141, 209, 0.12), transparent 30rem),
        radial-gradient(circle at 96% 12%, rgba(9, 168, 174, 0.1), transparent 28rem),
        var(--rt-bg) !important;
}

.dark body.rt-tech:not(.low-performance-mode) {
    background:
        radial-gradient(circle at 9% -8%, rgba(22, 141, 209, 0.22), transparent 34rem),
        radial-gradient(circle at 100% 16%, rgba(9, 168, 174, 0.13), transparent 30rem),
        var(--rt-bg) !important;
}

body.rt-tech:not(.low-performance-mode)::before {
    display: block;
}

body.rt-tech:not(.low-performance-mode) #app-header {
    background: rgba(255, 255, 255, 0.88) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    box-shadow: 0 14px 42px -32px rgba(7, 24, 43, 0.85) !important;
}

.dark body.rt-tech:not(.low-performance-mode) #app-header {
    background: rgba(8, 20, 35, 0.9) !important;
}

body.rt-tech:not(.low-performance-mode) #form-container,
body.rt-tech:not(.low-performance-mode) #view-dashboard > div:first-child > div,
body.rt-tech:not(.low-performance-mode) #view-dashboard > div:nth-child(2),
body.rt-tech:not(.low-performance-mode) #view-history,
body.rt-tech:not(.low-performance-mode) #view-admin,
body.rt-tech:not(.low-performance-mode) #view-support,
body.rt-tech:not(.low-performance-mode) #view-settings > div,
body.rt-tech:not(.low-performance-mode) #view-quotes > div > div {
    border-color: rgba(78, 108, 142, 0.26) !important;
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 253, 0.92)) !important;
    box-shadow:
        0 30px 80px -46px rgba(7, 24, 43, 0.86),
        inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.dark body.rt-tech:not(.low-performance-mode) #form-container,
.dark body.rt-tech:not(.low-performance-mode) #view-dashboard > div:first-child > div,
.dark body.rt-tech:not(.low-performance-mode) #view-dashboard > div:nth-child(2),
.dark body.rt-tech:not(.low-performance-mode) #view-history,
.dark body.rt-tech:not(.low-performance-mode) #view-admin,
.dark body.rt-tech:not(.low-performance-mode) #view-support,
.dark body.rt-tech:not(.low-performance-mode) #view-settings > div,
.dark body.rt-tech:not(.low-performance-mode) #view-quotes > div > div {
    border-color: rgba(74, 108, 147, 0.44) !important;
    background-image:
        linear-gradient(145deg, rgba(18, 34, 54, 0.94), rgba(7, 18, 32, 0.98)) !important;
    box-shadow:
        0 32px 88px -44px rgba(0, 0, 0, 0.95),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body.rt-tech:not(.low-performance-mode) button:not(.mobile-nav-btn),
body.rt-tech:not(.low-performance-mode) #this-week-list li,
body.rt-tech:not(.low-performance-mode) #advisor-ro-dashboard-list > li,
body.rt-tech:not(.low-performance-mode) #advisor-ro-full-list > div {
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, border-color 0.16s ease, background-color 0.16s ease !important;
}

body.rt-tech:not(.low-performance-mode) button:not(.mobile-nav-btn):hover {
    transform: translateY(-1px) !important;
}

body.rt-tech:not(.low-performance-mode) #this-week-list li:hover,
body.rt-tech:not(.low-performance-mode) #advisor-ro-dashboard-list > li:hover,
body.rt-tech:not(.low-performance-mode) #advisor-ro-full-list > div:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 34px -28px rgba(7, 24, 43, 0.75) !important;
}

body.rt-tech:not(.low-performance-mode) .performance-chart-card {
    border-color: rgba(70, 105, 141, 0.28) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 9rem),
        linear-gradient(145deg, #f8fbfe, #edf5fb) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 20px 44px -34px rgba(7, 24, 43, 0.72) !important;
}

.dark body.rt-tech:not(.low-performance-mode) .performance-chart-card {
    border-color: rgba(66, 108, 151, 0.5) !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.16), transparent 9rem),
        linear-gradient(145deg, #112036, #081423) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 22px 48px -34px rgba(0, 0, 0, 0.95) !important;
}

body.rt-tech:not(.low-performance-mode) .donut-chart {
    box-shadow: 0 0 0 1px rgba(7, 24, 43, 0.08), 0 18px 38px -30px rgba(8, 116, 184, 0.8) !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}

body.rt-tech:not(.low-performance-mode) .donut-chart:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 0 1px rgba(7, 24, 43, 0.12), 0 24px 46px -34px rgba(8, 116, 184, 0.92) !important;
}

body.rt-tech:not(.low-performance-mode) .donut-hole {
    box-shadow: 0 0 0 4px rgba(7, 24, 43, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

body.rt-tech:not(.low-performance-mode) [id$="-modal"] {
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
}

@media (max-width: 1279px) {
    body.rt-tech #view-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    body.rt-app #app-header {
        padding: 12px 14px !important;
    }

    body.rt-app #main-content,
    body.rt-advisor main {
        padding: 14px !important;
    }

    body.rt-app #form-container,
    body.rt-app #view-dashboard > div:first-child > div,
    body.rt-app #view-dashboard > div:nth-child(2),
    body.rt-app #view-history,
    body.rt-app #view-admin,
    body.rt-app #view-support,
    body.rt-app #view-settings > div,
    body.rt-app #view-quotes > div > div,
    body.rt-advisor main section > div > div {
        border-radius: 19px !important;
    }

    body.rt-site .hero {
        min-height: auto;
        padding: 82px 0;
    }

    body.rt-site .hero h1 {
        font-size: clamp(2.75rem, 10vw, 4.4rem);
    }
}

@media (max-width: 640px) {
    body.rt-site .container {
        width: min(100% - 28px, 1240px);
    }

    body.rt-site .brand-logo {
        width: 185px;
    }

    body.rt-site .section {
        padding: 78px 0;
    }
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    body.rt-tech {
        background-image: none !important;
    }

    body.rt-tech #auth-view {
        background-image: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.rt-app *,
    body.rt-site * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media print {
    html,
    body.rt-app {
        height: auto !important;
        min-height: 0 !important;
    }

    body.rt-app::before,
    body.rt-app #app-wrapper,
    body.rt-app #auth-view,
    body.rt-app #mobile-bottom-nav,
    body.rt-app #toast-stack,
    body.rt-app #shop-chat-launcher,
    body.rt-app #shop-chat-root,
    body.rt-app [id$="-modal"] {
        display: none !important;
    }

    body.rt-app .print-section.active-print {
        display: block !important;
        position: static !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        break-before: auto !important;
        page-break-before: auto !important;
    }
}
