/* --- RESET & BASE --- */
        *, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; outline: none; }
        html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior-y: none; }

        :root {
          --bg: #f1f5f9; 
          --card-bg: #ffffff; 
          --text-main: #0f172a; 
          --text-muted: #64748b; 
          --border: #e2e8f0;
          --input-bg: #f8fafc;
          
          --primary: #4f46e5; 
          --primary-hover: #4338ca;
          --primary-light: #e0e7ff;
          
          --success-bg: #dcfce7; --success-text: #15803d;
          --warn-bg: #fef9c3; --warn-text: #a16207;
          --err-bg: #fee2e2; --err-text: #b91c1c;
          --info-bg: #dbeafe; --info-text: #1d4ed8;

          --radius-sm: 10px;
          --radius-md: 16px;
          --radius-lg: 24px;
          
          --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
          --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
          --shadow-float: 0 10px 25px -5px rgba(0,0,0,0.1);
          
          --font-main: 'Plus Jakarta Sans', sans-serif;
          --sidebar-w: 280px;
          --sidebar-w-collapsed: 96px;
          --trans-speed: 0.2s ease;
        }

        [data-theme="dark"] {
          --bg: #0f172a; 
          --card-bg: #1e293b; 
          --text-main: #f8fafc; 
          --text-muted: #94a3b8; 
          --border: #334155;
          --input-bg: #0f172a;
          --primary-light: rgba(79, 70, 229, 0.2);
          --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.2);
        }

        [data-theme="stormy"] { --bg: #ebf1f6; --card-bg: #ffffff; --text-main: #384959; --text-muted: #6A89A7; --border: #BDDDFC; --input-bg: #f8fafc; --primary: #6A89A7; --primary-hover: #384959; --primary-light: #BDDDFC; }
        [data-theme="mossy"] { --bg: #f9fbf4; --card-bg: #ffffff; --text-main: #3D4127; --text-muted: #8a925e; --border: #BAC095; --input-bg: #fcfdf9; --primary: #636B2F; --primary-hover: #3D4127; --primary-light: #D4DE95; }
        [data-theme="eclipse"] { --bg: #0F0E47; --card-bg: #272757; --text-main: #f0f0fa; --text-muted: #8686AC; --border: #505081; --input-bg: #0a0930; --primary: #505081; --primary-hover: #8686AC; --primary-light: rgba(80, 80, 129, 0.3); --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.4); }
        [data-theme="lush"] { --bg: #f4fcf6; --card-bg: #ffffff; --text-main: #253D2C; --text-muted: #68BA7F; --border: #b6e6c4; --input-bg: #f8fdf9; --primary: #2E6F40; --primary-hover: #253D2C; --primary-light: #CFFFDC; }

        body { background: var(--bg); color: var(--text-main); font-family: var(--font-main); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
        #app { position: fixed; inset: 0; z-index: 99999; width: 100vw; height: 100vh; overflow-y: auto; overflow-x: hidden; }
        .wrap { min-height: 100vh; display: flex; width: 100%; position: relative; }

        /* --- SIDEBAR --- */
        .side { 
            position: fixed; top: 24px; left: 24px; bottom: 24px;
            width: var(--sidebar-w); background: var(--card-bg); border: 1px solid var(--border);
            border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 12px; 
            z-index: 50; padding: 28px 24px; box-shadow: var(--shadow-card);
            transition: width var(--trans-speed), padding var(--trans-speed); overflow: hidden;
        }
        #desktop-nav { flex: 1; overflow-y: auto; min-height: 0; scrollbar-width: none; }
        #desktop-nav::-webkit-scrollbar { display: none; }
        .side.collapsed { width: var(--sidebar-w-collapsed); padding: 28px 16px; }
        .side.collapsed .nav-label { display: none; opacity: 0; }
        .side.collapsed .sidebar-header { justify-content: center; padding: 0; }
        .side.collapsed .sidebar-brand { display: none; }
        .side.collapsed .nav-btn { justify-content: center; padding: 16px 0; }
        
        .main { flex: 1; margin-left: calc(var(--sidebar-w) + 48px); padding: 24px 32px 120px 0; width: 100%; max-width: 100%; transition: margin-left var(--trans-speed); overflow-x: hidden; }
        .main.expanded { margin-left: calc(var(--sidebar-w-collapsed) + 48px); }
        .container { max-width: 1400px; margin: 0 auto; width: 100%; }

        .app-header { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 32px; margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); position: sticky; top: 24px; z-index: 40; }
        .user-actions { display: flex; align-items: center; gap: 16px; }
        .user-avatar { width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; cursor: pointer; overflow: hidden; border: 2px solid var(--card-bg); transition: transform 0.2s; }
        .user-avatar:hover { transform: scale(1.05); }
        .user-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; width: 100%; box-shadow: var(--shadow-sm); }
        h2 { font-size: 28px; font-weight: 800; margin: 0; color: var(--text-main); letter-spacing: -0.02em; }
        h3 { font-size: 20px; font-weight: 700; margin: 0; color: var(--text-main); }
        h4 { font-size: 16px; font-weight: 700; margin: 0; color: var(--text-main); }
        
        .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
        .grid { display: grid; gap: 24px; width: 100%; }
        .cols-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
        .cols-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
        .ai-modal-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: stretch; }
        .grid-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }

        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 100px; font-weight: 700; cursor: pointer; font-size: 14px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-main); transition: 0.2s ease; white-space: nowrap; }
        .btn:hover { background: var(--bg); border-color: var(--text-muted); }
        .btn.active { background: var(--text-main); color: var(--card-bg); border-color: var(--text-main); } 
        .btn.pri { background: var(--primary); color: white; border: none; }
        .btn.pri:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
        .btn.bad { background: var(--err-bg); color: var(--err-text); border-color: transparent; }
        .btn.bad:hover { background: #fecaca; }
        [data-theme="dark"] .btn.bad:hover { background: #7f1d1d; }
        .btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 12px; }
        .btn.icon-only { width: 44px; height: 44px; padding: 0; border-radius: 14px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-muted); flex-shrink:0; }
        .btn.icon-only:hover { background: var(--bg); color: var(--text-main); }
        .btn.grad { background: linear-gradient(135deg, var(--primary), #a855f7); color: white; border: none; }
        .btn.grad:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3); }

        .field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
        .field label { font-weight: 700; font-size: 13px; color: var(--text-main); text-transform: uppercase; opacity: 0.9;}
        .field .field-info { font-size: 12px; color: var(--text-muted); margin-top: -6px; }

        input:not([type="checkbox"]), select, textarea { width: 100%; padding: 14px 20px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--input-bg); color: var(--text-main); font-family: inherit; font-size: 15px; transition: 0.2s ease; box-sizing: border-box; }
        input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-light); background: var(--card-bg); }

        .segment-control { display: flex; background: var(--input-bg); padding: 4px; border-radius: 14px; border: 1px solid var(--border); gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
        .segment-control::-webkit-scrollbar { display: none; }
        .segment-btn { flex: 1; border: none; background: transparent; padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: 0.2s ease; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 8px; }
        .segment-btn:hover { color: var(--text-main); background: var(--border); }
        .segment-btn.active { background: var(--card-bg); color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

        .file-select-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; cursor: pointer; transition: 0.2s ease; }
        .file-select-item:hover { border-color: var(--primary); background: var(--card-bg); }
        .file-select-item input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; cursor: pointer; flex-shrink: 0; }
        .preview-box { background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; font-size: 14px; line-height: 1.8; color: var(--text-main); max-height: 200px; overflow-y: auto; }

        .table-container { width: 100%; overflow-x: auto; padding-bottom: 12px; }
        .table { border-collapse: separate; border-spacing: 0 8px; width: 100%; }
        .table tbody tr { background: var(--card-bg); box-shadow: var(--shadow-sm); transition: 0.2s ease; border-radius: var(--radius-md); cursor: pointer; border: 1px solid var(--border); }
        .table tbody tr:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--text-muted); }
        .table tbody tr.row-selected { background: var(--primary-light); border: 1px solid var(--primary); }
        .table td { padding: 16px 24px; border: none; vertical-align: middle; color: var(--text-main); font-size: 14px; }
        .table th { text-align: left; padding: 0 24px 8px 24px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; white-space: nowrap; }
        .table td:first-child { border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
        .table td:last-child { border-top-right-radius: var(--radius-md); border-bottom-right-radius: var(--radius-md); text-align: right; }
        .list-checkbox { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; margin: 0; }
        .table tbody .list-checkbox { pointer-events: none; }

        .queue-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: 0.2s ease; gap: 16px; cursor: pointer; }
        .queue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--text-muted); }
        .queue-card.row-selected { background: var(--primary-light); border-color: var(--primary); }

        .sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; padding: 0 8px; min-height: 48px; }
        .sidebar-brand { display: flex; align-items: center; gap: 14px; overflow: hidden; }
        .nav-btn { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 12px; color: var(--text-muted); cursor: pointer; transition: 0.2s ease; font-weight: 600; margin-bottom: 6px; font-size: 15px; border: 1px solid transparent; }
        .nav-btn:hover { background: var(--bg); color: var(--text-main); }
        .nav-btn.active { background: var(--primary); color: #fff; border-color: transparent; font-weight: 700;}
        .nav-btn.active i { color: #fff; }
        
        .kanban-board { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 24px; align-items: flex-start; scroll-behavior: smooth; width: 100%; scroll-snap-type: x mandatory; }
        .kanban-col { min-width: 320px; width: 320px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; scroll-snap-align: start; }
        .kanban-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; cursor: grab; transition: 0.2s ease; box-shadow: var(--shadow-sm); position: relative; }
        .kanban-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-card); }

        .floating-action-bar { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: var(--text-main); color: var(--card-bg); padding: 14px 32px; border-radius: 100px; display: flex; align-items: center; gap: 16px; z-index: 9000; box-shadow: var(--shadow-float); border: 1px solid var(--border); font-weight: 700; transition: transform 0.2s ease; cursor: pointer; white-space: nowrap; }
        .floating-action-bar:hover { transform: translateX(-50%) translateY(-4px); }

        .chip { padding: 8px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid transparent; transition: 0.2s ease; }
        .chip.ap-on { background: var(--success-bg); color: var(--success-text); }
        .chip.ap-off { background: var(--bg); color: var(--text-muted); border-color: var(--border); }
        
        .badge { padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
        .badge.ok { background: var(--success-bg); color: var(--success-text); }
        .badge.warn { background: var(--warn-bg); color: var(--warn-text); }
        .badge.info { background: var(--info-bg); color: var(--info-text); }
        .badge.err { background: var(--err-bg); color: var(--err-text); }
        .badge.soft { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
        
        /* Modal Base */
        .modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); z-index: 100000; display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity 0.2s ease; }
        .modal-backdrop.show { opacity: 1; }
        .modal { width: 100%; max-width: 600px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 24px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); transform: scale(0.95); transition: 0.2s ease; margin: auto; overflow: hidden; }
        .modal.modal-lg { max-width: 850px; }
        .modal-backdrop.show .modal { transform: scale(1); }
        .modal-head { padding: 24px 32px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 20px; flex-shrink: 0; background: var(--card-bg); z-index: 10;}
        .modal-body { padding: 32px; overflow-y: auto; font-size: 15px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
        
        /* --- FULLSCREEN MODAL FIX --- */
        .modal-fullscreen { width: 95vw; max-width: 1400px; height: 95vh; max-height: 95vh; }
        .ai-modal-content-wrap { flex: 1; overflow: hidden; padding: 24px 32px; display: flex; flex-direction: column; }
        .ai-modal-grid { flex: 1; overflow: hidden; display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: stretch; }
        .ai-left-col { display:flex; flex-direction:column; gap:20px; overflow-y:auto; padding-right: 12px; }
        .ai-right-col { display:flex; flex-direction:column; gap: 16px; flex: 1; overflow: hidden; min-height: 0; }
        #ai-body-editor { flex: 1; display: flex; flex-direction: column; min-height: 0; }
        #ai-body-editor .ql-container { flex: 1; overflow-y: auto; }
        
        .theme-card { border: 2px solid var(--border); border-radius: 16px; padding: 16px; cursor: pointer; transition: 0.2s; display:flex; flex-direction:column; gap:12px; background: var(--card-bg); }
        .theme-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
        .theme-card.active { border-color: var(--primary); background: var(--primary-light); }
        .swatch-group { display:flex; border-radius:8px; overflow:hidden; height:24px; width: 100%; border: 1px solid rgba(0,0,0,0.05); }
        .swatch { flex:1; height:100%; }

        .profile-header-card { background: var(--primary); border-radius: var(--radius-lg); padding: 40px; color: white; display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
        .avatar-uploader { width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 4px solid #fff; position: relative; margin-bottom: 16px; cursor: pointer; overflow: hidden; transition: 0.2s ease; }
        .avatar-uploader:hover { transform: scale(1.05); }
        .avatar-uploader img { width: 100%; height: 100%; object-fit: cover; }
        .avatar-uploader-icon { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.5); opacity: 0; transition: 0.2s; color: white; }
        .avatar-uploader:hover .avatar-uploader-icon { opacity: 1; }

        .mob-launcher { display: none; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
        .launch-card { background: var(--card-bg); border-radius: 20px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: 0.2s ease; }
        .launch-card:active { transform: scale(0.95); background: var(--bg); }
        .launch-ico { width: 48px; height: 48px; background: var(--primary-light); color: var(--primary); border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px; }
        .launch-label { font-size: 12px; font-weight: 700; color: var(--text-main); text-align: center; }

        .app-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top: 1px solid var(--border); padding: 16px 24px max(16px, env(safe-area-inset-bottom)) 24px; z-index: 100001; justify-content: space-between; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); }
        .abn-item { display: flex; flex-direction: column; align-items: center; background: none; border: none; color: var(--text-muted); gap: 0; padding: 0; cursor: pointer; flex: 1; transition: 0.2s ease; }
        .abn-item.active { color: var(--primary); transform: translateY(-4px); }

        .lucide-spin { animation: spin 2s linear infinite; }
        @keyframes spin { 100% { transform: rotate(360deg); } }

        #install-prompt {
            animation: pop-up 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        @keyframes pop-up {
            0% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.9); }
            100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
        }
        @media (max-width: 900px) {
            #install-prompt {
                bottom: 90px !important; /* Posisikan di atas navigasi bawah mobile */
            }
        }

        .editor-dynamic-med { min-height: 300px; }
        .ai-modal-footer { padding: 20px 32px; border-top: 1px solid var(--border); background: var(--card-bg); z-index: 10;}

        /* --- LOGIN MODE FIXES --- */
        body.login-mode { background: var(--bg); }
        body.login-mode #sidebar { display: none !important; }
        body.login-mode #mobile-nav { display: none !important; }
        body.login-mode #header-area { display: none !important; }
        body.login-mode .main { margin-left: 0 !important; padding: 0 !important; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
        body.login-mode .container { width: 100%; max-width: 450px; padding: 24px; margin: 0 auto; }

        @media (max-width: 900px) {
          .side { display: none; }
          .main { margin-left: 0; padding: 0 16px max(170px, calc(140px + env(safe-area-inset-bottom))) 16px; width: 100%; max-width: 100%; overflow-x: hidden; }
          .app-header { top: 16px; margin: 16px 0 24px 0; border-radius: 20px; padding: 16px; position: sticky; z-index: 900; width: auto; }
          .app-bottom-nav { display: flex; }
          .mob-launcher { display: grid; }
          .kanban-col { min-width: 85vw; width: 85vw; }
          .cols-4, .cols-2, .ai-modal-grid { grid-template-columns: 1fr; gap: 20px; }
          .card { padding: 20px; border-radius: 20px; }
          .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
          .table thead { display: none; }
          .table tbody tr { margin-bottom: 12px; padding: 16px; }
          .table td { padding: 6px 0; border: none; display: block; word-break: break-word; }
          .table td:first-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }
          .table td:last-child { border-top-right-radius: 0; border-bottom-right-radius: 0; text-align: left; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
          .modal-backdrop { align-items: flex-end; padding: 0; z-index: 100000; }
          .modal { width: 100%; max-width: 100% !important; height: auto; max-height: calc(100dvh - 20px); position: absolute; bottom: 0; left: 0; border-radius: 32px 32px 0 0; transform: translateY(100%); margin: 0; display: flex; flex-direction: column; }
          .modal.modal-fullscreen { width: 100vw !important; max-width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; border-radius: 0 !important; }
          .modal.modal-fullscreen .modal-head { border-radius: 0; }
          .modal-backdrop.show .modal { transform: translateY(0); scale: 1; }
          .modal-head { padding: 20px 24px 16px 24px; border-radius: 32px 32px 0 0; }
          .modal-body { padding: 20px 24px; padding-bottom: max(32px, env(safe-area-inset-bottom)); gap: 16px; overflow-y: auto; }
          .ai-modal-content-wrap { overflow-y: auto !important; display: block !important; padding: 20px 24px !important; }
          .ai-modal-grid { display: flex !important; flex-direction: column !important; overflow: visible !important; gap: 24px !important; }
          .ai-left-col { overflow-y: visible !important; padding-right: 0 !important; }
          .ai-right-col { overflow: visible !important; flex: none !important; min-height: 70dvh !important; }
          .ai-right-col .field:last-child { flex: 1 !important; display: flex !important; flex-direction: column !important; }
          .ai-modal-footer { padding: 16px 24px max(24px, env(safe-area-inset-bottom)); }
          #ai-files { min-height: 150px; max-height: 250px; }
          .editor-dynamic-med { min-height: 200px; }
          .floating-action-bar { bottom: 90px; padding: 12px 20px; width: auto; min-width: 90%; justify-content: center; border-radius: 100px; gap: 8px;}
          .floating-action-bar .btn { font-size: 12px; padding: 8px 12px;}
          .topbar > div, .topbar .segment-control { width: 100%; justify-content: flex-start; }
          body.login-mode .main { padding: 16px !important; }

          /* === MOBILE ENHANCEMENT PATCH === */
          input:not([type="checkbox"]), select, textarea { font-size: 16px !important; }
          .abn-item { min-height: 52px; padding: 8px 4px; justify-content: center; gap: 3px; }
          .floating-action-bar { bottom: max(90px, calc(68px + env(safe-area-inset-bottom))); max-width: calc(100vw - 32px); }
          #toast-wrap { right: 16px !important; bottom: max(130px, calc(110px + env(safe-area-inset-bottom))) !important; max-width: calc(100vw - 32px); }
          h2 { font-size: 22px; letter-spacing: -0.01em; }
          h3 { font-size: 17px; }
          h4 { font-size: 15px; }
          .topbar { margin-bottom: 20px; gap: 12px; }
          .card { margin-bottom: 16px; }
          .btn { min-height: 44px; }
          .btn.sm { min-height: 38px; }
          .btn.icon-only { width: 44px; height: 44px; min-height: 44px; }
          .nav-btn { min-height: 52px; }
          .segment-btn { padding: 10px 12px; font-size: 12px; min-height: 44px; }
          .queue-card { padding: 16px; gap: 12px; }
          .profile-header-card { padding: 28px 20px; }
          .avatar-uploader { width: 80px; height: 80px; }
          .kanban-board { scroll-padding: 16px; }
          .container { padding-bottom: 8px; }
          .ai-modal-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
        }