/* Test Hole Tagger - Dark Sleek Mobile PWA */
:root {
    --bg: #0a0a0f;
    --bg2: #12121a;
    --bg3: #1a1a2e;
    --bg4: #242440;
    --accent: #00d4aa;
    --accent2: #00b4d8;
    --text: #e8e8f0;
    --text2: #a0a0b8;
    --text3: #666680;
    --danger: #ff4466;
    --warning: #ffaa33;
    --success: #00d4aa;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Light theme */
[data-theme="light"] {
    --bg: #f5f5f8;
    --bg2: #eeeef2;
    --bg3: #e2e2ea;
    --bg4: #d0d0dc;
    --text: #1a1a2e;
    --text2: #555568;
    --text3: #888898;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .header {
    background: #ffffff;
    border-bottom: 1px solid #ddd;
}
[data-theme="light"] .bottom-nav,
[data-theme="light"] .app-nav {
    background: #ffffff;
    border-top: 1px solid #ddd;
}
[data-theme="light"] .gps-bar { background: #fff; border: 1px solid #ddd; color: #555; }
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select {
    background: #fff !important;
    border-color: #ccc !important;
    color: #1a1a2e !important;
}
[data-theme="light"] .project-card { background: #fff; border: 1px solid #e0e0e8; }
[data-theme="light"] .modal-overlay { background: rgba(0,0,0,0.3); }
[data-theme="light"] #modalContent { background: #fff; color: #1a1a2e; }
[data-theme="light"] .settings-item { border-bottom-color: #e0e0e8; }
[data-theme="light"] .regs-msg-assistant { background: #fff; border-color: #ddd; color: #333; }
[data-theme="light"] .regs-input-bar { background: #fff; border-top-color: #ddd; }
[data-theme="light"] .regs-input-bar input { background: #f0f0f4 !important; border-color: #ddd !important; color: #1a1a2e !important; }
[data-theme="light"] .regs-location-bar { background: #fff; border-bottom-color: #ddd; }
[data-theme="light"] .regs-suggestion { background: #fff; border-color: #ddd; color: #555; }
[data-theme="light"] .regs-citation-chip { background: #f0f8f6; border-color: #cce8e0; }

/* Midnight theme */
[data-theme="midnight"] {
    --bg: #0d1117;
    --bg2: #161b22;
    --bg3: #21262d;
    --bg4: #30363d;
    --text: #c9d1d9;
    --text2: #8b949e;
    --text3: #484f58;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }

/* App Shell */
#app {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
}

.screen {
    display: none;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.screen.active {
    display: flex;
}
#reportFrame, #gisViewerMap { flex: 1; min-height: 0; }

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
    min-height: 60px;
}
.header h1 {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-back {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-action {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    margin: -8px -12px;
}

/* Scrollable Content */
.content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
}

/* Auth Screens */
.auth-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    padding: 40px 24px;
}
.auth-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 16px;
}
.auth-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 16px;
    object-fit: cover;
}
.auth-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}
.auth-subtitle {
    color: var(--text2);
    font-size: 15px;
    margin-bottom: 32px;
}
.auth-form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row .form-group { flex: 1; }

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg3);
    border: 1px solid var(--bg4);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.15);
}
input::placeholder, textarea::placeholder {
    color: var(--text3);
}
textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
    background: var(--bg3);
    color: var(--text);
    border: 1px solid var(--bg4);
}

.btn-danger {
    background: rgba(255,68,102,0.15);
    color: var(--danger);
    border: 1px solid rgba(255,68,102,0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    padding: 8px 0;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 14px;
}

.btn-block { width: 100%; }

/* Cards */
.card {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.card:active {
    background: var(--bg3);
    transform: scale(0.98);
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.card-meta {
    font-size: 13px;
    color: var(--text2);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-active { background: rgba(0,212,170,0.15); color: var(--accent); }
.badge-completed { background: rgba(0,180,216,0.15); color: var(--accent2); }
.badge-pending { background: rgba(255,170,51,0.15); color: var(--warning); }

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}
.empty-state p {
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 280px;
}

/* Bottom Nav */
/* Screen container */
.screen-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    position: relative;
}

/* Shared Navigation - mobile: bottom bar */
.app-nav {
    display: flex;
    background: var(--bg2);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 8px 0;
    padding-bottom: calc(8px + var(--safe-bottom));
    flex-shrink: 0;
    order: 99;
}
.app-nav .nav-brand { display: none; }
#app.app--unauthed .app-nav { display: none; }
.bottom-nav { display: none; }

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    background: none;
    border: none;
    color: var(--text3);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.nav-item span { pointer-events: none; }

/* Small action buttons (used in project photos, etc.) */
.hole-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.hole-action-btn:hover {
    background: var(--bg4);
    color: var(--text);
    border-color: rgba(255,255,255,0.12);
}
.hole-action-btn svg { flex-shrink: 0; }

/* Export bar - fixed above bottom nav */
.export-bar {
    padding: 10px 20px;
    background: var(--bg2);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.export-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: var(--bg3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.export-bar-btn:hover {
    background: var(--bg4);
    border-color: rgba(255,255,255,0.15);
}
.export-bar-btn svg { flex-shrink: 0; }

/* Project FAB sits above export bar */
.project-fab {
    bottom: calc(64px + var(--safe-bottom));
}

/* Project photos section */
.project-photos-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 24px; height: 24px; }

/* FAB */
.fab {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom));
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,212,170,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    z-index: 50;
}
.fab:active { transform: scale(0.9); }

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 12px;
}
.photo-grid-item {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-grid-item .photo-type-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(0,0,0,0.7);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.photo-grid-actions {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.photo-grid-item:hover .photo-grid-actions,
.photo-grid-item:focus-within .photo-grid-actions {
    opacity: 1;
    pointer-events: auto;
}
@media (hover: none) {
    .photo-grid-actions { opacity: 1; pointer-events: auto; }
}
.photo-grid-action {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: rgba(0,0,0,0.65);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.1s ease;
}
.photo-grid-action:hover { background: rgba(0,0,0,0.85); }
.photo-grid-action:active { transform: scale(0.92); }

/* Delete button on cards */
.btn-icon-delete {
    background: none;
    border: 1px solid rgba(255,77,77,0.3);
    border-radius: 8px;
    padding: 4px 6px;
    cursor: pointer;
    color: #ff4d4d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.btn-icon-delete:hover, .btn-icon-delete:active {
    background: rgba(255,77,77,0.15);
    border-color: #ff4d4d;
}

/* Hole info grid */
.hole-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
}
.hole-info-grid .soil-stat {
    background: var(--bg2);
    padding: 8px 12px;
    margin: 0;
}

/* Photo type groups */
.photo-type-group {
    margin-bottom: 16px;
}
.photo-type-group-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

/* Add menu */
.add-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}
.add-menu-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s;
}
.add-menu-btn:hover, .add-menu-btn:active {
    background: var(--bg3);
    border-color: var(--accent);
}
.add-menu-btn svg {
    flex-shrink: 0;
    color: var(--accent);
}
.add-menu-title {
    font-size: 15px;
    font-weight: 600;
}
.add-menu-desc {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

/* Camera View */
.camera-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000;
    display: none;
    flex-direction: column;
}
.camera-view.active { display: flex; }
.camera-preview {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.camera-preview canvas {
    display: none;
}
.camera-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}
.camera-overlay .coord-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.camera-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 24px 40px;
    padding-bottom: calc(24px + var(--safe-bottom));
    background: rgba(0,0,0,0.9);
}
.camera-shutter {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.camera-shutter::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.1s;
}
.camera-shutter:active::after { transform: scale(0.85); }
.camera-close, .camera-flip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo Type Selector */
.photo-type-selector {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.9);
    overflow-x: auto;
}
.photo-type-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.photo-type-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Soil Analysis Card */
.soil-analysis {
    background: var(--bg3);
    border: 1px solid var(--bg4);
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 16px;
}
.soil-analysis h4 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ai-disclaimer {
    font-size: 11px;
    color: var(--text2);
    background: rgba(255,200,0,0.07);
    border: 1px solid rgba(255,200,0,0.2);
    border-radius: 6px;
    padding: 7px 10px;
    margin-bottom: 14px;
    line-height: 1.5;
}
.soil-stat {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
}
.soil-stat:last-child { border: none; }
.soil-stat-label { color: var(--text2); min-width: 110px; flex-shrink: 0; }
.soil-stat-value { font-weight: 600; text-align: right; max-width: 65%; }
.soil-rating {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}
.soil-rating-dot {
    width: 32px;
    height: 6px;
    border-radius: 3px;
    background: var(--bg4);
}
.soil-rating-dot.filled { background: var(--accent); }
.soil-rating-dot.filled.warning { background: var(--warning); }
.soil-rating-dot.filled.danger { background: var(--danger); }

