:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#252433;background:#f7f8fb;font-synthesis:none;--purple:#6d4aff;--muted:#777586;--border:#e9e8ef}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a,input{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a991ff}button{transition:background .15s,box-shadow .15s,transform .15s}button:hover{filter:brightness(.98)}[hidden]{display:none!important}.topbar{height:88px;padding:0 max(32px,calc((100vw - 1256px)/2));background:#fff;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand strong{display:block;font-size:19px;letter-spacing:1px}.brand span{display:block;font-size:12px;margin-top:4px;color:var(--muted)}.save-state{font-size:13px;color:#5f6970;white-space:nowrap}.save-state:before{content:"";display:inline-block;width:6px;height:6px;background:#60a88a;border-radius:50%;margin-right:8px}main{max-width:1320px;margin:auto;padding:42px 32px 20px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:#9187b1;margin:0 0 10px}h1{font-size:32px;letter-spacing:-.8px;margin:0;font-weight:750}.intro>div>p:last-child{color:var(--muted);font-size:14px;margin:12px 0 0}.palette-label{display:flex;gap:12px;align-items:center;font-size:13px;color:#645b7d;background:#f0ecff;border:1px solid #e8e1ff;border-radius:30px;padding:11px 16px}.mini-colors{display:flex}.mini-colors i{display:block;width:13px;height:13px;border:3px solid #ab8af0;border-radius:50%;margin-left:-2px}.mini-colors i:nth-child(2){border-color:#eaa185}.mini-colors i:nth-child(3){border-color:#83b9a1}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:32px}.summary-card{position:relative;display:flex;align-items:center;text-align:left;gap:17px;background:white;border:1px solid var(--border);border-radius:16px;padding:25px 22px;min-height:125px;box-shadow:0 3px 8px #25243302}.summary-card:hover{box-shadow:0 5px 20px #35276609;transform:translateY(-2px)}.summary-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-size:29px;flex-shrink:0}.home .summary-icon{background:#eaf5ef;color:#34815d}.transit .summary-icon{background:#eee9ff;color:#7955d5}.wishlist .summary-icon{background:#fff0df;color:#ba772a}.summary-copy{display:grid;gap:10px}.summary-copy>span:first-child{font-size:14px;font-weight:600;color:#625f70}.summary-copy>span:last-child{font-size:12px;color:var(--muted)}.summary-copy strong{font-size:29px;line-height:1;font-weight:700;color:#262332;margin-right:5px;font-variant-numeric:tabular-nums}.summary-copy small{font-size:12px;margin-left:10px}.summary-hint{position:absolute;right:18px;top:17px;font-size:11px;color:#a09ba9}.workspace{background:white;border:1px solid var(--border);border-radius:18px;padding:0 24px 24px;min-height:380px}.toolbar{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--border);min-height:80px}.tabs{display:flex;align-self:stretch;gap:22px}.tabs button{border:0;border-bottom:3px solid transparent;background:none;padding:8px 0 5px;font-size:14px;color:var(--muted);white-space:nowrap}.tabs button.active{color:var(--purple);border-bottom-color:var(--purple);font-weight:650}.tabs button span{display:inline-block;font-size:11px;border-radius:6px;padding:3px 6px;margin-left:4px;background:#f0ecff}.search{display:flex;align-items:center;background:#f7f8fb;border:1px solid var(--border);border-radius:9px;padding:0 12px;gap:9px;width:260px}.search>span{font-size:24px;color:#9690a6}.search input{width:100%;border:0;background:none;padding:11px 0;font-size:13px;min-width:0;color:#363044}.search:focus-within{border-color:#a890ff}.search input:focus{outline:none}.families{display:flex;gap:8px;flex-wrap:wrap;padding:22px 0 18px}.families button{border:1px solid var(--border);background:#fff;border-radius:7px;min-width:49px;height:34px;font-size:13px;color:#777080;padding:0 13px}.families button.active{background:#f0ecff;color:var(--purple);border-color:#e0d5ff;font-weight:650}.family-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:var(--swatch)}.results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 18px}h2{font-size:16px;margin:0}.results-heading h2 span{font-size:12px;color:#9791a3;font-weight:400;margin-left:9px}.results-heading p{font-size:12px;color:#928b9d;margin:0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.color-card{border:1px solid #e8e6ee;border-radius:12px;overflow:hidden;background:#fff;transition:box-shadow .15s,border-color .15s}.color-card:hover{border-color:#cfc2f5;box-shadow:0 4px 16px #61419709}.card-top{display:flex;align-items:center;gap:12px;padding:18px 17px 14px}.swatch,.dialog-color{height:39px;width:39px;flex-shrink:0;border-radius:50%;background:var(--swatch);border:1px solid #00000012;box-shadow:inset 0 -3px 5px #0000000e;display:grid;place-items:center}.swatch:after,.dialog-color:after{content:"";width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00000018}.card-code{font-size:19px;font-weight:700;letter-spacing:.2px}.card-family{font-size:11px;color:#97909f;margin-top:4px}.edit{margin-left:auto;align-self:flex-start;border:0;background:none;color:#8d839e;padding:2px;font-size:12px}.edit:hover{color:var(--purple)}.card-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 15px 14px;padding:11px 0;background:#faf9fc;border-radius:8px}.card-stats>div{text-align:center;border-right:1px solid #eeecf2}.card-stats>div:last-child{border:0}.stat-label{display:block;font-size:11px;color:#948c9f;margin-bottom:5px}.stat-value{font-size:14px;font-weight:600;color:#aaa4b4}.stat-value small{font-size:10px;font-weight:400}.stat-value.nonzero.home{color:#34815d}.stat-value.nonzero.transit{color:#7955d5}.stat-value.nonzero.wishlist{color:#b8772d}.card-actions{padding:0 15px 15px;display:flex;gap:7px}.card-actions button{font-size:12px;border-radius:7px;border:1px solid #e8e1f5;padding:9px 7px;background:#fff;color:#7b659f;flex:1;white-space:nowrap}.card-actions .action-main{background:#f1ecff;color:#7652cf;border-color:#f1ecff}.card-actions .action-main.receive{background:#eaf5ef;color:#34815d;border-color:#eaf5ef}.card-actions .action-main.buy{background:#fff1df;color:#a46721;border-color:#fff1df}.empty{text-align:center;padding:40px 16px 50px}.empty>span{font-size:42px;color:#b6a4e5}.empty h3{font-size:17px;font-weight:600}.empty p{color:var(--muted);font-size:14px;line-height:1.8}.primary,.secondary{border-radius:9px;font-size:14px;padding:11px 20px;border:1px solid transparent}.primary{background:var(--purple);color:#fff}.secondary{background:#fff;color:#70667e;border-color:var(--border)}footer{display:flex;justify-content:space-between;gap:15px;margin:22px 4px 0;color:#9d96a7;font-size:11px;line-height:1.8}footer a{color:#89799f;text-decoration:none}footer a:hover{text-decoration:underline}dialog{border:1px solid var(--border);border-radius:20px;padding:28px;width:min(440px,calc(100vw - 32px));color:#252433;box-shadow:0 25px 100px #23134a25}dialog::backdrop{background:#251d404d;backdrop-filter:blur(3px)}.dialog-heading{display:flex;gap:15px;align-items:center}.dialog-color{width:48px;height:48px}.dialog-heading h2{font-size:23px}.dialog-heading .eyebrow{font-size:10px;margin-bottom:5px}.close{border:0;background:#f6f4f9;color:#8c8099;border-radius:50%;width:30px;height:30px;margin-left:auto;font-size:22px}.dialog-note{font-size:13px;color:var(--muted);margin:23px 0}.edit-fields{display:grid;gap:14px}.edit-fields>label{display:flex;align-items:center;justify-content:space-between;font-size:14px}.number-input{background:#f8f7fb;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;padding:0 12px;color:#90849e;font-size:13px}.number-input input{border:0;background:transparent;padding:12px 0;width:92px;color:#33293e;font-size:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 20px;background:#30273f;color:white;font-size:14px;border-radius:12px;box-shadow:0 5px 30px #0002;max-width:calc(100vw - 28px);width:max-content;z-index:10;line-height:1.6}.error,.dialog-error{font-size:14px;line-height:1.6;background:#fff0ee;color:#b44435;border:1px solid #ffdad4;padding:12px 16px;border-radius:9px;margin:0 0 16px}.dialog-error{margin:16px 0 0}@media(min-width:1500px){main{max-width:1440px}.topbar{padding-inline:max(32px,calc((100vw - 1376px)/2))}.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1050px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-card{padding:25px 16px;gap:12px}.summary-copy small{display:block;margin:8px 0 0}.summary-hint{display:none}.tabs{gap:16px}.search{width:225px}}@media(max-width:760px){.topbar{height:74px;padding:0 20px}.save-state{font-size:11px}.brand strong{font-size:17px}.brand span{font-size:10px}main{padding:28px 16px 18px}.intro{align-items:flex-start;gap:16px;flex-direction:column;margin-bottom:22px}h1{font-size:28px}.palette-label{font-size:11px;padding:7px 12px}.summary{gap:9px;margin-bottom:22px}.summary-card{padding:15px 11px;min-height:115px;gap:0}.summary-icon{display:none}.summary-copy{gap:12px}.summary-copy>span:first-child{font-size:13px}.summary-copy strong{font-size:25px}.summary-copy>span:last-child{font-size:10px}.summary-copy small{font-size:10px}.workspace{padding:0 14px 14px;border-radius:14px}.toolbar{flex-direction:column-reverse;gap:12px;padding-top:16px}.search{width:100%}.tabs{gap:0;justify-content:space-between;min-height:46px}.tabs button{font-size:13px}.tabs button span{font-size:10px;margin-left:2px;padding:2px 4px}.families{padding-top:18px;gap:6px}.families button{min-width:40px;padding:0 9px;font-size:12px}.results-heading{align-items:flex-start;flex-direction:column;gap:7px}.results-heading p{font-size:11px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.card-top{padding:13px 10px;gap:8px}.swatch{width:32px;height:32px}.swatch:after{width:11px;height:11px}.card-code{font-size:17px}.card-family{font-size:10px}.edit{font-size:11px}.card-stats{margin:0 8px 10px;padding:9px 0}.stat-label{font-size:10px}.stat-value{font-size:13px}.card-actions{padding:0 8px 10px;flex-wrap:wrap;gap:5px}.card-actions button{font-size:11px;padding:8px 4px;min-height:34px}footer{flex-direction:column;gap:4px;font-size:10px}.color-note{display:none}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Direct entry to each list remains available on every color card. */
.card-actions{display:grid;grid-template-columns:1fr;gap:6px}
.card-actions button{white-space:normal;min-height:34px}
.card-actions .add-home{color:#34815d;background:#f1f8f4;border-color:#dfede4}
.card-actions .add-transit{color:#7955d5;background:#f5f1ff;border-color:#e9e1fa}
.card-actions .wish{color:#a46721;background:#fff7ed;border-color:#f5e7d6}
.card-actions .action-main{margin-top:4px;border-top:1px solid var(--border)}
.batch-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 14px;margin:0 0 18px;border:1px solid #e6ddff;border-radius:10px;background:#faf8ff;font-size:13px}
.batch-select{display:flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}
.batch-hint{font-size:12px;color:var(--muted);flex:1}
.batch-bar .primary{font-size:13px;padding:9px 14px}
.card-select,#select-all{accent-color:var(--purple);width:17px;height:17px;flex-shrink:0;cursor:pointer;margin:0}
.color-card:has(.card-select:checked){border-color:#a68cf5;box-shadow:0 0 0 1px #cdbcff}
@media(max-width:760px){.batch-bar{gap:10px;font-size:12px}.batch-hint{flex-basis:100%;order:3}.batch-bar .primary{margin-left:auto;font-size:12px}.card-top:has(.card-select){flex-wrap:wrap}.card-select{width:16px;height:16px}}

.list-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.list-tools .secondary,.batch-bar .secondary{font-size:13px;padding:8px 14px}.batch-mode .card-actions,.batch-mode .edit{display:none}.batch-mode .card-stats{margin-bottom:18px}.batch-bar button:disabled{cursor:not-allowed}@media(max-width:760px){.list-tools{width:100%;justify-content:space-between;gap:8px}.list-tools .secondary,.batch-bar .secondary{font-size:12px}.batch-bar .primary{margin-left:0}}
.tabs{min-width:0;overflow-x:auto}.tabs button{flex-shrink:0}
#history-panel{padding:24px 0 4px}.history-heading,.history-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.history-heading h2{font-size:20px}.history-heading p{font-size:12px;color:var(--muted);margin:9px 0 0}.danger-outline,.danger-solid{border:1px solid #edcecb;border-radius:8px;background:#fff;color:#b45147;padding:9px 14px;font:inherit;font-size:13px;white-space:nowrap}.danger-solid{background:#b45147;color:white;border-color:#b45147}.history-totals{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:24px 0 30px}.history-totals>div{padding:18px 20px;background:#f8f7fc;border:1px solid var(--border);border-radius:12px;display:grid;gap:10px}.history-totals>div>span{color:var(--muted);font-size:13px}.history-totals>div>strong{font-size:28px;color:#4d3d6d}.history-totals small{font-size:13px;color:var(--muted);font-weight:400}.history-section-heading{margin:24px 0 14px}.history-section-heading h3{font-size:16px;margin:0}.history-section-heading>span{font-size:12px;color:var(--muted)}.history-table-wrap{overflow:auto;max-height:420px;border:1px solid var(--border);border-radius:10px}.history-table{border-collapse:collapse;width:100%;text-align:left;font-size:14px;white-space:nowrap}.history-table th,.history-table td{padding:13px 18px;border-bottom:1px solid var(--border)}.history-table thead th{font-weight:500;color:var(--muted);background:#faf9fd;position:sticky;top:0;z-index:1;font-size:12px}.history-table tr:last-child td,.history-table tr:last-child th{border-bottom:0}.history-table tbody th{font-weight:600}.history-table small{color:var(--muted);font-size:12px}.history-color{display:flex;align-items:center;gap:9px}.history-swatch{width:18px;height:18px;border:1px solid #00000010;display:inline-block;border-radius:50%;background:var(--swatch);flex-shrink:0}.rank-number{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:7px;color:#958aab}.top-rank{background:#eee8ff;color:#7853cf;font-weight:650}.history-event{font-size:12px;padding:4px 8px;border-radius:6px;background:#edf6f0;color:#34815d}.history-event.use{background:#f1ecff;color:#7955d5}.history-rule{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0 0}.history-empty{text-align:center;padding:38px 12px;border:1px dashed var(--border);border-radius:12px}.history-empty strong{font-size:15px;font-weight:500}.history-empty p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:0}.records-table{font-size:13px}#history-more{display:block;margin:14px auto 0;font-size:12px}.clear-history-copy{font-size:14px;line-height:1.9;color:var(--muted);margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:760px){.tabs{gap:16px;max-width:100%}.history-totals{gap:8px;margin:20px 0}.history-totals>div{padding:14px 10px;gap:8px}.history-totals>div>span{font-size:11px}.history-totals>div>strong{font-size:23px}.history-heading h2{font-size:18px}.history-section-heading{flex-wrap:wrap;gap:10px}.history-table th,.history-table td{padding:12px 10px}.history-table{font-size:13px}.history-table small{display:block;font-size:11px;margin-top:4px}.history-heading{align-items:flex-start}.history-heading p{font-size:11px;line-height:1.6}}
.login-page{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(100%,400px);padding:36px;background:#fff;border:1px solid #e5e0f2;border-radius:20px;box-shadow:0 16px 60px #3725680a}.login-card h1{font-size:26px;margin:20px 0 10px}.login-card>p{color:#858199;line-height:1.6}.login-card form{display:grid;gap:12px;margin-top:28px}.login-card label{font-size:14px}.login-card input{width:100%;padding:12px;border:1px solid #ded8ee;border-radius:8px;font:inherit;box-sizing:border-box}.login-card button{margin-top:8px;padding:12px}.cloud-account{display:flex;align-items:center;gap:12px}.logout{font-size:12px;background:none;border:0;color:#858199;cursor:pointer}
