body[data-portal=admin] { max-width:1280px; padding:28px 36px; background:#f5f7fb; color:#18263d; }
body[data-portal=admin] header { margin-bottom:26px; }
body[data-portal=admin] header h1 { letter-spacing:-1.3px; font-size:30px; }
.admin-brand-dot { color:#3267e3; }
body[data-portal=admin] nav { padding-bottom:18px; border-bottom:1px solid #e1e7f0; gap:7px; }
body[data-portal=admin] nav button { border:0; background:transparent; border-radius:8px; padding:10px 13px; font-size:14px; color:#617087; }
body[data-portal=admin] nav button[aria-current=page] { background:#e8eefb; color:#234fa9; font-weight:650; }
body[data-portal=admin] header a { color:#2c5cb9; font-size:13px; }
.tn-page-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:28px 0 22px; flex-wrap:wrap; }
.tn-eyebrow { color:#4268a5; font-size:11px; font-weight:750; letter-spacing:2px; margin:0 0 9px; }
.tn-page-heading h2 { font-size:30px; letter-spacing:-.8px; margin:0 0 8px; font-weight:650; }
.tn-muted,.tn-help { font-size:13px; color:#68768b; line-height:1.6; }
.tn-page-heading .tn-muted { margin:0; font-size:14px; }
.tn-header-actions,.tn-card-actions,.tn-toolbar-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.tunnel-console button,.tn-dialog button { border-radius:8px; padding:9px 13px; font-size:13px; font-weight:600; }
.tunnel-console button:focus-visible,.tn-dialog button:focus-visible,.tn-choice:focus-within { outline:3px solid #afc7f5; outline-offset:3px; }
button.tn-primary { background:#3267e3; color:white; border:1px solid #3267e3; }
button.tn-primary:hover { background:#2555c2; }
button.tn-secondary { background:white; border:1px solid #d8e0ed; color:#30445f; }
button.tn-secondary:hover { background:#f5f8fd; }
button.tn-link,button.tn-danger-link { background:transparent; border:0; }
button.tn-link { color:#536781; }
button.tn-danger-link { color:#a04d4d; }
.tn-preview-banner { border:1px solid #d8e5fb; background:#edf3ff; color:#3b5c91; padding:12px 16px; border-radius:9px; font-size:13px; }
.tn-notice { border-radius:8px; padding:12px 15px; background:#eaf5ef; color:#276c4d; font-size:13px; line-height:1.6; }
.tn-notice.tn-error { background:#fff0ed; color:#a34135; }
.tn-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; margin:24px 0 30px; }
.tn-stats>div { background:white; border:1px solid #e2e7f0; border-radius:12px; padding:19px 21px; }
.tn-stats span { display:block; font-size:12px; color:#708098; }
.tn-stats strong { display:block; font-size:29px; font-weight:650; margin-top:7px; letter-spacing:-.5px; }
.tn-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin:0 0 20px; }
.tn-view-tabs { display:flex; gap:4px; padding:4px; background:#e9eef6; border-radius:9px; }
.tn-view-tabs button { background:none; border:0; color:#6a7890; padding:8px 16px; }
.tn-view-tabs button[aria-selected=true] { background:white; color:#243b5b; box-shadow:0 1px 4px #1e3b5c12; }
.tn-toolbar input { width:210px; margin:0; border:1px solid #dae2ef; background:white; padding:9px 12px; border-radius:8px; font-size:13px; }
.tn-exit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.tn-exit-card { border:1px solid #e0e6f0; background:white; border-radius:14px; padding:22px; overflow-wrap:anywhere; }
.tn-card-heading { display:flex; align-items:start; justify-content:space-between; gap:14px; }
.tn-card-heading h3,.tn-employee h3 { font-size:17px; letter-spacing:-.3px; margin:0; font-weight:650; }
.tn-card-heading p { margin:5px 0 14px; }
.tn-badge { white-space:nowrap; font-size:10px; font-weight:650; border-radius:6px; padding:5px 7px; background:#edf0f5; color:#708097; }
.tn-status-active { background:#e7f5ed; color:#2b8460; }
.tn-status-ready { background:#eaf0fd; color:#3767be; }
.tn-status-pending_changes { background:#fff4df; color:#95722b; }
.tn-status-expired,.tn-status-check_failed { background:#fff0ec; color:#a65348; }
.tn-ip { padding:15px 17px; background:#f6f8fc; border-radius:9px; margin:3px 0 15px; }
.tn-ip small { display:block; font-size:9px; letter-spacing:1px; font-weight:650; color:#7b8ba2; }
.tn-ip strong { display:block; font-family:ui-monospace,Consolas,monospace; font-size:19px; font-weight:500; margin-top:7px; color:#334b6b; }
.tn-exit-details { display:flex; flex-wrap:wrap; gap:7px 14px; font-size:12px; color:#748299; line-height:1.5; }
.tn-card-actions { margin-top:16px; padding-top:15px; border-top:1px solid #eef1f6; gap:5px; }
.tn-card-actions button { font-size:12px; }
.tn-card-actions .tn-muted { font-size:12px; }
.tn-inline-error { color:#a34c43; font-size:12px; line-height:1.6; }
.tn-employee { border:1px solid #e0e6f0; background:white; border-radius:12px; padding:20px 23px; margin-bottom:13px; }
.tn-employee-title { display:flex; align-items:center; gap:13px; }
.tn-employee-title .tn-badge { margin-left:auto; }
.tn-employee-title p { margin:4px 0 0; }
.tn-avatar { display:grid; place-items:center; width:41px; height:41px; border-radius:11px; background:#eef3fd; color:#5876ad; font-size:13px; font-weight:650; }
.tn-assigned-tags { display:flex; gap:7px; flex-wrap:wrap; margin:16px 0 8px; }
.tn-tag { background:#f0f4fa; color:#5b6e8b; border-radius:5px; padding:5px 9px; font-size:11px; }
.tn-employee>p { margin:7px 0; }
.tn-event { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; padding:17px 18px; border-bottom:1px solid #e1e7f0; font-size:13px; }
.tn-event small { color:#7b889a; text-align:right; }
.tn-event strong { font-weight:550; }
.tn-empty { padding:30px 20px; color:#708099; background:white; border:1px dashed #d9e1ed; border-radius:12px; line-height:1.7; grid-column:1/-1; }
.tn-dialog { border:1px solid #e0e6f0; border-radius:16px; padding:27px; max-width:530px; width:calc(100% - 32px); max-height:calc(100dvh - 44px); overflow:auto; color:#253a56; box-shadow:0 24px 90px #1b2f5426; }
.tn-dialog::backdrop { background:#14233b70; backdrop-filter:blur(3px); }
.tn-dialog-heading { display:flex; align-items:start; justify-content:space-between; gap:15px; }
.tn-dialog h2 { font-size:21px; letter-spacing:-.4px; margin:0; }
.tn-close { background:none; border:0; padding:3px 5px !important; color:#738199; font-weight:400 !important; }
.tn-dialog label { font-size:12px; color:#536780; margin:14px 0; }
.tn-dialog input,.tn-dialog select { font-size:14px; width:100%; max-width:none; padding:11px 12px; border:1px solid #d5deec; border-radius:8px; background:#fbfcfe; color:#213956; }
.tn-dialog input:focus,.tn-dialog select:focus { outline:3px solid #e4edff; border-color:#7fa2e3; }
.tn-dialog-footer { display:flex; justify-content:flex-end; gap:10px; border-top:1px solid #edf1f7; margin-top:24px; padding-top:19px; }
.tn-form-row { display:grid; grid-template-columns:2fr 1fr; gap:14px; }
.tn-form-row label { min-width:0; }
.tn-form-error,.tn-warning { color:#a04b3b; background:#fff4ee; padding:11px 13px; border-radius:8px; font-size:12px; line-height:1.6; }
.tn-assignments { border:1px solid #e0e7f1; border-radius:10px; padding:5px 14px 12px; margin-top:18px; }
.tn-assignments legend { font-size:12px; font-weight:600; padding:0 5px; color:#536780; }
.tn-choice { display:flex; align-items:center; gap:11px; cursor:pointer; margin:9px 0 !important; padding:7px 0; }
.tn-choice input { width:16px; height:16px; margin:0; accent-color:#3267e3; }
.tn-choice strong,.tn-choice small { display:block; }
.tn-choice strong { font-size:13px; color:#304863; font-weight:600; }
.tn-choice small { font-size:11px; font-weight:400; color:#8290a5; margin-top:3px; }
@media(max-width:760px) {
 body[data-portal=admin] { padding:16px; }
 .tn-page-heading { margin-top:20px; }
 .tn-page-heading h2 { font-size:26px; }
 .tn-header-actions { width:100%; }
 .tn-stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .tn-stats>div { padding:16px; }
 .tn-exit-grid { grid-template-columns:1fr; }
 .tn-toolbar-actions { width:100%; }
 .tn-toolbar input { flex:1; min-width:120px; }
 .tn-event { grid-template-columns:1fr; gap:6px; }
 .tn-event small { text-align:left; }
 .tn-exit-card { padding:18px; }
 .tn-dialog { padding:21px; }
}