/* GPS Info Bar */
.gps-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg3);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: 'SF Mono', monospace;
    color: var(--text2);
    margin-bottom: 16px;
}
.project-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 20px;
    background: var(--bg2);
    border-top: 1px solid var(--bg4);
    border-bottom: 1px solid var(--bg4);
    margin-bottom: 4px;
}
.proj-info-item {
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
}
.proj-info-item strong {
    color: var(--text1);
    font-weight: 600;
}
.gps-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Subscription Card */
.sub-card {
    background: var(--bg2);
    border: 1px solid var(--bg4);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.sub-price {
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sub-price span { font-size: 16px; font-weight: 400; }
.sub-features {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}
.sub-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sub-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 900;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg2);
    border-radius: var(--radius) var(--radius) 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.modal-handle {
    width: 40px;
    height: 4px;
    background: var(--bg4);
    border-radius: 2px;
    margin: 0 auto 20px;
}
.modal h3 {
    font-size: 20px;
    margin-bottom: 20px;
}
.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--bg4);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, transform 0.1s ease;
}
.modal-close-btn:hover { background: var(--bg4); }
.modal-close-btn:active { transform: scale(0.92); }
.modal { position: relative; }

/* Photo viewer */
.photo-viewer-img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    display: block;
    margin-top: 8px;
}
.photo-viewer-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.photo-viewer-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 14px;
}
.btn-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Toast */
.toast-container {
    position: fixed;
    top: calc(20px + var(--safe-top));
    left: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--bg3);
    border: 1px solid var(--bg4);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}
