/* Scoped shared Talent AI growth UI. */
.tg-bar,.tg-dialog,.tg-result,.tg-admin{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#334155;font-size:14px;line-height:1.65;box-sizing:border-box;text-align:left}
.tg-bar *,.tg-dialog *,.tg-result *,.tg-admin *{box-sizing:border-box}
.tg-bar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:16px 20px;margin:16px auto 24px;max-width:1200px;display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px}
.tg-bar strong{color:#312e81}.tg-rules{flex:1;min-width:230px}.tg-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.tg-badge{background:#e0e7ff;color:#3730a3;padding:3px 10px;border-radius:20px;white-space:nowrap}
.tg-bar button,.tg-dialog button,.tg-result button,.tg-admin button{font:inherit;line-height:1.4;border:1px solid #cbd5e1;border-radius:8px;padding:8px 13px;background:white;color:#334155;cursor:pointer;min-height:38px;margin:0;text-transform:none;letter-spacing:normal}
.tg-bar a,.tg-dialog a,.tg-result a,.tg-admin a{color:#4338ca;text-decoration:underline;text-underline-offset:3px;display:inline-block;margin-right:12px}
.tg-bar .tg-primary,.tg-dialog .tg-primary,.tg-result .tg-primary,.tg-admin .tg-primary{background:#4f46e5;color:white;border-color:#4f46e5}
.tg-bar button:hover,.tg-dialog button:hover,.tg-result button:hover,.tg-admin button:hover{filter:brightness(.96)}
.tg-dialog button:disabled,.tg-admin button:disabled{opacity:.55;cursor:wait}
.tg-dialog{border:1px solid #e2e8f0;border-radius:18px;padding:28px;background:#fff;width:min(540px,calc(100vw - 28px));max-height:90dvh;overflow:auto;box-shadow:0 24px 80px #0f172a33;margin:auto}
.tg-dialog::backdrop{background:#0f172a77}.tg-dialog h2{font-size:22px;line-height:1.4;color:#0f172a;margin:0 42px 16px 0}.tg-dialog h3,.tg-result h3{font-size:18px;margin:0 0 8px;color:#1e293b}.tg-dialog p{margin:12px 0}.tg-dialog .tg-close{position:absolute;right:16px;top:16px;padding:5px 9px;min-height:30px}
.tg-dialog form,.tg-admin form{display:grid;gap:14px}.tg-dialog label,.tg-admin label{display:grid;gap:5px;font-weight:500}.tg-dialog input,.tg-dialog select,.tg-dialog textarea,.tg-admin input,.tg-admin select,.tg-admin textarea{width:100%;font:inherit;border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px;background:#fff;color:#0f172a;min-height:40px}.tg-dialog textarea,.tg-admin textarea{min-height:82px;resize:vertical}.tg-dialog .tg-check{display:flex;gap:9px;align-items:flex-start;font-weight:400}.tg-dialog input[type=checkbox]{width:18px;min-width:18px;min-height:18px;margin-top:4px;accent-color:#4f46e5}.tg-dialog input:focus,.tg-dialog select:focus,.tg-dialog textarea:focus,.tg-admin input:focus,.tg-admin select:focus,.tg-admin textarea:focus{outline:2px solid #818cf8;outline-offset:2px}
.tg-dialog button:focus-visible,.tg-bar button:focus-visible,.tg-result button:focus-visible,.tg-admin button:focus-visible{outline:3px solid #818cf8;outline-offset:3px}.tg-dialog .tg-error{color:#b91c1c;white-space:pre-wrap}.tg-muted{color:#64748b}.tg-result{margin:24px auto;padding:22px;border:1px solid #c7d2fe;background:#eef2ff;border-radius:14px;max-width:1100px}.tg-result p{margin:0 0 16px}.tg-result a{margin-top:6px}.tg-admin{max-width:1440px;margin:32px auto;padding:0 20px}.tg-admin h1{font-size:28px;color:#0f172a}.tg-admin .tg-actions input{max-width:340px}.tg-admin .tg-actions select{width:auto}.tg-table-wrap{overflow:auto;margin:20px 0;background:white;border:1px solid #e2e8f0;border-radius:12px}.tg-admin table{border-collapse:collapse;width:100%;min-width:950px}.tg-admin th,.tg-admin td{padding:16px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;overflow-wrap:anywhere;max-width:360px}.tg-admin th{background:#f1f5f9;color:#475569}.tg-admin td{min-width:190px}.tg-admin td:last-child{min-width:280px}.tg-admin td form+form{border-top:1px solid #e2e8f0;margin-top:18px;padding-top:18px}.tg-admin td p{white-space:pre-wrap;margin:8px 0}.tg-dialog [hidden],.tg-admin [hidden]{display:none!important}
@media(max-width:640px){.tg-bar{margin:12px 8px;padding:14px;gap:10px}.tg-rules{flex-basis:100%}.tg-dialog{padding:24px 20px}.tg-admin{padding:0 12px}.tg-result{padding:18px;margin:16px 8px}}
@media print{.tg-bar,.tg-result,.tg-dialog,.tg-admin .tg-actions{display:none!important}}
.tg-bar .tg-muted{overflow-wrap:anywhere;min-width:0}.tg-result[hidden]{display:none!important}
