:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#17243b;background:#f4f6fa}body{margin:0}header{background:#fff;padding:20px 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dbe1eb}h1{font-size:23px;margin:0}main,#message{margin:20px auto;max-width:1180px;padding:0 24px}form,.panel{background:white;border:1px solid #dbe1eb;border-radius:8px;padding:24px;margin-bottom:20px}#login{max-width:400px;margin:48px auto}label{display:block;margin:12px 0}input,select{display:block;padding:10px;border:1px solid #b9c5d6;border-radius:5px;max-width:100%;box-sizing:border-box;width:360px;margin-top:5px}button{background:#255ed4;color:white;border:0;border-radius:5px;padding:10px 16px;cursor:pointer;margin:4px 8px 4px 0}button:disabled{opacity:.5;cursor:wait}nav{margin-bottom:20px}table{width:100%;border-collapse:collapse;background:white;font-size:14px}th,td{text-align:left;padding:12px;border-bottom:1px solid #dbe1eb;overflow-wrap:anywhere}td button{font-size:12px;padding:7px}pre{white-space:pre-wrap;overflow-wrap:anywhere}small{color:#52647f}.scroll{overflow:auto}#message{color:#9f2d20;min-height:24px}a{color:#255ed4}[hidden]{display:none!important}

/* Card display: keep complete identifiers selectable; scroll the table, not the page. */
.license-table{min-width:960px;table-layout:fixed}.license-table th:nth-child(1){width:350px}.license-table th:nth-child(2){width:150px}.license-table th:nth-child(3){width:165px}.license-table th:nth-child(4){width:75px}.license-table th:nth-child(5){width:180px}.license-table td{vertical-align:top;line-height:1.6}.copy-value{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;min-width:0}.copy-value code{font-family:Consolas,monospace;font-size:13px;line-height:1.8;white-space:normal;overflow-wrap:anywhere;user-select:all;max-width:100%}.copy-value button{flex:none;margin:0;padding:6px 10px;font-size:12px}.license-identity small{display:block;margin-top:8px}.license-actions{display:flex;flex-wrap:wrap;gap:5px}.license-actions button{margin:0;white-space:nowrap}.generated-cards{display:grid;gap:12px;margin-top:16px}.generated-cards .copy-value{padding:12px;background:#f4f6fa;border:1px solid #dbe1eb;border-radius:5px}.clipboard-fallback{position:fixed;left:-10000px;top:0}@media(max-width:640px){main,#message{padding:0 12px}form,.panel{padding:16px}header{padding:16px 12px}.generated-cards .copy-value{display:grid;grid-template-columns:minmax(0,1fr)}.generated-cards button{justify-self:start}}

/* Activation categories and usable card codes. */
.license-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.license-filters button{background:#e5ebf6;color:#29446e;border:1px solid #c8d4e8;margin:0}.license-filters button[aria-pressed=true]{background:#255ed4;border-color:#255ed4;color:white}.license-card-table{min-width:850px}.license-card-table td{vertical-align:top;line-height:1.6}.license-card-table th:first-child{width:38%}.license-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;max-width:400px}.license-card code{font:13px/1.8 Consolas,monospace;overflow-wrap:anywhere;user-select:all}.license-card button{margin:0}.license-card-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:145px}.license-card-actions button{margin:0;white-space:nowrap}button.danger{background:#b3261e}.card-clipboard{position:fixed;left:-10000px;top:0}

/* Readable audit events; internal references remain collapsed. */
.audit-table{min-width:880px}.audit-table td{vertical-align:top;line-height:1.6}.audit-table th:nth-child(1){width:155px}.audit-table th:nth-child(2){width:230px}.audit-table th:nth-child(3){width:175px}.audit-table th:nth-child(5){width:120px}.audit-action{display:grid;gap:7px}.audit-status{justify-self:start;border-radius:4px;padding:2px 7px;font-size:12px}.audit-recorded{color:#216342;background:#e8f5ed}.audit-failed{color:#8f4014;background:#fff0e3}.audit-details{margin-top:8px;color:#52647f;font-size:12px}.audit-details summary{cursor:pointer;color:#255ed4}.audit-details div{overflow-wrap:anywhere;margin-top:5px}