.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--danger); }
@keyframes toastIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg4);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    flex-direction: column;
    gap: 16px;
}
.loading-overlay.active { display: flex; }
.loading-overlay .spinner { width: 40px; height: 40px; }
.loading-text { color: var(--text2); font-size: 14px; }

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text2); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.hidden { display: none !important; }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text3);
    font-size: 12px;
    margin: 20px 0;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg4);
}

/* Profile Screen */
#screen-profile .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#screen-profile .auth-form {
    width: 100%;
    max-width: 420px;
}

/* Settings List */
.settings-list {
    background: var(--bg2);
    border-radius: var(--radius);
    overflow: hidden;
}
.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.settings-item:last-child { border: none; }
.settings-item:active { background: var(--bg3); }
.settings-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.settings-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.settings-item-text h4 { font-size: 15px; font-weight: 600; }
.settings-item-text p { font-size: 12px; color: var(--text2); }
.settings-item-arrow { color: var(--text3); font-size: 18px; }

/* Usage Stats */
.usage-loading {
    text-align: center;
    padding: 32px 16px;
    color: var(--text2);
    font-size: 14px;
}
.usage-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text2);
    margin: 0 0 12px 0;
}
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.usage-card {
    background: var(--bg2);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
}
.usage-card-value {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.usage-card-label {
    font-size: 11px;
    color: var(--text2);
    margin-top: 4px;
    font-weight: 500;
}
.usage-user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.usage-user-card {
    background: var(--bg2);
    border-radius: var(--radius);
    padding: 16px;
}
.usage-user-header {
    margin-bottom: 12px;
}
.usage-user-name {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.usage-role-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gradient);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
}
.usage-user-email {
    font-size: 12px;
    color: var(--text2);
    margin-top: 2px;
}
.usage-user-meta {
    font-size: 11px;
    color: var(--text3);
    margin-top: 4px;
}
.usage-user-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.usage-stat {
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 10px 8px;
    text-align: center;
}
.usage-stat-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--accent);
}
.usage-stat-lbl {
    display: block;
    font-size: 10px;
    color: var(--text2);
    margin-top: 2px;
}

/* Photo review */
.photo-review {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1100;
    display: none;
    flex-direction: column;
}
.photo-review.active { display: flex; }
.photo-review img {
    flex: 1;
    object-fit: contain;
    width: 100%;
}
.photo-review-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    padding-bottom: calc(20px + var(--safe-bottom));
    flex-shrink: 0;
    background: #000;
}
.photo-review-actions .btn {
    height: 54px;
    font-size: 16px;
}

