/* Account surfaces: compact image-led history and a readable receipt. */
.favorite-btn.favorite-heart{display:inline-grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;margin:0;border:1px solid #d6a6b6;border-radius:50%;background:#faf7f0;color:#875568;text-decoration:none;flex:0 0 44px;touch-action:manipulation}
.favorite-btn.favorite-heart.saved{background:#f0d8e1;color:#875568}
.favorite-btn.favorite-heart:hover{background:#f3e4e9}
.favorite-heart svg{display:block;width:21px;height:21px}
.cabinet .cabinet-heading{gap:20px;align-items:center}
.cabinet .cabinet-heading>div{min-width:0}
.cabinet .cabinet-heading .eyebrow{display:none}
.cabinet .cabinet-heading .script{overflow-wrap:anywhere;margin:0}
.cabinet .cabinet-heading [data-account-logout]{color:var(--ink,#44433f);text-decoration-color:#c1879b;text-underline-offset:6px;flex-shrink:0;min-height:44px}
.cabinet .cabinet-tabs{gap:28px;flex-wrap:wrap;border-bottom:0;padding:0;margin:28px 0 32px;overflow:visible}
.cabinet .cabinet-tabs a{position:relative;display:inline-flex;min-height:48px;align-items:center;padding:0 0 7px;margin:0;font-size:17px;font-weight:400;border:0;text-decoration:none}
.cabinet .cabinet-tabs a.active{font-weight:400;padding:0 0 7px;margin:0;border:0}
.cabinet .cabinet-tabs a::after{content:'';position:absolute;left:0;bottom:0;width:100%;height:7px;background:center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5C22 2 45 6 67 4S88 3 98 4M8 6C36 5 61 7 90 5' stroke='%23c78b9f' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");opacity:0;transition:opacity 140ms}
.cabinet .cabinet-tabs a.active::after{opacity:1}
#client-profile-form .profile-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:20px 32px;margin-top:28px}
#client-profile-form .profile-action-row>.form-actions{margin:0;min-width:180px}
#client-profile-form .profile-action-row>[data-profile-password]{margin:0;min-height:48px;padding:10px 0;text-decoration-color:#c1879b;text-underline-offset:5px}
.cabinet .history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin:0 0 8px}
.cabinet .history-heading h2{font:inherit;font-size:19px;line-height:1.4;margin:0}
.cabinet .history-heading .text-button{min-height:44px;font-size:12px;text-decoration-color:#c1879b;text-underline-offset:5px;white-space:nowrap}
.history-month>h3{font:inherit;font-size:15px;line-height:1.4;margin:30px 0 8px;color:#75606a}
.cabinet .account-history .orders-list{display:grid;gap:0}
.history-order{position:relative;border-bottom:1px solid #e4d4d9;padding:18px 0 16px}
.history-open{display:block;width:100%;border:0;border-radius:0;background:transparent;padding:0;text-align:left;cursor:pointer}
.history-open:hover:not(:disabled){filter:none}
.history-order-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.history-status{display:inline-flex;align-items:center;gap:8px;font-size:12px;line-height:1.4;color:#735a64}
.history-status svg{width:18px;height:18px;color:#906074;flex:0 0 18px}
.history-status-dot{width:6px;height:6px;border-radius:50%;background:#b37b8d;margin:0 6px;flex:0 0 6px}
.history-chevron{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:#875568}
.history-chevron svg{width:20px;height:20px}
.history-thumbs{display:flex;align-items:center;gap:10px;min-height:72px;margin:0 0 16px;color:#997180}
.history-thumbs>span{width:64px;height:72px;display:flex;align-items:center;justify-content:center;flex:0 1 64px;min-width:0}
.history-thumbs img{width:100%;height:100%;object-fit:contain;display:block}
.history-thumbs svg{width:32px;height:32px}
.history-thumbs>small{font-size:12px;white-space:nowrap}
.history-order-bottom{display:flex;justify-content:space-between;align-items:baseline;gap:18px}
.history-order-bottom time{font-size:12px;line-height:1.5;color:#75606a}
.history-order-bottom strong{font-size:16px;font-weight:400;white-space:nowrap}
.history-order .history-remove{display:block;margin:10px 0 0 auto;padding:8px 0;min-height:36px;font-size:11px;color:#75606a;text-decoration-color:#c1879b;text-underline-offset:4px}
.cabinet .account-history .order-history-tools{display:flex;align-items:center;justify-content:flex-start;gap:16px 28px;flex-wrap:wrap;margin:22px 0 0}
.order-history-tools .text-button{font-size:12px;min-height:44px;text-decoration-color:#c1879b;text-underline-offset:5px}
.history-dialog{width:min(620px,calc(100% - 40px));max-height:calc(100dvh - 48px);padding:0;border:1px solid #e1ccd4;border-radius:16px;background:#faf7f0;color:var(--ink,#44433f);overflow:hidden}
.history-dialog[open]{display:flex;flex-direction:column}
.history-dialog::backdrop{background:rgb(42 31 35 / .42)}
.history-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:28px 28px 20px;border-bottom:1px solid #e4d4d9;flex-shrink:0}
.history-dialog-head h2{font:inherit;font-size:24px;font-weight:400;line-height:1.35;margin:0 0 8px}
.history-dialog-head p{font-size:12px;line-height:1.5;color:#75606a;margin:0}
.history-dialog-close{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #d6a6b6;border-radius:50%;background:transparent;color:#875568}
.history-dialog-close svg{width:22px;height:22px}
.history-dialog-scroll{padding:22px 28px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.history-receiving{font-size:13px;line-height:1.6;margin:0 0 24px}
.history-receiving>span{font-size:14px}
.history-receiving p{margin:4px 0 0;color:#75606a}
.history-detail-lines{padding:0;margin:0;list-style:none}
.history-detail-lines>li{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:14px;align-items:center;margin:0;padding:12px 0}
.history-detail-lines>li>img,.history-no-photo{display:block;width:68px;height:76px;object-fit:contain}
.history-detail-lines>li>div{display:grid;gap:5px;min-width:0}
.history-detail-lines>li>div>span{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.history-detail-lines small{font-size:11px;line-height:1.5;color:#75606a}
.history-detail-lines b{font-size:12px;font-weight:400;white-space:nowrap}
.history-receipt-total{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin:20px 0 0;padding:20px 0;border-top:1px solid #e4d4d9;font-size:19px}
.history-receipt-total strong{font-weight:400}
.history-support{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;margin-top:12px}
.history-support .text-button{font-size:12px;min-height:44px;display:inline-flex;align-items:center;text-decoration-color:#c1879b;text-underline-offset:5px}
.history-dialog-actions{padding:16px 28px max(20px,env(safe-area-inset-bottom));border-top:1px solid #e4d4d9;flex-shrink:0;background:#faf7f0}
.history-dialog-actions .pill{display:block;width:100%;min-height:52px;margin:0}
.history-dialog :is(a,button):focus-visible,.history-open:focus-visible,.favorite-heart:focus-visible{outline:2px solid #bd8096;outline-offset:4px}
@media(max-width:600px){.cabinet .cabinet-tabs{gap:24px;margin:24px 0 28px}.cabinet .cabinet-tabs a{font-size:16px}.history-dialog{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;border-bottom:0;border-radius:20px 20px 0 0}.history-dialog-head{padding:24px 20px 18px}.history-dialog-head h2{font-size:22px}.history-dialog-scroll{padding:20px}.history-dialog-actions{padding-inline:20px}.history-detail-lines>li{grid-template-columns:58px minmax(0,1fr) auto;gap:10px}.history-detail-lines>li>img,.history-no-photo{width:58px;height:66px}.history-detail-lines b{font-size:11px}.history-order-bottom{gap:12px}.history-order-bottom time{font-size:11px}.history-thumbs{gap:8px}.history-thumbs>span{width:60px;flex-basis:60px}.cabinet .history-heading h2{font-size:17px}}
@media(max-width:360px){.cabinet .cabinet-tabs{gap:18px}.cabinet .cabinet-tabs a{font-size:15px}.history-thumbs>span{width:52px;flex-basis:52px}.history-detail-lines>li{grid-template-columns:48px minmax(0,1fr);gap:10px}.history-detail-lines>li>img,.history-no-photo{width:48px;height:58px}.history-detail-lines b{grid-column:2}.history-dialog-head p{font-size:11px}}
@media(prefers-reduced-motion:no-preference){.history-dialog[open]{animation:history-dialog-in 220ms cubic-bezier(.16,1,.3,1)}@keyframes history-dialog-in{from{opacity:.6;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}}
/* Reference structure: one compact row, a 2×2 product mosaic, and clear metadata. */
.history-order{padding:18px 0 12px}.history-open{display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto 1fr;gap:10px 18px;align-items:start;min-height:92px}
.history-order-top{grid-column:2;grid-row:1;margin:2px 0 0;gap:10px}.history-status{font-size:14px;line-height:1.45;color:var(--ink,#44433f)}
.history-thumbs{grid-column:1;grid-row:1/3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));width:92px;height:92px;min-height:0;gap:2px;margin:0;position:relative;background:#f3eceb;border-radius:12px;overflow:hidden}
.history-thumbs>span{display:grid;place-items:center;width:auto;height:auto;min-width:0;padding:3px;background:#f8f4ee}.history-thumbs>span>img{width:100%;height:100%;min-height:0;object-fit:contain}.history-thumbs>span>svg{width:24px;height:24px}
.history-thumbs>.history-mosaic-check{position:absolute;left:50%;top:50%;translate:-50% -50%;display:grid;place-items:center;width:23px;height:23px;border:2px solid #faf7f0;border-radius:50%;background:#b47d92;color:#fff;font-style:normal}.history-mosaic-check>svg{width:18px;height:18px}
.history-thumbs>small{position:absolute;bottom:2px;right:3px;font-size:10px;padding:0 3px;background:#f8f4ee;color:#735a64}
.history-order-bottom{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;align-self:end;gap:4px 12px;padding-bottom:2px}.history-order-bottom strong{order:-1;font-size:13px}.history-order-bottom time{font-size:11px;line-height:1.6}
.history-order .history-remove{margin:4px 0 0 auto;min-height:32px;padding:4px 0}.history-month>h3{font-size:19px;line-height:1.4;margin:32px 0 10px;color:var(--ink,#44433f)}
@media(max-width:360px){.history-open{grid-template-columns:80px minmax(0,1fr);gap:8px 12px}.history-thumbs{width:80px;height:80px}.history-status{font-size:12px}.history-order-bottom time{font-size:10px}}
/* Thumbnails have no paper tiles; use the existing alpha cutouts unchanged. */
#app .cabinet .account-history .history-open{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;gap:8px 16px!important;min-width:0!important;max-width:100%!important;min-height:88px!important}
#app .cabinet .account-history .history-thumbs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;width:88px!important;height:88px!important;max-width:88px!important;max-height:88px!important;min-width:0!important;min-height:0!important;background:transparent!important;gap:2px!important;margin:0!important;overflow:hidden;align-self:start}
#app .cabinet .account-history .history-thumbs>span{width:43px!important;height:43px!important;min-width:0!important;min-height:0!important;padding:0!important;background:transparent!important}
#app .cabinet .account-history .history-thumbs img{display:block!important;width:100%!important;height:100%!important;max-width:43px!important;max-height:43px!important;object-fit:contain!important;background:transparent!important}
.history-detail-lines>li>img{background:transparent}
/* Keep a 44px tap target; the visible circle is only 30px. */
.favorite-btn.favorite-heart,.product-dialog .product-heading .favorite-heart{position:relative;width:44px;height:44px;min-width:44px;min-height:44px;flex-basis:44px;padding:0!important;background:transparent!important;border:0!important;color:#9b6c7e}
.favorite-btn.favorite-heart::before{content:'';position:absolute;inset:7px;border:1px solid #d5b6c2;border-radius:50%;background:#faf8f3}
.favorite-btn.favorite-heart.saved::before{background:#f1dce5;border-color:#cb9eb0}.favorite-btn.favorite-heart svg{position:relative;width:16px;height:16px;z-index:1}.favorite-btn.favorite-heart:hover::before{background:#f4e7ec}
.product-card>.favorite-btn.favorite-heart{position:absolute;top:2px;right:0}

/* favorite-feedback-v1 */
.favorite-btn.favorite-heart[aria-pressed="false"]::before{background:#faf8f3}.favorite-btn.favorite-heart[aria-pressed="true"]::before{background:#f1dce5}
