:root{color:#1e293b;background:#f1f5f9;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden}button,textarea,input{font:inherit}button{border:0;border-radius:7px;padding:8px 16px;background:#b3132c;color:#fff;cursor:pointer;font-weight:600;font-size:13px;white-space:nowrap}button:disabled{background:#9aa7b4;cursor:not-allowed}.page{height:100vh;max-width:1200px;margin:0 auto;padding:10px 16px;display:flex;flex-direction:column;gap:8px}.topbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;padding-bottom:8px;border-bottom:1px solid #e2e8f0;box-shadow:0 2px 6px #0f172a0a}.eyebrow{color:#b3132c;font-weight:700;font-size:18px;display:flex;align-items:center;gap:8px}.app-logo{width:32px;height:32px;flex-shrink:0;border-radius:7px}.status-pill{font-size:11px;font-weight:700;padding:3px 10px;border-radius:20px;letter-spacing:.02em}.status-success{background:#dcfce7;color:#166534}.status-busy{background:#fef9c3;color:#854d0e}.status-error{background:#fee2e2;color:#991b1b}.status-neutral{background:#f1f5f9;color:#64748b}.input-row{display:grid;grid-template-columns:1fr 300px;gap:8px;flex-shrink:0}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;box-shadow:0 2px 8px #0f172a0a}h2{color:#11324d;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;display:flex;align-items:center;gap:6px}.panel h2:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#b3132c;flex-shrink:0}.keypoints-panel h2{padding-left:10px;border-left:3px solid #b3132c}.keypoints-panel h2:before{display:none}.input-text{display:flex;flex-direction:column}textarea{width:100%;height:62px;border:1px solid #cbd5e1;border-radius:7px;padding:8px 10px;resize:none;font-size:14px;margin-bottom:8px;line-height:1.4}textarea:focus{outline:none;border-color:#93c5fd}.btn-generate{align-self:flex-start;padding:8px 20px}.btn-primary{padding:9px 20px;font-size:14px;box-shadow:0 2px 6px #b3132c40}.btn-primary:not(:disabled):hover{background:#9b1025}.input-mic{display:flex;flex-direction:column;gap:8px}.mic-hint{font-size:12px;color:#64748b}.mic-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.mic-header h2{margin-bottom:0}.rec-mode-toggle{display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;user-select:none}.rec-mode-label{font-size:10px;font-weight:600;color:#94a3b8;transition:color .15s}.rec-mode-label.active{color:#1e293b}.toggle-switch{width:34px;height:18px;background:#e2e8f0;border-radius:9px;position:relative;cursor:pointer;transition:background .2s;flex-shrink:0}.toggle-switch.toggle-on{background:#b3132c}.toggle-knob{position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0003;transition:transform .2s}.toggle-switch.toggle-on .toggle-knob{transform:translate(16px)}.button-row{display:flex;gap:8px;flex-wrap:wrap}.warning{color:#b3132c;font-size:12px;font-weight:600}.vol-bar-wrap{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;margin-top:6px}.vol-bar{height:100%;background:#b3132c;border-radius:3px;transition:width .05s ease;min-width:2px}.mode-bar{display:flex;gap:6px;flex-shrink:0;overflow-x:auto;padding-bottom:2px}.mode-btn{background:#fff;color:#64748b;border:1px solid #e2e8f0;border-radius:20px;padding:4px 14px;font-size:12px;font-weight:600;cursor:pointer;transition:all .15s;box-shadow:none}.mode-btn:hover{background:#f8fafc;color:#334155;border-color:#cbd5e1}.mode-active{background:#b3132c!important;color:#fff!important;border-color:#b3132c!important}.keypoints-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.keypoints-header h2{margin-bottom:0}.keypoints-actions{display:flex;gap:6px}.btn-action{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:6px;padding:4px 12px;font-size:12px;font-weight:600;cursor:pointer;box-shadow:none;transition:all .15s}.btn-action:hover:not(:disabled){background:#e2e8f0;color:#1e293b}.btn-action:disabled{opacity:.4;cursor:not-allowed}.keypoints-panel{flex:1;overflow-y:auto;display:flex;flex-direction:column;min-height:0}.question-badge{display:flex;align-items:baseline;gap:8px;background:#eff6ff;border-left:3px solid #3b82f6;border-radius:6px;padding:8px 12px;margin-bottom:10px;flex-shrink:0}.question-label{font-size:10px;font-weight:800;color:#3b82f6;background:#dbeafe;border-radius:3px;padding:1px 5px;flex-shrink:0;letter-spacing:.05em}.question-text{font-size:13px;font-weight:600;color:#1e40af;line-height:1.3}.question-edit{width:100%;min-height:44px;height:auto;margin:0;border:0;background:transparent;color:#1e40af;font-size:13px;font-weight:600;line-height:1.35;resize:vertical;padding:0}.question-edit:focus{outline:1px solid #93c5fd;outline-offset:4px}.no-answer{color:#94a3b8;font-size:14px;padding:8px 0}.bullets{list-style:none;display:flex;flex-direction:column;gap:2px}.bullets li{display:flex;gap:8px;align-items:baseline;font-size:16px;line-height:1.5;color:#1e293b;padding:4px 6px;border-radius:6px;transition:background .12s}.bullets li:hover{background:#f8fafc}.bullet-marker{color:#b3132c;flex-shrink:0;font-size:8px;-webkit-user-select:none;user-select:none;position:relative;top:-2px}.hl-yellow{background:#fef08a;padding:1px 3px;border-radius:3px}.hl-green{background:#bbf7d0;padding:1px 3px;border-radius:3px}.example{border-top:1px solid #f1f5f9;padding-top:8px;margin-top:8px;font-size:13px;color:#334155;flex-shrink:0}.star-block{margin-top:8px;border-top:1px solid #f1f5f9;padding-top:8px;display:flex;flex-direction:column;gap:5px;flex-shrink:0}.star-title{font-size:10px;font-weight:800;letter-spacing:.08em;color:#92400e;background:#fef3c7;border-radius:3px;padding:2px 6px;display:inline-block;margin-bottom:2px;width:fit-content}.star-row{display:flex;align-items:baseline;gap:8px;padding:3px 6px;border-radius:5px;border-left:3px solid transparent}.star-row-S{border-left-color:#3b82f6;background:#f8fbff}.star-row-T{border-left-color:#22c55e;background:#f8fdf9}.star-row-A{border-left-color:#a78bfa;background:#faf8ff}.star-row-R{border-left-color:#f59e0b;background:#fffdf5}.star-label{font-size:10px;font-weight:800;letter-spacing:.05em;border-radius:3px;padding:1px 6px;flex-shrink:0;text-align:center}.star-S{background:#dbeafe;color:#1d40ae}.star-T{background:#dcfce7;color:#166534}.star-A{background:#ede9fe;color:#5b21b6}.star-R{background:#fef3c7;color:#92400e}.star-text{font-size:13.5px;line-height:1.5;color:#374151}.star-text strong{color:#92400e;font-weight:700}.topbar-right{display:flex;align-items:center;gap:8px}.btn-history{background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:6px;padding:4px 12px;font-size:12px;font-weight:600;cursor:pointer;box-shadow:none;white-space:nowrap;transition:background .15s}.btn-history:hover{background:#e2e8f0;color:#1e293b}.history-panel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:12px 14px;box-shadow:0 2px 8px #0f172a0a;flex-shrink:0;max-height:220px;display:flex;flex-direction:column;gap:8px}.history-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.history-title{font-size:12px;font-weight:700;color:#334155;text-transform:uppercase;letter-spacing:.04em}.history-actions{display:flex;gap:6px;align-items:center}.btn-action-danger{color:#b3132c!important}.btn-action-danger:hover:not(:disabled){background:#fee2e2!important}.history-empty{font-size:12px;color:#94a3b8}.history-list{list-style:none;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.history-entry{display:flex;align-items:baseline;gap:8px;padding:5px 8px;border-radius:6px;cursor:pointer;transition:background .12s}.history-entry:hover{background:#f1f5f9}.history-mode-badge{flex-shrink:0;font-size:9px;font-weight:700;padding:1px 5px;border-radius:4px;background:#e2e8f0;color:#475569}.mode-badge-critique{background:#fef3c7;color:#92400e}.mode-badge-star{background:#ede9fe;color:#6d28d9}.mode-badge-technical{background:#dbeafe;color:#1d4ed8}.history-question{flex:1;font-size:12px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.history-time{flex-shrink:0;font-size:10px;color:#94a3b8;white-space:nowrap}.question-badge-critique{background:#fef9c3;border-left-color:#f59e0b}.question-badge-critique .question-label{background:#fef3c7;color:#92400e}.question-badge-critique .question-edit{color:#92400e}.mode-btn-critique{border-color:#fcd34d!important}.mode-btn-critique.mode-active{background:#f59e0b!important;border-color:#f59e0b!important}.followups-section{margin-top:10px;border-top:1px solid #f1f5f9;padding-top:10px;flex-shrink:0}.followups-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.followups-title{font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.followups-list{list-style:none;display:flex;flex-direction:column;gap:4px}.followup-item{display:flex;align-items:baseline;gap:8px;font-size:13px;color:#334155;padding:4px 6px;border-radius:5px;background:#f8fafc;line-height:1.4}.followup-num{flex-shrink:0;font-size:10px;font-weight:700;color:#94a3b8;background:#e2e8f0;border-radius:3px;padding:1px 5px;min-width:18px;text-align:center}.folder-browser{border-top:1px solid #f1f5f9;padding-top:8px;margin-top:auto}.folder-summary{display:flex;align-items:center;gap:6px;cursor:pointer;-webkit-user-select:none;user-select:none;list-style:none;padding:4px 6px;border-radius:6px;transition:background .15s}.folder-summary::-webkit-details-marker{display:none}.folder-summary:hover{background:#f8fafc}.folder-icon{font-size:15px;line-height:1}.folder-label{font-weight:600;font-size:12px;color:#334155;flex:1}.folder-count{font-size:11px;background:#e2e8f0;color:#64748b;border-radius:8px;padding:0 6px;font-weight:600}.folder-body{padding:6px 2px 2px;animation:fadeIn .15s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}.folder-upload{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;color:#b3132c;cursor:pointer;padding:4px 8px;border-radius:5px;border:1px dashed #fca5a5;background:#fff5f5;margin-bottom:6px;transition:background .15s}.folder-upload:hover{background:#fee2e2}.folder-upload input{display:none}.folder-files{list-style:none;display:flex;flex-direction:column;gap:1px}.folder-files li{display:flex;align-items:center;gap:6px;padding:3px 5px;border-radius:5px}.folder-files li:hover{background:#f8fafc}.folder-files li:hover .file-delete{opacity:1}.file-icon{font-size:12px;flex-shrink:0}.file-delete{margin-left:auto;background:none;color:#94a3b8;font-size:15px;padding:0 4px;line-height:1;border-radius:4px;opacity:0;transition:opacity .15s,color .15s,background .15s;box-shadow:none}.file-delete:hover{background:#fee2e2;color:#b3132c}.file-name{font-size:11px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.file-toggle{flex-shrink:0;width:13px;height:13px;accent-color:#b3132c;cursor:pointer}.file-label-badge{flex-shrink:0;font-size:9px;font-weight:700;letter-spacing:.04em;padding:1px 5px;border-radius:4px;cursor:pointer;transition:opacity .15s;white-space:nowrap}.file-label-badge:hover{opacity:.75}.file-label-resume{background:#dbeafe;color:#1d4ed8}.file-label-jd{background:#ffedd5;color:#c2410c}.file-label-keynotes{background:#fef9c3;color:#854d0e}.file-label-company{background:#f0fdf4;color:#15803d}.file-label-notes{background:#dcfce7;color:#166534}.file-label-qa{background:#ede9fe;color:#6d28d9}.file-label-other{background:#f1f5f9;color:#64748b}.profile-bar{display:flex;align-items:center;gap:4px;margin-bottom:6px}.profile-select{flex:1;font-size:11px;font-weight:600;color:#334155;background:#f8fafc;border:1px solid #e2e8f0;border-radius:5px;padding:3px 6px;cursor:pointer;min-width:0}.profile-select:focus{outline:none;border-color:#93c5fd}.btn-profile-action{flex-shrink:0;background:#f1f5f9;color:#475569;border:1px solid #e2e8f0;border-radius:5px;padding:3px 8px;font-size:11px;font-weight:700;cursor:pointer;box-shadow:none;white-space:nowrap;transition:background .15s}.btn-profile-action:hover{background:#e2e8f0;color:#1e293b}.btn-profile-delete{color:#b3132c!important}.btn-profile-delete:hover{background:#fee2e2!important}.profile-input-row{display:flex;align-items:center;gap:4px;margin-bottom:6px}.profile-name-input{flex:1;font-size:11px;color:#334155;background:#fff;border:1px solid #93c5fd;border-radius:5px;padding:3px 7px;height:auto;margin:0;min-width:0}.profile-name-input:focus{outline:none;border-color:#3b82f6}.file-inactive .file-name,.file-inactive .file-label-badge{opacity:.38}@media(max-width:700px){html,body{overflow:auto}.page{height:auto;min-height:100dvh;overflow:visible;padding:10px max(14px,env(safe-area-inset-left)) max(env(safe-area-inset-bottom) + 14px,20px) max(14px,env(safe-area-inset-right));gap:10px}.topbar{align-items:flex-start;gap:8px;padding-bottom:10px}.eyebrow{font-size:16px}.status-pill{max-width:55%;line-height:1.35;text-align:right;font-size:10px}.input-row{grid-template-columns:1fr}.keypoints-panel{overflow:visible}.button-row{flex-direction:column;gap:8px}.button-row button,.btn-generate{width:100%;min-height:48px;font-size:15px}.mode-bar{gap:5px}.mode-btn{min-height:40px;flex:0 0 auto;font-size:13px;padding:6px 14px}.keypoints-header{align-items:flex-start;gap:8px}.keypoints-actions{flex-shrink:0}.btn-action{min-height:36px;font-size:13px;padding:6px 14px}.question-badge{align-items:flex-start}.bullets li{font-size:15px}.folder-browser{margin-top:8px}.file-name{max-width:none}}.auth-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;background:#f1f5f9;padding:24px}.auth-card{background:#fff;border-radius:16px;padding:40px 36px;width:100%;max-width:420px;box-shadow:0 4px 24px #00000014}.auth-title{font-size:22px;font-weight:800;color:#b3132c;margin-bottom:4px}.auth-subtitle{font-size:13px;color:#64748b;margin-bottom:24px}.auth-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:2px solid #e2e8f0}.auth-tab{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;padding:8px 14px;font-size:13px;font-weight:600;color:#94a3b8;cursor:pointer;transition:all .15s}.auth-tab.active{color:#b3132c;border-bottom-color:#b3132c}.auth-form{display:flex;flex-direction:column;gap:12px}.auth-input{width:100%;padding:11px 14px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:14px;color:#1e293b;background:#fff;transition:border-color .15s;outline:none}.auth-input:focus{border-color:#b3132c}.auth-input:disabled{background:#f8fafc;color:#94a3b8}.auth-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px 16px;background:#b3132c;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:background .15s;text-decoration:none}.auth-btn:hover:not(:disabled){background:#93101e}.auth-btn:disabled{opacity:.6;cursor:not-allowed}.auth-btn-google{background:#fff;color:#1e293b;border:1.5px solid #e2e8f0;margin-top:4px}.auth-btn-google:hover{background:#f8fafc}.auth-divider{text-align:center;color:#94a3b8;font-size:12px;margin:14px 0 10px;position:relative}.auth-divider:before,.auth-divider:after{content:"";position:absolute;top:50%;width:42%;height:1px;background:#e2e8f0}.auth-divider:before{left:0}.auth-divider:after{right:0}.auth-error{font-size:12px;color:#dc2626;padding:8px 12px;background:#fef2f2;border-radius:6px}.auth-msg{font-size:12px;color:#16a34a;padding:8px 12px;background:#f0fdf4;border-radius:6px}.auth-link{color:#b3132c;font-size:13px;text-decoration:none;font-weight:500;background:none;border:none;cursor:pointer;padding:0}.auth-link:hover{text-decoration:underline}.auth-link-row{text-align:right;font-size:13px}.auth-footer{text-align:center;margin-top:20px;font-size:13px;color:#64748b}.auth-spinner{width:32px;height:32px;border:3px solid #e2e8f0;border-top-color:#b3132c;border-radius:50%;animation:spin .8s linear infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.topbar-user{font-size:12px;font-weight:600;color:#475569;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn-logout{background:none;border:1.5px solid #e2e8f0;border-radius:6px;padding:4px 10px;font-size:11px;font-weight:600;color:#64748b;cursor:pointer;transition:all .15s}.btn-logout:hover{background:#fef2f2;color:#dc2626;border-color:#dc2626}.admin-page{min-height:100dvh;padding:32px;background:#f1f5f9;max-width:1100px;margin:0 auto}.admin-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.admin-title{font-size:22px;font-weight:800;color:#1e293b}.admin-tabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:2px solid #e2e8f0}.admin-toolbar{margin-bottom:16px}.admin-create-form{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;padding:16px;background:#fff;border-radius:10px;margin-bottom:16px;border:1.5px solid #e2e8f0}.admin-check-label{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569;cursor:pointer;white-space:nowrap}.admin-table-wrap{overflow-x:auto;border-radius:10px;border:1.5px solid #e2e8f0;background:#fff}.admin-table{width:100%;border-collapse:collapse;font-size:13px}.admin-table th{background:#f8fafc;text-align:left;padding:10px 14px;font-weight:700;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.05em;border-bottom:1.5px solid #e2e8f0}.admin-table td{padding:10px 14px;border-bottom:1px solid #f1f5f9;color:#1e293b}.admin-table tr:last-child td{border-bottom:none}.admin-row-inactive td{opacity:.5}.admin-badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:11px;font-weight:700;background:#f1f5f9;color:#64748b;border:none;cursor:pointer;transition:all .15s}.admin-badge-yes{background:#dcfce7;color:#16a34a}.admin-badge-no{background:#fee2e2;color:#dc2626}.admin-del-btn{background:none;border:none;color:#94a3b8;font-size:12px;cursor:pointer;padding:2px 6px;border-radius:4px;transition:all .15s}.admin-del-btn:hover:not(:disabled){background:#fee2e2;color:#dc2626}.admin-del-btn:disabled{opacity:.3;cursor:not-allowed}.admin-date{font-size:11px;color:#94a3b8;white-space:nowrap}.admin-loading{color:#64748b;padding:16px}
