/* The app's look (redesign): every screen in the native app, so nothing keeps the old
   design. Scoped to html.is-app (set only in the app); the website is unchanged.
   Archivo for headings, pill buttons, larger fields and type, rounder cards, sheets. */
html.is-app{--serif:'Archivo',var(--sans);--radius:24px}
html.is-app body{font-size:16px;background:var(--paper)}
/* every heading in the app */
html.is-app :is(h1,h2,h3){font-family:'Archivo',var(--sans);font-weight:800;font-stretch:90%;letter-spacing:-.015em}
html.is-app select{appearance:none;-webkit-appearance:none;border-radius:999px;border:1.5px solid var(--line);background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23776c61' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;padding:12px 40px 12px 16px;font-size:16px;font-weight:600;color:var(--ink);min-height:48px;max-width:100%}
/* every heading that used the old serif */
html.is-app :is(.hero h1,.section-head h2,.card-body h3,.empty-state h2,.seller-banner h2,.newsletter h2,.page-top h1,.profile-heading h1,.detail-main h2,.pickup-card h2,.dashboard-header h1,.metric strong,.mini-plan h3,.join-copy h1,.join-form h2,.modal-header h2,.not-found h1,.account-heading,.settings-group h2,.editor-panel h2,.profile-sub h1){font-family:'Archivo',var(--sans);font-weight:800;font-stretch:90%;letter-spacing:-.015em}
html.is-app .page-top h1,html.is-app .profile-heading h1,html.is-app .dashboard-header h1,html.is-app .join-copy h1{font-size:32px;line-height:1.08;margin:0 0 10px}
html.is-app .section-head h2,html.is-app .detail-main h2,html.is-app .join-form h2{font-size:24px;line-height:1.12}
html.is-app .card-body h3{font-size:18px}
html.is-app .settings-group h2{font-family:var(--sans);font-weight:700;font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
/* pages: no website header or footer; room for the status bar and the tab bar */
html.is-app .site-header,html.is-app .site-footer,html.is-app .footer-note,html.is-app .desktop-nav{display:none}
html.is-app body:not(.is-intro) main:not(.is-home){padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:calc(110px + env(safe-area-inset-bottom))}
html.is-app .container{width:calc(100% - 32px)}
html.is-app .back-link{font-size:15px;font-weight:600;color:var(--ink);margin-bottom:14px;min-height:40px}
html.is-app .back-link .icon{width:18px;height:18px}
/* buttons are pills */
html.is-app .btn{border-radius:999px;min-height:48px;padding:12px 20px;font-size:15px;font-weight:700;white-space:normal}
html.is-app .btn-sm{min-height:40px;padding:8px 16px;font-size:14px}
html.is-app .btn-secondary{background:var(--white);border:1.5px solid var(--line);color:var(--ink)}
html.is-app .btn-primary{box-shadow:0 6px 16px #ba4b2a33}
html.is-app .btn-wide{width:100%}
html.is-app .text-link{font-size:15px}
html.is-app .icon-btn{border-radius:50%}
/* fields */
html.is-app .field span{font-size:14px;font-weight:700}
html.is-app .field input,html.is-app .field select,html.is-app .field textarea{border-radius:16px;border:1.5px solid var(--line);background:var(--white);padding:13px 15px;font-size:16px;min-height:50px}
html.is-app .field textarea{min-height:110px}
html.is-app .field input:focus-visible,html.is-app .field select:focus-visible,html.is-app .field textarea:focus-visible{outline:0;border-color:var(--orange)}
html.is-app .field{min-width:0}
html.is-app .field>:is(input,textarea,select){box-sizing:border-box;width:100%;min-width:0;line-height:1.35}
html.is-app .field>input:not([type=time]):not([type=date]){height:auto;min-height:54px}
html.is-app .field>:is(input[type=time],input[type=date]){display:block;min-height:54px;padding:10px 12px;text-align:left}
html.is-app .field>:is(input[type=time],input[type=date])::-webkit-date-and-time-value{text-align:left;min-height:1.5em}
html.is-app .field>textarea{overflow-wrap:anywhere}
html.is-app .category-pick .sell-type-options input[type=checkbox],html.is-app .sell-formats .sell-format-options input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:18px;max-height:18px;padding:0;margin:0;flex:0 0 18px;border:0;border-radius:4px;background:transparent}
html.is-app body:has(.seller-page) .bottom-nav.app-tabs,html.is-app body:has(.shop-page) .bottom-nav.app-tabs,html.is-app body:has(:is(input,textarea,select):focus) .bottom-nav.app-tabs{display:none}
html.is-app body:not(.v2-on):not(.is-intro)::before{content:'';position:fixed;inset:0 0 auto;height:max(44px,env(safe-area-inset-top,0px));background:var(--paper);z-index:59;pointer-events:none}
html.is-app .hidden-shop-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--line)}
html.is-app .hidden-shop-row span{min-width:0;overflow-wrap:anywhere;font-weight:700}
html.is-app .hidden-shop-row .btn{width:auto;flex:none}
html.is-app #modal .photo-permission{display:block;text-align:left;margin:8px 0 16px}
html.is-app #modal .photo-permission p{margin:0 0 10px}
html.is-app .check,html.is-app label.check{font-size:15px}
html.is-app .chip,html.is-app .pick-chip,html.is-app .type-chip{border-radius:999px;font-size:14.5px}
/* cards, groups, panels */
html.is-app :is(.bakery-card,.settings-group,.editor-panel,.pickup-card,.metric,.notice,.empty-state,.cart-map-row,.join-form,.mini-plan,.profile-card,.alerts-row,.feed-card,.update-card){border-radius:24px}
html.is-app .settings-group{border:0;box-shadow:0 2px 14px #3a2a1a12;overflow:hidden}
html.is-app .settings-group>a,html.is-app .settings-group>button{min-height:54px;font-size:16px}
html.is-app .bakery-card{border:0;box-shadow:0 6px 22px #3a2a1a14}
html.is-app small,html.is-app .microcopy,html.is-app .small-note{font-size:13.5px}
html.is-app p{font-size:15.5px}
/* every dialog is a sheet in the app (see intro.css #modal.is-sheet) */
html.is-app #modal:not(.is-sheet){margin:auto 0 0;width:100%;max-width:none;border:0;border-radius:28px 28px 0 0}
/* toasts float above the tab bar */
html.is-app #toast{bottom:calc(96px + env(safe-area-inset-bottom));border-radius:999px}

/* Following: Shops · Updates */
html.is-app .app-seg{display:flex;gap:4px;padding:4px;border-radius:999px;background:#efe6d8;margin:0 0 18px;max-width:320px}
html.is-app .app-seg a{flex:1;position:relative;text-align:center;padding:10px 0;border-radius:999px;font-weight:700;font-size:15px;color:var(--muted);text-decoration:none}
html.is-app .app-seg a.is-on{background:#fff;color:var(--ink);box-shadow:0 2px 8px #3a2a1a1a}
html.is-app .app-seg .tab-dot{position:absolute;top:9px;right:22px;width:8px;height:8px;border-radius:50%;background:var(--orange)}
/* ---- crawls ---- */
.crawl-page .crawl-rows,.crawl-page .crawl-stopcards{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.crawl-row,.crawl-stopcard{display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:22px;background:var(--white);box-shadow:0 2px 14px #3a2a1a12;color:var(--ink);text-decoration:none}
.crawl-row>span:nth-child(2),.crawl-stopcard>span{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.crawl-row b,.crawl-stopcard b{font-family:'Archivo',var(--sans);font-weight:800;font-stretch:92%;font-size:17px}
.crawl-row small,.crawl-stopcard small{color:var(--muted);font-size:13.5px}
.crawl-thumb{width:56px;height:56px;border-radius:16px;background:var(--peach) center/cover;display:grid;place-items:center;flex:none;color:var(--orange)}
.crawl-stopcard img,.crawl-stop img,.crawl-found img{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:none;background:var(--peach)}
.crawl-hero{height:210px;border-radius:28px;background:var(--peach) center/cover;margin:0 0 16px;box-shadow:0 8px 24px #3a2a1a1f}
.crawl-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.crawl-desc{white-space:pre-line;line-height:1.55}
.crawl-h2{font-size:22px;margin:22px 0 4px}
.crawl-section{padding:18px;display:flex;flex-direction:column;gap:12px}
.crawl-cover{height:170px;border-radius:20px;background:#efe6d8 center/cover;display:grid;place-items:center;color:var(--muted);font-weight:600}
.crawl-upload{align-self:flex-start;cursor:pointer}
.crawl-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.crawl-found,.crawl-stops{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.crawl-found li,.crawl-stop{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:18px;background:var(--paper)}
.crawl-found li>span,.crawl-stop>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column}
.crawl-found small,.crawl-stop small{color:var(--muted);font-size:13px}
.crawl-stop-tools{display:flex;gap:4px}
.crawl-pill{font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:999px;background:#efe6d8;color:var(--muted);white-space:nowrap}
.crawl-pill.is-joined{background:#e3eedd;color:var(--green)}.crawl-pill.is-declined{background:#f5e1dc;color:var(--orange-dark)}
.crawl-invite{margin:14px 0;padding:18px;border-radius:24px;background:linear-gradient(135deg,#fff7ef,#f6e4d4);box-shadow:0 4px 18px #ba4b2a1f}
.crawl-invite h2{font-size:21px;margin:4px 0 6px}
.crawl-new{display:flex;flex-direction:column;gap:10px;margin:8px 0 6px}
.hm-chip[data-map-action="crawl"]{background:var(--ink);color:#fff}
.hm-chip[data-map-action="crawl"].is-on{background:var(--orange)}

/* shop page: the three big actions */
.shop-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px;margin:14px 0 10px}
.shop-tile{height:84px;border-radius:22px;border:1px solid var(--line);background:var(--white);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font:700 14.5px var(--sans);color:var(--ink);text-decoration:none;box-shadow:0 2px 10px #3a2a1a0d}
.shop-tile .icon{width:24px;height:24px;color:var(--orange)}
.shop-tile.is-on{background:var(--orange);border-color:var(--orange);color:#fff}.shop-tile.is-on .icon{color:#fff}
.shop-tile:active{transform:scale(.97)}
html.is-app .shop-tiles~.profile-actions [data-action="follow"]{display:none}

/* the app's alerts sheet */
html.is-app .app-alerts{display:grid;gap:10px;text-align:left}
html.is-app .app-alerts .alert-note{text-align:center}
html.is-app .app-alerts .alert-row{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;background:#fffdf9;border:1px solid #ebe2d6}
html.is-app .app-alerts .alert-row img{flex:none;width:40px;height:40px;object-fit:contain}
html.is-app .app-alerts .alert-what{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html.is-app .app-alerts .alert-what b{font-size:16px}
html.is-app .app-alerts .alert-what small{font-size:13px;color:#7a6c62}
html.is-app .app-alerts .alert-chips{display:flex;gap:6px;flex:none}
html.is-app .app-alerts .alert-chip{position:relative;display:block;margin:0}
html.is-app .app-alerts .alert-chip input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
html.is-app .app-alerts .alert-chip span{display:block;padding:8px 12px;border-radius:999px;border:1.5px solid #e2d6c8;background:#fff;font:600 14px/1 var(--font-body,system-ui);color:#5c4f47;white-space:nowrap}
html.is-app .app-alerts .alert-chip input:checked+span{background:#ba4b2a;border-color:#ba4b2a;color:#fff}
html.is-app .app-alerts .alert-chip input:focus-visible+span{outline:3px solid #ba4b2a55;outline-offset:2px}
html.is-app .app-alerts .alert-chip.is-off span{opacity:.45}
html.is-app .app-alerts .alert-note{margin:2px 4px;font-size:13.5px;color:#7a6c62;line-height:1.4}

/* the seller's Today in the app: compact cards in the app's look */
html.is-app .app-today{max-width:560px;margin:0 auto;padding:calc(env(safe-area-inset-top,0px) + 18px) 16px calc(env(safe-area-inset-bottom,0px) + 120px);display:grid;gap:14px}
html.is-app .app-today .at-head{display:flex;align-items:center;gap:14px}
html.is-app .app-today .at-av{position:relative;flex:none;width:76px;height:76px;border-radius:22px;border:0;padding:0;background:#f3e3d6 center/cover no-repeat;box-shadow:0 0 0 4px #fff,0 6px 18px #3a2a1a22;cursor:pointer}
html.is-app .app-today .at-av span{position:absolute;right:-6px;bottom:-6px;width:30px;height:30px;border-radius:50%;background:#ba4b2a;display:grid;place-items:center;font-size:14px;border:3px solid #faf7f2}
html.is-app .app-today .at-name{min-width:0}
html.is-app .app-today .at-name small{font:700 11.5px/1 var(--font-body,system-ui);letter-spacing:.1em;color:#ba4b2a}
html.is-app .app-today .at-name h1{margin:4px 0 2px;font-size:26px;line-height:1.1;overflow-wrap:anywhere}
html.is-app .app-today .at-name a{font-size:14px;color:#7a6c62;text-decoration:none}
html.is-app .app-today .at-card{background:#fffdf9;border:1px solid #ebe2d6;border-radius:22px;padding:16px;min-width:0}
html.is-app .app-today .at-card h2{margin:0 0 8px;font-size:18px}
html.is-app .app-today .at-note{margin:0 0 10px;font-size:14px;color:#7a6c62;line-height:1.4}
html.is-app .app-today .at-line{display:flex;align-items:center;gap:8px;margin:0 0 4px;font-size:18px}
html.is-app .app-today .at-status .today-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 6px}
html.is-app .app-today .at-status .today-actions .btn{min-height:48px;border-radius:999px;font-size:14.5px;padding:8px 10px;width:100%}
html.is-app .app-today .at-status .today-actions .btn-primary{grid-column:1/-1}
html.is-app .app-today .at-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html.is-app .app-today .at-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:86px;border-radius:20px;border:1px solid #ebe2d6;background:#fffdf9;color:#2f2622;font:600 12.5px/1.15 var(--font-body,system-ui);text-align:center;text-decoration:none;padding:8px 4px;cursor:pointer}
html.is-app .app-today .at-tile img{width:34px;height:34px;object-fit:contain}
html.is-app .app-today .at-tasks{display:grid}
html.is-app .app-today .at-task{display:flex;align-items:center;gap:12px;padding:12px 2px;border:0;border-top:1px solid #f0e8de;background:none;font:600 15.5px var(--font-body,system-ui);color:#2f2622;text-decoration:none;text-align:left;width:100%;cursor:pointer}
html.is-app .app-today .at-task:first-child{border-top:0}
html.is-app .app-today .at-task i{flex:none;width:28px;height:28px;border-radius:50%;background:#f6e3da;color:#ba4b2a;display:grid;place-items:center;font-style:normal;font-weight:800}
html.is-app .app-today .at-task.is-done i{background:#e3efe0;color:#3f7a4f}
html.is-app .app-today .at-task span{flex:1;min-width:0}
html.is-app .app-today .at-task b{color:#b5a597}
html.is-app .app-today .at-stats{display:grid;grid-template-columns:repeat(3,1fr) auto;align-items:center;gap:6px;text-align:center}
html.is-app .app-today .at-stats b{display:block;font-size:22px}
html.is-app .app-today .at-stats small{font-size:12px;color:#7a6c62}
html.is-app .app-today .at-stats a{font-size:14px;color:#ba4b2a;text-decoration:none;font-weight:700}
html.is-app .app-today .post-row{display:flex;gap:10px;padding:8px 0;border-top:1px solid #f0e8de}
html.is-app .app-today .post-row:first-of-type{border-top:0}
html.is-app .app-today .post-row img{width:48px;height:48px;border-radius:12px;object-fit:cover}
html.is-app .app-today .post-row p{margin:0 0 2px;font-size:14.5px}
html.is-app .app-today .post-row small{color:#7a6c62;font-size:12.5px}
html.is-app .app-today .at-links{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:0 4px;font-size:14.5px}
html.is-app .app-today .at-links a{color:#ba4b2a;font-weight:700;text-decoration:none}
@media (max-width:350px){html.is-app .app-today .at-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
html.is-app .app-today .at-status .today-actions .btn:nth-child(even):last-child{grid-column:1/-1}

/* hours editor in the app: plain cards, two time fields side by side, a real-size checkbox */
html.is-app #hours-form fieldset{border:0;margin:0 0 12px;padding:14px;border-radius:18px;background:#faf7f2}
html.is-app #hours-form legend{float:left;width:100%;padding:0;margin:0 0 8px;font:700 15.5px var(--font-body,system-ui)}
html.is-app #hours-form .hours-times{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;clear:both}
html.is-app #hours-form .checkbox-field{display:flex;align-items:center;gap:10px;font-size:15.5px;min-height:44px}
html.is-app #hours-form .checkbox-field input{width:22px;height:22px;flex:none;accent-color:#ba4b2a}
html.is-app #hours-form summary{font-size:14.5px;color:#7a6c62;padding:6px 0}
html.is-app #hours-form .hours-current{margin:14px 0;padding:12px 14px;border-radius:14px;background:#f6e3da;color:#624136;font-weight:650}
html.is-app #hours-form .hours-quick-title{font-size:17px;margin:18px 0 10px}
html.is-app #hours-form .hours-presets{display:grid;gap:8px}
html.is-app #hours-form .hours-presets button{min-height:50px;padding:10px 15px;border:1.5px solid var(--line);border-radius:16px;background:#fffdf9;color:var(--ink);font-size:15px;font-weight:700;text-align:left}
html.is-app #hours-form :is(.hours-custom,.hours-special-dates){margin:14px 0;border:1px solid var(--line);border-radius:18px;padding:10px 14px;background:#fffdf9}
html.is-app #hours-form :is(.hours-custom,.hours-special-dates)>summary{padding:8px 0;color:var(--ink);font-weight:700;font-size:16px}
html.is-app #hours-form .hours-custom fieldset{padding:12px;background:#faf7f2}
html.is-app #hours-form .hours-times .field input{width:100%;max-width:100%;font-size:15px}
html.is-app #hours-form>button[type=submit]{width:100%}
/* narrow phones: the In app / Phone choices sit under their label instead of squeezing it (Codex, 320px) */
html.is-app .app-alerts .alert-row{flex-wrap:wrap}
@media (max-width:389px){html.is-app .app-alerts .alert-what{flex-basis:calc(100% - 56px)}html.is-app .app-alerts .alert-chips{width:100%;padding-left:52px}}
html.is-app .app-alerts .alert-what b{color:#2f2622}

/* sign printing steps: a left-aligned list, not centred lines */
html.is-app .qr-print-guide,html.is-app .qr-print-guide ol,html.is-app .qr-print-guide li{text-align:left}
html.is-app .qr-print-guide ol{padding-left:22px;margin:10px 0}
html.is-app .qr-print-guide li{margin:6px 0;line-height:1.4}
html.is-app .app-today .at-av span{background:#fffdf9!important}

/* Share & signs sheet */
html.is-app .app-share{display:grid;gap:12px;text-align:left}
html.is-app .app-share-card{width:100%;border-radius:18px;box-shadow:0 4px 16px #3a2a1a22;background:#f3e3d6}
html.is-app .app-share-link{padding:14px;border-radius:16px;background:#faf7f2;border:1px solid #ebe2d6;font:600 15px/1.35 var(--font-body,system-ui);color:#2f2622;overflow-wrap:anywhere;text-align:center}
html.is-app .app-share-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html.is-app .app-share-btns .btn{width:100%;min-height:50px;border-radius:999px}
html.is-app .app-share-signs{display:flex;gap:12px;align-items:center;margin-top:8px;padding-top:14px;border-top:1px solid #ebe2d6}
html.is-app .app-share-signs div{display:flex;flex-direction:column;gap:3px}
html.is-app .app-share-signs small{color:#7a6c62;font-size:13.5px;line-height:1.35}
html.is-app .app-today .at-av{display:block;text-decoration:none}

/* App pages drawn by app.js: clear of the floating tab bar, and a solid band behind the status bar */
html.is-app body:not(.v2-on):not(.is-intro) main:not(.intro-shell){padding-bottom:calc(env(safe-area-inset-bottom,0px) + 140px)!important}
html.is-app body:not(.v2-on):not(.is-intro)::before{content:'';position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:#faf7f2;z-index:60;pointer-events:none}
/* Date and time fields: the value sits in the middle of the field on iPhone */
html.is-app input[type=date],html.is-app input[type=time],html.is-app input[type=datetime-local]{height:52px;min-height:52px;line-height:52px;padding-top:0;padding-bottom:0;display:block}
html.is-app input[type=date]::-webkit-date-and-time-value,html.is-app input[type=time]::-webkit-date-and-time-value{line-height:52px;margin:0}
/* Photo pickers in sheets (restock, drop, special, update): proper tiles */
html.is-app .composer .photo-pick label{width:76px;height:76px;flex:none}
html.is-app .composer .photo-pick label>span,html.is-app .composer .photo-pick label>img{display:grid!important;place-items:center;width:76px!important;height:76px!important;min-height:0!important;padding:0!important;border-radius:16px!important;font-size:12.5px!important;line-height:1.2;text-align:center;white-space:normal;object-fit:cover}
html.is-app .composer .photo-pick input:checked+span,html.is-app .composer .photo-pick input:checked+img{outline:3px solid #ba4b2a;outline-offset:2px}
html.is-app #modal .field>span,html.is-app #modal label.field span:first-child{text-align:left}
/* Admin: every shop's follower count (owner 10/8: admins only) */
.op-follow-list{list-style:none;margin:8px 0 0;padding:0;max-height:420px;overflow:auto}
.op-follow-list li{display:flex;justify-content:space-between;gap:12px;padding:8px 2px;border-bottom:1px solid var(--line)}
.op-follow-list small{color:var(--muted)}
