﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap');

        :root {
            --accent: #2563eb;
            --accent-dark: #1d4ed8;
            --accent-light: #3b82f6;
            --accent-surface: #eff6ff;
            --accent-shadow: rgba(37, 99, 235, 0.35);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: linear-gradient(135deg, #0a0f1e 0%, #0f1f3d 45%, #1a2d4f 100%);
            min-height: 100vh;
            color: #111827;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 32px;
            margin-bottom: 32px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(37, 99, 235, 0.08);
            border-top: 3px solid var(--accent);
            border-left: 1px solid rgba(255, 255, 255, 0.2);
            border-right: 1px solid rgba(255, 255, 255, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        .header p {
            display: none;
        }

        .auth-container {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 40px;
            max-width: 500px;
            margin: 50px auto;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(37, 99, 235, 0.1);
            border-top: 3px solid var(--accent);
        }

        .nav-tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 8px;
            margin-bottom: 32px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
        }

        .tab-button {
            flex: 0 0 auto;
            padding: 10px 16px;
            border: none;
            background: transparent;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.88em;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            position: relative;
            overflow: hidden;
            white-space: nowrap;
        }

        .tab-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, var(--accent-dark), var(--accent));
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 16px;
        }

        .tab-button.active::before {
            opacity: 1;
        }

        .tab-button.active {
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 20px var(--accent-shadow);
        }

        .tab-button span {
            position: relative;
            z-index: 1;
        }

        .tab-content {
            display: none;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            border-radius: 24px;
            padding: 40px;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            margin-bottom: 32px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .tab-content.active {
            display: block;
            animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes fadeInUp {
            from { 
                opacity: 0; 
                transform: translateY(30px);
            }
            to { 
                opacity: 1; 
                transform: translateY(0);
            }
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #1f2937;
            font-size: 0.95em;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1em;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.98);
        }

        .btn {
            background: linear-gradient(135deg, var(--accent-dark), var(--accent));
            color: white;
            border: none;
            padding: 16px 32px;
            border-radius: 12px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 6px 16px var(--accent-shadow);
            position: relative;
            overflow: hidden;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .btn:hover::before {
            left: 100%;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 28px var(--accent-shadow);
        }

        .btn:active {
            transform: translateY(-1px);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #4b5563, #374151);
            box-shadow: 0 4px 12px rgba(55, 65, 81, 0.3);
        }

        .btn-danger {
            background: linear-gradient(135deg, #e53e3e, #c53030);
            box-shadow: 0 10px 20px rgba(229, 62, 62, 0.3);
        }

        .alert {
            padding: 16px 20px;
            border-radius: 12px;
            margin-bottom: 24px;
            font-weight: 500;
            border-left: 4px solid;
        }

        .alert-success {
            background: linear-gradient(135deg, #38a169, #2f855a);
            color: white;
            border-left-color: #68d391;
        }

        .alert-error {
            background: linear-gradient(135deg, #e53e3e, #c53030);
            color: white;
            border-left-color: #fc8181;
        }

        .alert-info {
            background: linear-gradient(135deg, var(--accent-dark), var(--accent));
            color: white;
            border-left-color: #93c5fd;
        }

        .alert-warning {
            background: #fefce8;
            color: #713f12;
            border-left-color: #ca8a04;
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 24px;
        }

        .card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 28px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            backdrop-filter: blur(10px);
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
        }

        .card h3 {
            color: #111827;
            margin-bottom: 16px;
            font-size: 1.4em;
            font-weight: 700;
        }

        .document-viewer {
            background: #f7fafc;
            border: 2px dashed #cbd5e0;
            border-radius: 16px;
            padding: 40px;
            text-align: center;
            margin: 24px 0;
            transition: all 0.3s ease;
        }

        .document-viewer:hover {
            border-color: #334155;
            background: #edf2f7;
        }

        .document-viewer.dragover {
            border-color: #334155;
            background: #bee3f8;
        }

        .document-preview {
            max-width: 100%;
            max-height: 600px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            margin: 20px 0;
        }

        .record-card {
            background: rgba(255, 255, 255, 0.98);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 20px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border-left: 4px solid var(--accent);
            transition: all 0.3s ease;
        }

        .record-card:hover {
            transform: translateX(4px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
        }

        .record-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }

        .record-id {
            font-family: 'JetBrains Mono', monospace;
            background: linear-gradient(135deg, #edf2f7, #e2e8f0);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.9em;
            font-weight: 600;
            color: #1f2937;
        }

        .status-badge {
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-completed {
            background: linear-gradient(135deg, #38a169, #2f855a);
            color: white;
        }

        .status-pending {
            background: linear-gradient(135deg, #ed8936, #dd6b20);
            color: white;
        }

        .status-in-progress {
            background: linear-gradient(135deg, var(--accent-dark), var(--accent));
            color: white;
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #dbeafe;
            border-top: 3px solid var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
        }
        .modal.is-open { display: block; }

        .modal-content {
            background: white;
            margin: 5% auto;
            padding: 40px;
            border-radius: 20px;
            width: 90%;
            max-width: 800px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close:hover {
            color: #000;
        }

        .notary-guide {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 24px;
        }

        .guide-card {
            background: linear-gradient(135deg, #f8faff, #eff6ff);
            border-radius: 20px;
            padding: 28px;
            border-left: 6px solid var(--accent);
            transition: all 0.3s ease;
        }

        .guide-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .guide-card h3 {
            color: #111827;
            margin-bottom: 16px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .guide-card .emoji {
            font-size: 1.5em;
        }

        .checklist {
            background: linear-gradient(135deg, #f0fff4, #e6fffa);
            border-radius: 16px;
            padding: 28px;
            margin: 24px 0;
            border: 2px solid #68d391;
        }

        .checklist-item {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .checklist-item:hover {
            background: rgba(255, 255, 255, 0.9);
            transform: translateX(4px);
        }

        .checklist-item input[type="checkbox"] {
            margin-right: 12px;
            transform: scale(1.3);
            accent-color: var(--accent);
        }

        .file-input-wrapper {
            position: relative;
            overflow: hidden;
            display: inline-block;
        }

        .file-input-wrapper input[type=file] {
            position: absolute;
            left: -9999px;
        }

        .file-input-label {
            background: linear-gradient(135deg, var(--accent-dark), var(--accent));
            color: white;
            padding: 12px 24px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
            font-weight: 600;
        }

        .file-input-label:hover {
            background: linear-gradient(135deg, #1e40af, var(--accent-dark));
            transform: translateY(-2px);
        }

        .ron-session {
            background: linear-gradient(135deg, #111827, #1f2937);
            color: white;
            border-radius: 20px;
            padding: 32px;
            margin: 24px 0;
        }

        .ron-session h3 {
            color: #e2e8f0;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .hidden {
            display: none;
        }

        /* Guide Improvements */
        .guide-controls {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            align-items: center;
        }

        .guide-search {
            flex: 1;
            min-width: 250px;
            padding: 12px 16px;
            border: 2px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.95em;
            transition: all 0.3s ease;
        }

        .guide-search:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }

        .guide-search::placeholder {
            color: #9ca3af;
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 0.9em;
        }

        /* Expandable Cards */
        .guide-section-title {
            color: #111827;
            margin: 32px 0 16px 0;
            font-size: 1.2em;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .checklist-progress {
            font-size: 0.85em;
            color: #6b7280;
            font-weight: 400;
        }

        .guide-card-expandable {
            background: linear-gradient(135deg, #f8faff, #eff6ff);
            border-radius: 12px;
            border-left: 6px solid var(--accent);
            overflow: hidden;
            margin-bottom: 12px;
            transition: all 0.3s ease;
        }

        .guide-card-expandable[open] {
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
        }

        .guide-card-summary {
            padding: 16px 20px;
            cursor: pointer;
            user-select: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(135deg, #f8faff, #eff6ff);
            transition: background 0.3s ease;
        }

        .guide-card-expandable:hover > .guide-card-summary {
            background: linear-gradient(135deg, #eff6ff, #dbeafe);
        }

        .guide-card-summary::-webkit-details-marker {
            display: none;
        }

        .guide-card-expandable::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 4px;
            height: 100%;
            background: var(--accent);
            z-index: -1;
        }

        .guide-card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
        }

        .guide-card-title {
            font-weight: 600;
            color: #111827;
            font-size: 1em;
        }

        .guide-fee {
            margin-left: auto;
            background: #fef3c7;
            color: #92400e;
            padding: 4px 12px;
            border-radius: 8px;
            font-size: 0.9em;
            font-weight: 600;
            white-space: nowrap;
        }

        .guide-card-content {
            padding: 20px;
            background: white;
            border-top: 1px solid #e5e7eb;
        }

        .guide-card-content p {
            margin: 12px 0;
            line-height: 1.6;
        }

        .guide-card-content ul {
            margin: 12px 0 12px 20px;
            list-style: disc;
        }

        .guide-card-content li {
            margin: 8px 0;
            line-height: 1.6;
        }

        .req-badge {
            display: inline-block;
            background: #fee2e2;
            color: #991b1b;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.85em;
            font-weight: 600;
            margin-right: 8px;
        }

        .tooltip-icon {
            display: inline-block;
            width: 18px;
            height: 18px;
            background: #dbeafe;
            color: var(--accent);
            border-radius: 50%;
            text-align: center;
            line-height: 18px;
            font-size: 0.75em;
            cursor: help;
            margin-left: 4px;
        }

        .tooltip-icon[title]:hover::after {
            content: attr(title);
            position: absolute;
            bottom: 120%;
            left: 50%;
            transform: translateX(-50%);
            background: #1f2937;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.85em;
            white-space: nowrap;
            z-index: 1000;
            pointer-events: none;
        }

        .guide-prohibited-text {
            background: #fef2f2;
            border-left: 4px solid #dc2626;
            padding: 12px;
            border-radius: 8px;
            color: #7f1d1d;
            margin: 12px 0;
        }

        .guide-card-prohibited {
            border-left-color: #dc2626;
        }

        .guide-card-prohibited .guide-card-summary {
            background: linear-gradient(135deg, #fef2f2, #fee2e2);
        }

        .guide-card-prohibited:hover > .guide-card-summary {
            background: linear-gradient(135deg, #fee2e2, #fecaca);
        }

        /* Scenario Cards */
        .scenario-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }

        .scenario-card {
            background: linear-gradient(135deg, #fef9e7, #fffaeb);
            border: 2px solid #fcd34d;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .scenario-card[open] {
            box-shadow: 0 10px 25px rgba(180, 83, 9, 0.15);
        }

        .scenario-summary {
            padding: 16px;
            cursor: pointer;
            user-select: none;
            font-weight: 600;
            color: #92400e;
            background: linear-gradient(135deg, #fef9e7, #fffaeb);
            transition: background 0.3s ease;
            display: flex;
            align-items: center;
        }

        .scenario-card:hover > .scenario-summary {
            background: linear-gradient(135deg, #fffaeb, #fef3c7);
        }

        .scenario-summary::-webkit-details-marker {
            display: none;
        }

        .scenario-summary::before {
            content: '▶';
            display: inline-block;
            margin-right: 12px;
            transition: transform 0.3s ease;
            font-size: 0.8em;
        }

        .scenario-card[open] > .scenario-summary::before {
            transform: rotate(90deg);
        }

        .scenario-content {
            padding: 20px;
            background: white;
            border-top: 1px solid #fcd34d;
            line-height: 1.6;
        }

        .scenario-content p {
            margin: 12px 0;
        }

        .scenario-content ul {
            margin: 12px 0 12px 20px;
            list-style: disc;
        }

        .scenario-content li {
            margin: 8px 0;
        }

        /* Checklist Improvements */
        .checklist-checkbox {
            accent-color: var(--accent);
            cursor: pointer;
        }

        .checklist-checkbox:checked ~ label {
            opacity: 0.6;
            text-decoration: line-through;
        }

        .checklist-item label {
            display: flex;
            align-items: center;
            cursor: pointer;
            flex: 1;
            gap: 8px;
        }

        /* Mobile Responsive */
        .notary-guide {
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        }

        @media (max-width: 768px) {
            .guide-controls {
                flex-direction: column;
            }

            .guide-search {
                min-width: 100%;
            }

            .scenario-grid {
                grid-template-columns: 1fr;
            }

            .notary-guide {
                grid-template-columns: 1fr;
            }
            .nav-tabs {
                flex-direction: column;
            }
            
            .grid-2, .grid-3 {
                grid-template-columns: 1fr;
            }

            .notarize-step {
                padding: 15px;
            }
            
            .record-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .modal-content {
                margin: 10% auto;
                width: 95%;
                padding: 20px;
            }
        }
        .pw-meter-wrap { margin-top: 8px; }
        .pw-meter-track { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
        .pw-meter-bg { flex: 1; background: #e2e8f0; border-radius: 3px; height: 5px; }
        .pw-meter-bar { height: 5px; border-radius: 3px; width: 0%; background: #e53e3e; transition: width 0.3s, background 0.3s; }
        .pw-meter-w-0 { width: 0%; }
        .pw-meter-w-20 { width: 20%; }
        .pw-meter-w-40 { width: 40%; }
        .pw-meter-w-60 { width: 60%; }
        .pw-meter-w-80 { width: 80%; }
        .pw-meter-w-100 { width: 100%; }
        .pw-meter-c-weak { background: #e53e3e; }
        .pw-meter-c-fair { background: #dd6b20; }
        .pw-meter-c-good { background: #d69e2e; }
        .pw-meter-c-strong { background: #38a169; }
        .pw-meter-label { min-width: 48px; font-size: 0.76em; color: #718096; }
        .pw-reqs { font-size: 0.78em; display: flex; flex-direction: column; gap: 2px; }
        .pw-reqs span { color: #718096; }
        .pw-reqs span.pw-met { color: #38a169; }
        .pw-reqs span.pw-unmet { color: #e53e3e; }
        .backup-download-btn { margin-bottom: 12px; }
        .auth-title { text-align: center; margin-bottom: 30px; color: #111827; }
        .auth-tabs { margin-bottom: 30px; }
        .inline-row { display: flex; gap: 8px; }
        .inline-row .grow { flex: 1; }
        .mfa-login-alert { margin-bottom: 16px; font-size: 0.9em; }
        .btn-full { width: 100%; }
        .auth-links { text-align: center; margin-top: 12px; font-size: 0.9em; }
        .auth-links a { color: var(--accent); }
        .section-title-auth { margin: 10px 0 16px 0; color: #111827; }
        .header-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .header-home-btn {
            background: none;
            border: none;
            padding: 0;
            margin: 0;
            cursor: pointer;
            display: block;
            text-align: left;
            border-radius: 8px;
            transition: opacity 0.2s ease;
        }

        .header-home-btn:hover { opacity: 0.75; }
        .header-home-btn:active { opacity: 0.55; }

        .header-brand h1 {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: #111827;
            font-size: 2.2em;
            margin-bottom: 4px;
            font-family: 'Sora', 'Inter', sans-serif;
            font-weight: 700;
            letter-spacing: -0.01em;
            line-height: 1.05;
            background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .header-logo {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
            flex-shrink: 0;
        }

        .header-tagline {
            color: #4a5568;
            font-size: 0.95em;
            font-weight: 500;
            margin: 0;
        }

        .header-user {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .status-dot {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .status-dot-online {
            background: #22c55e;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
            animation: pulse-green 1.8s ease-in-out infinite;
        }

        .status-dot-offline {
            background: #ef4444;
            box-shadow: none;
        }

        @keyframes pulse-green {
            0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
            50%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }
        .user-info-inline { color: #4a5568; margin-right: 20px; }
        .mfa-enforcement { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
        .banner-pending { background:#fefce8; border:2px solid #ca8a04; border-radius:12px; padding:24px 28px; margin-bottom:20px; }
        .banner-rejected { background:#fff1f2; border:2px solid #e11d48; border-radius:12px; padding:24px 28px; margin-bottom:20px; }
        .banner-row { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
        .banner-icon { font-size:1.4em; }
        .pending-title { color:#713f12; margin:0; font-size:1.1em; }
        .rejected-title { color:#881337; margin:0; font-size:1.1em; }
        .pending-msg-primary { color:#78350f; margin:0 0 6px 0; font-size:0.95em; }
        .pending-msg-secondary { color:#92400e; margin:0 0 16px 0; font-size:0.88em; }
        .rejected-msg { color:#9f1239; margin:0 0 12px 0; font-size:0.95em; }
        .banner-expiry { background:#fffaf0; border:2px solid #ed8936; border-radius:10px; padding:14px 18px; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
        .banner-expiry-critical { background:#fff5f5; border-color:#fc8181; }
        .banner-expiry-msg { color:#7b341e; font-weight:600; }
        .nowrap { white-space:nowrap; }
        .preview-card { text-align: center; padding: 20px; background: #f7fafc; border-radius: 12px; margin: 20px 0; }
        .preview-wrap { text-align: center; margin: 20px 0; }
        .preview-filename { color: #4a5568; margin-bottom: 15px; }
        .preview-meta { font-size: 0.9em; color: #718096; }
        .mt-15 { margin-top: 15px; }
        .inbox-table { width: 100%; border-collapse: collapse; }
        .inbox-head-row { text-align: left; border-bottom: 1px solid #e2e8f0; }
        .inbox-item-row { border-bottom: 1px dashed #e2e8f0; }
        .record-actions { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9999;
            align-items: center;
            justify-content: center;
        }
        .modal-overlay.is-open { display: flex; }
        .modal-card {
            background: #fff;
            border-radius: 16px;
            padding: 32px;
            max-width: 420px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }
        .modal-title { margin-bottom: 16px; color: #111827; }
        .modal-subtitle { margin-bottom: 16px; color: #4a5568; font-size: 0.9em; }
        .modal-input {
            width: 100%;
            padding: 12px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            margin-bottom: 12px;
            font-size: 1em;
        }
        .modal-message { min-height: 20px; margin-bottom: 12px; font-size: 0.9em; }
        .modal-actions { display: flex; gap: 12px; }
        .modal-btn-primary,
        .modal-btn-secondary {
            flex: 1;
            padding: 12px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1em;
        }
        .modal-btn-primary { background: var(--accent); color: #fff; }
        .modal-btn-secondary { background: #e2e8f0; color: #111827; }
        .tab-title { margin-bottom: 20px; color: #111827; }
        .tab-title-tight { margin-bottom: 8px; }
        .tab-title-wide { margin-bottom: 30px; }
        .tab-subtitle { color: #4a5568; margin-bottom: 16px; }
        .tab-subtitle-wide { margin-bottom: 20px; }
        .center-muted { text-align: center; color: #4a5568; }
        .center-muted-padded { text-align: center; color: #9ca3af; padding: 40px 0; }
        .center-error { text-align: center; color: #e53e3e; }
        .center-error-padded { text-align: center; color: #e53e3e; padding: 40px 0; }
        .card-max-700 { max-width: 700px; }
        .ml-10 { margin-left: 10px; }
        .mt-14 { margin-top: 14px; }
        .mt-20 { margin-top: 20px; }
        .mb-30 { margin-bottom: 30px; }

        /* ── Standby Tab ─────────────────────────────────────────── */
        .standby-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        @media (max-width: 680px) {
            .standby-grid { grid-template-columns: 1fr; }
        }

        .standby-toggle-card,
        .standby-info-card {
            /* inherits .card styles */
        }

        /* No-commission warning banner */
        .standby-no-commission {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            background: #fffbeb;
            border: 1px solid #f59e0b;
            border-radius: 12px;
            padding: 14px 18px;
            margin-bottom: 20px;
            font-size: 0.9rem;
            max-width: 900px;
        }
        .standby-no-commission a { color: #b45309; font-weight: 600; }
        .standby-warn-icon { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }

        /* Big status dot */
        .standby-big-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            flex-shrink: 0;
            margin-top: 3px;
        }
        .standby-big-dot-online {
            background: #22c55e;
            box-shadow: 0 0 0 0 rgba(34,197,94,.6);
            animation: pulse-green 1.8s ease-in-out infinite;
        }
        .standby-big-dot-offline {
            background: #d1d5db;
            box-shadow: none;
        }

        /* Toggle row */
        .standby-toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding-bottom: 18px;
            border-bottom: 1px solid #f1f5f9;
            margin-bottom: 4px;
        }
        .standby-toggle-info {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        .standby-toggle-label {
            font-weight: 700;
            font-size: 1rem;
            color: #111827;
            margin: 0 0 2px 0;
        }
        .standby-toggle-desc {
            font-size: 0.85rem;
            color: #6b7280;
            margin: 0;
        }

        /* iOS-style toggle switch */
        .standby-switch {
            position: relative;
            display: inline-block;
            width: 52px;
            height: 28px;
            flex-shrink: 0;
            cursor: pointer;
        }
        .standby-switch input { opacity: 0; width: 0; height: 0; }
        .standby-switch-track {
            position: absolute;
            inset: 0;
            background: #d1d5db;
            border-radius: 28px;
            transition: background 0.25s;
        }
        .standby-switch-track::before {
            content: '';
            position: absolute;
            width: 22px;
            height: 22px;
            left: 3px;
            top: 3px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: transform 0.25s cubic-bezier(.4,0,.2,1);
        }
        .standby-switch input:checked + .standby-switch-track {
            background: #22c55e;
        }
        .standby-switch input:checked + .standby-switch-track::before {
            transform: translateX(24px);
        }
        .standby-switch input:disabled + .standby-switch-track {
            opacity: 0.45;
            cursor: not-allowed;
        }

        /* Char counter */
        .standby-char-count {
            font-size: 0.78rem;
            color: #9ca3af;
            margin: 4px 0 0 0;
            text-align: right;
        }

        /* Actions row */
        .standby-actions {
            display: flex;
            gap: 12px;
            align-items: center;
            margin-top: 20px;
        }

        /* Feedback text */
        .standby-status-feedback {
            font-size: 0.85rem;
            min-height: 1.2em;
        }

        /* Info card */
        .standby-info-title {
            font-size: 1rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 14px;
        }
        .standby-info-list {
            padding-left: 18px;
            margin: 0 0 16px 0;
            color: #4b5563;
            font-size: 0.875rem;
            line-height: 1.7;
        }
        .standby-commission-status {
            font-size: 0.85rem;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
        }
        .standby-commission-ok { color: #16a34a; font-weight: 600; }
        .standby-commission-warn { color: #b45309; font-weight: 600; }
        .standby-commission-warn a { color: #b45309; }
        .upload-help { margin-top: 15px; color: #4a5568; }
        .section-heading { margin: 30px 0 20px 0; }
        .notarize-subtitle { max-width: 860px; }
        .notarize-setup-card {
            border: 1px solid #dbeafe;
            background: linear-gradient(145deg, #f8fbff 0%, #ffffff 58%);
        }
        .notarize-setup-title { margin-bottom: 20px; }
        .notarize-setup-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            align-items: stretch;
        }
        .notarize-step {
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            padding: 18px;
            background: #ffffff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }
        .notarize-step-kicker {
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #2563eb;
            margin-bottom: 8px;
        }
        .notarize-step-title {
            margin: 0 0 8px 0;
            color: #1e293b;
            font-size: 1.03rem;
        }
        .notarize-step-copy {
            margin-bottom: 14px;
            color: #475569;
            font-size: 0.92rem;
            line-height: 1.5;
        }
        .upload-status {
            margin-top: 12px;
            font-size: 0.85rem;
            color: #475569;
        }
        .notarize-fallback-upload {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid #e2e8f0;
        }
        .notarize-fallback-title {
            margin-bottom: 6px;
            font-size: 0.88rem;
            font-weight: 700;
            color: #334155;
        }
        .notarize-fallback-copy {
            margin-bottom: 12px;
            font-size: 0.84rem;
            color: #64748b;
        }
        .commission-help {
            margin-top: 8px;
            color: #475569;
            font-size: 0.88rem;
            line-height: 1.45;
        }
        .commission-missing {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 10px;
            background: #fffbeb;
            border: 1px solid #fcd34d;
            color: #92400e;
            font-size: 0.86rem;
        }
        .commission-missing a {
            color: #92400e;
            font-weight: 700;
        }
        .notarize-core-grid {
            align-items: end;
            margin-bottom: 6px;
        }
        .records-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 24px;
        }
        .records-overview {
            background: linear-gradient(145deg, #f8fbff 0%, #ffffff 60%);
            border: 1px solid #dbeafe;
            border-radius: 18px;
            padding: 22px;
            margin-bottom: 22px;
            box-shadow: 0 16px 36px rgba(37, 99, 235, 0.08);
        }
        .records-summary-header {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: flex-start;
            margin-bottom: 18px;
        }
        .records-summary-title {
            margin: 0 0 6px 0;
            color: #0f172a;
        }
        .records-summary-copy {
            margin: 0;
            color: #475569;
            max-width: 660px;
        }
        .records-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
        }
        .record-stat-card {
            background: rgba(255, 255, 255, 0.96);
            border: 1px solid #dbeafe;
            border-radius: 16px;
            padding: 16px 18px;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        }
        .record-stat-label {
            display: block;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #2563eb;
            margin-bottom: 8px;
        }
        .record-stat-value {
            display: block;
            font-size: 1.7rem;
            color: #0f172a;
        }
        .record-stat-footnote {
            display: block;
            margin-top: 6px;
            color: #64748b;
            font-size: 0.85rem;
        }
        .records-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
            flex: 1;
        }
        .records-toolbar-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .records-filter { display: flex; align-items: center; gap: 10px; }
        .records-filter-search {
            flex: 1 1 320px;
        }
        .filter-label { font-weight: 600; color: #374151; white-space: nowrap; }
        .filter-select {
            padding: 8px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 0.9em;
            background: #fff;
        }
        .filter-input {
            width: 100%;
            min-width: 240px;
            padding: 10px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 0.95em;
            background: #fff;
            color: #111827;
        }
        .filter-input:focus,
        .filter-select:focus {
            outline: none;
            border-color: #93c5fd;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
        }
        .records-results-meta {
            margin-bottom: 16px;
            color: #475569;
            font-size: 0.94rem;
        }
        .records-list {
            display: grid;
            gap: 18px;
        }
        .btn-export { padding: 10px 20px; }
        .record-name { margin: 8px 0; color: #111827; }
        .record-header-rich {
            align-items: flex-start;
            gap: 14px;
        }
        .record-secondary {
            margin: 0;
            color: #64748b;
            font-size: 0.93rem;
        }
        .record-badges {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .record-channel {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 7px 12px;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.03em;
        }
        .record-channel-remote {
            background: #dbeafe;
            color: #1d4ed8;
        }
        .record-channel-local {
            background: #ecfdf5;
            color: #047857;
        }
        .record-meta-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        .record-meta-item {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 12px 14px;
        }
        .record-meta-label {
            display: block;
            font-size: 0.76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #64748b;
            margin-bottom: 7px;
        }
        .records-empty-state {
            text-align: center;
            padding: 42px 20px;
            border: 1px dashed #cbd5e1;
            border-radius: 18px;
            background: #f8fafc;
            color: #475569;
        }
        .records-empty-state h3 {
            margin: 0 0 8px 0;
            color: #0f172a;
        }
        .records-empty-state p {
            margin: 0;
        }
        .ron-alert {
            background: #ebf8ff;
            border: 1px solid #90cdf4;
            color: #2b6cb0;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 16px;
        }
        .oath-script {
            background: #f0fff4;
            border: 1px solid #9ae6b4;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .oath-title { color: #276749; }
        .oath-intro { margin: 10px 0 6px 0; color: #276749; font-size: 0.95em; }
        .oath-line { font-style: italic; margin: 6px 0; }
        .oath-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 600; color: #276749; }
        .rep-alert {
            background: #fffaf0;
            border: 1px solid #f6ad55;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 12px;
            font-size: 0.9em;
            color: #744210;
        }
        .attest-box {
            background: #fff5f5;
            border: 2px solid #fc8181;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 16px;
        }
        .attest-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
        .attest-input { margin-top: 3px; flex-shrink: 0; }
        .attest-title { color: #c53030; }
        .title-alert {
            background: #fff5f5;
            border: 1px solid #fc8181;
            border-radius: 10px;
            padding: 16px;
            margin-bottom: 24px;
        }
        .title-alert-list { margin: 8px 0 0 20px; color: #742a2a; }
        .title-step {
            border: 2px solid var(--accent);
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 24px;
        }
        .title-step-disabled {
            border-color: #718096;
            opacity: 0.5;
            pointer-events: none;
        }
        .title-step-title { color: var(--accent-dark); margin-bottom: 4px; }
        .title-step-title-muted { color: #718096; }
        .title-step-subtitle { color: #4a5568; font-size: 0.9em; margin-bottom: 16px; }
        .title-oath-box {
            background: #f0fff4;
            border: 1px solid #9ae6b4;
            border-radius: 8px;
            padding: 12px;
            margin-bottom: 16px;
        }
        .title-oath-title { color: #276749; }
        .title-warning {
            background: #fff5f5;
            border: 1px solid #fc8181;
            border-radius: 6px;
            padding: 10px;
            color: #c53030;
            font-weight: 600;
            margin-top: 8px;
        }
        .mt-12 { margin-top: 12px; }
        .title-complete {
            background: #f0fff4;
            border: 2px solid #38a169;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
        }
        .title-complete-text { color: #276749; }
        .tab-subtitle-guide { color: #4a5568; margin-bottom: 28px; }
        .quick-flow {
            background: linear-gradient(135deg, #eff6ff, #f8fafc);
            border: 1px solid #bfdbfe;
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 22px;
        }
        .quick-flow-header {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            align-items: baseline;
            margin-bottom: 14px;
        }
        .quick-flow-title {
            color: #1e3a8a;
            margin: 0;
            font-size: 1.1em;
        }
        .quick-flow-subtitle {
            color: #334155;
            margin: 0;
            font-size: 0.9em;
        }
        .quick-flow-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .quick-flow-option {
            border: 1px solid #cbd5e1;
            background: #ffffff;
            border-radius: 10px;
            padding: 12px;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            color: #0f172a;
        }
        .quick-flow-option:hover {
            border-color: #60a5fa;
            box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
            transform: translateY(-1px);
        }
        .quick-flow-label {
            display: block;
            font-weight: 700;
            margin-bottom: 4px;
            color: #1e293b;
        }
        .quick-flow-desc {
            display: block;
            font-size: 0.88em;
            color: #475569;
        }
        .quick-flow-steps {
            margin: 14px 0 0 20px;
            color: #1f2937;
        }
        .quick-flow-steps li + li {
            margin-top: 4px;
        }
        @media (max-width: 900px) {
            .quick-flow-grid {
                grid-template-columns: 1fr;
            }
            .records-summary-grid,
            .record-meta-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        .guide-list { margin: 15px 0; padding-left: 20px; }
        .fee-highlight { color: var(--accent-dark); font-weight: 700; }
        .guide-prohibited { border-left: 4px solid #c53030; }
        .guide-prohibited-text { color: #c53030; font-weight: 600; }
        .checklist-title { color: #111827; margin-bottom: 20px; }
        .ron-fee-note { display: none; }
        .ron-fee-note-visible { display: inline; }
        .ron-session-card {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
        }
        .session-link { color: #93c5fd; }
        .btn-row { margin-top: 20px; display: flex; gap: 15px; }
        .settings-shell { margin: 0; max-width: 100%; text-align: left; }
        .mt-0 { margin-top: 0; }
        .mt-10 { margin-top: 10px; }
        .top-divider { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 20px; }
        .top-divider-sm { border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 8px; }
        .mb-12 { margin-bottom: 12px; }
        .form-max-420 { max-width: 420px; }
        .pw-help { margin-top: -6px; color: #4a5568; }
        .subscription-price { font-size: 1.8em; color: #334155; font-weight: 700; margin-bottom: 20px; }
        .subscription-price-unit { font-size: 0.5em; color: #718096; font-weight: 400; }
        .msg-sm { margin-top: 12px; font-size: 0.9em; }
        .payment-options { margin-bottom: 20px; }
        .payment-option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
        .payment-option + .payment-option { margin-top: 12px; }
        .payment-radio { margin-top: 3px; flex-shrink: 0; }
        .status-text { margin-bottom: 14px; color: #4a5568; }
        .msg-strong { margin-top: 14px; font-weight: 600; }
        .mfa-intro { color: #4a5568; margin: 10px 0 20px 0; }
        .mfa-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
        .mfa-qr { max-width: 260px; width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; background: #fff; }
        .mfa-manual { margin-top: 12px; }
        .mfa-enable { max-width: 320px; margin-top: 12px; }
        .mfa-backup-wrap { margin-top: 14px; }
        .danger-text { color: #c53030; }
        .backup-pre {
            background: #f7fafc;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid #e2e8f0;
            word-wrap: break-word;
            font-size: 0.9em;
        }
        .backup-check { margin-top: 4px; display: flex; align-items: center; gap: 8px; }
        .backup-check input { width: 18px; height: 18px; }
        .connect-card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
        .connect-card-last { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
        .card-title { margin-top: 0; }
        .mini-status { margin: 8px 0; color: #4a5568; }
        .action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
        .products-list { margin-top: 14px; }
        .loading-sm { width: 20px; height: 20px; }
        .text-muted { color: #4a5568; }
        .text-danger { color: #c53030; }
        .text-success { color: #2f855a; }
        .text-warning { color: #b7791f; }
        .text-default { color: #1f2937; }
        .products-table { width: 100%; border-collapse: collapse; }
        .products-table thead tr { text-align: left; border-bottom: 1px solid #e2e8f0; }
        .products-table tbody tr { border-bottom: 1px dashed #e2e8f0; }
        .products-table th,
        .products-table td { padding: 8px; }
        .mono { font-family: monospace; }
        .certificate-content {
            font-family: serif;
            line-height: 1.8;
            white-space: pre-wrap;
            border: 2px solid var(--accent);
            padding: 30px;
            margin: 20px 0;
            background: #f8faff;
        }

        /* â”€â”€ Sidebar layout â”€â”€ */
        .app-layout { display: flex; gap: 24px; align-items: flex-start; }
        .sidebar {
            width: 210px;
            flex-shrink: 0;
            background: rgba(255,255,255,0.98);
            border-radius: 20px;
            padding: 16px 10px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1);
            position: sticky;
            top: 20px;
        }
        .nav-group { margin-bottom: 2px; }
        .nav-group-label {
            display: block;
            font-size: 0.67em;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.07em;
            color: #9ca3af;
            padding: 10px 12px 4px;
        }
        .nav-item {
            display: block;
            width: 100%;
            text-align: left;
            padding: 9px 14px;
            border: none;
            background: transparent;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.88em;
            font-weight: 500;
            color: #374151;
            transition: background 0.15s ease, color 0.15s ease;
            margin-bottom: 1px;
            box-shadow: none;
            transform: none;
            overflow: visible;
        }
        .nav-item:hover { background: #f3f4f6; color: #111827; transform: none; box-shadow: none; }
        .nav-item:hover::before { display: none; }
        .nav-item:active { transform: none; }
        .nav-item.active {
            background: linear-gradient(135deg, var(--accent-dark), var(--accent));
            color: white;
            font-weight: 600;
            transform: none;
            box-shadow: 0 3px 10px var(--accent-shadow);
        }
        .nav-item.active::before { display: none; }
        .nav-divider { height: 1px; background: #e5e7eb; margin: 6px 2px; }
        .main-content { flex: 1; min-width: 0; }
        .profile-section { border-top: 1px solid #e2e8f0; padding-top: 24px; margin-top: 24px; }
        .profile-section > h3 { margin-top: 0; margin-bottom: 14px; color: #111827; font-size: 1.1em; }
        @media (max-width: 900px) {
            .app-layout { flex-direction: column; }
            .notarize-setup-grid { grid-template-columns: 1fr; }
            .records-toolbar,
            .records-controls,
            .records-toolbar-actions,
            .record-header-rich {
                flex-direction: column;
                align-items: stretch;
            }
            .record-badges {
                justify-content: flex-start;
            }
            .sidebar {
                width: 100%;
                position: static;
                display: flex;
                flex-wrap: wrap;
                gap: 4px;
                padding: 10px;
                border-radius: 16px;
            }
            .nav-group-label { display: none; }
            .nav-group { display: contents; }
            .nav-divider { display: none; }
            .nav-item { flex: 0 0 auto; padding: 8px 12px; font-size: 0.85em; }
        }
        @media (max-width: 640px) {
            .records-summary-grid,
            .record-meta-grid {
                grid-template-columns: 1fr;
            }
            .filter-input,
            .filter-select {
                min-width: 0;
                width: 100%;
            }
        }
