:root{color-scheme:light;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192c44;background:#eef3f9;font-size:16px}*{box-sizing:border-box}body{margin:0}main{max-width:1200px;margin:auto;padding:36px 24px}header{display:flex;gap:18px;align-items:center;margin-bottom:28px}.brand{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#0e7490;color:white;font-weight:800;font-size:22px}h1{margin:0;font-size:27px}h2{margin:0 0 16px;font-size:20px}p{line-height:1.65}header p{margin:5px 0;color:#60748d}.panel{background:white;padding:28px;border:1px solid #dce5f0;border-radius:16px;margin:20px 0;box-shadow:0 8px 24px #15345608}.narrow{max-width:580px;margin:30px auto}label{display:block;font-weight:600;margin-bottom:18px}input,textarea{display:block;width:100%;margin-top:8px;padding:12px 14px;background:#fbfdff;border:1px solid #bccddd;border-radius:8px;color:#192c44;font:inherit}input:focus,textarea:focus{outline:3px solid #bae6fd;border-color:#0284c7}button,.button{display:inline-block;border:0;border-radius:9px;background:#087d97;color:white;padding:12px 18px;font:inherit;font-weight:650;cursor:pointer;text-decoration:none}button:hover,.button:hover{filter:brightness(.94)}.secondary{background:#e8f0f8;color:#244864}.danger{background:#ae323c}.error{background:#fff0f1;color:#a0222c;padding:16px 20px;border-radius:10px}.notice,.success{background:#f0fcf8;border-color:#9bd6c6}.warning{background:#fff9ed;border-color:#e6c37d}.muted,footer{color:#60748d;font-size:14px}footer{margin-top:30px;line-height:1.8}.toolbar,.inline{display:flex;gap:16px;align-items:center;justify-content:space-between}.inline{justify-content:flex-start;flex-wrap:wrap;align-items:flex-end}.inline label{min-width:170px;margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th,td{padding:14px 10px;border-bottom:1px solid #e6edf4;vertical-align:top}th{color:#60748d;white-space:nowrap}small{display:block;color:#789;margin-top:6px;font-size:10px}.row-actions{display:flex;gap:7px}.row-actions button{font-size:13px;padding:8px 10px;white-space:nowrap}.card-code{font-family:ui-monospace,monospace;font-size:19px;resize:none;background:white}code{font-family:ui-monospace,monospace;overflow-wrap:anywhere}li{line-height:1.9;margin:8px 0}a{color:#087d97}@media(max-width:640px){main{padding:22px 14px}.panel{padding:20px 16px}h1{font-size:23px}.inline{display:block}.inline label{margin-bottom:16px}.toolbar{gap:8px}.brand{width:54px;height:54px}table{min-width:820px}}

/* Card lookup stays separate from card creation and row actions. */
.card-search-form{display:flex;gap:12px;align-items:flex-end;margin-bottom:16px}.card-search-field{flex:1;min-width:0;margin:0}.card-search-form>button{min-height:48px;white-space:nowrap}.card-search-clear{display:inline-block;padding:12px 0;line-height:24px;white-space:nowrap}.card-search-summary{margin:0 0 12px}.card-list-empty{padding:24px 10px;color:#60748d;text-align:center}@media(max-width:640px){.card-search-form{flex-wrap:wrap}.card-search-field{flex-basis:100%}.card-search-form>button{flex:1}.card-search-clear{padding:12px}}

/* Complete card text stays within the horizontally scrollable table. */
.card-list-identity{min-width:330px}.card-list-code{display:block;white-space:nowrap;line-height:1.6;user-select:all}.card-code-unavailable{color:#60748d}.card-last4{font-size:12px}

/* Batch creation and current-session card results. */
select{display:block;width:100%;margin-top:8px;padding:12px 14px;background:#fbfdff;border:1px solid #bccddd;border-radius:8px;color:#192c44;font:inherit}select:focus{outline:3px solid #bae6fd;border-color:#0284c7}button:disabled{cursor:wait;opacity:.65}.batch-create-form{display:grid;grid-template-columns:minmax(230px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:16px;align-items:end}.batch-create-form>label{min-width:0;margin:0}.batch-create-form>button{min-height:48px;white-space:nowrap}.batch-duration-field{min-width:0;margin:0;padding:0;border:0}.batch-duration-field legend{padding:0;margin:0 0 8px;font-weight:600}.batch-duration-controls{display:grid;grid-template-columns:minmax(70px,1fr) minmax(120px,1fr);gap:8px}.batch-duration-controls input,.batch-duration-controls select{margin-top:0}.batch-result{position:fixed;inset:0;width:min(760px,calc(100vw - 32px));max-width:none;max-height:90vh;margin:auto;padding:28px;overflow:auto;border:1px solid #bccddd;border-radius:16px;background:#fff;color:#192c44;box-shadow:0 20px 80px #15345635}.batch-result::backdrop{background:#10243d80}.batch-result h2{margin-bottom:12px}.batch-summary{margin:0}.batch-result .batch-card-codes{min-height:128px;max-height:48vh;overflow:auto;resize:vertical;font-size:16px;line-height:1.6;white-space:pre}.batch-result-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.batch-result-actions .button,.batch-result-actions button{text-align:center}.batch-result>p:last-child{margin-bottom:0}@media(max-width:1000px){.batch-create-form{grid-template-columns:minmax(220px,2fr) minmax(130px,1fr)}.batch-create-form>button{justify-self:start}}@media(max-width:640px){.batch-create-form{grid-template-columns:minmax(0,1fr)}.batch-create-form>button{width:100%}.batch-result{width:calc(100vw - 20px);padding:20px 16px;border-radius:12px}.batch-result-actions>*{flex:1 1 130px}.batch-result .batch-card-codes{font-size:14px}}
