:root{color:#172033;font-synthesis:none;text-rendering:optimizelegibility;--ink:#172033;--text:#344054;--muted:#526174;--quiet:#667085;--line:#dfe3e8;--line-strong:#c8ced8;--panel:#fff;--canvas:#f7f8fa;--surface-muted:#f2f4f7;--surface-hover:#f8f9fb;--primary:#1e2a42;--primary-hover:#293958;--primary-soft:#eef1f7;--focus:#526b9b;--success:#18794e;--success-soft:#eaf8f1;--success-line:#b8dfca;--error:#a93636;--error-soft:#fff0f0;--error-line:#efc0c0;--info:#344d78;--info-soft:#f1f5fb;--info-line:#cbd6e8;--duration-fast:.16s;--ease-out:cubic-bezier(.22, 1, .36, 1);--z-sticky:20;background:#f7f8fa;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--canvas);min-width:320px;margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.mobile-only,.usage-mobile-target{display:none}.desktop-only{display:inline}.app-shell{min-height:100vh;display:flex}.sidebar{z-index:var(--z-sticky);border-right:1px solid var(--line);background:var(--panel);flex-direction:column;width:248px;padding:24px 16px 16px;display:flex;position:fixed;inset:0 auto 0 0}.brand-row{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.brand{color:var(--ink);align-items:center;gap:12px;padding:0 8px;display:flex}.brand strong{font-size:15px}.brand-mark{background:var(--primary);width:32px;height:32px;color:var(--panel);border-radius:8px;place-items:center;display:grid;box-shadow:0 3px 8px #1e2a422e}.brand-row .mobile-logout{display:none}.sidebar-nav{gap:4px;display:grid}.nav-item{width:100%;min-height:40px;color:var(--quiet);text-align:left;transition:background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);background:0 0;border:0;border-radius:6px;align-items:center;gap:12px;padding:10px 12px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.nav-item:hover{background:var(--surface-hover);color:var(--ink)}.nav-item:active{transform:translateY(1px)}.nav-item.active{background:var(--primary-soft);color:var(--primary)}.nav-item svg{flex:none}.sidebar-spacer{flex:1}.sidebar-footer{border-top:1px solid var(--line);padding:16px 8px 0}.logout-button{width:32px;height:32px;color:var(--muted);transition:background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.logout-button:hover{background:var(--error-soft);color:var(--error)}.main-shell{width:calc(100% - 248px);margin-left:248px}.content{width:min(1260px,100%);margin:0 auto;padding:40px 40px 64px}.page-header{margin-bottom:20px}h1,h2,h3{color:var(--ink);letter-spacing:0;text-wrap:balance;margin:0;font-weight:700}h1{font-size:26px;line-height:1.2}h2{font-size:18px}.toolbar{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px;display:flex}.toolbar-left{align-items:flex-end;gap:8px;display:flex}.toolbar-flush{margin:0}.space-top-16{margin-top:16px}.space-top-20{margin-top:20px}.panel-spaced{margin-bottom:16px}.field{gap:8px;min-width:190px;display:grid}.field-label{color:var(--text);justify-content:space-between;align-items:center;font-size:12px;font-weight:600;display:flex}.field-label small{color:var(--quiet);font-size:12px;font-weight:400}input,textarea,select{border:1px solid var(--line-strong);background:var(--panel);width:100%;min-height:38px;color:var(--ink);transition:border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);border-radius:6px;padding:9px 12px;font-size:14px}input::placeholder,textarea::placeholder{color:var(--quiet);opacity:1}input:focus,textarea:focus,select:focus{border-color:var(--focus);box-shadow:0 0 0 3px #526b9b24}textarea{resize:vertical;min-height:104px;line-height:1.5}.button{min-height:38px;transition:background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:600;display:inline-flex}.button:active:not(:disabled){transform:translateY(1px)}.button-primary{background:var(--primary);color:var(--panel)}.button-primary:hover:not(:disabled){background:var(--primary-hover)}.button-secondary{border-color:var(--line-strong);background:var(--panel);color:var(--text)}.button-secondary:hover:not(:disabled){background:var(--surface-hover)}.button-ghost{color:var(--text);background:0 0;border-color:#0000}.button-ghost:hover:not(:disabled){background:var(--surface-muted);color:var(--ink)}.button-danger{border-color:var(--error-line);background:var(--panel);color:var(--error)}.button-danger:hover:not(:disabled){background:var(--error-soft)}.button-small{min-height:32px;padding:0 8px;font-size:12px}.icon-button{width:32px;height:32px;color:var(--quiet);transition:background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);background:0 0;border:1px solid #0000;border-radius:6px;flex:none;place-items:center;display:inline-grid}.icon-button:hover:not(:disabled){border-color:var(--line);background:var(--surface-hover);color:var(--ink)}.icon-button:active:not(:disabled){transform:translateY(1px)}.icon-button-danger:hover:not(:disabled){border-color:var(--error-line);background:var(--error-soft);color:var(--error)}.notice{border:1px solid;border-radius:6px;align-items:flex-start;gap:8px;margin-bottom:16px;padding:12px;font-size:13px;line-height:1.45;display:flex}.notice svg{flex:none;margin-top:1px}.notice-error{border-color:var(--error-line);background:var(--error-soft);color:var(--error)}.notice-success{border-color:var(--success-line);background:var(--success-soft);color:var(--success)}.notice-info{border-color:var(--info-line);background:var(--info-soft);color:var(--info)}.panel{border:1px solid var(--line);background:var(--panel);border-radius:8px}.panel-body{padding:20px}.page-form{margin-bottom:16px}.table-wrap{overscroll-behavior-x:contain;max-width:100%;overflow-x:auto}table{border-collapse:collapse;text-align:left;width:100%;min-width:680px}th{color:var(--quiet);letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:700}th,td{vertical-align:middle;border-bottom:1px solid #edf0f3;padding:12px 20px}tbody tr:last-child td{border-bottom:0}tbody tr{transition:background var(--duration-fast) var(--ease-out)}tbody tr:hover{background:var(--surface-hover)}td{color:var(--text);font-size:13px}td strong{color:var(--ink);font-weight:600}.cell-primary{max-width:460px;color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-weight:600;display:block;overflow:hidden}.cell-muted{color:var(--muted);white-space:nowrap;font-size:12px}.usage-target{max-width:220px;display:block}.usage-description{text-overflow:ellipsis;white-space:nowrap;max-width:230px;overflow:hidden}.usage-created{white-space:nowrap}.row-actions{justify-content:flex-end;align-items:center;gap:4px;display:flex}.status{white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:5px 8px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.status-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.status-success,.status-active{background:var(--success-soft);color:var(--success)}.status-failed,.status-revoked{background:var(--error-soft);color:var(--error)}.status-disabled{background:var(--surface-muted);color:var(--muted)}.empty-state{min-height:160px;color:var(--muted);text-align:center;align-content:center;place-items:center;gap:8px;padding:32px;display:grid}.empty-state strong{color:var(--ink);font-size:14px}.empty-icon{border:1px solid var(--line);background:var(--surface-hover);width:44px;height:44px;color:var(--quiet);border-radius:50%;place-items:center;margin-bottom:4px;display:grid}.table-loading{align-content:center;gap:12px;min-height:184px;padding:24px 20px;display:grid}.skeleton-row{grid-template-columns:minmax(180px,2fr) minmax(80px,1fr) minmax(80px,1fr);gap:24px;display:grid}.skeleton-row span{background:#e9edf2;border-radius:4px;height:12px;animation:1.4s ease-in-out infinite alternate skeleton-pulse}.skeleton-row span:nth-child(2){width:72%}.skeleton-row span:nth-child(3){width:58%}@keyframes skeleton-pulse{to{opacity:.45}}.pagination{border-top:1px solid var(--line);justify-content:space-between;align-items:center;padding:12px 20px;display:flex}.pagination-count,.pagination-controls{color:var(--muted);font-size:12px}.pagination-controls{align-items:center;gap:8px;display:flex}.form-grid{grid-template-columns:minmax(0,1fr) 150px;align-items:end;gap:12px;display:grid}.form-grid-wide{grid-template-columns:minmax(0,1fr) auto}.candidate-entry-panel{border-color:var(--line-strong)}.batch-form{gap:14px;display:grid}.batch-textarea{background:var(--surface-hover);min-height:132px}.batch-footer{justify-content:space-between;align-items:center;gap:20px;min-height:38px;display:flex}.batch-footer .button{min-width:132px;margin-left:auto}.batch-results{color:var(--muted);flex-wrap:wrap;gap:18px;font-size:12px;display:flex}.batch-results strong{color:var(--ink)}.token-banner{border:1px solid var(--success-line);background:var(--success-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;padding:16px;display:flex}.token-banner-copy{gap:4px;min-width:0;display:grid}.token-banner-copy strong{color:var(--success);font-size:13px}.token-value{border:1px solid var(--success-line);background:var(--panel);color:var(--success);white-space:nowrap;border-radius:5px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow:auto}.audit-row:hover{background:0 0}.audit{border:1px solid var(--line);background:var(--surface-hover);max-width:640px;color:var(--text);border-radius:5px;margin:8px 0;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.5;overflow:auto}.auth-page,.auth-main{background:var(--canvas);place-items:center;min-height:100vh;padding:32px;display:grid}.auth-form{width:min(360px,100%)}.auth-brand{align-items:center;gap:12px;margin-bottom:32px;display:flex}.auth-brand strong{font-size:15px}.auth-form h1{margin-bottom:24px;font-size:25px}.auth-form>p{color:var(--muted);margin:8px 0 24px;font-size:14px;line-height:1.5}.auth-fields{gap:20px;display:grid}.auth-submit{width:100%;margin-top:4px}.standalone-state{min-height:100vh}.standalone-state .auth-form>p{margin-bottom:24px}.standalone-icon{color:var(--error)}.standalone-title{margin-top:16px}.full-height{min-height:100vh}.loading-state{color:var(--muted);justify-content:center;align-items:center;gap:8px;font-size:14px;display:flex}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (width<=1100px) and (width>=651px){table[data-testid=target-list] th:nth-child(3),table[data-testid=target-list] td:nth-child(3),table[data-testid=backlink-list] th:nth-child(3),table[data-testid=backlink-list] td:nth-child(3),table[data-testid=token-list] th:nth-child(3),table[data-testid=token-list] td:nth-child(3),table[data-testid=token-list] th:nth-child(4),table[data-testid=token-list] td:nth-child(4),.usage-description-column,.usage-created-column{display:none}table[data-testid=target-list],table[data-testid=backlink-list],table[data-testid=token-list],.usage-table{min-width:100%}}@media (width<=880px){.sidebar{width:214px}.main-shell{width:calc(100% - 214px);margin-left:214px}.content{padding:32px 24px 52px}}@media (width<=650px){.app-shell{display:block}.sidebar{border-right:0;border-bottom:1px solid var(--line);width:100%;height:auto;padding:12px 14px 0;display:block;position:static}.brand-row{margin-bottom:8px}.brand{padding:0 4px}.brand-row .mobile-logout{display:inline-grid}.sidebar-spacer,.sidebar-footer{display:none}.sidebar-nav{gap:4px;padding-bottom:8px;display:flex;overflow-x:auto}.nav-item{white-space:nowrap;flex:none;justify-content:center;width:44px;min-width:44px;min-height:44px;padding:0}.nav-item span{display:none}.main-shell{width:100%;margin-left:0}.content{padding:24px 16px 40px}.page-header{margin-bottom:20px}h1{font-size:24px}.toolbar,.toolbar-left{display:block}.toolbar-left>:not(.sr-only){width:100%;margin-bottom:8px}.toolbar-left>:not(.sr-only):last-child{margin-bottom:0}.form-grid,.form-grid-wide{grid-template-columns:1fr}.batch-footer{grid-template-columns:1fr;min-height:0;display:grid}.batch-footer .button{width:100%;margin-left:0}.batch-results{justify-content:space-between}.field-label,.field-label small{font-size:14px}input,textarea,select,.button{min-height:44px;font-size:14px}.button-small{min-height:44px}.icon-button,.logout-button{width:44px;height:44px}.panel-body{padding:16px}table{min-width:640px}th{font-size:14px}th,td{padding:12px 16px}td,.cell-muted,.pagination-count,.pagination-controls,.status,.batch-results,.token-banner-copy strong,.token-value,.audit{font-size:14px}.cell-primary{max-width:220px}.mobile-only{display:block}.desktop-only{display:none}.target-toggle,.usage-audit-button{width:44px;padding:0}.usage-mobile-target{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;margin-top:4px;font-size:14px;display:block;overflow:hidden}table[data-testid=target-list],table[data-testid=backlink-list],table[data-testid=token-list],.usage-table{table-layout:fixed;min-width:100%}table[data-testid=target-list] th:nth-child(3),table[data-testid=target-list] td:nth-child(3),table[data-testid=backlink-list] th:nth-child(3),table[data-testid=backlink-list] td:nth-child(3),table[data-testid=token-list] th:nth-child(3),table[data-testid=token-list] td:nth-child(3),table[data-testid=token-list] th:nth-child(4),table[data-testid=token-list] td:nth-child(4),.usage-target-column,.usage-description-column,.usage-created-column{display:none}table[data-testid=target-list] th:first-child{width:32%}table[data-testid=target-list] th:nth-child(2){width:33%}table[data-testid=target-list] th:nth-child(4){width:35%}table[data-testid=backlink-list] th:first-child{width:48%}table[data-testid=backlink-list] th:nth-child(2){width:18%}table[data-testid=backlink-list] th:nth-child(4){width:34%}table[data-testid=token-list] th:first-child{width:52%}table[data-testid=token-list] th:nth-child(2),table[data-testid=token-list] th:nth-child(5){width:24%}.usage-table th:first-child{width:46%}.usage-table th:nth-child(3){width:34%}.usage-table th:nth-child(6){width:20%}table[data-testid=target-list] td:last-child,table[data-testid=backlink-list] td:last-child,table[data-testid=token-list] td:last-child,.usage-table td:last-child{padding-inline:6px}table[data-testid=target-list] .row-actions,table[data-testid=backlink-list] .row-actions{gap:0}.token-banner{display:block}.token-banner .button{margin-top:12px}.pagination{padding:8px 12px 8px 16px}.auth-page,.auth-main{padding:24px}.notice{font-size:14px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
