:root {
            --bg: #07111f;
            --bg-soft: #0c1a2d;
            --panel: rgba(7, 17, 31, 0.74);
            --panel-strong: rgba(10, 24, 43, 0.92);
            --surface: rgba(255, 255, 255, 0.04);
            --text: #edf4ff;
            --muted: #9db0c9;
            --primary: #7dd3a7;
            --primary-strong: #22c55e;
            --danger: #f87171;
            --warning: #fbbf24;
            --border: rgba(157, 176, 201, 0.18);
            --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
        }
        * { box-sizing: border-box; }
        html {
            min-height: 100%;
            background: #07111f;
        }
        body {
            margin: 0;
            font-family: Bahnschrift, "Segoe UI Variable", "Segoe UI", sans-serif;
            background-color: #07111f;
            background:
                radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 28%),
                radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 24%),
                linear-gradient(160deg, #020617 0%, #07111f 50%, #0b1323 100%);
            color: var(--text);
            min-height: 100vh;
            min-height: 100dvh;
        }
        a { color: inherit; text-decoration: none; }
        .container { max-width: 1240px; margin: 0 auto; padding: 24px; }
        .topbar {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 28px;
            padding: 18px 22px;
            border: 1px solid var(--border);
            border-radius: 24px;
            background: rgba(5, 12, 24, 0.72);
            backdrop-filter: blur(18px);
            box-shadow: var(--shadow);
        }
        .brand h1 { margin: 0; font-size: 32px; letter-spacing: .02em; }
        .brand p { margin: 6px 0 0; color: var(--muted); }
        .nav {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .nav a.active,
        .mobile-nav a.active {
            border-color: rgba(125, 211, 167, 0.42);
            background: rgba(125, 211, 167, 0.12);
            color: var(--primary);
        }
        .nav a, .btn {
            background: rgba(255,255,255,.04);
            border: 1px solid var(--border);
            color: var(--text);
            padding: 10px 14px;
            border-radius: 999px;
            display: inline-block;
            cursor: pointer;
            transition: transform .18s ease, border-color .18s ease, background .18s ease;
        }
        .nav a:hover, .btn:hover { transform: translateY(-1px); border-color: rgba(125, 211, 167, 0.4); }
        .btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%); color: #052e16; border-color: transparent; font-weight: 700; }
        .btn-danger { background: rgba(248,113,113,.12); color: #fecaca; border-color: rgba(248,113,113,.35); }
        .hero {
            display: grid;
            grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
            gap: 18px;
            margin-bottom: 18px;
        }
        .hero-panel, .hero-aside {
            border-radius: 28px;
            border: 1px solid var(--border);
            background: linear-gradient(180deg, rgba(10, 24, 43, 0.88) 0%, rgba(5, 12, 24, 0.82) 100%);
            box-shadow: var(--shadow);
        }
        .hero-panel {
            padding: 28px;
            position: relative;
            overflow: hidden;
        }
        .hero-panel::after {
            content: '';
            position: absolute;
            inset: auto -40px -60px auto;
            width: 240px;
            height: 240px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(125, 211, 167, 0.2) 0%, rgba(125, 211, 167, 0) 70%);
        }
        .hero-kicker {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(125, 211, 167, 0.08);
            border: 1px solid rgba(125, 211, 167, 0.18);
            color: var(--primary);
            font-size: 12px;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .hero h2 {
            margin: 18px 0 10px;
            font-size: clamp(32px, 4vw, 52px);
            line-height: 1;
            max-width: 10ch;
        }
        .hero p {
            margin: 0;
            max-width: 58ch;
            color: var(--muted);
            line-height: 1.6;
        }
        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 22px;
        }
        .hero-aside {
            padding: 24px;
            display: grid;
            gap: 14px;
        }
        .hero-aside h3 {
            margin: 0;
            font-size: 18px;
        }
        .signal {
            padding: 14px 0;
            border-top: 1px solid rgba(157, 176, 201, 0.12);
        }
        .signal:first-of-type {
            border-top: 0;
            padding-top: 0;
        }
        .signal strong {
            display: block;
            margin-bottom: 4px;
            font-size: 18px;
        }
        .signal span {
            color: var(--muted);
            line-height: 1.5;
        }
        .grid {
            display: grid;
            gap: 16px;
        }
        .grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
        .grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
        .grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
        .card {
            background: var(--panel);
            border: 1px solid var(--border);
            border-radius: 24px;
            padding: 22px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(18px);
        }
        .card h2, .card h3 { margin-top: 0; }
        .chart-card h3 {
            margin: 0;
            font-size: 18px;
        }
        .mini-chart-list {
            display: grid;
            gap: 10px;
            margin-top: 14px;
        }
        .mini-chart-row {
            display: grid;
            grid-template-columns: 44px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
        }
        .mini-chart-label {
            font-size: 12px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: .05em;
        }
        .mini-chart-track {
            height: 10px;
            border-radius: 999px;
            background: rgba(157, 176, 201, 0.15);
            overflow: hidden;
        }
        .mini-chart-track span {
            display: block;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, rgba(125, 211, 167, 0.86), rgba(14, 165, 233, 0.82));
        }
        .mini-chart-row strong {
            font-size: 12px;
            color: var(--text);
            white-space: nowrap;
        }
        .asset-ident {
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        .asset-logo {
            width: 26px;
            height: 26px;
            border-radius: 8px;
            border: 1px solid rgba(157, 176, 201, 0.26);
            background: rgba(5, 12, 24, 0.8);
            object-fit: cover;
            flex-shrink: 0;
        }
        .asset-name {
            display: inline-block;
            max-width: 320px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            vertical-align: bottom;
        }
        .muted { color: var(--muted); }
        .asset-change-positive { color: var(--primary-strong); }
        .asset-change-negative { color: var(--danger); }
        .asset-change-neutral { color: var(--text); }
        .metric-value { font-size: 34px; font-weight: 700; margin: 10px 0 4px; letter-spacing: -.03em; }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
            font-size: 14px;
        }
        .table-wrap {
            overflow-x: auto;
            margin-top: 10px;
        }
        th, td {
            text-align: left;
            padding: 12px 10px;
            border-bottom: 1px solid rgba(148,163,184,.15);
            vertical-align: top;
        }
        th { color: var(--muted); font-weight: 600; }
        .badge {
            display: inline-block;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
        }
        .badge.buy { background: rgba(34,197,94,.15); color: #86efac; }
        .badge.sell { background: rgba(245,158,11,.15); color: #fcd34d; }
        form { display: grid; gap: 12px; }
        .field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
        label { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
        input, select, textarea {
            width: 100%;
            padding: 12px 14px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: rgba(3, 10, 21, 0.82);
            color: var(--text);
        }
        textarea { min-height: 100px; resize: vertical; }
        .flash {
            padding: 14px 16px;
            border-radius: 18px;
            margin-bottom: 18px;
            border: 1px solid;
        }
        .flash.success { background: rgba(34,197,94,.12); color: #bbf7d0; border-color: rgba(34,197,94,.25); }
        .flash.error { background: rgba(239,68,68,.12); color: #fecaca; border-color: rgba(239,68,68,.25); }
        .inline-loading {
            display: none;
            align-items: center;
            gap: 14px;
            margin-top: 14px;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid rgba(125, 211, 167, 0.22);
            background: rgba(8, 20, 35, 0.76);
        }
        .inline-loading.is-visible {
            display: flex;
        }
        .ai-loading-dots {
            display: inline-flex;
            gap: 6px;
            align-items: center;
            min-width: 34px;
        }
        .ai-loading-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            opacity: .35;
            animation: aiPulse 1.1s infinite ease-in-out;
        }
        .ai-loading-dots span:nth-child(2) { animation-delay: .15s; }
        .ai-loading-dots span:nth-child(3) { animation-delay: .3s; }
        @keyframes aiPulse {
            0%, 80%, 100% { transform: scale(.7); opacity: .25; }
            40% { transform: scale(1); opacity: 1; }
        }
        .section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
        .empty { color: var(--muted); padding: 8px 0; }
        .insights {
            display: grid;
            gap: 12px;
            margin-top: 18px;
        }
        .insight-item {
            border-radius: 14px;
            padding: 14px 16px;
            border: 1px solid rgba(148, 163, 184, 0.15);
            background: rgba(15, 23, 42, 0.72);
        }
        .insight-item h3 {
            margin: 0 0 6px;
            font-size: 16px;
        }
        .insight-item p {
            margin: 0;
            color: var(--muted);
            line-height: 1.5;
        }
        .insight-item.success { border-color: rgba(34,197,94,.35); }
        .insight-item.warning { border-color: rgba(245,158,11,.35); }
        .insight-item.danger { border-color: rgba(239,68,68,.35); }
        .insight-item.neutral { border-color: rgba(148,163,184,.25); }
        .inline-loading {
            display: none;
            align-items: center;
            gap: 14px;
            margin-top: 14px;
            padding: 14px 16px;
            border-radius: 16px;
            border: 1px solid rgba(125, 211, 167, 0.22);
            background: rgba(8, 20, 35, 0.76);
        }
        .inline-loading.is-visible {
            display: flex;
        }
        .ai-loading-dots {
            display: inline-flex;
            gap: 6px;
            align-items: center;
            min-width: 34px;
        }
        .ai-loading-dots span {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary);
            opacity: .35;
            animation: aiPulse 1.1s infinite ease-in-out;
        }
        .ai-loading-dots span:nth-child(2) { animation-delay: .15s; }
        .ai-loading-dots span:nth-child(3) { animation-delay: .3s; }
        @keyframes aiPulse {
            0%, 80%, 100% { transform: scale(.7); opacity: .25; }
            40% { transform: scale(1); opacity: 1; }
        }
        .ai-shell {
            display: grid;
            gap: 18px;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
            margin-top: 18px;
        }
        .ai-panel {
            padding: 18px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: rgba(3, 10, 21, 0.56);
        }
        .ai-panel h3 {
            margin: 0 0 8px;
            font-size: 18px;
        }
        .ai-panel p {
            margin: 0;
            color: var(--muted);
            line-height: 1.55;
        }
        .ai-answer {
            white-space: pre-wrap;
            line-height: 1.7;
            color: var(--text);
        }
        .ai-note {
            font-size: 13px;
            color: var(--muted);
        }
        .diagnostic-list,
        .chat-list {
            display: grid;
            gap: 12px;
            margin-top: 14px;
        }
        .diagnostic-item {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 0;
            border-top: 1px solid rgba(157, 176, 201, 0.12);
        }
        .diagnostic-item:first-child {
            border-top: 0;
            padding-top: 0;
        }
        .diagnostic-item strong {
            display: block;
            margin-bottom: 4px;
        }
        .diagnostic-item span {
            color: var(--muted);
        }
        .chat-list {
            max-height: 560px;
            overflow-y: auto;
            padding-right: 4px;
        }
        .chat-message {
            border-radius: 18px;
            padding: 14px 16px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
        }
        .chat-message.user {
            background: rgba(125, 211, 167, 0.08);
            border-color: rgba(125, 211, 167, 0.18);
        }
        .chat-message.assistant {
            background: rgba(14, 165, 233, 0.08);
            border-color: rgba(14, 165, 233, 0.16);
        }
        .chat-meta {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
            color: var(--muted);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: .06em;
        }
        .chat-content {
            white-space: pre-wrap;
            line-height: 1.7;
        }
        .plan-box {
            margin-top: 14px;
            padding: 16px;
            border-radius: 18px;
            border: 1px solid rgba(251, 191, 36, 0.28);
            background: rgba(251, 191, 36, 0.08);
        }
        .plan-box h4 {
            margin: 0 0 10px;
            font-size: 15px;
        }
        .plan-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 14px;
        }
        .plan-list {
            display: grid;
            gap: 8px;
            margin-top: 10px;
            color: var(--text);
        }
        .warning-list {
            display: grid;
            gap: 6px;
            margin-top: 10px;
            color: #fde68a;
        }
        .planner-shell {
            display: grid;
            gap: 18px;
            grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
            margin-top: 18px;
        }
        .planner-list {
            display: grid;
            gap: 12px;
            margin-top: 14px;
        }
        .planner-item {
            border-radius: 18px;
            padding: 14px 16px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
        }
        .planner-item strong {
            display: block;
            margin-bottom: 6px;
        }
        .planner-item .muted {
            display: block;
            margin-top: 6px;
            line-height: 1.5;
        }
        .actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
        }
        .footer-note {
            margin: 22px 0 10px;
            color: var(--muted);
            font-size: 13px;
            text-align: center;
        }
        .auth-shell {
            min-height: 100vh;
            display: grid;
            place-items: center;
            padding: 24px;
        }
        .auth-card {
            width: min(100%, 460px);
            padding: 28px;
            border-radius: 28px;
            border: 1px solid var(--border);
            background: linear-gradient(180deg, rgba(10, 24, 43, 0.92) 0%, rgba(5, 12, 24, 0.9) 100%);
            box-shadow: var(--shadow);
        }
        .auth-card h1 {
            margin: 16px 0 10px;
            font-size: 36px;
            line-height: 1;
        }
        .auth-card p {
            color: var(--muted);
            line-height: 1.6;
        }
        .app-shell {
            padding-bottom: 96px;
        }
        .utility-links {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }
        .mobile-nav {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 30;
            display: none;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
            border-top: 1px solid rgba(157, 176, 201, 0.12);
            background: linear-gradient(180deg, rgba(5, 12, 24, 0.8) 0%, rgba(5, 12, 24, 0.96) 32%, rgba(5, 12, 24, 1) 100%);
            backdrop-filter: blur(18px);
            box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.26);
        }
        .mobile-nav a {
            display: grid;
            gap: 4px;
            justify-items: center;
            padding: 10px 8px 12px;
            border-radius: 18px;
            color: var(--muted);
            font-size: 11px;
            text-align: center;
            border: 1px solid transparent;
            transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
        }
        .mobile-nav strong {
            font-size: 18px;
            line-height: 1;
        }
        .mobile-nav a.active {
            transform: translateY(-6px);
            background: linear-gradient(180deg, rgba(125, 211, 167, 0.16) 0%, rgba(125, 211, 167, 0.08) 100%);
            border-color: rgba(125, 211, 167, 0.24);
            color: var(--text);
            box-shadow: 0 14px 28px rgba(3, 8, 18, 0.22);
        }
        .fab-assistant {
            position: fixed;
            right: 18px;
            bottom: 108px;
            z-index: 32;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 14px 18px;
            border-radius: 999px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
            color: #052e16;
            font-weight: 700;
            box-shadow: 0 18px 38px rgba(34, 197, 94, 0.24);
        }
        .mobile-assets {
            display: none;
            gap: 16px;
            margin-top: 14px;
        }
        .mobile-records {
            display: none;
            gap: 12px;
            margin-top: 14px;
        }
        .mobile-records .asset-mobile-card > form {
            display: block;
            width: 100%;
        }
        .mobile-records .asset-mobile-card > form .btn {
            width: 100%;
            border-radius: 999px;
            padding: 12px 16px;
        }
        .asset-mobile-card[data-collapsible] .asset-mobile-top {
            cursor: pointer;
            user-select: none;
        }
        .asset-mobile-card[data-collapsible] .asset-mobile-chevron {
            display: flex;
            align-items: center;
            transition: transform .2s ease;
            color: var(--muted);
            font-size: 18px;
            line-height: 1;
        }
        .asset-mobile-card[data-collapsible].is-open .asset-mobile-chevron {
            transform: rotate(180deg);
        }
        .asset-mobile-card[data-collapsible] .asset-mobile-body {
            display: none;
            gap: 14px;
        }
        .asset-mobile-card[data-collapsible].is-open .asset-mobile-body {
            display: grid;
        }
        .asset-mobile-card[data-collapsible] .asset-mobile-peek {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            padding-top: 2px;
        }
        .asset-mobile-peek-chip {
            background: rgba(255,255,255,.06);
            border: 1px solid rgba(157,176,201,.12);
            border-radius: 999px;
            padding: 4px 12px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .asset-mobile-peek-chip span {
            color: var(--muted);
            font-size: 12px;
        }
        .asset-mobile-card {
            border-radius: 24px;
            padding: 18px;
            border: 1px solid rgba(157, 176, 201, 0.14);
            background: linear-gradient(180deg, rgba(10, 24, 43, 0.92) 0%, rgba(5, 12, 24, 0.94) 100%);
            color: var(--text);
            display: grid;
            gap: 14px;
            box-shadow: var(--shadow);
        }
        .asset-mobile-top {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
        }
        .asset-mobile-head strong {
            display: block;
            font-size: 20px;
            letter-spacing: .01em;
        }
        .asset-mobile-subtitle {
            color: var(--muted);
            margin-top: 4px;
        }
        .asset-mobile-summary-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px 18px;
            margin-top: 14px;
        }
        .asset-mobile-summary-grid span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: .05em;
        }
        .asset-mobile-summary-grid strong {
            display: block;
            color: var(--text);
            font-size: 15px;
            line-height: 1.3;
        }
        .asset-mobile-summary-grid strong.asset-change-positive {
            color: var(--primary-strong);
        }
        .asset-mobile-summary-grid strong.asset-change-negative {
            color: var(--danger);
        }
        .asset-mobile-summary-grid strong.asset-change-neutral {
            color: var(--text);
        }
        .asset-mobile-icons {
            display: flex;
            gap: 10px;
        }
        .asset-mobile-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background: rgba(125, 211, 167, 0.12);
            color: var(--primary);
            font-size: 18px;
            font-weight: 700;
            border: 1px solid rgba(125, 211, 167, 0.14);
        }
        .risk-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 16px;
            background: rgba(125, 211, 167, 0.08);
            color: var(--primary);
            border: 1px solid rgba(125, 211, 167, 0.14);
            font-weight: 600;
            width: fit-content;
        }
        .risk-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #f4b400;
            box-shadow: 12px 0 0 rgba(244, 180, 0, 0.55);
            margin-right: 6px;
        }
        .asset-mobile-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }
        .asset-mobile-row {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: baseline;
        }
        .asset-mobile-row span {
            color: var(--muted);
            font-size: 15px;
            line-height: 1.35;
        }
        .asset-mobile-row strong {
            color: var(--text);
            font-size: 15px;
            text-align: right;
        }
        .asset-mobile-row strong.asset-change-positive {
            color: var(--primary-strong);
        }
        .asset-mobile-row strong.asset-change-negative {
            color: var(--danger);
        }
        .asset-mobile-row strong.asset-change-neutral {
            color: var(--text);
        }
        .asset-mobile-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            margin-top: 4px;
        }
        .asset-mobile-btn {
            border-radius: 999px;
            padding: 14px 16px;
            text-align: center;
            font-weight: 700;
            border: 0;
        }
        .asset-mobile-btn.ghost {
            background: rgba(255,255,255,.04);
            color: var(--text);
            border: 1px solid var(--border);
        }
        .asset-mobile-btn.primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
            color: #052e16;
        }
        .record-mobile-card {
            border-radius: 22px;
            padding: 16px;
            border: 1px solid rgba(157, 176, 201, 0.14);
            background: linear-gradient(180deg, rgba(10, 24, 43, 0.92) 0%, rgba(5, 12, 24, 0.94) 100%);
            box-shadow: var(--shadow);
            display: grid;
            gap: 12px;
        }
        .record-mobile-top {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: flex-start;
        }
        .record-mobile-top strong {
            display: block;
            font-size: 17px;
        }
        .record-mobile-top .muted {
            margin-top: 4px;
        }
        .record-mobile-grid {
            display: grid;
            gap: 10px;
        }
        .record-mobile-row {
            display: flex;
            justify-content: space-between;
            gap: 14px;
            align-items: baseline;
        }
        .record-mobile-row span {
            color: var(--muted);
            font-size: 14px;
        }
        .record-mobile-row strong {
            color: var(--text);
            font-size: 14px;
            text-align: right;
        }
        .record-mobile-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 4px;
        }
        @media (max-width: 768px) {
            body { padding-top: env(safe-area-inset-top, 0px); }
            .container { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 120px; }
            .section-title { flex-direction: column; align-items: flex-start; }
            .hero { grid-template-columns: 1fr; }
            .ai-shell { grid-template-columns: 1fr; }
            .planner-shell { grid-template-columns: 1fr; }
            .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .nav { display: none; }
            .mobile-nav { display: grid; }
            .topbar { margin-bottom: 18px; }
            .brand h1 { font-size: 26px; }
            .brand p { font-size: 14px; }
            .hero-panel, .hero-aside { padding: 20px; }
            .hero h2 { font-size: 34px; max-width: 12ch; }
            .metric-value { font-size: 28px; }
            .actions { width: 100%; }
            .actions .btn, .actions form { width: 100%; }
            .actions form .btn { width: 100%; }
            th, td { white-space: nowrap; }
            .table-wrap { display: none; }
            .desktop-assets-table { display: none; }
            .mobile-assets { display: grid; }
            .mobile-records { display: grid; }
            .asset-mobile-card { gap: 18px; }
            .fab-assistant { bottom: 98px; right: 16px; padding: 14px 16px; }
            .topbar { padding: 16px; border-radius: 20px; }
            .hero-panel, .hero-aside, .card { border-radius: 20px; }
        }