/* ── Regulations Chat ─────────────────────────────────────────────────── */
#screen-regs.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.regs-chat-messages {
    min-height: 0;
}
.regs-location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #12121f;
    border-bottom: 1px solid #2a2a3a;
    flex-shrink: 0;
}
#regsLocationLabel {
    font-size: 13px;
    font-weight: 600;
    color: #00d4aa;
}
.regs-location-btn {
    background: none;
    border: 1px solid #2a2a3a;
    color: #888;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
}
.regs-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.regs-welcome {
    text-align: center;
    padding: 24px 8px;
    color: #aaa;
}
.regs-welcome-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.regs-welcome h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}
.regs-welcome p {
    font-size: 13px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto 20px;
}
.regs-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.regs-suggestion {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    color: #ccc;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s;
}
.regs-suggestion:hover {
    border-color: #00d4aa;
    color: #fff;
}
.regs-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.55;
    word-wrap: break-word;
}
.regs-msg-user {
    background: linear-gradient(135deg, #00d4aa, #00b4d8);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.regs-msg-assistant {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.regs-msg-thinking {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    padding: 14px 18px;
}
.regs-msg-error {
    background: #2a1a1a;
    border: 1px solid #ef4444;
    color: #fca5a5;
    align-self: flex-start;
    font-size: 13px;
}
.regs-thinking-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}
.regs-thinking-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4aa;
    animation: regsDot 1.2s infinite;
}
.regs-thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.regs-thinking-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes regsDot {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}
.regs-citations {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #2a2a3a;
}
.regs-citations-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 700;
}
.regs-citation-chip {
    display: inline-block;
    background: #0d0d1a;
    border: 1px solid #2a2a3a;
    color: #00b49a;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    margin: 2px 3px 2px 0;
}
.regs-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #12121f;
    border-top: 1px solid #2a2a3a;
    flex-shrink: 0;
    padding-bottom: 10px;
}
.regs-input-bar input {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 22px;
    font-size: 14px;
    outline: none;
}
.regs-input-bar input:focus {
    border-color: #00d4aa;
}
.regs-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa, #00b4d8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: #000;
}

/* ── Project Filter Tabs ──────────────────────────────────────────── */
.project-tabs {
    display: flex;
    gap: 6px;
    padding: 0 0 14px;
}
.project-tab {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid var(--bg4);
    background: var(--bg2);
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.project-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 700;
}
.card-status-btn {
    padding: 6px 16px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.badge-active { background: #e0faf4; color: #00866a; }
.badge-pending { background: #fff3e0; color: #e65c00; }
.badge-completed { background: #e0f0ff; color: #0066cc; }
.badge-declined { background: #fde8e8; color: #cc0000; }
.status-pick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.status-pick-btn {
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
.status-pick-btn.current {
    border-color: var(--accent);
}
.card-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--bg4);
}
.card-avatar-default {
    padding: 4px;
    background: var(--bg2);
}
.card-body {
    flex: 1;
    min-width: 0;
}
.mb-4 { margin-bottom: 4px; }

/* ── Voice Mic Button ─────────────────────────────────────────────── */
.regs-mic-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg3);
    border: 2px solid var(--bg4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text2);
    transition: all 0.2s;
}
.regs-mic-btn.recording {
    background: #ff4466;
    border-color: #ff4466;
    color: #fff;
    animation: micPulse 1s ease-in-out infinite;
}
@keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,102,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255,68,102,0); }
}

/* ==================== ADMIN DROPDOWN ==================== */
.admin-dropdown {
    position: relative;
    margin-bottom: 12px;
}
.admin-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--bg4);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s;
}
.admin-dropdown-trigger:hover,
.admin-dropdown.open .admin-dropdown-trigger {
    border-color: var(--accent);
}
.admin-dropdown-trigger svg:first-child { color: var(--accent); flex-shrink: 0; }
.admin-dropdown-selected { flex: 1; text-align: left; }
.admin-dropdown-chevron {
    color: var(--text3);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.admin-dropdown.open .admin-dropdown-chevron { transform: rotate(180deg); }

.admin-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg2);
    border: 1px solid var(--bg4);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 100;
    overflow: hidden;
    max-height: 340px;
    display: none;
    flex-direction: column;
}
.admin-dropdown.open .admin-dropdown-panel { display: flex; }

