/* Printde on the Printde design.
   printde.css and home.css are the Printde frontend's own stylesheets, copied unchanged.
   This file only adds what the real app needs on top: server forms (radios, checkboxes,
   file inputs), flash messages, page thumbnails, QR payment, auth pages, the receipt
   and the owner console's tables and forms. Same tokens, same type scale. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------- shell additions ---------- */
.nav-item{position:relative;text-decoration:none}
a.nav-item{color:#657185}
a.nav-item:hover,a.nav-item.active{color:var(--blue)}
.nav-group{margin:18px 0 10px}
.nav-count.ready{background:#eaf7f1;color:#26835f;font-weight:600}
.nav-count.alert{background:#fdecea;color:#c4433b;font-weight:600}
nav{display:block}
.sidebar{overflow-y:auto}
.preview-badge i.off,.open-dot.off{background:#d9534f}
.provider-link{color:inherit;text-decoration:none}
.provider-link:hover{border-color:#bcd2f5;background:#fafcff}
.account-menu{position:relative}
.account-menu>summary{list-style:none;cursor:pointer}
.account-menu>summary::-webkit-details-marker{display:none}
.account-pop{position:absolute;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 40px #16284a1f;padding:8px;min-width:200px;z-index:40}
.account-pop small{display:block;font-size:10px;color:var(--muted);padding:8px 10px}
.account-pop a{display:flex;align-items:center;gap:9px;padding:10px;border-radius:8px;font-size:12px;color:var(--text)}
.account-pop a:hover{background:#f3f7fd;color:var(--blue)}
.account-pop .icon{width:16px;height:16px}
.login-button{color:var(--text)}

/* ---------- feedback ---------- */
.flash{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border-radius:10px;margin-bottom:18px;font-size:12px;line-height:1.6;border:1px solid}
.flash .icon{width:16px;height:16px;margin-top:1px}
.flash.ok{background:#eff8f3;border-color:#d3ebdf;color:#2e7458}
.flash.error{background:#fdf1f0;border-color:#f6d3cf;color:#b2413a}
.info-banner.warn{background:#fff7e6;border-color:#f6e2b8;color:#94692a}
.info-banner.danger{background:#fdf1f0;border-color:#f6d3cf;color:#b2413a}
.info-banner .primary,.info-banner .secondary{margin-left:auto;min-height:32px;padding:7px 12px}
.status.failed{background:#fdecea;color:#c4433b}
.status.online{background:#eaf7f1;color:#26835f}
.status.offline{background:#fdecea;color:#c4433b}
.status.muted{background:#f0f3f7;color:#8492a7}
.muted{color:var(--muted)}
.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.mono{font-family:ui-monospace,Menlo,Consolas,monospace}

/* ---------- buttons as links, wide buttons ---------- */
a.primary,a.secondary{text-decoration:none}
a.primary{color:#fff}
.primary.wide,.secondary.wide{display:flex;width:100%;margin-top:18px}
.danger-btn{background:#d9534f;color:#fff}
.danger-btn:hover{background:#c4433b}
.primary.sm,.secondary.sm,.danger-btn.sm{min-height:32px;padding:7px 12px;font-size:11px}
.spinner{display:inline-block}

/* ---------- upload / options ---------- */
label.dropzone{display:block;cursor:pointer}
.dropzone .primary{pointer-events:none}
.file-row.compact{padding:10px;margin:0 0 10px}
.file-type.img{background:#eef5ff;border-color:#d6e5fb;color:#3d6fb8}
.settings-card .card-head h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.colour-choice.three{grid-template-columns:repeat(3,1fr)}
.choice input,.segmented input{position:absolute;opacity:0;pointer-events:none}
label.choice{cursor:pointer}
.choice:has(input:checked){border:1.5px solid var(--blue);background:#f6f9ff;padding:12.5px 11.5px}
.choice:has(input:checked) .choice-radio{border:4px solid var(--blue);background:#fff}
.choice:has(input:focus-visible),.segmented label:has(input:focus-visible){outline:3px solid #8db5ff;outline-offset:2px}
.auto-dot{width:25px;height:25px;position:relative;flex-shrink:0}
.auto-dot i{position:absolute;width:16px;height:16px;border-radius:50%;left:0;top:4px;background:linear-gradient(90deg,#20304b 50%,#dae2ed 50%)}
.auto-dot i+i{left:9px;background:#21c7e5;mix-blend-mode:multiply}
.segmented label{flex:1;display:flex;align-items:center;justify-content:center;font-size:11px;padding:6px 8px;border-radius:5px;color:#7b899d;cursor:pointer;position:relative}
.segmented label:has(input:checked){background:#fff;color:var(--blue);box-shadow:0 1px 4px #1a33501a;font-weight:600}
.thumbs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.thumbs figure{margin:0;width:58px;text-align:center;font-size:9px;color:#8a97aa;font-weight:600}
.thumbs img{width:58px;border:1px solid #dfe6f0;border-radius:4px;display:block;background:#fff;margin-bottom:4px;box-shadow:0 2px 6px #1e39520d}
.thumbs figure.c{color:#d6458f}
.thumbs figure.c img{outline:2px solid #f57bbb;outline-offset:-1px;border-color:#f57bbb}
.thumbs figure.more span{display:grid;place-items:center;height:78px;border:1px dashed #d0d9e6;border-radius:4px;color:#8a97aa;font-size:11px}
.shred-card{display:flex;gap:12px;align-items:center;padding:16px 20px;cursor:pointer}
.shred-card input{width:16px;height:16px;accent-color:var(--blue);margin:0}
.shred-card b{display:block;font-size:12px;font-weight:600}
.shred-card small{display:block;font-size:10px;color:var(--muted);margin-top:4px}
.summary button.primary{margin-top:18px;width:100%;padding:13px 10px}
.summary .primary .icon{margin-left:auto}
.summary .primary>span{flex:1}
.summary-wrap .after-payment{margin-top:15px}

/* ---------- pay ---------- */
.qr-wrap{display:flex;gap:24px;align-items:center;flex-wrap:wrap}
.qr{padding:14px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.qr img,.qr canvas{display:block}
.qr-copy b{font-size:28px;letter-spacing:-1px;color:var(--navy);font-weight:650}
.qr-copy p{font-size:12px;color:var(--muted);line-height:1.7;margin:6px 0 14px}
.checkout-policy label{margin:0}

/* ---------- tracking ---------- */
.track-card .settings-body{padding-top:28px}
.track-pill{text-align:center;margin:14px 0}
.pickup-code.live{background:#eff8f3;border-color:#b9dfcc}
.pickup-code.live b{color:#21805d;font-size:34px}
.code-inline{font-family:ui-monospace,Menlo,monospace;letter-spacing:2px;color:var(--navy)}
.track-actions>a{flex:1}

/* ---------- signed-out pages ---------- */
.auth-page{min-height:100vh;background:radial-gradient(1200px 500px at 50% -10%,#e8f1ff,transparent),var(--bg);display:flex;align-items:center;justify-content:center;padding:32px 16px}
.auth-wrap{width:100%;max-width:440px}
.auth-brand{display:block;width:180px;margin:0 auto 22px}
.auth-brand img{display:block;width:100%}
.auth-card{background:#fff;border:1px solid #e3eaf5;border-radius:19px;padding:30px 28px;box-shadow:0 30px 80px #0718311a}
.auth-title{font-size:23px;letter-spacing:-.7px;margin-bottom:8px}
.auth-label{font-size:11px;font-weight:550;display:block;margin-bottom:8px}
.auth-card .field{margin-bottom:14px}
.auth-card .field input{font-size:13px;min-height:44px}
.auth-foot{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;color:#91a0b3;margin-top:18px}
.auth-foot .icon{width:12px;height:12px}
.phone-input input{min-width:0}

/* ---------- receipt ---------- */
.receipt-page{padding:32px 16px}
.rcpt{max-width:640px;margin:0 auto;padding:30px}
.rcpt-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:24px}
.rcpt-head h1{font-size:22px;letter-spacing:-.5px}
.rcpt-head p{font-size:11px;color:var(--muted);line-height:1.7;margin:6px 0 0}
.rcpt-head img{width:120px}
.rcpt h2{font-size:17px;margin:0 0 6px}
.rcpt-meta{font-size:11px;color:var(--muted);line-height:1.7}
.rcpt table{margin:14px 0 6px}
.rcpt td small{display:block;margin-top:3px;font-weight:400}
.rcpt-actions{max-width:640px;margin:16px auto 0}
@media print{.noprint,.sidebar,.topbar,.page-footer{display:none!important}.receipt-page{padding:0;background:#fff}.rcpt{border:0;box-shadow:none}}

/* ---------- owner console ---------- */
.metric strong{font-variant-numeric:tabular-nums}
.metric.alert strong{color:#c4433b}
.card-pad{padding:0 22px 22px}
.card-head .apply-hint .icon{width:13px;height:13px}
.card.attention{border-color:#f6d3cf;box-shadow:0 8px 30px #c4433b0d}
.card.attention .section-title>.icon{color:#c4433b}
#main>.card+.card,#main>.card+.provider-grid,#main>.provider-grid+.card,#main>.two-col+.card,#main>.card+.two-col,#main>.metric-grid+.card,#main>.metric-grid+.two-col,#main>.info-banner+.card{margin-top:20px}
.info-banner+.info-banner{margin-top:-10px}
.info-banner .primary,.info-banner form{white-space:nowrap;flex-shrink:0}
@media(max-height:860px){.sidebar-note{display:none}}
.stack-20>*+*{margin-top:20px}
.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px;align-items:start}
.two-col>.card{margin:0}
table .text-button{white-space:nowrap}
td a{font-weight:600}
td .status{font-size:9px}
tbody tr:hover td{background:#fafcff}
.table-wrap table{min-width:520px}
.table-empty{text-align:center;padding:28px!important;color:#92a0b5!important;font-weight:400!important}
.queue-row .status{flex-shrink:0}
.queue-row .shop-avatar .icon{width:18px;height:18px}
.queue-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.printer .status{font-size:8px}
.printer-info small{line-height:1.6}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px 16px;align-items:end}
.form-grid .field-label,.field .field-label{margin-bottom:8px}
.field input[type=file]{padding:9px 10px;background:#f8fbff;border-style:dashed;border-color:#bad1f8}
.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}
.check{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:550;color:#5e6e86;cursor:pointer}
.check input{width:15px;height:15px;accent-color:var(--blue);margin:0}
.inline,form.inline{display:inline}
.inline-form{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-form input{border:1px solid #dfe6ef;border-radius:7px;padding:6px 8px;font-size:11px;min-height:32px;width:6em}
.inline-form input[type=text]{width:11em}
.copy-field{display:flex;gap:8px}
.copy-field input{flex:1}
.kv{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:11px;color:var(--muted);margin:0 0 16px}
.kv b{color:var(--text);font-weight:600}
.code-box{font-family:ui-monospace,Menlo,monospace;font-size:10.5px;background:#f7f9fc;border:1px solid var(--line);border-radius:7px;padding:2px 6px;color:#344660;word-break:break-all}
pre.code-box{padding:12px;white-space:pre-wrap;margin:10px 0 0}
details.more summary{cursor:pointer;font-size:11px;color:var(--blue);font-weight:600;margin-top:14px}
.printer-block{border-top:1px solid var(--line);padding:20px 22px}
.printer-block:first-of-type{border-top:0}
.printer-block h3{font-size:13px;margin:0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.tray-grid{display:grid;grid-template-columns:1.1fr .9fr 1.4fr .8fr .8fr 150px;gap:8px;align-items:center;margin-top:8px}
.tray-grid input{border:1px solid #dfe6ef;border-radius:7px;padding:8px 10px;font-size:11px;min-height:36px;width:100%}
.tray-grid .btns{display:flex;gap:6px}
.tray-head{font-size:8px;letter-spacing:.5px;color:#91a0b5;font-weight:600;text-transform:uppercase}
.filter-tabs.wrap{flex-wrap:wrap}
.filter-tabs a{padding:9px 13px;border-radius:6px;color:#8b97a9;font-size:11px;white-space:nowrap}
.filter-tabs a.selected{background:#edf3ff;color:var(--blue);font-weight:600}
.filter-tabs a:hover{color:var(--blue)}
@media(max-width:740px){
  .colour-choice.three{grid-template-columns:1fr}
  .qr-wrap{justify-content:center;text-align:center}
  .tray-grid{grid-template-columns:1fr 1fr}
  .tray-grid .btns{grid-column:1/-1}
  .tray-head{display:none}
  .two-col{grid-template-columns:1fr}
  .card-pad{padding:0 18px 18px}
  .printer-block{padding:18px}
  .auth-card{padding:24px 20px}
}

/* ---------- homepage: links styled as the design's buttons ---------- */
.home-nav a{padding:12px 0;white-space:nowrap;font-size:12px;font-weight:500;color:#687b93}
.home-nav a:hover{color:var(--blue)}
.home-provider-action a{background:var(--blue);color:#fff;border-radius:7px;padding:13px 15px;font-size:11px;display:flex;align-items:center;gap:10px;font-weight:600}
.home-provider-action a:hover{background:var(--blue-dark)}
.home-provider-action a .icon{width:16px;height:16px}
.home-footer-links a{font-size:11px;color:#7188a6;padding:10px 0}
.home-footer-links a:hover{color:var(--blue)}
.home-page a.home-watch,.home-page a.home-shop-link{text-decoration:none}
.home-service[hidden]{display:none}
/* light provider banner: same layout as the design, on a light surface */
.home-provider-banner{background:linear-gradient(120deg,#eef5ff,#f7faff 60%,#eef8f6);border:1px solid #dce8fa}
.home-provider-banner:after{border-color:#d3e2f7}
.home-provider-copy .home-overline{color:var(--blue)}
.home-provider-copy h2{color:var(--navy)}
.home-provider-copy p{color:#6d82a0}
.home-provider-action small{color:#7d93b2}
#login-dialog .flash{margin:0 0 16px}
#login-dialog .phone-input input{font:inherit;font-size:14px}

/* four-step journey: on phones only the current step keeps its label */
@media(max-width:740px){
  .journey{overflow:hidden}
  .journey-step:not(.active)>span{display:none}
  .journey-note{display:none}
}
html,body{overflow-x:hidden}
.provider-grid>*,.two-col>*,.stack-20{min-width:0}

/* ---------- policy pages (terms, privacy, refund, delivery, contact) ---------- */
.legal-wrap{padding:38px 0 64px;max-width:820px}
.legal-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:34px}
.legal-tabs a{font-size:12px;font-weight:550;color:#5f7693;border:1px solid #e1e9f4;border-radius:999px;padding:8px 14px;background:#fff}
.legal-tabs a:hover{color:var(--blue);border-color:#c9dbf7}
.legal-tabs a.current{background:#f0f6ff;color:var(--blue);border-color:#cfe0fb}
.legal-body h1{font-size:38px;line-height:1.15;letter-spacing:-1.2px;font-weight:650;color:var(--navy);margin:0 0 8px;white-space:normal}
.legal-updated{font-size:12px;color:#8c9db3;margin-bottom:28px}
.legal-body h2{font-size:18px!important;letter-spacing:-.3px!important;line-height:1.4!important;color:var(--navy);margin:30px 0 10px}
.legal-body p,.legal-body li{font-size:14px;line-height:1.85;color:#4c6280}
.legal-body ul{padding-left:20px;margin:0 0 14px}
.legal-body li{margin-bottom:6px}
.legal-body a{color:var(--blue)}
.legal-contact{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:24px 0}
.legal-contact>div{border:1px solid #e5ecf5;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:4px}
.legal-contact .provider-icon{margin-bottom:8px}
.legal-contact b{font-size:14px;color:var(--navy)}
.legal-contact small{font-size:13px;color:#6d82a0}
.legal-links{display:flex;flex-wrap:wrap;gap:6px 22px;padding:0 0 18px}
.legal-links a{font-size:11px;color:#7188a6}
.legal-links a:hover{color:var(--blue)}
.footer-legal{display:inline-flex;gap:14px}
.footer-legal a{color:inherit}
.footer-legal a:hover{color:var(--blue)}
.auth-legal{text-align:center;font-size:11px;color:#8c9db3;margin-top:6px}
.auth-legal a{color:#6d82a0}
@media(max-width:760px){.legal-wrap{padding:26px 0 44px}.legal-body h1{font-size:29px}.footer-legal{flex-wrap:wrap}}

/* ---------- homepage service cards: full artwork, readable text, equal heights, highlighter ---------- */
.home-services{align-items:stretch}
.home-service{--hl:#eef59a;--accent:#5d7718;display:flex;flex-direction:column;background:#fff;transition:transform .2s,box-shadow .2s,border-color .2s}
.home-service.service-reports{--hl:#bfe6d8;--accent:#2f7564}
.home-service.service-resume{--hl:#fbdcb4;--accent:#9a5a19}
.home-service.service-document{--hl:#cfe0f5;--accent:#4f73a0}
.home-service.service-colour{--hl:#e2d5f8;--accent:#7d64b4}
.home-service.service-a3{--hl:#c4e8f4;--accent:#24708c}
.home-service:hover{transform:translateY(-4px);border-color:var(--accent);box-shadow:0 14px 30px #15355a14}
/* artwork: tall enough for the whole sheet; the caption sits on its own strip below it */
.home-page .service-art{height:236px;min-height:236px;padding:22px 0 44px;align-items:center}
.home-page .service-art .service-paper{transform-origin:center}
.home-page .service-art-label{bottom:0;height:40px;display:flex;align-items:center;justify-content:center;font-size:9px;letter-spacing:1.4px;color:#6f86a3;background:#ffffffb8;border-top:1px solid #ffffff;z-index:2}
/* copy */
.home-page .service-copy{display:flex;flex-direction:column;flex:1;padding:24px 24px 22px}
.home-page .service-copy h3{font-size:19px;line-height:1.35;margin:0 0 10px}
.service-copy .hl{background-image:linear-gradient(100deg,transparent 0 1%,var(--hl) 3% 97%,transparent 99%);background-repeat:no-repeat;background-size:100% 42%;background-position:0 88%;padding:0 3px;border-radius:2px;transition:background-size .35s ease}
.home-service:hover .service-copy .hl{background-size:100% 86%}
.home-page .service-copy p{font-size:13.5px;line-height:1.75;color:#6f829b;min-height:0;margin-bottom:16px}
.home-page .service-specs{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;margin-bottom:18px}
.service-specs .spec{background:#f3f7fc;border:1px solid #e3ebf5;color:#5d7591;border-radius:999px;padding:4px 10px;font-weight:550}
.home-page .service-price{font-size:12px;margin:0 0 18px;margin-top:auto;color:#7d8fa6}
.home-page .service-price>b{font-size:26px;color:var(--navy);background:linear-gradient(transparent 58%,var(--hl) 58% 92%,transparent 92%);padding:0 4px}
.home-page .service-price>span{font-size:12px;color:#7d8fa6}
.home-page .service-copy button{font-size:13px!important;color:var(--accent);font-weight:600}
.home-page .service-copy button:hover{color:var(--navy)}
.home-page .home-service-note{font-size:12px;margin-top:24px}
.home-page .service-filter-button{font-size:12px;padding:9px 18px}
@media(max-width:980px){
  .home-page .service-art{height:214px;min-height:214px}
  .home-page .service-copy h3{font-size:17px}
}
@media(max-width:760px){
  .home-service{display:flex}
  .home-page .service-art{height:220px;min-height:220px}
  .home-page .service-copy{padding:20px 18px}
  .home-page .service-copy p{font-size:13px}
}

/* ---------- phones (Android + iOS) ---------- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
a,button,label,summary{-webkit-tap-highlight-color:transparent}
.app-shell main,.home-mode #main,.auth-page{min-height:100dvh}
@media(max-width:760px){
  /* iOS Safari zooms into any field under 16px; keep them at 16px */
  input:not(.otp-input),select,textarea,.field input,.field select,.field textarea,.form-input,.search-box input,.phone-input input{font-size:16px}
  /* comfortable tap targets */
  .nav-item,.primary,.secondary,.filter-tabs a,.legal-tabs a,.service-filter-button,.account-pop a{min-height:44px;display:inline-flex;align-items:center}
  .nav-item{display:flex}
  /* status filters: one swipeable row instead of five wrapped rows */
  .filter-tabs,.filter-tabs.wrap{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin-left:-16px;margin-right:-16px;padding:0 16px}
  .filter-tabs::-webkit-scrollbar{display:none}
  .service-filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .service-filters::-webkit-scrollbar{display:none}
  .service-filter-button{flex-shrink:0}
  .legal-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-20px;margin-right:-20px;padding:0 20px}
  .legal-tabs::-webkit-scrollbar{display:none}
  .legal-tabs a{flex-shrink:0}
  /* tables -> cards */
  .table-wrap{overflow:visible}
  .table-wrap table.stack{min-width:0;width:100%;border-collapse:separate}
  table.stack thead{display:none}
  table.stack,table.stack tbody,table.stack tr,table.stack td{display:block;width:auto}
  table.stack tbody{padding:4px 0}
  table.stack tr{border:1px solid #e3eaf3;border-radius:12px;padding:6px 14px;margin:10px 12px;background:#fff}
  table.stack tr:hover{background:#fff}
  table.stack td{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:7px 0;border:0;text-align:right;font-size:14px;min-height:0}
  table.stack td::before{content:attr(data-label);flex-shrink:0;text-align:left;font-size:10.5px;letter-spacing:.9px;font-weight:600;color:#8a9bb2}
  table.stack td[data-label=""]::before{display:none}
  table.stack td:first-child{font-size:15px;font-weight:650;border-bottom:1px solid #eef2f7;padding-bottom:9px;margin-bottom:3px}
  table.stack td.table-empty,table.stack td[colspan]{justify-content:center;text-align:center}
  table.stack td.table-empty::before,table.stack td[colspan]::before{display:none}
  table.stack td input,table.stack td select{max-width:60%}
  table.stack td form{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
}

/* homepage header: live printer status (replaces the announcement strip) */
.shop-status{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:600;color:#2f8a6a;background:#eaf7f1;border:1px solid #d3eee2;border-radius:999px;padding:6px 11px;white-space:nowrap}
.shop-status i{width:7px;height:7px;border-radius:50%;background:#2fae7d;box-shadow:0 0 0 3px #2fae7d26}
.shop-status.off{color:#8a6a3a;background:#fbf4e8;border-color:#f1e3c8}
.shop-status.off i{background:#d39b45;box-shadow:0 0 0 3px #d39b4526}
@media(max-width:760px){.shop-status{font-size:10px;padding:5px 9px}.home-nav-actions{gap:10px}}
@media(max-width:420px){.shop-status{display:none}}
@media(max-width:760px){
  /* tables that stay tables on phones (receipt lines, key/value lists): fit the screen */
  .table-wrap table:not(.stack){min-width:0;width:100%}
  .table-wrap table:not(.stack) td{white-space:normal;overflow-wrap:anywhere}
  .receipt-page .table-wrap table th,.receipt-page .table-wrap table td{padding-left:6px;padding-right:6px;font-size:12.5px}
}
@media(max-width:760px){table.stack td:empty{display:none}}

/* client without a logo: its name as a wordmark, in its brand colour */
.brand-wordmark{display:flex;align-items:center;height:100%;font-size:26px;font-weight:800;letter-spacing:-.8px;color:var(--blue);white-space:nowrap;line-height:1}
.home-brand .brand-wordmark{font-size:28px}
.home-footer-top .home-brand .brand-wordmark{font-size:22px}
.auth-brand .brand-wordmark{font-size:30px;justify-content:center;padding:10px 0}
.rcpt-head .brand-wordmark{font-size:22px}
.home-brand:has(.brand-wordmark),.brand:has(.brand-wordmark){width:auto;overflow:visible}

/* ---------- platform console ---------- */
.field-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.field-grid .field{margin:0}
.domain-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.domain-row b{font-size:14px;color:var(--navy)}
.domain-row small{display:block;margin-top:6px;color:var(--muted);font-size:11px}
.domain-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}
.inline-form input:not([type=checkbox]),.inline-form select{flex:1;min-width:160px}
.check-inline{display:inline-flex;gap:6px;align-items:center;font-size:12px;color:var(--muted)}
.check-inline input{width:auto;min-height:0}
button.small,a.small{padding:7px 11px;font-size:11px;min-height:0}
.secondary.danger{color:#b4413c;border-color:#f1d4d2}
.brand-preview{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px dashed #d8e2ee;border-radius:12px;padding:14px 16px;margin-bottom:16px;min-height:78px;background:#fbfcfe}
.brand-preview img{max-height:56px;max-width:70%;object-fit:contain}
.brand-preview img.icon{width:48px;height:48px;border-radius:12px;box-shadow:0 2px 8px #0f2c5314}
.status-form{border-top:1px solid var(--line);padding-top:16px}
input[type=color]{height:42px;padding:4px;cursor:pointer}
@media(max-width:760px){.field-grid.two{grid-template-columns:1fr}.domain-row{flex-direction:column;align-items:flex-start}}
.portal-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:18px 22px;margin-bottom:24px}
.portal-links small{display:block;font-size:10px;letter-spacing:1.2px;font-weight:650;color:#8a9bb2;margin-bottom:6px}
.portal-links a,.portal-links span{font-size:14px;font-weight:600;color:var(--blue);overflow-wrap:anywhere}
.portal-links span{color:var(--muted);font-weight:500}
@media(max-width:760px){.portal-links{grid-template-columns:1fr}}
.portal-choice{border:1px solid var(--line);border-radius:12px;padding:16px 18px;margin:0 0 20px}
.portal-choice legend{padding:0 6px}
.portal-choice .choice{display:flex;gap:10px;align-items:flex-start;padding:9px 0;cursor:pointer}
.portal-choice .choice input{width:auto;min-height:0;margin-top:3px}
.portal-choice .choice b{display:block;font-size:13px;color:var(--navy)}
.portal-choice .choice small{display:block;font-size:12px;color:var(--muted);margin-top:2px}
.suffix-input{display:flex;align-items:stretch;flex:1;min-width:220px}
.suffix-input input{border-top-right-radius:0;border-bottom-right-radius:0;min-width:0}
.suffix-input span{display:flex;align-items:center;padding:0 10px;border:1px solid #dfe6ef;border-left:0;border-radius:0 7px 7px 0;background:#f5f8fc;color:var(--muted);font-size:12px;white-space:nowrap}
[data-for][hidden]{display:none}

/* ---------- service cards: obvious action + whole card clickable ---------- */
.home-service{cursor:pointer}
.home-service:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px #095dea1f}
.home-page .service-copy button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:4px;padding:13px 16px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:14px!important;font-weight:650;box-shadow:0 6px 14px #15355a14;transition:filter .15s,transform .15s}
.home-page .service-copy button .icon{width:18px;height:18px;transition:transform .2s}
.home-page .service-copy button:hover,.home-service:hover .service-copy button{color:#fff;filter:brightness(.92)}
.home-service:hover .service-copy button .icon{transform:translateX(4px)}
.home-service.flash{animation:card-flash 1.2s ease}
@keyframes card-flash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 4px var(--hl),0 14px 30px #15355a1f}}
/* the "Lecture notes / Project reports / ..." strip: real links now */
.home-use-inner>a{display:flex;align-items:center;gap:11px;font-size:12px;color:#7289a5;font-weight:550;border-radius:8px;padding:8px 10px;margin:-8px -10px;transition:background .15s,color .15s}
.home-use-inner>a:hover{background:#eef4fc;color:var(--blue)}
.home-use-inner>a .icon{height:20px;width:20px;color:#91a9c3;stroke-width:1.4}
@media(max-width:760px){.home-use-inner>a{font-size:11px;gap:8px}.home-use-inner>a .icon{width:18px;height:18px}}
