/* New marketplace screens share UDS tokens and both existing themes. */
.loyalty-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--space-8); margin:var(--space-16) 0; }
.loyalty-strip button { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:var(--space-4); min-width:0; padding:var(--space-12) var(--space-10); border:1px solid var(--line); border-radius:var(--radius-16); background:linear-gradient(140deg,#f5f7fcee,#dce4f3bb); box-shadow:inset 0 1px 0 #ffffffb0; }
.loyalty-strip strong { font-size:14px; overflow-wrap:anywhere; }
.loyalty-strip small { font-size:10px; color:var(--muted); }
.loyalty-symbol { color:var(--theme-accent); font-size:24px; line-height:1.1; }
.market-shortcuts { display:flex; gap:var(--space-8); margin:var(--space-12) 0; }
.market-shortcuts .secondary { flex:1; font-size:12px; }
.market-shortcuts + [data-market="repeat"] { margin-bottom:var(--space-12); }
.loyalty-card { padding:var(--space-20); border:1px solid #7184b266; border-radius:var(--radius-16); color:#fff; background:radial-gradient(ellipse at 100% 0%,#6379b677,transparent 70%),linear-gradient(125deg,#172444,#23356c 65%,#3b5085); margin-bottom:var(--space-16); box-shadow:inset 0 1px 0 #ffffff26,0 8px 20px #23356c18; }
.loyalty-card h2 { margin-top:var(--space-12); font-size:24px; }
.loyalty-card p { color:#e0e8ff; }
.loyalty-balance { font-size:38px; font-weight:750; letter-spacing:-1px; }
.loyalty-balance small { font-size:16px; letter-spacing:0; font-weight:500; }
.qr-frame { width:224px; max-width:100%; margin:var(--space-20) auto var(--space-12); padding:var(--space-8); background:#fff; border-radius:var(--radius-16); }
.qr-frame img { display:block; width:100%; height:auto; }
.resident-number { text-align:center; font-weight:700; letter-spacing:2px; }
.market-feedback { padding:var(--space-12); border-radius:var(--radius-12); background:var(--theme-surface-raised); color:var(--theme-accent); font-size:13px; }
.market-total .total { font-size:19px; border-top:1px solid var(--line); margin-top:var(--space-8); padding-top:var(--space-16); }
.market-total .total strong { font-size:24px; color:var(--theme-accent); }
.page-body .full + .full { margin-top:var(--space-8); }
.favorite-card { display:flex; align-items:center; padding:var(--space-12); gap:var(--space-8); }
.favorite-card > button:first-child { display:flex; align-items:center; gap:var(--space-12); flex:1; min-width:0; border:0; background:none; text-align:left; padding:0; }
.favorite-card img { width:60px; height:60px; object-fit:contain; flex:none; }
.favorite-card strong { display:block; font-size:14px; }
.favorite-card small { display:block; margin-top:var(--space-8); color:var(--muted); }
.favorite-toggle { width:44px; height:44px; flex:none; font-size:25px; color:var(--theme-accent); border:1px solid var(--line); border-radius:var(--radius-12); background:var(--theme-surface-raised); }
.cleaning-proof { margin:var(--space-16) 0; position:relative; }
.cleaning-proof img { width:100%; height:auto; display:block; border-radius:var(--radius-16); }
.cleaning-proof > div { display:grid; grid-template-columns:1fr 1fr; position:absolute; left:var(--space-12); right:var(--space-12); top:var(--space-12); gap:var(--space-12); }
.cleaning-proof > div span { justify-self:start; font-size:11px; font-weight:700; color:#fff; background:#172444bf; backdrop-filter:blur(8px); padding:var(--space-4) var(--space-10); border-radius:var(--radius-8); }
.cleaning-proof figcaption { font-size:10px; color:var(--muted); padding-top:var(--space-8); }
.market-recommend { display:flex; overflow-x:auto; gap:var(--space-8); padding:2px 2px var(--space-8); }
.market-recommend .card { flex:0 0 138px; text-align:left; padding:var(--space-12); }
.market-recommend img { width:72px; height:72px; object-fit:contain; display:block; margin:0 auto var(--space-8); }
.market-recommend strong { display:block; min-height:34px; font-size:12px; }
.market-recommend small { display:block; color:var(--theme-accent); margin-top:var(--space-8); }
.bonus-operation { display:flex; align-items:flex-start; gap:var(--space-12); padding:var(--space-12) 0; border-bottom:1px solid var(--line); }
.bonus-operation:last-child { border:0; }
.bonus-operation > strong { width:65px; flex:none; font-size:17px; color:#b74835; }
.bonus-operation > strong.positive { color:#27704d; }
.bonus-operation > span { font-size:12px; line-height:1.5; }
.bonus-operation small { display:block; color:var(--muted); margin-top:var(--space-4); }
.expiry-note { border-color:#c591584d; background:#f6e9d766; }
.plan-symbol { display:grid; place-items:center; float:right; width:44px; height:44px; border-radius:var(--radius-12); background:var(--theme-surface-raised); color:var(--theme-accent); font-size:30px; }
.plan-art { float:right; display:grid; place-items:center; width:66px; height:66px; margin-left:var(--space-8); background:var(--theme-surface-raised); border-radius:var(--radius-16); }
.plan-art img { width:60px; height:60px; object-fit:contain; }
.plan-card h2 { margin-top:0; }
.plan-card .list-plain { list-style:none; padding-left:0; }
.plan-footer { display:flex; align-items:center; justify-content:space-between; gap:var(--space-8); }
.plan-footer > strong { font-size:21px; color:var(--theme-accent); }
.plan-footer small { font-size:11px; font-weight:400; color:var(--muted); }
.page-body progress { width:100%; height:8px; border:0; border-radius:20px; overflow:hidden; background:var(--line); accent-color:var(--theme-accent); }
.page-body progress::-webkit-progress-bar { background:var(--line); border-radius:20px; }
.page-body progress::-webkit-progress-value { background:var(--theme-accent); border-radius:20px; }
.page-body details.card > summary { font-size:14px; font-weight:650; cursor:pointer; line-height:1.5; }
.page-body details.card[open] > summary { margin-bottom:var(--space-12); }
.page-body input[type="file"] { padding:var(--space-12); font-size:12px; max-width:100%; }
.page-body input[type="file"]::file-selector-button { border:0; background:var(--theme-surface-raised); color:var(--theme-accent); border-radius:var(--radius-8); padding:var(--space-8); margin-right:var(--space-8); }
.page-body .field input[type="number"] { width:100%; }
.metrics-grid { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-8); }
.metrics-grid .card { margin:0; padding:var(--space-12); }
.metrics-grid small { display:block; color:var(--muted); font-size:11px; min-height:29px; }
.metrics-grid strong { display:block; font-size:27px; color:var(--theme-accent); margin-top:var(--space-8); }
.market-total .info-pair, .plan-footer, .bonus-operation { overflow-wrap:anywhere; }
:root[data-theme="dark"] .loyalty-strip button { border-color:#7185ba55; background:linear-gradient(140deg,#3d507e99,#23356c80); box-shadow:inset 0 1px 0 #ffffff15; backdrop-filter:blur(14px); }
:root[data-theme="dark"] .loyalty-card { background:radial-gradient(ellipse at 100% 0%,#728cbd44,transparent 70%),linear-gradient(125deg,#1c2943,#23356c 65%,#3b5085); }
:root[data-theme="dark"] .bonus-operation > strong { color:#ffa58e; }
:root[data-theme="dark"] .bonus-operation > strong.positive { color:#a0d9b9; }
:root[data-theme="dark"] .expiry-note { background:#70573533; border-color:#bc975044; }
:root[data-theme="dark"] .personal-offer { background:linear-gradient(125deg,#30426799,#23356c66); }
@media(max-width:350px) {
  .loyalty-strip { gap:var(--space-4); }
  .loyalty-strip button { padding:var(--space-10) var(--space-8); }
  .loyalty-strip strong { font-size:12px; }
  .market-shortcuts { flex-direction:column; }
  .plan-footer { align-items:flex-start; flex-direction:column; }
  .plan-footer .primary { width:100%; }
  .view-head h1 { overflow-wrap:anywhere; }
}
@media print {
  body, .app, .content { display:block!important; width:auto!important; height:auto!important; overflow:visible!important; background:#fff!important; color:#172444!important; box-shadow:none!important; }
  body * { visibility:hidden; }
  #report-print, #report-print * { visibility:visible; }
  #report-print { position:absolute; left:0; top:0; width:100%; }
  #report-print .card { background:#fff!important; color:#172444!important; break-inside:avoid; }
  #report-print strong { color:#23356c!important; }
  nav { display:none!important; }
}

/* UDS 3D loyalty illustrations with themed gradient art panels. */
.loyalty-strip button { overflow:hidden; position:relative; padding:0 var(--space-10) var(--space-12); min-height:150px; gap:var(--space-4); background:linear-gradient(155deg,#FFFFFFF2,#E9EEF8D9); }
.loyalty-strip .loyalty-symbol { display:grid; place-items:center; width:calc(100% + 20px); height:88px; margin:0 -10px var(--space-4); flex:none; background:radial-gradient(ellipse at 30% 12%,#FFFFFFCC,transparent 65%),linear-gradient(135deg,#D9E3F5,#E8EAF8 60%,#F4DED5); }
.loyalty-strip button:nth-child(2) .loyalty-symbol { background:radial-gradient(ellipse at 80% 10%,#FFE8DACC,transparent 65%),linear-gradient(135deg,#E3E8F6,#D4E0F4); }
.loyalty-strip button:nth-child(3) .loyalty-symbol { background:radial-gradient(ellipse at 20% 0%,#FFFFFFCC,transparent 65%),linear-gradient(135deg,#E8DEF2,#D8E3F6 70%,#EAEFF9); }
.loyalty-symbol img { display:block; width:96px; height:96px; object-fit:contain; margin-top:-4px; filter:drop-shadow(0 4px 5px #23356C18); pointer-events:none; }
.loyalty-strip strong { line-height:1.25; }
.loyalty-strip small { line-height:1.4; }
:root[data-theme="dark"] .loyalty-strip button { background:linear-gradient(145deg,#30416BE6,#202D4DE6); border-color:#7086BB66; }
:root[data-theme="dark"] .loyalty-strip .loyalty-symbol { background:radial-gradient(ellipse at 25% 0%,#7B98D54D,transparent 75%),linear-gradient(135deg,#435B91,#293B69 75%,#57475B); }
:root[data-theme="dark"] .loyalty-strip button:nth-child(2) .loyalty-symbol { background:radial-gradient(ellipse at 90% 10%,#D7977A33,transparent 65%),linear-gradient(135deg,#354A7C,#526691); }
:root[data-theme="dark"] .loyalty-strip button:nth-child(3) .loyalty-symbol { background:radial-gradient(ellipse at 20% 0%,#B5A1DB33,transparent 65%),linear-gradient(135deg,#4B4979,#344E7B); }
@media(max-width:350px) {
 .loyalty-strip button { padding:0 var(--space-8) var(--space-10); min-height:140px; }
 .loyalty-strip .loyalty-symbol { width:calc(100% + 16px); margin-left:-8px; margin-right:-8px; height:76px; }
 .loyalty-symbol img { width:84px; height:84px; }
}
