/* BrickList additions on top of the shared MyBricks styles (site.css). */

.brand .name{letter-spacing:-.005em}
.nav-cta{color:#000!important;background:var(--c-gold);padding:8px 14px!important;border-radius:10px;border:0!important}

/* small grey text */
.added{font-family:var(--font-ui);font-size:12px;color:var(--muted-2)}

/* thumbnails */
.thumb-sm{position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:10px;background:#fff;overflow:hidden}
.thumb-sm img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;padding:4px;background:#fff}
.thumb-sm .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#b9b9c6}

/* the lists page: sidebar + main */
.app{display:grid;grid-template-columns:270px minmax(0,1fr);gap:28px;align-items:start;padding:32px 0 120px}
.side{position:sticky;top:20px;display:flex;flex-direction:column;gap:6px;padding:16px}
.side .th{padding:4px 8px 8px}
.list-link{display:flex;align-items:center;gap:10px;min-height:44px;padding:6px 10px;border-radius:10px;color:var(--muted);font-family:var(--font-ui);font-size:14px;font-weight:500;cursor:pointer;border:1px solid transparent}
.list-link:hover{background:var(--surface-2);color:#fff;text-decoration:none}
.list-link.active{background:var(--surface-2);color:#fff;border-color:var(--line-strong)}
.list-link .nm{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-link .ct{font-size:12px;color:var(--muted-2);font-variant-numeric:tabular-nums}
.list-link input[type=checkbox]{width:16px;height:16px;accent-color:var(--c-gold);flex-shrink:0;cursor:pointer}
.side .new-list{margin-top:8px}

.list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.list-head h1{font-size:clamp(26px,3vw,38px)}

/* add-item panel */
.add-panel{display:flex;flex-direction:column;gap:14px;padding:22px 24px}
.seg{display:inline-flex;border:1px solid rgba(255,255,255,.16);border-radius:10px;overflow:hidden;font-family:var(--font-ui);font-size:14px;font-weight:600}
.seg button{padding:0 16px;height:40px;color:var(--muted)}
.seg button+button{border-left:1px solid rgba(255,255,255,.16)}
.seg button.on{background:#fff;color:#000}
.seg.sm button{height:34px;padding:0 12px;font-size:13px}
.search-box{position:relative}
.search-box .input{padding-left:42px}
.search-box .ico{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted-2);pointer-events:none}
.results{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 6px);max-height:420px;overflow:auto;background:#121218;border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.6)}
.result{display:flex;gap:12px;align-items:center;padding:10px 12px;cursor:pointer;border-top:1px solid rgba(255,255,255,.06)}
.result:first-child{border-top:0}
.result:hover,.result.hl{background:var(--surface-2)}
.result .nm{font-size:14px;color:#fff;line-height:1.3}
.result .meta{font-family:var(--font-ui);font-size:12px;color:var(--muted)}
.results .empty{padding:14px;font-size:14px;color:var(--muted)}
.draft{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;padding:16px;border:1px solid rgba(255,198,26,.35);border-radius:12px;background:rgba(255,198,26,.04)}
.draft-fields{display:grid;grid-template-columns:minmax(0,1.3fr) 90px 170px minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.draft-fields.no-colour{grid-template-columns:90px 170px minmax(0,1fr) minmax(0,1fr)}

/* filters */
.filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.filters .input{height:40px;font-size:14px;width:auto}
.filters .grow{flex:1 1 220px;min-width:180px}
.filters label.mini{display:flex;align-items:center;gap:6px}
.filters input[type=date].input{width:150px;padding:0 10px}

/* item rows */
.items{display:flex;flex-direction:column}
.item{display:grid;grid-template-columns:22px 64px minmax(0,1fr);gap:14px;padding:16px 4px;border-top:1px solid rgba(255,255,255,.08)}
.item:first-child{border-top:0}
.item.sel{background:rgba(255,198,26,.04)}
.item.have .nm{color:var(--muted)}
.item .pick{width:18px;height:18px;margin-top:22px;accent-color:var(--c-gold);cursor:pointer}
.item .body{display:flex;flex-direction:column;gap:10px;min-width:0}
.item .top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}
.item .nm{font-family:var(--font-ui);font-weight:600;font-size:16px;color:#fff;line-height:1.3}
.item .meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-family:var(--font-ui);font-size:12px;color:var(--muted)}
.item .meta a{color:var(--muted)}
.item .meta a:hover{color:#fff}
.swatch{display:inline-block;width:11px;height:11px;border-radius:3px;border:1px solid rgba(255,255,255,.25);vertical-align:-1px;margin-right:4px}
.type-pill{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:600;letter-spacing:.02em}
.tp-set{background:rgba(46,125,224,.18);color:#7fb3f2}.tp-minifig{background:rgba(236,30,140,.16);color:#f47bbb}
.tp-part{background:rgba(116,206,60,.14);color:#9be26a}.tp-other{background:rgba(255,255,255,.08);color:#b9b9c6}
.fields{display:grid;grid-template-columns:76px 76px 130px 110px 110px minmax(0,1fr);gap:10px;align-items:end}
.fields .th{font-size:10px}
.fields .input{height:38px;font-size:14px;padding:0 10px}
.fields select.input{padding-right:30px;background-position:right 8px center}
.fields textarea.input{height:38px;min-height:38px;padding:8px 10px;resize:vertical}
.ticks{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.tick-f{display:flex;align-items:center;gap:8px;font-family:var(--font-ui);font-size:13px;color:var(--muted)}
.tick-f input[type=checkbox]{width:17px;height:17px;cursor:pointer;margin:0}
.tick-f.req input[type=checkbox]{accent-color:var(--c-cyan)}
.tick-f.ord input[type=checkbox]{accent-color:var(--c-orange)}
.tick-f.hv input[type=checkbox]{accent-color:var(--c-green)}
.tick-f.on{color:#fff}
.tick-f input[type=date]{height:30px;padding:0 6px;border-radius:7px;background:var(--surface-2);border:1px solid rgba(255,255,255,.14);color:var(--text);font-size:12px;font-family:var(--font-ui)}
.tick-f input[type=date]:disabled{opacity:.35}
.rm-btn{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 10px;border-radius:8px;color:var(--muted-2);font-family:var(--font-ui);font-size:13px;flex-shrink:0}
.rm-btn:hover{color:#f27b83;background:rgba(238,43,55,.08)}
.saving{font-family:var(--font-ui);font-size:11px;color:var(--muted-2)}
.empty-state{padding:48px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}

/* the send bar, fixed at the bottom while anything is selected */
.send-bar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:16px;padding:12px 14px 12px 20px;background:#16161d;border:1px solid var(--c-gold);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.6);font-family:var(--font-ui);font-size:14px;color:#fff;max-width:calc(100vw - 32px)}
.send-bar .btn{height:42px}

/* the 10-second Undo bar */
.undo-bar{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:14px;padding:12px 14px 14px 18px;background:#1b1b23;border:1px solid var(--line-strong);border-radius:12px;box-shadow:0 14px 40px rgba(0,0,0,.6);font-family:var(--font-ui);font-size:14px;color:#fff;overflow:hidden;max-width:calc(100vw - 32px)}
.undo-bar .t{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.undo-bar .undo-btn{height:34px;padding:0 14px;border-radius:9px;background:var(--c-gold);color:#000;font-weight:700}
.undo-bar .count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:24px}
.undo-bar .bar{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--rainbow);transform-origin:left}
.undo-bar.go .bar{animation:undo-shrink var(--undo-secs,10s) linear forwards}
@keyframes undo-shrink{from{transform:scaleX(1)}to{transform:scaleX(0)}}
body:has(.undo-bar:not(.hidden)) .send-bar{bottom:88px}

/* modals */
.modal-wrap{position:fixed;inset:0;z-index:70;background:rgba(0,0,0,.72);display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px;overflow:auto}
.modal{width:100%;max-width:520px;display:flex;flex-direction:column;gap:16px}
.modal.wide{max-width:760px}
.modal h2{font-size:22px}

/* services on the home page */
.svc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.svc{display:flex;flex-direction:column;gap:10px;padding:26px}
.svc .ic{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-strong)}
.svc h3{font-size:19px}
.svc p{font-size:15px;color:var(--muted)}
.divider-star{text-align:center;color:var(--muted-2);letter-spacing:.3em;font-family:var(--font-ui);font-size:13px;padding:8px 0}
.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}

/* request and quote pages */
.q-row{display:grid;grid-template-columns:56px minmax(0,1fr) 110px 120px 210px;gap:16px;align-items:center;padding:14px 0;border-top:1px solid rgba(255,255,255,.08)}
.q-row.nf{opacity:.55}
.q-row .dec{display:flex;height:38px;border:1px solid rgba(255,255,255,.14);border-radius:10px;overflow:hidden;font-family:var(--font-ui);font-size:13px;font-weight:600}
.q-row .dec button{flex:1 1 0;color:var(--muted)}
.q-row .dec button+button{border-left:1px solid rgba(255,255,255,.14)}
.q-row .dec button.on.ap{background:var(--c-green);color:#000}
.q-row .dec button.on.de{background:rgba(238,43,55,.85);color:#fff}
.q-total{display:flex;justify-content:space-between;align-items:baseline;padding:16px 0 4px;border-top:2px solid rgba(255,255,255,.18)}
.st-submitted{background:rgba(46,125,224,.18);color:#7fb3f2}.st-sourcing{background:rgba(255,198,26,.14);color:#ffd452}
.st-quoted{background:rgba(22,198,201,.16);color:#5fe0e2}.st-fulfilling{background:rgba(255,122,31,.16);color:#ff9a55}
.st-accepted,.st-complete{background:rgba(116,206,60,.14);color:#9be26a}.st-declined{background:rgba(238,43,55,.14);color:#f27b83}
.st-withdrawn,.st-expired{background:rgba(255,255,255,.06);color:var(--muted-2)}
.found-pill{font-family:var(--font-ui);font-size:12px;font-weight:600}
.f-found{color:#9be26a}.f-partial{color:#ffd452}.f-not_found{color:#f27b83}.f-pending{color:var(--muted-2)}

/* admin request editor */
.a-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:16px 0;border-top:1px solid rgba(255,255,255,.08)}
.a-fields{display:grid;grid-template-columns:150px 90px 110px 120px minmax(0,1fr);gap:10px;align-items:end;margin-top:10px}
.a-fields .input{height:38px;font-size:14px;padding:0 10px}
.a-fields .th{font-size:10px}
.pg{font-family:var(--font-ui);font-size:12px;color:var(--c-cyan)}

@media (max-width:1100px){
  .app{grid-template-columns:1fr}
  .side{position:static}
  .fields{grid-template-columns:76px 76px 130px minmax(0,1fr) minmax(0,1fr)}
  .fields .notes-f{grid-column:1/-1}
  .draft-fields,.draft-fields.no-colour{grid-template-columns:repeat(2,minmax(0,1fr))}
  .draft-fields .notes-f{grid-column:1/-1}
  .svc-grid,.method-grid{grid-template-columns:1fr}
  .q-row{grid-template-columns:56px minmax(0,1fr) 80px 90px;row-gap:10px}
  .q-row>:nth-child(2){grid-column:2/-1}
  .q-row>:nth-child(3){grid-column:3}
  .q-row>:nth-child(4){grid-column:4}
  .q-row>:nth-child(5){grid-column:2/3;grid-row:2}
  .a-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .a-fields .wide{grid-column:1/-1}
}
@media (max-width:640px){
  .item{grid-template-columns:22px 52px minmax(0,1fr);gap:10px}
  .item .thumb-sm{width:52px!important;height:52px!important}
  .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .draft{grid-template-columns:1fr}
  .send-bar{left:16px;right:16px;transform:none;bottom:16px;flex-wrap:wrap;justify-content:space-between}
  .send-bar .btn{width:auto}
  .undo-bar{left:16px;right:16px;transform:none}
  .filters input[type=date].input{width:calc(50% - 30px)}
  .q-row{grid-template-columns:48px minmax(0,1fr) 72px 84px}
  .q-row>:nth-child(5){grid-column:1/-1;grid-row:3}
}

.steps4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.steps4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.steps4{grid-template-columns:1fr}}

/* the little (i) explainer button */
.info-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;color:var(--c-cyan)}
.info-btn:hover{background:rgba(22,198,201,.12);color:#fff}
.tp-instructions{background:rgba(255,198,26,.14);color:#ffd452}.tp-book{background:rgba(255,122,31,.16);color:#ff9a55}.tp-gear{background:rgba(22,198,201,.16);color:#5fe0e2}

/* phones: 16px text in fields stops iOS zooming in on focus */
@media (max-width:640px){.input,select.input,textarea.input,.tick-f input[type=date],.filters .input,.fields .input,.a-fields .input{font-size:16px}}
/* keep the last item clear of the fixed send bar */
body:has(.send-bar:not(.hidden)) main{padding-bottom:150px}
.table a.rowlink{color:#fff;font-family:var(--font-ui)}

/* phones: list actions stay compact, and the item-type tabs scroll sideways instead of widening the page */
@media (max-width:640px){
  .list-head .btn{width:auto}
  .add-panel>.row:first-child{flex-direction:column;align-items:stretch}
  .seg{display:flex;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .seg button{flex:1 0 auto;padding:0 12px}
}
@media (max-width:640px){
  .ticks{display:grid;grid-template-columns:1fr;gap:8px}
  .tick-f{justify-content:space-between;min-width:0}
  .tick-f input[type=date]{width:150px;max-width:55%;height:34px}
}

/* home page hero: the illustration fills the right and runs in behind the words, like the mockup */
.home-hero{position:relative;display:flex;align-items:center;min-height:min(84vh,820px);padding:8px 0 24px;overflow-y:clip;overflow-x:visible}
.home-hero .hh-text{position:relative;z-index:2;display:flex;flex-direction:column;gap:22px;max-width:600px;padding:48px 0}
.home-hero .eyebrow{color:#b9b9c6;letter-spacing:.16em}
.home-hero h1{font-size:clamp(34px,4.4vw,60px);line-height:1.08;text-shadow:0 2px 24px rgba(0,0,0,.85)}
.home-hero .lede{font-size:18px;color:#b4b4c0;max-width:52ch;line-height:1.65;text-shadow:0 1px 14px rgba(0,0,0,.9)}
.home-hero .hh-art{position:absolute;z-index:1;top:4px;height:122%;right:calc(-1 * var(--pad));pointer-events:none;display:flex;justify-content:flex-end}
.home-hero .hh-art picture{display:block;height:100%}
.home-hero .hh-art img{display:block;height:100%;width:auto;max-width:72vw;object-fit:contain;object-position:right top;
  -webkit-mask-image:linear-gradient(to right,transparent 0,rgba(0,0,0,.35) 14%,#000 38%),linear-gradient(to top,transparent 0,transparent 14%,#000 30%);-webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,rgba(0,0,0,.35) 14%,#000 38%),linear-gradient(to top,transparent 0,transparent 14%,#000 30%);mask-composite:intersect}
/* a soft dark wash behind the words so they stay readable where bricks pass under them */
.home-hero::before{content:"";position:absolute;z-index:1;left:calc(-1 * var(--pad));top:0;bottom:0;width:min(58vw,820px);
  background:radial-gradient(ellipse 70% 60% at 30% 50%,rgba(0,0,0,.75),transparent 75%);pointer-events:none}
@media (max-width:820px){
  .home-hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding-top:0;overflow:visible}
  .home-hero .hh-art{order:-1}
  .home-hero::before{display:none}
  .home-hero .hh-art{position:relative;top:auto;bottom:auto;height:auto;right:auto;margin:0 calc(-1 * var(--pad));justify-content:center}
  .home-hero .hh-art picture{height:auto}
  .home-hero .hh-art img{height:auto;width:100%;max-width:none}
  .home-hero .hh-art img{max-height:440px;object-fit:contain;
    -webkit-mask-image:linear-gradient(to top,transparent 0,#000 30%);mask-image:linear-gradient(to top,transparent 0,#000 30%)}
  .home-hero .hh-text{padding:0 0 28px;margin-top:-90px}
}

/* the BrickList wordmark in the header and admin sidebar */
.brand.brand-word{flex-direction:column;align-items:flex-start;gap:5px}
.brand.brand-word img.wordmark{width:auto;height:38px;border-radius:0}
.brand.brand-word .by{padding-left:2px}
.admin-side .brand.brand-word img.wordmark{height:28px}
@media (max-width:640px){.brand.brand-word img.wordmark{height:30px}}
.home-hero .lede-strong{font-family:var(--font-ui);font-weight:600;font-size:17px;color:#fff;margin-top:-8px;text-shadow:0 1px 14px rgba(0,0,0,.9)}

/* footer: centred like the page, in columns, with room to breathe */
.site-footer.bl-footer{display:block;padding:72px 0 64px;margin-top:auto}
.bl-footer .footer-inner{max-width:1440px;margin:0 auto;padding:0 var(--pad);display:flex;flex-direction:column;gap:36px}
.bl-footer .footer-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1.3fr);gap:48px;align-items:start}
.bl-footer .f-about{display:flex;flex-direction:column;gap:14px;max-width:60ch}
.bl-footer .f-logo{width:auto;height:32px;align-self:flex-start}
.bl-footer p{font-family:var(--font-body);font-size:14px;line-height:1.7;color:var(--muted);max-width:none}
.bl-footer p.f-small{font-size:12.5px;color:var(--muted-2)}
.bl-footer .f-links{display:flex;flex-direction:column;gap:12px;font-family:var(--font-ui);font-size:14px}
.bl-footer .f-links a{color:var(--text)}
.bl-footer .f-links a:hover{color:var(--c-cyan)}
.bl-footer .f-head{font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted-2);margin-bottom:2px}
@media (max-width:900px){.bl-footer .footer-grid{grid-template-columns:1fr;gap:32px}}

/* checkout section on the home page: more room in the cards */
.method-grid{gap:18px}
.method-grid .card.pad-sm{padding:28px 30px;gap:12px!important}
.method-grid .hint{font-size:15px!important;line-height:1.7}
.method-grid+.grid2{gap:18px}
.method-grid+.grid2 .card.pad-sm{padding:24px 28px;align-items:flex-start}
.method-grid+.grid2 p{line-height:1.7}

.bl-footer .f-more{gap:16px}
.bl-footer .f-more .f-item{display:flex;flex-direction:column;gap:3px}
.bl-footer .f-more a.f-t{font-weight:600;color:#fff;align-self:flex-start}
.bl-footer .f-more a.f-t:hover{color:var(--c-cyan);text-decoration:underline}
.bl-footer .f-more .f-d{font-family:var(--font-body);font-size:13px;line-height:1.55;color:var(--muted)}
