:root{color:#172033;background:#f5f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit}button{border:0}.app-shell{min-height:100vh}.section-title h2,.section-title h3,.modal-header h2{margin:0}.section-title span,.hint,.muted{color:#667085;font-size:13px;margin:4px 0 0}.notice{max-width:1440px;margin:16px auto 0;border-radius:8px;padding:11px 14px;font-size:14px}.notice.error{background:#fff1f2;border:1px solid #fecdd3;color:#be123c}.notice.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#047857}.tabbar{max-width:1440px;margin:22px auto 0;padding:0 18px;display:flex;gap:8px;align-items:center}.tabbar button{color:#475467;background:#fff;border:1px solid #dfe5ee}.tabbar button.active{color:#fff;background:#1f2937;border-color:#1f2937}.workspace{max-width:1440px;margin:18px auto 36px;padding:0 18px;display:grid;grid-template-columns:minmax(360px,1.1fr) minmax(320px,.9fr);gap:16px;align-items:start}.tab-workspace.single-column{grid-template-columns:1fr}.panel{background:#fff;border:1px solid #dfe5ee;border-radius:8px;min-width:0;padding:18px}.input-panel{grid-row:span 2}.list-panel,.review-panel{grid-column:1 / -1}.position-panel{max-width:1120px;width:100%;margin:0 auto}.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title.compact{margin-bottom:10px}.section-title h2{font-size:16px}.section-title h3{font-size:14px}.title-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.title-actions span{margin:0}.field{display:grid;gap:7px;margin-bottom:14px}.field label{color:#344054;font-size:13px;font-weight:650}input,select,textarea{width:100%;border:1px solid #cfd8e6;border-radius:7px;color:#172033;background:#fff;padding:10px 11px;outline:none}input:focus,select:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}textarea{min-height:108px;resize:vertical}.resume-textarea{min-height:330px}.compact-grid{display:grid;grid-template-columns:1fr 180px;gap:12px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.actions.tight{gap:8px}button{min-height:38px;border-radius:7px;padding:0 14px;cursor:pointer;font-weight:650}button:focus-visible{outline:3px solid rgba(37,99,235,.16);outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.55}.primary{color:#fff;background:#1f2937}.secondary{color:#344054;background:#fff;border:1px solid #cfd8e6}.danger{color:#fff;background:#dc2626}.danger-ghost{min-height:32px;color:#b42318;background:#fff5f5;border:1px solid #fecdd3;padding:0 10px;font-size:13px;white-space:nowrap}.full{width:100%}.ghost{color:#667085;background:#f8fafc;border:1px solid #dfe5ee}.mini-button{min-height:30px;padding:0 10px;font-size:12px;white-space:nowrap}.compact-preview{margin-top:0;padding-top:0;border-top:0}.criteria-editor{border:1px solid #edf1f7;border-radius:8px;background:#fbfcfe;margin-bottom:14px;padding:12px}.ai-rule-box{border:1px solid #dbe7ff;border-radius:8px;background:#f7faff;margin-bottom:14px;padding:12px}.ai-rule-box textarea{min-height:88px;margin-bottom:10px}.rule-requirement-textarea{max-height:224px;line-height:1.55;overflow:auto}.requirement-summary{width:100%;min-height:72px;margin-bottom:10px;padding:10px 11px;display:grid;gap:6px;text-align:left;color:#172033;background:#fff;border:1px solid #cfd8e6;border-radius:7px}.requirement-summary span{color:#667085;font-size:12px;font-weight:700}.requirement-summary p{margin:0;color:#344054;font-size:14px;font-weight:500;line-height:1.55;overflow-wrap:anywhere}.requirement-editor-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;padding:16px;display:flex;align-items:center;justify-content:center;background:#0f172a7a}.requirement-editor{width:min(760px,100%);height:min(720px,calc(100dvh - 32px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;background:#fff;border:1px solid #dfe5ee;border-radius:8px;box-shadow:0 24px 70px #0f172a47}.requirement-editor-header{padding:16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dfe5ee}.requirement-editor-header h2{margin:0;font-size:17px}.requirement-editor-header span{display:block;margin-top:4px;color:#667085;font-size:13px}.requirement-editor-textarea{height:100%;min-height:0;padding:18px;border:0;border-radius:0;font-size:16px;line-height:1.7;resize:none}.requirement-editor-textarea:focus{box-shadow:inset 0 0 0 3px #2563eb1f}.requirement-editor-actions{padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid #dfe5ee;background:#fff}.criteria-actions{margin-bottom:10px}.criteria-list{display:grid;gap:12px}.criteria-list.split{grid-template-columns:1fr}.criteria-row{display:grid;grid-template-columns:1fr;gap:8px;align-items:start;border:1px solid #e4eaf3;border-radius:8px;background:#fff;padding:10px}.criteria-row textarea{min-height:76px;font-size:13px}.criterion-title-field{position:relative;min-width:0}.criterion-title-field input{padding-right:44px}.criterion-delete-button{position:absolute;top:50%;right:7px;width:28px;min-height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;transform:translateY(-50%);color:#b42318;background:#fff5f5;border:1px solid #fecdd3;border-radius:50%;font-size:20px;font-weight:700;line-height:1}.criterion-delete-button:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.selected-criteria{border-top:1px solid #edf1f7;margin-top:12px;padding-top:12px;display:grid;gap:7px}.selected-criteria h3,.criteria-results h3{margin:0 0 4px;color:#344054;font-size:13px}.selected-criteria div{display:grid;grid-template-columns:minmax(160px,.32fr) 1fr;gap:8px;align-items:center;color:#4b5563;font-size:13px}.selected-criteria small{color:#667085;line-height:1.45}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{border-bottom:1px solid #edf1f7;padding:11px 9px;text-align:left;vertical-align:middle}th{color:#667085;font-size:12px;font-weight:700;background:#f8fafc}.empty{color:#98a2b3;text-align:center;padding:34px 0}.review-list{display:grid;gap:8px}.review-list-item{width:100%;min-height:74px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;text-align:left;color:#172033;background:#fff;border:1px solid #edf1f7;border-radius:8px}.review-list-item:hover:not(:disabled),.review-list-item.selected{background:#f8fafc;border-color:#cfd8e6}.review-list-item.selected{box-shadow:inset 3px 0 #1f2937}.review-list-main{min-width:0;display:grid;gap:5px}.review-list-main strong{color:#172033;font-size:15px;line-height:1.3;overflow-wrap:anywhere}.review-list-main span{color:#475467;font-size:13px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}.review-list-item time{color:#667085;font-size:13px;font-weight:600;white-space:nowrap}.review-empty{border:1px dashed #dfe5ee;border-radius:8px}.row-actions{display:flex;gap:8px}.row-actions button{min-height:0;padding:0;background:transparent;color:#2563eb}.tag{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 9px;font-size:12px;font-weight:700;white-space:nowrap}.tag.green{background:#dcfce7;color:#166534}.tag.blue{background:#dbeafe;color:#1d4ed8}.tag.amber{background:#fef3c7;color:#92400e}.tag.red{background:#fee2e2;color:#991b1b}.tag.neutral{background:#f2f4f7;color:#475467}.review-summary-card{display:grid;gap:12px;margin-bottom:16px;padding:14px;background:#fbfcfe;border:1px solid #edf1f7;border-radius:8px}.review-candidate-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.review-candidate-heading div{min-width:0;display:grid;gap:5px}.review-candidate-heading strong{color:#172033;font-size:17px;line-height:1.3;overflow-wrap:anywhere}.review-candidate-heading span{color:#475467;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.review-candidate-heading time{color:#667085;font-size:13px;font-weight:600;white-space:nowrap}.review-badges,.review-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.review-toolbar button{min-height:34px}.review-summary-card p{margin:0;color:#4b5563;line-height:1.6}.criteria-results{margin:0 0 16px}.criteria-results table{font-size:13px}.criteria-check-list{display:grid;gap:10px}.criteria-check-card{border:1px solid #edf1f7;border-radius:8px;background:#fff;padding:12px}.criteria-check-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.criteria-check-header h4{min-width:0;margin:0;color:#172033;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.criteria-check-header .tag{flex:0 0 auto}.criteria-check-body{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.35fr);gap:14px}.criteria-check-body>div{min-width:0}.criteria-requirement{padding:10px 12px;background:#f8fafc;border:1px solid #edf1f7;border-radius:8px}.criteria-analysis{display:grid;gap:12px}.criteria-check-body span{display:block;margin-bottom:5px;color:#667085;font-size:12px;font-weight:700}.criteria-results th:nth-child(2),.criteria-results td:nth-child(2){width:132px;text-align:center}.criteria-evidence,.criteria-risk{margin:0;line-height:1.5}.criteria-evidence{color:#344054}.criteria-risk{color:#b42318;margin-top:5px}.evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.evidence-grid div{border:1px solid #edf1f7;border-radius:8px;padding:12px;background:#fbfcfe}.evidence-grid h3{font-size:13px;margin:0 0 8px}.evidence-grid p{margin:0 0 6px;color:#4b5563;font-size:13px;line-height:1.5}.decision-actions{justify-content:flex-end}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;background:#0f172a6b;display:flex;justify-content:center;align-items:center;padding:24px}.modal{width:min(1120px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:8px;border:1px solid #dfe5ee;box-shadow:0 24px 70px #0f172a42}.modal-header{position:sticky;top:0;background:#fff;border-bottom:1px solid #dfe5ee;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.confirm-dialog{width:min(380px,100%);background:#fff;border:1px solid #dfe5ee;border-radius:8px;box-shadow:0 24px 70px #0f172a42;padding:18px}.confirm-dialog h2{margin:0;color:#172033;font-size:18px}.confirm-dialog p{margin:10px 0 16px;color:#475467;font-size:14px;line-height:1.6}.confirm-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modal-header h2{min-width:0;color:#172033;font-size:20px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-close-button{flex:0 0 auto;width:36px;min-height:36px;border-radius:50%;padding:0;display:inline-flex;align-items:center;justify-content:center;color:#475467;background:transparent;font-size:30px;font-weight:500;line-height:1}.icon-close-button:hover{background:#f2f4f7}.prompt-block{border-bottom:1px solid #edf1f7}.prompt-block h3{margin:0;padding:12px 16px;background:#f8fafc;color:#344054;font-size:13px}pre{margin:0;padding:16px;color:#1f2937;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}@media (max-width: 920px){.app-shell{min-height:100dvh;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.tabbar{position:fixed;right:0;bottom:0;left:0;z-index:30;max-width:none;margin:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#fffffff5;border-top:1px solid #dfe5ee;box-shadow:0 -10px 30px #0f172a14;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.tabbar button{min-width:0;width:100%;min-height:46px;padding:0 6px;font-size:14px;white-space:nowrap}.workspace{grid-template-columns:1fr;margin-top:18px;margin-bottom:0;min-width:0}.workspace>*,.ai-rule-box,.section-title,.section-title>*{min-width:0}.section-title.compact{align-items:flex-start}.title-actions{align-items:flex-end;flex-direction:column;gap:5px}.input-panel{grid-row:auto}.compact-grid,.evidence-grid,.criteria-check-body,.criteria-row,.criteria-list.split{grid-template-columns:1fr}.review-list{gap:7px}.review-list-item{min-height:68px;padding:11px;gap:10px}.review-list-main strong{font-size:15px}.review-list-item time,.review-candidate-heading time{font-size:12px}.review-candidate-heading{display:grid;grid-template-columns:minmax(0,1fr) auto}.review-toolbar,.decision-actions{display:grid;grid-template-columns:1fr 1fr}.review-toolbar button,.decision-actions button{width:100%;min-width:0}.criteria-check-header{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.criteria-check-header .tag{justify-self:start}.criteria-row textarea{grid-column:auto}.rule-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.rule-actions button{width:100%;min-width:0;padding:0 4px;font-size:13px;white-space:nowrap}.rule-requirement-textarea{max-height:210px}.requirement-editor-backdrop{padding:0;align-items:stretch;justify-content:stretch}.requirement-editor{width:100%;height:100dvh;border:0;border-radius:0}.requirement-editor-header{padding:calc(14px + env(safe-area-inset-top)) 16px 14px}.requirement-editor-textarea{padding:16px}.requirement-editor-actions{grid-template-columns:1fr}}
