:root {
  --background: #ffffff; --ink: #10233e; --body: #132235; --muted: #596b86;
  --blue: #1054ee; --blue-dark: #003ed1; --line: #c7d1e1; --field-line: #9baecb;
  --table-head: #e9edf3; --soft: #f5f7fb; --error: #a12332;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--body); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, select, textarea, button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.site-header { min-height: 64px; padding: 0 4%; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.header-brand, .header-account { display: flex; align-items: center; gap: 26px; }
.wordmark { font-size: 29px; font-weight: 800; letter-spacing: -.9px; line-height: 1; color: var(--ink); }
.brand-divider { height: 32px; width: 1px; background: #8d9db6; }
.product-name { color: var(--ink); font-size: 20px; font-weight: 600; white-space: nowrap; }
.header-account { gap: 23px; font-size: 15px; }
.customer-name { font-weight: 650; white-space: nowrap; }
.account-name { color: var(--muted); max-width: 300px; overflow-wrap: anywhere; font-size: 14px; }
.account-name:not(:empty) { border-left: 1px solid var(--line); padding-left: 23px; }
.text-button { padding: 5px 0; border: 0; background: none; color: var(--blue); font-weight: 600; white-space: nowrap; }
.text-button:hover:not(:disabled) { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
main { min-height: calc(100vh - 125px); }
.workspace { max-width: 1450px; margin: 0 auto; padding: 34px 5.25% 30px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; color: var(--ink); font-size: 38px; line-height: 1.25; letter-spacing: -1.05px; font-weight: 730; }
h2 { font-size: 27px; color: var(--ink); line-height: 1.3; letter-spacing: -.75px; font-weight: 700; }
h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.page-intro > p { margin-bottom: 0; color: #445671; font-size: 19px; }
.assignment-layout { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(310px, 1fr); margin-top: 35px; }
.assignment-section { padding-right: 31px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { display: block; padding: 0; margin-bottom: 17px; color: var(--ink); font-weight: 720; font-size: 27px; line-height: 1.3; letter-spacing: -.65px; }
.field { margin-bottom: 16px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
label { display: block; margin-bottom: 5px; font-weight: 650; font-size: 16px; line-height: 1.4; }
.required { color: var(--blue); padding-left: 2px; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea, select { display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--field-line); border-radius: 5px; background: white; color: var(--body); line-height: 1.35; transition: border-color .12s, box-shadow .12s; }
textarea { resize: vertical; min-height: 68px; max-height: 210px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px #1054ee24; }
input:disabled, textarea:disabled, select:disabled { background: #f4f6fa; color: #68778b; }
select { appearance: auto; padding-right: 12px; }
.select-heading { margin: 23px 0 13px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 25px; border: 1px solid var(--blue); border-radius: 6px; font-weight: 650; font-size: 16px; line-height: 1.4; }
.primary-button { color: #fff; background: var(--blue); }
.primary-button:hover:not(:disabled) { background: var(--blue-dark); border-color: var(--blue-dark); }
.secondary-button { color: var(--ink); border-color: var(--line); background: #fff; }
.secondary-button:hover:not(:disabled) { background: var(--soft); border-color: var(--field-line); }
#reviewButton { margin-top: 11px; }
.license-pool { border-left: 1px solid var(--line); padding-left: 35px; }
.license-pool > h2 { margin: 0 0 24px; }
.available-count { margin: 0 0 0 -2px; font-size: 43px; font-weight: 730; line-height: 1.2; color: var(--blue); letter-spacing: -1.4px; }
.allocation-total { margin: 6px 0 10px; font-size: 19px; color: var(--muted); }
.pool-secondary-counts { display: flex; flex-wrap: wrap; gap: 6px 15px; color: var(--muted); font-size: 13px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.pool-secondary-counts strong { font-weight: 600; }
.pool-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 11px; }
.pool-tools select { width: auto; min-height: 32px; border: 0; padding: 3px 30px 3px 0; background-position: right 7px center; font-size: 14px; font-weight: 600; color: var(--muted); }
.refresh-button { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pool-table-wrap { border: 1px solid var(--line); border-radius: 5px; overflow: auto; max-height: 343px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; }
thead { position: sticky; top: 0; z-index: 1; background: var(--table-head); }
th { font-weight: 700; padding: 10px 16px; color: var(--ink); }
td { padding: 9px 16px; border-top: 1px solid #dce2ec; }
.license-label { overflow-wrap: anywhere; }
.license-status { white-space: nowrap; }
.status-pending { color: #8c5d00; }
.status-unavailable { color: var(--muted); }
.pool-shown { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.permanence-note { margin: 26px 0 0; max-width: 390px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.empty-message { padding: 16px; margin: 0; color: var(--muted); font-size: 14px; }
.site-footer { display: flex; align-items: center; gap: 15px; min-height: 61px; margin: 0 2%; padding: 13px 2%; color: var(--muted); border-top: 1px solid var(--line); font-size: 15px; }
.footer-wordmark { color: var(--ink); font-size: 17px; font-weight: 750; letter-spacing: -.4px; }
.footer-divider { width: 1px; height: 20px; background: #91a1ba; }
.mode-banner { margin: -8px 0 20px; padding: 10px 13px; border-left: 3px solid #b78018; background: #fff9ea; color: #70521b; font-size: 14px; }
.mode-banner[data-mode="readonly"] { color: #435574; border-color: #8091ae; background: var(--soft); }
.error-message { color: var(--error); background: #fff4f5; border-left: 3px solid #c44856; padding: 10px 12px; margin: 12px 0; font-size: 14px; overflow-wrap: anywhere; }
.pending-notice { background: #fff9ea; border-left: 3px solid #b78018; padding: 16px 18px; margin-top: 22px; }
.pending-notice p { color: #6b5833; font-size: 14px; margin-bottom: 14px; }
.button-row { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; }
.button-row .secondary-button { min-height: 38px; font-size: 14px; padding: 8px 15px; }
.button-row .text-button { font-size: 14px; }
.receipt-panel { border-top: 2px solid #2b8b67; margin-top: 26px; padding: 20px 0 0; }
.receipt-title { display: flex; align-items: center; gap: 10px; }
.receipt-title h2 { font-size: 24px; margin: 0; }
.receipt-symbol { width: 29px; height: 29px; border-radius: 50%; display: inline-flex; justify-content: center; align-items: center; background: #e5f4ed; color: #26744e; font-weight: 700; }
.receipt-panel > p { color: var(--muted); font-size: 15px; margin: 10px 0 16px; }
.receipt-panel[data-status="needs_review"] { border-color: #b78018; }
.receipt-panel[data-status="needs_review"] .receipt-symbol { display: none; }
.receipt-details, .review-summary { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 9px 16px; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.receipt-reference { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; }
.login-layout { max-width: 1170px; margin: 0 auto; padding: 95px 55px 100px; display: grid; grid-template-columns: 1.12fr 1fr; gap: 95px; }
.login-intro { padding-top: 24px; }
.login-intro h1 { font-size: 43px; line-height: 1.2; letter-spacing: -1.4px; margin-bottom: 24px; }
.login-intro > p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 390px; }
.login-intro .login-rule { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 23px; font-size: 15px; }
.login-panel h2 { margin: 0 0 8px; font-size: 29px; }
.muted { color: var(--muted); }
.login-panel > .muted { margin-bottom: 25px; font-size: 15px; }
.login-panel .field { margin-bottom: 20px; }
.field-help { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.login-submit { width: 100%; margin-top: 4px; }
.privacy-note { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 17px 0 0; }
dialog { width: min(570px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 24px 90px #0b23482e; color: var(--body); }
dialog::backdrop { background: #10233e5c; }
.dialog-content { padding: 29px; }
.dialog-content h2 { margin: 0 0 8px; }
.dialog-content > .muted { margin-bottom: 24px; font-size: 15px; }
.review-summary { font-size: 15px; row-gap: 13px; }
.review-warning { background: #f4f7fc; padding: 13px 15px; font-size: 14px; color: #465775; margin: 23px 0; border-left: 3px solid #8ea3c4; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
.dialog-actions button { min-height: 43px; padding: 9px 17px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
@media (min-width: 1450px) {
  .workspace { padding-top: 37px; }
  .assignment-layout { margin-top: 37px; }
  .field { margin-bottom: 17px; }
  input, select { min-height: 45px; }
}
@media (max-width: 1120px) {
  .site-header { padding: 14px 4%; align-items: flex-start; }
  .header-brand { gap: 18px; }
  .product-name { font-size: 17px; }
  .header-account { gap: 14px; font-size: 13px; flex-wrap: wrap; justify-content: flex-end; }
  .account-name { max-width: 240px; font-size: 12px; }
  .account-name:not(:empty) { padding-left: 14px; }
  .workspace { padding-left: 4%; padding-right: 4%; }
  .assignment-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
  .license-pool { padding-left: 25px; }
  .assignment-section { padding-right: 25px; }
  h2, legend { font-size: 24px; }
  .available-count { font-size: 37px; }
  .login-layout { gap: 50px; padding: 65px 6%; }
}
@media (max-width: 780px) {
  .site-header { padding: 17px 6%; gap: 12px; align-items: center; }
  .wordmark { font-size: 24px; }
  .brand-divider, .product-name, .customer-name { display: none; }
  .header-account { gap: 12px; }
  .account-name:not(:empty) { border: 0; padding: 0; max-width: 180px; font-size: 11px; }
  .header-account .text-button { font-size: 13px; }
  .workspace { padding: 26px 6% 35px; }
  h1 { font-size: 31px; letter-spacing: -.8px; }
  .page-intro > p { font-size: 16px; line-height: 1.55; }
  .assignment-layout { display: flex; flex-direction: column; margin-top: 27px; }
  .assignment-section { padding-right: 0; }
  .license-pool { border-left: 0; border-top: 1px solid var(--line); padding: 27px 0 0; margin-top: 35px; }
  .license-pool > h2 { margin-bottom: 15px; }
  .field-grid { gap: 17px; }
  label { font-size: 14px; }
  input, select, textarea { font-size: 16px; min-height: 45px; }
  .field { margin-bottom: 17px; }
  .allocation-total { font-size: 17px; }
  .pool-table-wrap { max-height: 292px; }
  .permanence-note { font-size: 15px; margin-top: 19px; }
  .site-footer { margin: 0 4%; padding: 15px 2%; font-size: 13px; }
  .footer-wordmark { font-size: 15px; }
  .login-layout { display: block; padding: 32px 7% 55px; max-width: 510px; }
  .login-intro { padding-top: 0; }
  .login-intro h1 { font-size: 33px; margin-bottom: 16px; }
  .login-intro > p { font-size: 16px; }
  .login-intro .login-rule { display: none; }
  .login-panel { margin-top: 31px; border-top: 1px solid var(--line); padding-top: 26px; }
  .dialog-content { padding: 23px; }
  .review-summary { grid-template-columns: 100px minmax(0, 1fr); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
