:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;color:#1a1424;background:#f9f7fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:wait}button,select{border:1px solid #e0d7ef;border-radius:8px;background:#fff;padding:9px 13px;color:#3e315d}button:hover:not(:disabled){background:#f3eefb;border-color:#cfc1ee}.primary{background:#7359d2;color:white;border-color:#7359d2}.primary:hover:not(:disabled){background:#6046bf}.ghost{background:transparent;border-color:transparent}.small{font-size:12px;padding:6px 10px}.app{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh}.sidebar{padding:28px 18px;background:#fcfbff;border-right:1px solid #e0d7ef;display:flex;flex-direction:column;gap:26px}.brand{font-family:Georgia,serif;font-style:italic;font-size:23px;font-weight:700;letter-spacing:-1.1px;color:#1a1424}.brand span{font-size:11px;font-weight:500;margin-left:8px;background:#f3eefb;border-radius:5px;padding:3px 5px}.nav-title{text-transform:uppercase;font-size:11px;letter-spacing:1.5px;color:#7b7290;margin:0 0 12px}.library{display:flex;flex-direction:column;gap:7px}.doc-button{text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:0;background:transparent}.doc-button.active{background:#f3eefb;color:#6046bf;font-weight:650}.sidebar-bottom{margin-top:auto;font-size:11px;line-height:1.8;color:#879289}.example-actions{display:flex;flex-direction:column;gap:8px}.example-actions button{text-align:left;font-size:12px}.main{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;background:#fff;border-bottom:1px solid #e0d7ef;gap:14px}.title{border:0;font-size:20px;font-weight:650;color:#2b2140;padding:4px 0;width:300px;max-width:100%;background:transparent}.save-status{font-size:11px;color:#817891;margin-top:4px}.top-actions{display:flex;gap:8px;align-items:center}.workspace{display:grid;grid-template-columns:minmax(350px,1fr) minmax(390px,1.15fr);gap:20px;padding:22px 26px;align-items:start}.panel{background:#fff;border:1px solid #e0d7ef;border-radius:13px;overflow:hidden;box-shadow:0 3px 18px #5e4b7e12}.tabs{display:flex;padding:0 18px;gap:18px;border-bottom:1px solid #e5dff0}.tabs button{padding:17px 0 13px;border:0;border-radius:0;background:none;color:#857b9b;font-size:13px;white-space:nowrap}.tabs button.active{color:#6046bf;border-bottom:2px solid #7359d2;font-weight:650}.panel-body{padding:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-heading h2{font-size:14px;margin:0}.muted{font-size:12px;color:#7b7290;line-height:1.7}.tag{font-size:10px;color:#7359d2;border:1px solid #d9cef0;border-radius:5px;padding:3px 6px}.textarea{width:100%;padding:13px;border:1px solid #e0d7ef;border-radius:8px;resize:vertical;font-size:13px;line-height:1.9;color:#332b46;outline:none;background:#fdfbff;min-height:120px}.textarea:focus,input:focus{border-color:#a282d8;outline:2px solid #f3eefb}.editor{min-height:580px;font-family:inherit;background:white;border:0;padding:0;line-height:2;resize:none}.editor:focus{outline:none}.label{display:block;font-size:12px;font-weight:650;margin:18px 0 9px}.drop{border:1px dashed #cfc1ee;background:#faf7fe;border-radius:9px;padding:18px;text-align:center;margin-bottom:14px}.drop p{font-size:11px;color:#8a8098;margin:8px 0 0}.actions-row{display:flex;gap:8px;align-items:center;margin-top:15px;flex-wrap:wrap}.actions-row .muted{flex:1}.preview-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e5dff0;gap:8px}.preview-head h2{font-size:13px;margin:0}.preview-frame{height:760px;width:100%;border:0;background:#f1eef8;display:block}.preview-empty{height:650px;display:grid;place-content:center;text-align:center;color:#817891;font-size:13px;gap:8px}.preview-note{font-size:10px;color:#817891;padding:11px 16px;border-top:1px solid #e5dff0;line-height:1.6}.notice{margin:14px 26px 0;padding:12px 16px;background:#f4eeff;border:1px solid #decdfb;border-radius:8px;font-size:12px;line-height:1.8;display:flex;justify-content:space-between;gap:10px}.notice.error{background:#fff0ed;border-color:#f0ccc3;color:#8c3038}.change{border:1px solid #e0d7ef;border-radius:9px;margin-bottom:16px;overflow:hidden}.change-top{display:flex;justify-content:space-between;padding:10px 13px;background:#faf8ff;font-size:12px}.change-content{padding:12px 13px;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.before{background:#fff4f5;color:#8c5962}.after{background:#f5f1ff;color:#554178}.change-label{display:block;font-size:10px;color:#9da398;margin-bottom:6px}.change-actions{display:flex;justify-content:flex-end;gap:7px;padding:9px 12px;border-top:1px solid #e5dff0}.empty{padding:55px 18px;text-align:center;color:#817891;font-size:13px;line-height:2}.questions{padding:0;list-style:none}.questions li{margin-bottom:23px;font-size:13px;line-height:1.8}.questions textarea{margin-top:10px;min-height:90px}.spinner{display:inline-block;width:12px;height:12px;border:2px solid #c6b6e7;border-top-color:#7359d2;border-radius:50%;animation:spin 1s linear infinite;margin-right:7px}@keyframes spin{to{transform:rotate(360deg)}}.job{background:#f3eefb;border-radius:8px;padding:10px 13px;font-size:12px;margin-bottom:15px;line-height:1.8}.mobile-note{display:none}a{color:#6046bf}#preview-status{font-size:11px;color:#817891}.template{font-size:11px;padding:7px}.pending-badge{display:inline-block;background:#f3eefb;border-radius:5px;padding:2px 6px;font-size:10px;margin-left:3px}@media(max-width:1150px){.app{grid-template-columns:170px 1fr}.sidebar{padding:24px 12px}.workspace{padding:18px;gap:14px;grid-template-columns:minmax(300px,1fr) minmax(330px,1fr)}.topbar{padding:18px}.top-actions{flex-wrap:wrap}.title{width:240px}}@media(max-width:900px){.app{grid-template-columns:1fr}.sidebar{flex-direction:row;padding:14px;gap:15px;align-items:center;overflow:auto}.sidebar-bottom,.nav-title,.example-actions{display:none}.library{flex-direction:row;max-width:300px}.workspace{grid-template-columns:1fr}.brand{white-space:nowrap}.topbar{flex-wrap:wrap}.editor{min-height:400px}.preview-frame{height:700px}}
[hidden]{display:none!important}

