.site-links{display:flex;align-items:center;gap:18px}.site-links button{background:transparent;border-color:#8098b0;color:white}.browse{margin-bottom:22px}.hero{background:radial-gradient(ellipse at 80% 44%,#f7f5d9 0,transparent 35%),#dfeef3}.shelf{isolation:isolate;position:relative;margin:0 22px 18px 0;padding:0 21px 20px;border:0;filter:drop-shadow(6px 9px 6px #25394f30)}.shelf i{position:relative;border-radius:6px 9px 3px 4px;box-shadow:inset 4px 0 5px #ffffff35,inset -4px 0 4px #132d5044;letter-spacing:.13em;text-align:center}.shelf i:before,.shelf i:after{content:'';position:absolute;left:3px;right:3px;height:4px;border-block:1px solid currentColor;opacity:.75}.shelf i:before{top:7px}.shelf i:after{bottom:7px}.shelf em{font-size:22px}.flatbook{position:absolute;bottom:0;left:0;right:-7px;height:18px;background:repeating-linear-gradient(0deg,#efe3cb 0 2px,#cebfa9 3px);border:4px solid #944f39;border-radius:6px 2px 2px 6px;transform:rotate(1deg)}.pencil{position:absolute;bottom:-11px;width:65%;height:7px;background:linear-gradient(#e7b956 50%,#b88436 50%);transform:rotate(-5deg);border-right:10px solid #df9a8f}.pencil:before{content:'';position:absolute;left:-11px;border-block:3.5px solid transparent;border-right:12px solid #88684c}.market-grid,.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(225px,100%),1fr));gap:16px}.market-grid .card{max-width:410px}.market-grid img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#edf2f6}.market-grid h3{margin:10px 0 4px}.sell-form{max-width:760px}.sell-form input,.sell-form select,.sell-form textarea{font:inherit}.sell-form input[type=file]{display:block;margin:10px 0 18px;width:100%}.sell-form textarea{min-height:75px}.sell-form img{max-height:150px;max-width:100%}.market-head{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:22px}.market-head h1{flex:1}.price{font-weight:bold}.thumb-caption{margin:0 0 12px}@media(max-width:640px){.hero{display:grid;gap:4px}.hero .shelf{display:flex;transform:scale(.60) rotate(-4deg);transform-origin:center center;margin:-30px auto -24px}.site-links{gap:10px}}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:white}.brand img{width:41px;height:41px}.brand b{font:750 33px/1 ui-rounded,"Arial Rounded MT Bold",system-ui,sans-serif;letter-spacing:-.055em}.site-links{flex-wrap:wrap}.market-tools{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:18px;align-items:center}.market-tools input{margin:0;width:auto;max-width:100%}footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:36px}#pickupMap{height:400px}.thread{padding:10px 16px;border-left:3px solid #91acbf;margin:8px 0}.chat-body{white-space:pre-wrap}.req{padding:8px;border-bottom:1px solid #dde6ee}.market-grid button{margin:3px}@media(max-width:760px){header{flex-wrap:wrap;gap:14px}.site-links{gap:5px}.site-links button{padding:5px 8px}.brand b{font-size:29px}}
.isbn-tools{border:1px solid #b9cfd9;border-radius:12px;background:#f0f6f8;padding:14px 18px;margin:8px 0 18px}.isbn-tools legend{font-weight:650}.isbn-tools small{display:block;margin:6px 0 12px}.isbn-tools p:empty{margin:0}
.photo-zone{border:2px dashed #88a5b8;border-radius:12px;padding:15px;margin:8px 0 12px}.photo-zone.dragging{background:#deedd6;border-color:#325638}.photo-zone small{display:block;margin:0 0 10px}.photo-zone p:empty{display:none}.camera-dialog{width:min(92vw,550px);border:0;border-radius:15px;padding:18px;color:#132d50}.camera-dialog video{width:100%;max-height:56vh;background:#132d50}.camera-dialog::backdrop{background:#132d50b8}
.extra-thumbs,.listing-gallery>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:8px}.extra-thumbs img{display:block;width:100%;height:110px;object-fit:contain}.listing-gallery img{min-width:0}.listing-gallery summary{padding:8px}.extra-thumbs button{font-size:14px}
.rotation-buttons{display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}.rotation-buttons button{font-size:.9rem;padding:5px 9px}
.trade-pill{display:inline-flex;gap:2px;border-radius:99px;padding:3px;background:#d9e8ef}.trade-pill button{border:0;border-radius:99px;color:#123453;background:transparent;padding:5px 17px;font-weight:650}.trade-pill button:focus,.trade-pill button:hover{background:white}.test-link{display:inline-block;margin-top:16px}.testing-banner{padding:8px 5vw;background:#e6efd8}.testing-banner a{color:#173859}#homeSale{margin:20px 0 30px}.hero{margin-bottom:18px}
.sale-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px}.sale-heading a,footer a{color:#17476a}footer a{align-self:center}
.trade-pill button[aria-pressed=true]{background:#153c65;color:white}#homeSale:first-child{margin-top:0}
.selected-schools{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.selected-schools span{background:#e3efd9;color:#143848;border-radius:20px;padding:4px 8px 4px 12px}.selected-schools button{background:transparent;border:0;padding:0 4px;font-size:1.2rem}.school-add{margin-bottom:10px}
.main-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.how-pill{display:inline-flex;align-items:center;min-height:36px;padding:3px 15px;box-sizing:border-box;border:1px solid #b7ceda;border-radius:99px;color:white;text-decoration:none;font-weight:650;white-space:nowrap}.how-pill:hover,.how-pill:focus-visible{background:#e9f2f4;color:#153c65}
.market-school{display:inline-flex;align-items:center;gap:7px;max-width:100%}.market-school .field{margin:0;width:auto;max-width:min(280px,65vw)}
.inbox-list{display:grid;gap:8px;margin:16px 0}.inbox-row{display:grid;grid-template-columns:1fr auto;gap:4px 14px;padding:15px;text-align:left}.inbox-row .snippet,.inbox-row small{grid-column:1/-1;overflow-wrap:anywhere}.inbox-row time,.conversation time{font-size:.85rem;color:#465e70}.unread{font-size:.82rem;background:#daebd2;border-radius:16px;padding:3px 8px}.conversation{margin-top:15px}.message-bubble{border-radius:12px;background:#f0f4f7;padding:13px;margin:10px 8% 10px 0}.message-bubble.outgoing{background:#e5f1f4;margin:10px 0 10px 8%}.pickup-item{display:flex;align-items:center;gap:12px;padding:8px 0}.pickup-item img{width:64px;height:64px;object-fit:contain;border-radius:6px;background:white}.pickup-item span{flex:1;overflow-wrap:anywhere}.attached-items{border-top:1px solid #b6cbd3;padding-top:10px}

.booklist-item{padding:12px 16px;border-top:1px solid #dce4ed}.booklist-item small{white-space:nowrap}.booklist-checks{display:flex;gap:20px;flex-wrap:wrap}.booklist-checks label{display:inline-flex;align-items:center;gap:6px;margin:4px 0;min-height:32px}.booklist-checks input{width:18px;height:18px}.importer #listInstructions{min-height:4em}

#booklistDrop{display:grid;gap:8px;padding:18px;border:2px dashed #8fa9bd;border-radius:12px;background:#f6fafc;cursor:pointer}#booklistDrop.dragging,#booklistDrop:focus-within{border-color:#166879;background:#e4f3f3}

.book-name{display:block;font-size:1.05rem;overflow-wrap:anywhere}.book-quantity,.book-note{font-size:.9rem;color:#465e70}.book-note{margin:.3rem 0}.book-edit>summary{cursor:pointer;font-size:.9rem;width:fit-content}.book-edit form{display:grid;gap:8px;margin-top:8px}.book-edit button{justify-self:start}

header #authPill{background:transparent;color:white;border:1px solid #b7ceda;border-radius:99px;padding:4px 15px;min-height:36px;font:inherit;cursor:pointer}header #authPill:hover,header #authPill:focus-visible{background:#e9f2f4;color:#153c65}

.password-field{position:relative;display:block}.password-field .field{width:100%;padding-right:3.4rem}.password-field .password-eye{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:38px;padding:0;border:0;color:#163654;background:transparent}.password-eye:focus-visible{outline:2px solid #166879}

.main-pills>button[data-market="mine"]{background:transparent;color:white;cursor:pointer}.main-pills>button[data-market="mine"]:hover{background:#e9f2f4;color:#153c65}

.market-tools{display:grid;grid-template-columns:minmax(15rem,1fr) 6rem 8rem minmax(8rem,13rem) auto;align-items:stretch}
.market-tools input.field{width:100%;min-width:0;margin:0}
.market-tools .filter-pill{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;margin:0;padding:3px 14px;border:1px solid #aabfd2;background:white}
.market-tools > :is(input.field,.filter-pill,button){border-radius:999px;min-height:2.875rem}
.filter-pill span{display:none}
.filter-pill:has(option[value=""]:checked) span{display:block;position:absolute;left:14px;right:32px;background:white;color:#132d50;pointer-events:none;white-space:nowrap}
.market-tools .filter-pill select{margin:0;width:100%;min-width:0;border:0;background:transparent;color:#132d50;font:inherit;cursor:pointer}
.market-tools .filter-pill:focus-within{outline:2px solid #166879}
@media(max-width:820px){.market-tools{grid-template-columns:minmax(0,1fr) 6rem}.market-tools .filter-pill{grid-row:2}.market-tools .filter-pill:nth-of-type(2){grid-column:1}.market-tools .filter-pill:first-of-type{grid-column:2}.market-tools button{justify-self:start}}

.sell-form .suggest-photos{background:#00736e;border-color:#00736e;color:#fff;font-weight:650}
.sell-form .suggest-photos:hover:enabled{background:#005c58;border-color:#005c58}
.sell-form .suggest-photos:focus-visible{outline:3px solid #173d60;outline-offset:3px}
.sell-form .suggest-photos:disabled{background:#496967;border-color:#496967;cursor:wait}

#homeSale,.market-tools{--sale-text:#595959;color:var(--sale-text)}
#homeSale :is(h2,h3,p,small,strong,summary,button),#homeSale #matchInfo,
.market-tools :is(input.field,.filter-pill select,button),
.market-tools .filter-pill:has(option[value=""]:checked) span{color:var(--sale-text)}
.market-tools input.field::placeholder{color:var(--sale-text);opacity:1}

#addToPhone img{vertical-align:middle;border-radius:5px;margin-right:.2rem}
#phoneHelp{width:min(24rem,90vw);border:1px solid #aabfd2;border-radius:18px;padding:1.5rem;color:#153450}
#phoneHelp h2{margin:.5rem 0 1rem}
#phoneHelp::backdrop{background:rgb(16 45 80 / .5)}

#fileReceipt:empty,#fileReceipt:not(.file-receipt){display:none}
.file-receipt{display:flex;gap:.75rem;align-items:flex-start;margin:1rem 0;padding:1rem;border:1px solid #8ba9bd;border-radius:12px;background:#edf4fa;color:#173d60;overflow-wrap:anywhere}
.file-receipt.ready{background:#e5f5ef;border-color:#6da88f;color:#174d3c}
.file-receipt.issue{background:#fff5e4;border-color:#c69345;color:#66430d}
#receiptIcon{flex:none;display:grid;place-items:center;width:1.8rem;height:1.8rem;border-radius:50%;background:white;border:1px solid currentColor;font-weight:700}
#receiptHeading{font-size:1.1rem}
#ocrStatus{color:inherit;margin:.35rem 0 0}

.book-row-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}
.book-row-heading .book-bin{display:grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;padding:0;margin:0;color:#536779;background:transparent;border:0;border-radius:50%}
.book-row-heading .book-bin:hover,.book-row-heading .book-bin:focus-visible{color:#942f32;background:#faeeee}

.match-source{margin:.65rem 0;padding:.65rem .85rem;background:#eff6f7;border-radius:.5rem;overflow-wrap:anywhere}.match-source ul{margin:.25rem 0 0;padding-left:1.2rem}

#unreadMessages:not([hidden]){display:inline-grid;place-items:center;min-width:1.55em;height:1.55em;padding:0 .35em;margin-left:.45em;box-sizing:border-box;border-radius:999px;background:#86e2d5;color:#103d46;font-size:.8em;font-weight:700;font-variant-numeric:tabular-nums;vertical-align:middle}

.my-listing-tabs{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.my-listing-tabs button{border-radius:999px}.my-listing-tabs [aria-pressed="true"]{background:#173d60;color:white}

.wanted-rows{list-style:none;margin:0;padding:0;background:white;border:1px solid #d3dfe7;border-radius:14px;width:100%;overflow:hidden;grid-column:1/-1}.wanted-rows>li{padding:1rem;overflow-wrap:anywhere}.wanted-rows>li+li{border-top:1px solid #d3dfe7}.wanted-rows h3,.wanted-rows p{margin:0 0 .4rem}.wanted-rows>li>button{margin-top:.35rem}

label.booklist-notify{display:flex;align-items:center;gap:.45rem;margin:.35rem 0 .85rem}
.booklist-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.booklist-actions button{border-radius:999px;font-weight:600;padding:.55rem .95rem;min-height:44px;max-width:100%;white-space:normal}
.booklist-actions [data-share-booklist]{background:#096967;color:white;border-color:#096967}
.booklist-actions [data-match]{background:#dbeaff;color:#173e6b;border-color:#9cb9da}
.booklist-actions [data-close]{background:#e0eedc;color:#254d32;border-color:#abc9ad}
.booklist-actions [data-delete-booklist],.booklist-actions [data-extra="deleteDraft"]{background:#fbe5e1;color:#802f29;border-color:#dfafa9}
.booklist-actions button:hover{filter:brightness(.95)}
.booklist-actions button:focus-visible{outline:3px solid #173e6b;outline-offset:2px}

#wantedMineFilter:not([hidden]){display:inline-flex;align-items:center;gap:.45rem;margin:0 0 .75rem}#wantedMineFilter[hidden],.wanted-rows>li[hidden]{display:none}

.wanted-owner-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;margin-top:.35rem}.wanted-owner-actions>label{margin:0}

#marketTabs{display:flex;gap:.5rem;margin-bottom:1rem}
#marketTabs button{border-radius:2rem;font-weight:600;line-height:1.2}
#marketTabs button[aria-selected="true"]{background:#153c65;border-color:#153c65;color:white}
#homeSale[hidden],#homeWanted[hidden]{display:none}

.market-grid button.pickup-sent,#homeSale .market-grid button.pickup-sent{background:#d7f2e7;color:#145541;border:1px solid #72ad98;border-radius:999px;font-weight:650}

.pickup-receipt .sent-body{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf6f3;border-radius:.6rem;padding:1rem}

[data-own-listing]{cursor:pointer}

.shortlist-summary:not([hidden]){position:sticky;top:.4rem;z-index:450;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;margin:.6rem 0;padding:.6rem .85rem;background:#e5f3ef;border:1px solid #a3c8bc;border-radius:.9rem}
.shortlist-summary p{flex:1 1 16rem;margin:0;font-size:.94rem}
.shortlist-summary button,#homeSale .shortlist-summary button{background:#15594c;color:white;border-radius:999px}

#market details.card > summary + button:is([data-newlist], [data-extra="postWanted"]) {
  display: block;
  margin-bottom: 1rem;
}
