/* f.html and account.html: a Win95 window holding a clean, mobile-first card */
body.apppage { overflow: auto; height: auto; }
.apppage .desktop { height: auto; min-height: 100vh; min-height: 100dvh; }
.apppage .desktop > .window { flex: 1 0 auto; width: min(560px, calc(100% - 16px)); margin-top: 8px; }
.appmain { background: #fff; padding: 22px 22px 28px; flex: 1 0 auto; display: flex; flex-direction: column; gap: 4px; }
.ftitle { margin: 4px 0 6px; font: 600 34px/1.1 Fredoka, var(--ui); }
.fsub { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.fh2 { margin: 18px 0 8px; font: 600 20px Fredoka, var(--ui); display: flex; align-items: center; gap: 8px; }
.codeline { margin: 0 0 14px; color: var(--muted); font: 500 15px ui-monospace, Menlo, monospace; letter-spacing: .5px; }
.demobar { background: var(--butter); border: 2px solid var(--ink); padding: 8px 10px; margin: 0 0 14px; font-size: 13.5px; }
.cform.signin, .appmain .cform { background: none; border: 0; box-shadow: none; padding: 0; }
.appmain .field { margin-bottom: 16px; }
.csec.nobd legend { border: 0; padding: 0 0 8px; margin: 0; }
.lab { font: 600 15px var(--body); }
.chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.chip2 { padding: 10px 16px; font: 600 15px var(--body); color: var(--ink); background: #EEF1F7; border: 2px solid transparent; border-radius: 99px; min-height: 44px; }
.chip2.on, .chip2:hover { background: var(--hot); border-color: var(--ink); }
.appmain .orderbtn.wide { display: block; text-align: center; text-decoration: none; }
.orderbtn.big { font-size: 20px; padding: 18px 24px; }
.fhint { margin: 8px 0 14px; font-size: 14px; color: var(--muted); min-height: 1.2em; }
.more { margin: 6px 0 12px; }
.more summary { font: 600 15px var(--body); padding: 10px 0; color: var(--ink); }
.more[open] summary { background: none; }
.more textarea { width: 100%; padding: 11px 12px; font: 400 15px var(--body); border: 1px solid #9AA3B8; border-radius: 6px; box-shadow: none; resize: vertical; }
.linkrow { margin: 4px 0 6px; text-align: center; }
.previewbar, .lostbar { margin: 0 0 12px; padding: 9px 12px; font-size: 14px; font-weight: 600; border: 2px solid var(--ink); }
.previewbar { background: var(--mint); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.stickerrow { display: flex; gap: 8px; align-items: stretch; }
.stickerrow .stickercard { flex: 1; }
.btn95.danger { color: #9B1C1C; }
.lostbar { background: #FFD7D0; }
.ownernote { margin: 0 0 14px; padding: 12px 14px; background: #F5F7FA; border-left: 4px solid var(--hot); font-size: 15px; }
.map { height: 260px; border: 1px solid #9AA3B8; border-radius: 6px; margin-top: 8px; position: relative; z-index: 0; }
#pinBox { position: relative; }
#pinBox .pin { position: absolute; left: 50%; top: 138px; width: 22px; height: 22px; margin: -22px 0 0 -11px; background: #E5484D; border: 3px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); z-index: 500; pointer-events: none; }
.switch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #F5F7FA; border-radius: 6px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--ink); }
.switch small { display: block; color: var(--muted); font-size: 13px; }
.badge { background: var(--hot); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 10px; font: 600 12px var(--body); }
.find { border: 1px solid #E4E8F2; border-radius: 6px; padding: 12px 14px; margin-bottom: 10px; }
.find.new { border-color: var(--ink); box-shadow: 3px 3px 0 var(--hot); }
.find p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.ownerbtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.ownerbtns .btn95 { text-decoration: none; display: inline-block; }
.skel { color: var(--muted); }
.stickerlist { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.stickercard { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #E4E8F2; border-radius: 8px; text-decoration: none; color: var(--ink); }
.stickercard:hover { border-color: var(--ink); }
.stickercard b { font: 600 18px Fredoka, var(--ui); display: block; }
.stickercard span { color: var(--muted); font: 500 13px ui-monospace, Menlo, monospace; }
.stickercard .badge { margin-left: auto; }
@media (max-width: 560px) { .appmain { padding: 16px 14px 22px; } .ftitle { font-size: 28px; } }

[hidden] { display: none !important; }
.cform .switch input[type=checkbox] { width: 24px; min-height: 0; height: 24px; flex: none; padding: 0; }
.switch > span { display: grid; gap: 2px; }
.cform .switch { display: flex; margin: 0; }
.field label { text-align: left; }

p.ferr { color: #B4302A; font-weight: 600; margin: 0 0 12px; line-height: 1.4; }

/* .opt is also the Studio's tool-option style (a grid cell): inside form labels it must be plain inline text */
.field .opt { display: inline; height: auto; padding: 0; place-items: initial; background: none; }

/* the thank-you screen: a celebration, in the site's colours */
.appmain.happy { background: linear-gradient(180deg, #FFE3F1 0%, #E4F1FF 52%, #FFFFFF 100%); position: relative; overflow: hidden; }
.thanks { position: relative; z-index: 1; text-align: center; display: grid; justify-items: center; gap: 6px; padding: 12px 0 8px; }
.heart { display: block; margin: 6px auto 4px; filter: drop-shadow(0 5px 0 #C9B8FF); animation: beat 1.4s ease-in-out infinite; image-rendering: pixelated; }
.ftitle.big { font-size: 44px; margin: 6px 0; }
.bigsub { margin: 0 auto 14px; max-width: 26em; font-size: 18px; line-height: 1.5; }
.thanks .ownernote { text-align: left; max-width: 28em; width: 100%; background: #fff; }
.makeown { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 440px; margin: 12px auto 6px; padding: 22px 28px;
  font: 600 24px/1.15 var(--ui); color: var(--ink); text-decoration: none; text-align: center;
  background: linear-gradient(100deg, #FF8CC6 0%, #FFC94A 55%, #FF9F5A 100%); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.makeown b { font-size: 28px; }
.makeown:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: 0 9px 0 var(--ink); }
.makeown:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.addcontact { display: grid; gap: 8px; width: 100%; max-width: 440px; margin: 6px auto 0; text-align: left; }
.addcontact label { font: 600 17px var(--body); text-align: center; }
.addcontact input { width: 100%; font-size: 17px; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 10px; background: #fff; }
.addcontact .fhint { margin: 0; text-align: center; }
.sentok { margin: 6px 0; text-align: center; font: 600 20px var(--ui); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti i { position: absolute; top: -14px; width: 10px; height: 10px; border: 2px solid var(--ink); animation: fall linear infinite; }
.confetti i:nth-child(3n) { border-radius: 50%; }
.confetti i:nth-child(4n) { width: 14px; height: 6px; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(560px) rotate(300deg); opacity: .9; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .heart { animation: none; } }
@media (max-width: 560px) { .ftitle.big { font-size: 36px; } .makeown { font-size: 21px; padding: 20px 18px; } }

/* admin page: wide window, order table */
.adminpage .desktop > .window { width: min(1080px, calc(100% - 16px)); }
.adm-tabs { display: flex; gap: 6px; margin: 0 0 14px; }
.adm-tabs .on { font-weight: 700; box-shadow: inset 2px 2px 0 #9AA3B8; }
.adm-h2 { font: 600 16px var(--body); margin: 22px 0 8px; }
.adm-bar label { display: flex; align-items: center; gap: 6px; }
.adm-bar input { padding: 7px 9px; font: 400 14px var(--body); border: 1px solid #9AA3B8; border-radius: 6px; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0 0 12px; }
.adm-bar select { padding: 8px 10px; font: 400 14px var(--body); border: 1px solid #9AA3B8; border-radius: 6px; background: #fff; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th { text-align: left; padding: 8px; border-bottom: 2px solid var(--ink); font: 600 13px var(--body); white-space: nowrap; }
.adm-table td { padding: 8px; border-bottom: 1px solid #E4E8F2; vertical-align: top; }
.adm-table tr.sel td { background: #F1ECFF; }
.adm-table .ref { font: 600 13px ui-monospace, Menlo, monospace; }
.st { display: inline-block; padding: 2px 10px; border: 2px solid var(--ink); border-radius: 99px; font: 600 12px var(--body); white-space: nowrap; }
.st.paid { background: var(--mint); } .st.awaiting_payment { background: var(--butter); } .st.printed { background: #9BD7FF; } .st.shipped { background: #D7C9FF; } .st.cancelled { background: #FFD7D0; }
.adm-detail td { background: #F5F7FA; font-size: 13.5px; line-height: 1.5; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; align-items: center; }
.adm-log { margin: 10px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.adm-help { font-size: 13.5px; color: var(--muted); line-height: 1.5; background: #F5F7FA; padding: 10px 12px; border-radius: 6px; }
.adm-scroll { overflow-x: auto; }

/* the finder page shown inside the Studio's preview frame: just the content, filling the frame, no site chrome or page background */
body.embedded, .embedded .desktop { background: #fff; background-image: none; }
.embedded .brandbar, .embedded .taskbar, .embedded .legalrow, .embedded .titlebar { display: none; }
.embedded .desktop { height: auto; min-height: 0; width: 100%; padding: 0; }
.embedded.apppage .desktop > .window, .embedded .window { width: 100%; max-width: none; margin: 0; padding: 0; background: #fff; border: 0; box-shadow: none; }
.embedded .appmain { padding: 16px; }

/* promo stickers tab */
.promo-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.promo-form .adm-bar { margin-bottom: 10px; }
.promo-form input, .promo-form select { padding: 8px 10px; font: 400 14px var(--body); border: 1px solid #9AA3B8; border-radius: 6px; background: #fff; }
.promo-prev { display: grid; justify-items: center; gap: 6px; background: linear-gradient(135deg, #DCEBFF, #F6DCEB); border: 2px solid var(--ink); padding: 16px 10px; }
.promo-prev canvas { width: 100%; max-width: 420px; height: auto; display: block; }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } }
