/* Scoped to the card workspace; the existing financial workspaces keep their styles. */
.cc-page{--ac:#5855e8;--ink:#172445;--muted:#7b88a3;color:var(--ink);font-family:"Segoe UI Variable Text","Microsoft YaHei UI","Microsoft YaHei",sans-serif;max-width:1600px;margin:auto;font-size:13px}
.cc-page *,.cc-receipt-dialog *{box-sizing:border-box}
.cc-page .ui-icon{width:18px;height:18px;flex:none}
.cc-page .btn,.cc-receipt-dialog .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;border:1px solid #dce3f1;border-radius:8px;background:white;color:#354667;font-size:12px;font-weight:600;box-shadow:0 1px 2px #25336605;cursor:pointer;white-space:nowrap;transition:background .16s,box-shadow .16s,transform .16s}
.cc-page .btn:hover,.cc-receipt-dialog .btn:hover{background:#f3f4ff;border-color:#b1b3f8}
.cc-page .btn:focus-visible,.cc-receipt-dialog .btn:focus-visible{outline:3px solid #aaa9ff;outline-offset:3px}
.cc-page .btn:disabled,.cc-receipt-dialog .btn:disabled{opacity:.5;cursor:wait;transform:none}
.cc-page .btn.primary,.cc-receipt-dialog .btn.primary{background:linear-gradient(110deg,#6556f5,#4d55ea);border-color:transparent;color:#fff;box-shadow:0 5px 12px #6454e52b}
.cc-page .btn.sm{min-height:30px;padding:4px 10px;font-size:11px}
.cc-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.cc-hero{position:relative;display:flex;align-items:center;min-height:167px;padding:18px 6px 27px;overflow:hidden}
.cc-hero-copy{position:relative;z-index:1}
.cc-eyebrow{font-size:9px;font-weight:700;letter-spacing:2.3px;color:#7778c7;margin-bottom:13px}
.cc-hero-title{display:flex;align-items:center;gap:14px}
.cc-hero h1{font-size:31px;line-height:1.2;margin:0;letter-spacing:-1px;font-weight:750;color:#142347}
.cc-hero-title>span{font-size:10px;color:#6259dc;background:#e9e7ff;border:1px solid #ddd9ff;border-radius:6px;padding:4px 8px}
.cc-hero p{color:#7c89a6;margin:11px 0 18px;font-size:12px}
.cc-hero-meta{display:flex;align-items:center;gap:22px;color:#8b96ad;font-size:10px}
.cc-hero-meta>span{display:flex;align-items:center;gap:5px}
.cc-hero-meta .ui-icon{width:13px;height:13px;color:#8f92c7}
.cc-hero-meta b{color:#53638a}
.cc-service{display:inline-flex;align-items:center;gap:8px;color:#5f7597;font-size:11px;white-space:nowrap;background:#ffffffd9;border:1px solid #e3e8f3;border-radius:8px;padding:10px 12px}
.cc-hero>.cc-service{position:absolute;top:26px;right:3px;z-index:2;box-shadow:0 5px 20px #5667ab09}
.cc-service:before{content:'';width:6px;height:6px;border-radius:50%;background:#e49a51;box-shadow:0 0 0 3px #e49a5112}
.cc-service.online:before{background:#1bb68f;box-shadow:0 0 0 3px #1bb68f12}
.cc-hero-art{position:absolute;right:135px;bottom:0;width:290px;height:160px;opacity:.8;pointer-events:none}
.cc-hero-art:before{content:'';position:absolute;inset:-20px;background:radial-gradient(ellipse,#b9c6ff70,transparent 69%)}
.cc-art-card{position:absolute;width:125px;height:85px;border-radius:13px;box-shadow:8px 16px 20px #6774bf21;border:1px solid white;transform:rotate(-17deg);background:linear-gradient(135deg,#a8adff,#6559f0)}
.cc-art-card.rear{left:5px;top:64px}.cc-art-card.front{width:130px;height:157px;right:40px;top:20px;transform:rotate(12deg);background:linear-gradient(140deg,#fff,#eaedfc 48%,#c1c9f1);display:flex;align-items:center;flex-direction:column;justify-content:center;gap:13px}
.cc-art-card svg{width:54px;height:52px;fill:#344269}.cc-art-card span{font-size:10px;color:#5c6a91}
.cc-workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px;margin-bottom:20px;align-items:stretch}
.cc-surface{border:1px solid #e0e7f4;border-radius:13px;background:#fff;box-shadow:0 5px 22px #24396e04;min-width:0}
.cc-query,.cc-results{padding:23px 24px}
.cc-results{background:linear-gradient(140deg,#fff 45%,#f4fcf9)}
.cc-section-title{display:flex;align-items:center;gap:12px}
.cc-section-title h2{font-size:17px;font-weight:700;line-height:1.3;margin:0;color:#1a294a;letter-spacing:-.4px}
.cc-section-title p{font-size:10px;font-weight:400;line-height:1.5;margin:4px 0 0;color:#8b96aa}
.cc-section-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(135deg,#edeaff,#f6f4ff);color:#6960f0;flex:none}
.cc-section-icon .ui-icon{width:21px;height:21px}.cc-section-icon.mint{color:#0aa783;background:#e4f9f2}
.cc-subtle-tag{margin-left:auto;color:#7774bd;background:#f3f2fc;border-radius:6px;padding:4px 7px;font-size:9px;white-space:nowrap}
.cc-query form{margin-top:30px}
.cc-form-field{display:block;font-size:12px;color:#344262;font-weight:650}
.cc-form-field input{display:block;width:100%;height:55px;margin-top:10px;border:1px solid #d6dded;border-radius:9px;padding:0 15px;background:#fcfdff;color:#26334d;font:17px Consolas,monospace;letter-spacing:2px;box-shadow:inset 0 1px 3px #1c2b5403}
.cc-form-field input::placeholder{font-family:inherit;font-size:12px;color:#a1abc0;letter-spacing:0}
.cc-page input:focus,.cc-page select:focus{outline:2px solid #a7a5f8;outline-offset:1px;border-color:#8c87eb}
.cc-input-hint{font-size:10px;color:#96a1b8;margin:9px 0 20px;line-height:1.6}
.cc-page .cc-query-button{width:100%;height:48px;font-size:14px;border-radius:9px}
.cc-query-guide{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px;padding-top:20px;border-top:1px solid #f0f2f7;font-size:10px;color:#7f8ca5}
.cc-query-guide>span{display:flex;gap:5px;align-items:center}.cc-query-guide .ui-icon{width:13px;height:13px;color:#8c8bce}.cc-query-guide p{width:100%;font-size:10px;line-height:1.8;color:#9ba4b7;margin:0;max-width:360px}
.cc-form-error{font-size:12px;color:#c54d59;line-height:1.6;overflow-wrap:anywhere;margin:10px 0 0}.cc-form-error:empty{display:none}
.cc-result{--status:#168e76;margin-top:20px}.cc-result.redeemed{--status:#d65365}.cc-result.invalid{--status:#c17d22}.cc-result.unsupported{--status:#8370ba}.cc-result.failed{--status:#bd5965}.cc-result.unknown,.cc-result.pending{--status:#647390}
.cc-result-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#a1aabc;font-size:9px;margin-bottom:12px}
.cc-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:4px 8px;border-radius:5px;background:#f0f2f7;color:#71809a;font-weight:550;white-space:nowrap;line-height:1.3}
.cc-status .ui-icon{width:13px;height:13px}.cc-status.valid{color:#11987d;background:#e5f8f0}.cc-status.redeemed{color:#cf5365;background:#fff0f1}.cc-status.invalid{color:#b97a26;background:#fff5e5}.cc-status.unsupported{color:#7d6aad;background:#f2eefb}.cc-status.failed{color:#b15360;background:#fff0f2}.cc-status.pending{color:#625dd0;background:#eeedff}
.cc-code{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;border:1px solid #dbe6ef;background:linear-gradient(105deg,#f5f7fe,#f7fbff);border-radius:8px;margin-bottom:14px}.cc-code>div{min-width:0}.cc-code>.ui-icon{color:#7c87b3}
.cc-code small{display:block;font-size:9px;color:#8b96ad;margin-bottom:6px}.cc-code code{font:600 15px Consolas,monospace;letter-spacing:.9px;color:#384566;overflow-wrap:anywhere}
.cc-result-summary{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;padding-bottom:12px;border-bottom:1px solid #edf1f6}
.cc-result-summary>div{min-width:0;background:#ffffffb0;border-radius:7px;padding:5px 0}.cc-result-summary small{display:block;font-size:9px;color:#8d9ab0;margin-bottom:7px}
.cc-result-summary strong{display:block;color:var(--status);font-size:13px;line-height:1.4;overflow-wrap:anywhere}.cc-result-summary .cc-balance{font:650 24px "Segoe UI Variable Display","Segoe UI",sans-serif;letter-spacing:-.7px;font-variant-numeric:tabular-nums}
.cc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px;padding:13px 0}.cc-fields>div{min-width:0}.cc-fields small{display:block;color:#93a0b5;font-size:9px;margin-bottom:5px}.cc-fields strong{display:block;color:#445570;font-size:11px;font-weight:500;overflow-wrap:anywhere}
.cc-evidence{border-top:1px solid #eff2f7;font-size:9px;color:#9aa4b7}.cc-evidence summary{display:flex;justify-content:space-between;align-items:center;padding:8px 0;cursor:pointer}.cc-evidence summary .ui-icon{width:11px;height:11px}.cc-evidence[open] summary .ui-icon{transform:rotate(90deg)}.cc-evidence dl{display:grid;grid-template-columns:100px 1fr;gap:8px;margin:3px 0 12px}.cc-evidence dt{color:#8f9eb4}.cc-evidence dd{margin:0;color:#697991;overflow-wrap:anywhere}
.cc-result-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}.cc-result-actions .cc-copy-feedback{background:#f4f5ff;border-color:#dcddfc;color:#6262c9}.cc-result-actions small{font-size:9px;color:#a3acbd}
.cc-error,.cc-notice{font-size:11px;line-height:1.6;padding:9px 12px;background:#fff4f4;color:#b35763;border-left:3px solid #eaa1a8;overflow-wrap:anywhere;margin:7px 0 12px}.cc-notice{color:#687a9a;background:#f5f7fc;border-color:#bfc9de}
.cc-empty{min-height:276px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#8a97b0;text-align:center}.cc-empty>.ui-icon{width:46px;height:46px;color:#bfcbdc;stroke-width:1}.cc-empty b{font-size:13px;font-weight:550;color:#7a89a3}.cc-empty p{font-size:11px;max-width:290px;line-height:1.8;margin:0}
.cc-processing{min-height:200px;display:flex;justify-content:center;align-items:center;gap:14px}.cc-processing b{font-size:13px;color:#627090}.cc-processing p{font-size:11px;color:#8b99b2}
.cc-spinner{display:inline-block;width:18px;height:18px;border:2px solid #a49ce733;border-top-color:#776add;border-radius:50%;animation:cc-spin .8s linear infinite;flex:none}@keyframes cc-spin{to{transform:rotate(360deg)}}
.cc-history>.cc-section-title{padding:21px 23px 18px;border-bottom:1px solid #eef1f8}.cc-history>.cc-section-title>.btn{margin-left:auto}
.cc-history-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 23px;color:#8d99b2;font-size:10px}.cc-history-tools>span b{color:#67789d}.cc-history-tools>div{display:flex;align-items:center;gap:8px}.cc-history-tools small{color:#a8b2c4}
.cc-history-tools input,.cc-history-tools select{border:1px solid #e0e5f0;border-radius:6px;height:32px;background:#fcfdff;font-size:10px;color:#7886a2;padding:0 8px;min-width:0}
.cc-history-search{display:flex;align-items:center;gap:7px;border:1px solid #e0e5f0;border-radius:6px;padding:0 8px;background:#fcfdff}.cc-history-search .ui-icon{width:14px;height:14px;color:#a1acc2}.cc-history-tools .cc-history-search input{width:189px;border:0;padding:0;background:transparent}
.cc-table-scroll{overflow:auto;margin:0 18px;border:1px solid #e4e9f3;border-radius:8px}.cc-table{width:100%;border-collapse:collapse;font-size:10px;min-width:950px;white-space:nowrap}.cc-table th{background:#f6f8fd;color:#8290ad;font-size:10px;font-weight:550;text-align:left;padding:12px 13px;border-bottom:1px solid #e6ebf5}.cc-table th button{font:inherit;color:inherit;border:0;background:transparent;padding:0;cursor:pointer;display:inline-flex;gap:9px}.cc-table th button span{color:#b6bfd2}.cc-table td{padding:12px 13px;border-bottom:1px solid #edf1f7;color:#7281a0;vertical-align:middle}.cc-table tr:last-child td{border-bottom:0}.cc-table tr:hover td{background:#f9faff}.cc-table tr.selected td{background:#f8f9ff}.cc-table .cc-amount{font:600 12px "Segoe UI",sans-serif;color:#566781;font-variant-numeric:tabular-nums}.cc-table-code{font:11px Consolas,monospace;color:#6a789a;letter-spacing:.1px}.cc-raw-status{display:block;max-width:150px;white-space:normal;overflow-wrap:anywhere;font-size:9px;color:#97a3b8;margin-top:4px}.cc-row-actions{white-space:nowrap}.cc-row-actions .btn+.btn{margin-left:5px}.cc-row-actions .cc-copy-feedback{color:#7772ba}.cc-row-actions .ui-icon{width:12px;height:12px}
.cc-table-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:160px;white-space:normal}.cc-table-empty .ui-icon{color:#bec6dc;width:28px;height:28px}.cc-table-empty b{font-weight:500;color:#8390aa}.cc-table-empty span{font-size:10px;color:#a6afc0}
.cc-history-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 23px;color:#95a0b6;font-size:10px}.cc-history-footer>span small{display:block;font-size:9px;color:#b3bbcb;margin-top:5px}.cc-history-footer>div{display:flex;align-items:center;gap:10px}.cc-history-footer select{border:1px solid #e0e6f0;color:#8997b0;border-radius:5px;padding:4px;background:#fff}.cc-history-footer b{font-weight:500;color:#6d7e9f}
.cc-page-footer{display:flex;align-items:center;justify-content:center;gap:5px;color:#a8b2c7;font-size:9px;margin:21px 0 7px}.cc-page-footer .ui-icon{width:12px;height:12px}
/* Dedicated lookup shell: no extra financial routes or pretend navigation. */
.role-shell.coolcard-lookup-shell{display:block}.coolcard-lookup-shell .workspace{grid-column:auto;width:auto}
.role-shell.coolcard-lookup-shell .sidebar-bottom{margin-top:auto;padding-top:20px}
.coolcard-lookup-shell{background:#f3f6fc;font-family:"Segoe UI Variable Text","Microsoft YaHei UI",sans-serif}.coolcard-lookup-shell .sidebar{width:220px;background:linear-gradient(170deg,#121e39,#17213e 70%,#181d37);padding:27px 18px;color:#9ba8c5;border:0}.coolcard-lookup-shell .workspace{margin-left:220px}.coolcard-lookup-shell main{padding:17px 30px 25px}.coolcard-lookup-shell .brand{gap:10px;padding:0 3px 22px}.coolcard-lookup-shell .brand-logo{width:43px;height:43px;object-fit:contain;border-radius:11px}.coolcard-lookup-shell .brand-name{font-size:23px;letter-spacing:-.5px;color:#fff}.coolcard-lookup-shell .brand-sub{font-size:7px;letter-spacing:1.6px;color:#9aa8c5}.coolcard-lookup-shell .role-tag{border:0;background:none;color:#6c7d9f;margin:9px 7px 15px;padding:0;font-size:9px;letter-spacing:2px}.coolcard-lookup-shell nav .nav-item{border-radius:8px;padding:13px 15px;display:flex;align-items:center;gap:10px;font-size:12px;position:relative;margin:0}.coolcard-lookup-shell nav .nav-item.active{background:linear-gradient(100deg,#444bd0,#303979);color:#f4f5ff;box-shadow:0 6px 16px #0002}.coolcard-lookup-shell nav .nav-item.active:after{content:'';position:absolute;right:0;top:5px;bottom:5px;background:#7b6aff;width:3px;border-radius:4px}.coolcard-lookup-shell nav .ui-icon{width:17px;height:17px}.coolcard-lookup-shell .sidebar-bottom{left:24px;right:24px;bottom:27px;color:#7686a9;font-size:10px;line-height:1.8}.coolcard-lookup-shell .sidebar-bottom b{display:block;color:#c1cbe0;font-size:11px;font-weight:500;margin-bottom:5px}.coolcard-lookup-shell .sidebar-bottom small{display:block;color:#56698e;font-size:9px;margin-top:15px;letter-spacing:.9px}.coolcard-lookup-shell .topbar{height:67px;background:#fffffff5;border-bottom:1px solid #e9edf6;padding:0 30px;box-shadow:none}.coolcard-lookup-shell .top-context b{color:#29375b;font-size:12px}.coolcard-lookup-shell .top-context span{font-size:9px;color:#9aa7bd}.coolcard-lookup-shell .profile{gap:9px}.coolcard-lookup-shell .profile b{font-size:11px;color:#33415e}.coolcard-lookup-shell .profile small{font-size:9px;color:#8b9bb5}.coolcard-lookup-shell .avatar{background:linear-gradient(140deg,#7975ff,#489cfa);color:#fff;width:32px;height:32px;font-size:15px}.coolcard-lookup-shell .top-actions{gap:22px}.coolcard-lookup-shell .top-actions .btn{border-radius:7px;font-size:10px;color:#6a7792;background:#fff;border-color:#dfe5f1}.coolcard-lookup-shell .ui-menu{display:none}
.cc-receipt-dialog{border:1px solid #dae3ef;border-radius:16px;padding:0;width:min(1060px,94vw);max-height:94vh;overflow:auto;box-shadow:0 30px 100px #07172b55;color:#243655;background:#f6f8fc;font-family:"Segoe UI","Microsoft YaHei UI",sans-serif}.cc-receipt-dialog::backdrop{background:#0a152ca6;backdrop-filter:blur(6px)}.cc-receipt-head{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;background:white;border-bottom:1px solid #e5e9f2}.cc-receipt-head h2{font-size:16px;margin:0}.cc-receipt-head p{font-size:10px;color:#92a0b6;margin:5px 0 0}.cc-receipt-stage{min-height:210px;display:flex;gap:12px;align-items:center;justify-content:center;padding:16px;color:#7f8caa;font-size:12px}.cc-receipt-stage canvas{width:100%;height:auto;display:block;border-radius:9px}.cc-receipt-actions{display:flex;align-items:center;gap:9px;justify-content:flex-end;padding:14px 22px 18px}.cc-receipt-actions small{margin-right:auto;font-size:9px;color:#8c9bb3}
@media(min-width:1600px){.coolcard-lookup-shell main{padding-left:40px;padding-right:40px}.cc-query,.cc-results{padding:27px 30px}.cc-table{font-size:12px}.cc-table td{padding-top:14px;padding-bottom:14px}}
@media(max-width:1150px){.cc-history-tools{align-items:flex-start;flex-direction:column}.cc-hero-art{right:65px;opacity:.48}.cc-hero-meta{gap:12px}.cc-result-actions small{width:100%}.cc-query,.cc-results{padding:20px}.coolcard-lookup-shell main{padding:14px 20px}.cc-table{font-size:10px}}
@media(max-width:900px){.cc-workspace{grid-template-columns:1fr}.cc-query-guide{margin-top:22px}.cc-query-guide p{max-width:none}.cc-hero-art{right:0;opacity:.2}.cc-hero>.cc-service{top:4px}.cc-hero{padding-top:35px}.cc-history-tools>div{flex-wrap:wrap}.coolcard-lookup-shell .sidebar{width:190px;padding:25px 14px}.coolcard-lookup-shell .workspace{margin-left:190px}.coolcard-lookup-shell .brand-name{font-size:20px}.coolcard-lookup-shell .brand-logo{width:37px;height:37px}.cc-receipt-actions{flex-wrap:wrap}.cc-receipt-actions small{width:100%;margin:0 0 3px}}
@media(max-width:640px){.coolcard-lookup-shell .sidebar{transform:translateX(-100%);width:220px}.coolcard-lookup-shell .workspace{margin-left:0}.coolcard-lookup-shell .ui-menu{display:inline-flex}.nav-mobile-open .coolcard-lookup-shell .sidebar{transform:translateX(0)}.coolcard-lookup-shell main{padding:12px}.coolcard-lookup-shell .topbar{padding:0 12px;gap:9px}.coolcard-lookup-shell .top-context span{display:none}.coolcard-lookup-shell .top-context b{font-size:10px}.coolcard-lookup-shell .top-actions{gap:9px;margin-left:auto}.coolcard-lookup-shell .profile>div:last-child{display:none}.cc-hero h1{font-size:28px}.cc-hero-meta{gap:9px;flex-wrap:wrap}.cc-history-tools,.cc-history-footer{padding:13px;align-items:flex-start;flex-direction:column}.cc-history-tools>div{width:100%}.cc-history-search{width:100%}.cc-history-tools .cc-history-search input{width:100%}.cc-table-scroll{margin:0 10px}.cc-history>.cc-section-title{padding:16px 13px}.cc-section-title h2{font-size:15px}.cc-section-title p{font-size:9px}.cc-fields{gap:14px}.cc-result-summary{grid-template-columns:1fr 1fr}.cc-subtle-tag{font-size:8px}.cc-page-footer{font-size:8px;flex-wrap:wrap}.cc-receipt-head{padding:14px}.cc-receipt-stage{padding:6px}.cc-receipt-actions{padding:12px}.cc-query,.cc-results{padding:18px}}
@media(max-width:760px){.coolcard-lookup-shell .workspace{margin-left:0}.coolcard-lookup-shell .sidebar{transform:translateX(-100%);width:220px}.coolcard-lookup-shell .ui-menu{display:inline-flex}.nav-mobile-open .coolcard-lookup-shell .sidebar{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.cc-page *,.cc-receipt-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