.admin-dropdown-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--bg4);
    flex-shrink: 0;
}
.admin-dropdown-search-wrap svg { color: var(--text3); flex-shrink: 0; }
.admin-dropdown-search {
    flex: 1;
    background: none !important;
    border: none !important;
    outline: none;
    font-size: 13px;
    color: var(--text) !important;
    padding: 0 !important;
    min-width: 0;
}
.admin-dropdown-search::placeholder { color: var(--text3) !important; }

.admin-dropdown-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 4px 0;
}
.admin-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    gap: 10px;
    transition: background 0.1s;
}
.admin-dropdown-item:hover { background: var(--bg3); }
.admin-dropdown-item.active {
    background: rgba(0,212,170,0.1);
    color: var(--accent);
}
.admin-dropdown-item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.admin-dropdown-item-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-dropdown-item-email {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-dropdown-item.active .admin-dropdown-item-email { color: rgba(0,212,170,0.6); }
.admin-dropdown-item-count {
    background: var(--bg4);
    color: var(--text3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.admin-dropdown-item.active .admin-dropdown-item-count {
    background: rgba(0,212,170,0.2);
    color: var(--accent);
}
.admin-dropdown-divider {
    height: 1px;
    background: var(--bg4);
    margin: 4px 0;
}

.card-owner-badge {
    display: inline-block;
    background: rgba(0,180,216,0.12);
    color: var(--accent2);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* Light theme */
[data-theme="light"] .admin-dropdown-trigger { background: #fff; border-color: #ddd; }
[data-theme="light"] .admin-dropdown-panel { background: #fff; border-color: #ddd; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
[data-theme="light"] .admin-dropdown-search-wrap { border-bottom-color: #eee; }
[data-theme="light"] .admin-dropdown-item:hover { background: #f5f5f8; }
[data-theme="light"] .admin-dropdown-item.active { background: rgba(0,212,170,0.08); }
[data-theme="light"] .admin-dropdown-item-count { background: #eee; color: #888; }
[data-theme="light"] .admin-dropdown-divider { background: #eee; }
[data-theme="light"] .card-owner-badge { background: rgba(0,180,216,0.1); }

/* ==================== TUTORIAL FULLSCREEN OVERLAY ==================== */
.tut-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: none;
    flex-direction: column;
}
.tut-overlay.active { display: flex; }

.tut-header {
    flex-shrink: 0;
    padding: 12px 20px 8px;
    padding-top: calc(12px + var(--safe-top));
    position: relative;
}
.tut-close {
    position: absolute;
    top: calc(8px + var(--safe-top));
    right: 12px;
    background: none;
    border: none;
    color: var(--text3);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 10px;
    z-index: 1;
}
.tut-close:hover { color: var(--text); }
.tut-progress {
    height: 3px;
    background: var(--bg4);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}
.tut-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.tut-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.tut-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px 20px;
}

.tut-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    padding-bottom: calc(12px + var(--safe-bottom));
    border-top: 1px solid var(--bg3);
    gap: 12px;
}
.tut-btn-prev, .tut-btn-next {
    min-width: 90px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}
.tut-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}
.tut-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.tut-dot.active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
}

/* Step content */
.tut-step-content {
    padding-top: 16px;
}
.tut-icon-wrap {
    width: 88px;
    height: 88px;
    background: rgba(0,212,170,0.08);
    border: 1px solid rgba(0,212,170,0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.tut-step-content h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}
.tut-desc {
    text-align: center;
    color: var(--text2);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.tut-example-q {
    background: var(--bg3);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 8px;
    line-height: 1.4;
}
.tut-example-q:last-child { margin-bottom: 0; }
.tut-ready {
    text-align: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--bg4);
}
.tut-ready h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tut-ready p {
    color: var(--text2);
    font-size: 14px;
}

/* Card styles used in tutorial steps */
.tutorial-card {
    background: var(--bg2);
    border: 1px solid var(--bg4);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 12px;
}
.tutorial-card-highlight { border-color: rgba(0,212,170,0.3); }
.tutorial-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bg4);
}
.tutorial-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tutorial-card-body { padding: 12px 16px; }

.tutorial-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 13px;
    gap: 12px;
}
.tutorial-detail-row + .tutorial-detail-row { border-top: 1px solid rgba(255,255,255,0.04); }
.tutorial-detail-label {
    color: var(--text3);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 70px;
}
.tutorial-detail-row > span:last-child { text-align: right; }
.tutorial-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; }

.tutorial-hole-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.tutorial-hole-row + .tutorial-hole-row { border-top: 1px solid rgba(255,255,255,0.04); }
.tutorial-hole-badge {
    background: var(--bg4); color: var(--accent);
    font-size: 13px; font-weight: 700;
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tutorial-hole-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tutorial-hole-info .tutorial-mono { font-size: 11px; }
.tutorial-hole-status { flex-shrink: 0; }

.tutorial-badge-good { background: rgba(0,212,170,0.15); color: var(--success); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.tutorial-badge-warn { background: rgba(255,170,51,0.15); color: var(--warning); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.tutorial-badge-pending { background: rgba(255,255,255,0.06); color: var(--text3); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.tutorial-text-muted { color: var(--text3); font-size: 11px; }

.tutorial-tip {
    background: rgba(0,212,170,0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text2);
    line-height: 1.5;
    margin-top: 12px;
}

.tutorial-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.tutorial-photo-item { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg2); border: 1px solid var(--bg4); }
.tutorial-photo-item img { width: 100%; height: 140px; object-fit: cover; display: block; }
.tutorial-photo-caption { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }

.tutorial-rating { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--warning); }
.tutorial-rating span { font-size: 11px; font-weight: 600; color: var(--text2); }
.tutorial-rating-4, .tutorial-rating-5 { color: var(--success); }
.tutorial-rating-1, .tutorial-rating-2 { color: var(--danger); }

.tutorial-comp-bars { display: flex; flex-direction: column; gap: 10px; }
.tutorial-comp-row { display: flex; align-items: center; gap: 10px; }
.tutorial-comp-label { font-size: 12px; font-weight: 500; color: var(--text2); width: 36px; flex-shrink: 0; }
.tutorial-comp-track { flex: 1; height: 8px; background: var(--bg4); border-radius: 4px; overflow: hidden; }
.tutorial-comp-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.tutorial-comp-sand { background: #e8c547; }
.tutorial-comp-rock { background: #8a8a9a; }
.tutorial-comp-silt { background: #6ab0de; }
.tutorial-comp-clay { background: #c47a5a; }
.tutorial-comp-pct { font-size: 12px; font-weight: 600; width: 32px; text-align: right; flex-shrink: 0; }

.tutorial-callout {
    background: rgba(0,180,216,0.08);
    border: 1px solid rgba(0,180,216,0.2);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 12px;
}
.tutorial-callout-title { font-size: 12px; font-weight: 700; color: var(--accent2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.tutorial-callout p { font-size: 13px; line-height: 1.6; color: var(--text2); margin: 0; }

.tutorial-features { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tutorial-feature {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bg2); border: 1px solid var(--bg4);
    border-radius: var(--radius); padding: 14px 16px;
}
.tutorial-feature-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    background: rgba(0,212,170,0.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.tutorial-feature strong { display: block; font-size: 14px; margin-bottom: 4px; }
.tutorial-feature p { font-size: 12px; color: var(--text2); line-height: 1.5; margin: 0; }

/* Light theme overrides */
[data-theme="light"] .tut-overlay { background: #f5f5f8; }
[data-theme="light"] .tut-footer { border-top-color: #e0e0e8; }
[data-theme="light"] .tutorial-card { background: #fff; border-color: #e0e0e8; }
[data-theme="light"] .tutorial-card-header { border-bottom-color: #e0e0e8; }
[data-theme="light"] .tutorial-hole-row + .tutorial-hole-row { border-top-color: #eee; }
[data-theme="light"] .tutorial-detail-row + .tutorial-detail-row { border-top-color: #eee; }
[data-theme="light"] .tutorial-hole-badge { background: #eee; }
[data-theme="light"] .tutorial-photo-item { background: #fff; border-color: #e0e0e8; }
[data-theme="light"] .tutorial-feature { background: #fff; border-color: #e0e0e8; }
[data-theme="light"] .tutorial-comp-track { background: #e0e0e8; }
[data-theme="light"] .tut-example-q { background: #e8e8ec; }
[data-theme="light"] .tut-dot { background: #d0d0dc; }
[data-theme="light"] .tut-ready { border-top-color: #e0e0e8; }