.match-summary{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 18px}.match-count{font-size:11px;border-radius:999px;padding:5px 9px;background:#edf3e9;color:#3f6249}.match-count.unclear{background:#fff3d5;color:#84641b}.match-count.partial{background:#ffede4;color:#95553a}.match-count.missing{background:#f5e9e9;color:#955b5b}.match-card{border:1px solid #dce5db;border-radius:9px;margin-bottom:14px;overflow:hidden;background:#fff}.match-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;background:#f7f9f4;font-size:13px}.match-status{font-size:10px;border-radius:5px;padding:4px 7px;white-space:nowrap;background:#e9f1e8;color:#3d6347}.match-status.unclear{background:#fff3d5;color:#84641b}.match-status.partial{background:#ffede4;color:#95553a}.match-status.missing{background:#f5e9e9;color:#955b5b}.match-requirement,.evidence-quote{padding:11px 13px;font-size:12px;line-height:1.7}.match-requirement{background:#fbfcf8;border-bottom:1px solid #edf0eb}.match-requirement blockquote,.evidence-quote blockquote{margin:0;color:#53675a;white-space:pre-wrap}.evidence-quote{background:#f8fbf7;border-bottom:1px solid #edf0eb}.evidence-empty{padding:12px 13px;background:#fdf7f4;color:#996d63;font-size:12px}.match-rationale{padding:0 13px;font-size:12px;line-height:1.7;color:#647469}.match-needs{padding:11px 13px;border-top:1px solid #edf0eb;background:#fffaf0;font-size:12px;line-height:1.7;color:#745d2c}.match-needs strong{display:block;color:#765d1c;margin-bottom:4px}.match-boundaries{margin-top:18px;padding:12px 13px;background:#f5f7f3;border-radius:8px;color:#708076;font-size:11px;line-height:1.7}.match-boundaries p{margin:4px 0 0}.match-boundaries strong{color:#506458}
.match-table-wrap{overflow-x:auto;border:1px solid #dce5db;border-radius:10px;background:#fff}.match-table{width:100%;min-width:940px;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.6}.match-table caption{padding:0;height:0;overflow:hidden}.match-table th{padding:10px 12px;text-align:left;background:#f3f6f0;color:#526358;font-size:11px;font-weight:600;border-bottom:1px solid #dce5db;white-space:nowrap}.match-table td{padding:12px;vertical-align:top;border-bottom:1px solid #edf0eb}.match-table tr:last-child td{border-bottom:0}.match-row.clear td:first-child{border-left:3px solid #6f9a78}.match-row.unclear td:first-child{border-left:3px solid #d5aa4e}.match-row.partial td:first-child{border-left:3px solid #d5815d}.match-row.missing td:first-child{border-left:3px solid #c78080}.match-col-requirement{width:18%;background:#fbfcf8}.match-col-requirement strong{display:block;color:#263a2d;font-size:13px;margin-bottom:5px}.match-table-source{display:block;color:#738177;font-size:11px}.match-col-status{width:12%;white-space:nowrap}.match-col-evidence{width:27%;background:#f8fbf7}.match-table-quote{margin:0 0 6px;color:#53675a;white-space:pre-wrap}.match-table-quote:last-child{margin-bottom:0}.match-col-rationale{width:21%;color:#647469}.match-col-next{width:22%;background:#fffaf0;color:#745d2c}.match-next-clear{color:#53705b}.match-advice{margin-top:18px;padding:14px 16px;border:1px solid #e3d8b8;border-radius:10px;background:#fffaf0;color:#6c5b31}.match-advice strong{display:block;color:#6f571e;font-size:13px;margin-bottom:7px}.match-advice ul{margin:0;padding-left:18px}.match-advice li{margin:4px 0;line-height:1.7}
.jd-hint{margin:-8px 0 6px;font-size:11px}

.change-explanation{padding:13px;border-top:1px solid #e5dff0;background:#fcfaff;font-size:12px;line-height:1.8}.change-explanation p{margin:7px 0 0}.change-explanation .tag{font-size:11px}
.login-panel{max-width:420px;margin:15vh auto;padding:32px;display:flex;flex-direction:column;gap:18px;background:white;border:1px solid #e0d7ef;border-radius:16px}.login-panel input{padding:12px;border:1px solid #e0d7ef;border-radius:8px}.sidebar>a{color:inherit;font-size:13px;padding:10px}.login-panel a{color:#6046bf}

/* Resume review: show the source and proposal as a true comparison on desktop. */
.change-compare{display:grid;grid-template-columns:1fr 1fr}
.change-compare .before{border-right:1px solid #eadff3}
@media(max-width:900px){.change-compare{grid-template-columns:1fr}.change-compare .before{border-right:0;border-bottom:1px solid #eadff3}}
.template-picker{display:flex;gap:7px;align-items:stretch;flex-wrap:wrap;justify-content:flex-end}.template-card{display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid #e0d7ef;border-radius:9px;background:#fff;color:#3e315d;text-align:left;min-width:126px}.template-card:hover:not(:disabled),.template-card.active{background:#f3eefb;border-color:#a282d8;color:#6046bf}.template-card-copy{display:flex;flex-direction:column;gap:2px;line-height:1.15}.template-card-copy strong{font-size:10px;font-weight:700}.template-card-copy small{font-size:9px;color:#817891;white-space:nowrap}.template-thumb{display:flex;flex-direction:column;gap:2px;width:24px;height:32px;padding:4px 3px;border:1px solid #cfc1ee;border-radius:2px;background:#fff}.template-thumb i{display:block;height:2px;border-radius:1px;background:#7359d2}.template-thumb i:nth-child(2){width:75%;background:#b8a4e0}.template-thumb i:nth-child(3){width:90%;background:#ddd3ef}.template-thumb--onyx{padding-top:3px}.template-thumb--onyx i:first-child{height:4px;width:100%;background:#6046bf}.template-thumb--onyx i:nth-child(2){width:100%;background:#c7b7e5}.template-thumb--onyx i:nth-child(3){width:100%;background:#e4dcf2}.template-thumb--bronzor{display:grid;grid-template-columns:1fr 1fr;gap:2px}.template-thumb--bronzor i{height:100%;background:#7359d2}.template-thumb--bronzor i:nth-child(2){width:auto;background:#c7b7e5}.template-thumb--bronzor i:nth-child(3){grid-column:1 / -1;width:100%;height:2px}.template-select{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.preview-controls{display:flex;flex-direction:column;gap:7px;align-items:flex-end}.drop.dragging{border-color:#7359d2;background:#f3eefb;box-shadow:0 0 0 3px #f3eefb}.drop{transition:background .15s,border-color .15s,box-shadow .15s}
.flow-steps{display:flex;gap:10px;margin:18px 26px 0;padding:12px 14px;border:1px solid #e0d7ef;border-radius:12px;background:#fff;box-shadow:0 3px 18px #5e4b7e08}.flow-step{display:flex;align-items:center;gap:8px;flex:1;color:#817891}.flow-step b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f3eefb;color:#817891;font-size:11px}.flow-step strong,.flow-step small{display:block}.flow-step strong{font-size:12px}.flow-step small{font-size:10px;margin-top:2px}.flow-step.active{color:#6046bf}.flow-step.active b{background:#7359d2;color:#fff}
@media(max-width:1150px){.template-picker{justify-content:flex-start}.preview-controls{align-items:flex-start}}
@media(max-width:900px){.template-picker{flex-wrap:nowrap;overflow:auto;max-width:100%}.template-card{min-width:118px}.preview-controls{width:100%}.flow-steps{margin:14px 18px 0;overflow:auto}.flow-step{min-width:150px}}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.brand span{margin-left:0;white-space:nowrap}.sidebar>button,.sidebar>a{flex-shrink:0}@media(max-width:900px){.sidebar .brand{flex-shrink:0}.login-panel{margin:12vh 18px}}
.change-content mark{padding:1px 2px;border-radius:3px}.before mark{background:#ffd7dc;color:#7c2634}.after mark{background:#ccefd7;color:#165b32}.change-explanation{padding:10px 13px;background:#fffdf8;border-top:1px solid #eee6d8;font-size:11px;line-height:1.7}.change-explanation p{margin:4px 0}.module-panel{margin:12px 18px;border:1px solid #e0d7ef;border-radius:9px;background:#fff;padding:10px 12px}.module-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:12px}.module-list{display:flex;flex-direction:column;gap:5px}.module-row{display:flex;align-items:center;gap:7px;padding:6px 7px;border:1px solid #eee9f5;border-radius:6px;background:#fcfbff;font-size:11px}.module-row.is-hidden{opacity:.55}.module-row.dragging{border-color:#7359d2;background:#f3eefb}.drag-handle{color:#a59bb5;cursor:grab;letter-spacing:-2px}.module-title{flex:1}.module-move{padding:2px 6px;font-size:10px;border-color:#eee9f5;color:#817891}.module-move:disabled{opacity:.3}
\n.target-field{margin-top:2px}.target-field .label{margin-top:16px}.target-input{display:block;width:100%;padding:10px 12px;border:1px solid #e0d7ef;border-radius:8px;background:#fff;color:#332b46;font-size:13px;line-height:1.5}.target-input::placeholder{color:#9a91a6;font-size:12px;opacity:1}.target-input:focus{border-color:#a282d8;outline:2px solid #f3eefb}\n.photo-field{display:grid;grid-template-columns:minmax(0,1fr) 56px auto;align-items:center;gap:10px;padding:12px;border:1px solid #e6e0ee;border-radius:9px;background:#fff;margin-bottom:14px}.photo-field .label{margin:0 0 3px}.photo-field .muted{font-size:11px;line-height:1.5}.photo-preview,.photo-placeholder{width:56px;height:72px;border-radius:5px;object-fit:cover;border:1px solid #d8d0e2;background:#f7f5f9}.photo-placeholder{display:grid;place-items:center;text-align:center;padding:5px;font-size:10px;color:#9a91a6}\n
.change-top-actions{display:flex;align-items:center;gap:8px}.change-edit-icon{padding:2px 7px;border:0;background:transparent;color:#6b7280;font-size:16px;line-height:1;border-radius:5px}.change-edit-icon:hover:not(:disabled){background:#edf4ff;color:#1665d8}.change-edit-field{display:block;width:100%;min-height:112px;padding:10px;border:1px solid #9dbce9;border-radius:7px;background:#fff;font-size:12px;line-height:1.8;color:#24344d;resize:vertical;outline:none}.change-edit-field:focus{outline:2px solid #dbeafe}

/* Match results live beside the preview, so the result panel can be narrower
   than the viewport. Switch the table to labeled evidence cards inside that
   panel instead of forcing a tiny, horizontally clipped five-column grid. */
.match-panel-body{min-width:0}.match-table-wrap{container-type:inline-size;overflow:visible}.match-table{min-width:0;width:100%;table-layout:fixed;font-size:13px;line-height:1.75}.match-table th,.match-table td{overflow-wrap:anywhere;word-break:break-word}.match-table-source{font-size:12px;line-height:1.6}.match-table-quote{font-size:13px;line-height:1.75}
@container (max-width: 900px){
 .match-table,.match-table thead,.match-table tbody,.match-table tr,.match-table td{display:block;width:auto}
 .match-table thead{display:none}
 .match-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid #dce5db}
 .match-table tr:last-child{border-bottom:0}
 .match-table td{position:relative;padding:12px 13px 13px;border-bottom:1px solid #edf0eb}
 .match-table td::before{content:attr(data-label);display:block;margin-bottom:5px;color:#738177;font-size:11px;font-weight:650;letter-spacing:.02em}
 .match-table td:last-child{border-bottom:0}
 .match-table .match-col-requirement,.match-table .match-col-evidence{grid-column:1 / -1}
 .match-table .match-col-status{grid-column:1 / -1;padding-bottom:10px}
 .match-table .match-col-rationale,.match-table .match-col-next{grid-column:span 1}
 .match-col-requirement strong{font-size:15px;line-height:1.55}
 .match-col-requirement{background:#fbfcf8}.match-col-evidence{background:#f8fbf7}.match-col-next{background:#fffaf0}
}
