/* ============================================================
   The polished look ("ui2"), Nov 29 2026. The user asked for the site to look more professional, like a modern food app (a
   NexUX Dribbble shot): white surfaces, the logo's dark rust accent, big soft-cornered cards with gentle shadows, pill buttons,
   a floating tab bar on phones, and smooth motion. Nothing here changes what the pages say or do: it is one layer over
   styles.css and web.css. <html class="ui2"> turns it on; open the site with ?classic to see the look before it.
   Website only (the apps don't load it).
   ============================================================ */

html.ui2 {
  /* the warm cream of the loading screen (the cool white-grey tried first didn't match it) */
  --bg: #fbf6ee;     /* Tabehut's warm cream: not white (the paler #faf8f4 read as plain white), and not orange (#fbf3e8 with a strong glow was "a little too orange") */
  --card: #fffaf3;   /* cards, buttons, inputs and panels: a warm ivory that belongs to the cream, never pure white */
  --ink: #2b2521;
  --muted: #8a8177;
  --line: #eae4da;
  /* the logo's own dark rust (the bright orange tried first was rejected: "looks terrible") */
  --brand: #9a3f22;
  --brand-dark: #7c2f15;
  --brand-soft: #f7ede2;
  --brand-fade: #fdf6ee;
  --good: #3d7549;
  --good-soft: #ebf3ea;
  --radius: 20px;
  --shadow: 0 1px 2px #2b25210a, 0 8px 24px #2b25210f;
  --ui-ease: cubic-bezier(.2, .8, .2, 1);
  --ui-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ui-lift: 0 2px 6px #2b25210f, 0 18px 40px #2b25211c;
  --ui-glow: 0 6px 18px #9a3f2240;
}
/* the countdown page's glow, behind every page: a soft peach light from the top, and a fainter one from the bottom corner, fixed while the page scrolls */
html.ui2 { background: var(--bg); }
/* (a faint peach light at the top only. It is a fixed layer BEHIND the page, not `background-attachment: fixed`: iPhone Safari ignores
   that, so the glow stretched over the whole length of a long page and scrolled away with it. The page colour itself is on <html>.) */
html.ui2 body { background: transparent; color: var(--ink); }
html.ui2 body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 46% at 50% 0%, #fdebd9 0%, rgba(253, 235, 217, 0) 70%); }

/* ---- the top bar: frosted white, a hairline shadow instead of a border ---- */
html.ui2 .topbar { background: #fcf4e9e6; border-bottom-color: transparent; box-shadow: 0 1px 0 #2b25210f; -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); }
html.ui2 .search { border-color: transparent; background: #f5ede2; transition: background .25s var(--ui-ease), box-shadow .25s var(--ui-ease); }
html.ui2 .search:hover { background: #ede6dc; }
html.ui2 .search:focus-within { background: var(--card); box-shadow: 0 0 0 1px var(--brand), 0 0 0 5px var(--brand-soft); }
html.ui2 .search-loc { border: 0; border-radius: 999px; background: var(--card); box-shadow: 0 1px 3px #2b252114; }
html.ui2 .navicon { border-radius: 14px; color: #55504a; transition: background .2s var(--ui-ease), color .2s var(--ui-ease), transform .2s var(--ui-ease); }
html.ui2 .navicon:hover { background: #f5ede2; color: var(--ink); }
html.ui2 .navicon:active { transform: scale(.94); }
html.ui2 .navicon.on, html.ui2 .inbox-wrap.on .navicon { background: var(--brand-soft); color: var(--brand-dark); }

/* ---- buttons: pills, a soft orange glow on the main one, a small lift on hover and a press on click ---- */
html.ui2 .btn { border-radius: 999px; border-color: var(--line); transition: transform .2s var(--ui-ease), box-shadow .25s var(--ui-ease), background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease; }
html.ui2 .btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px #2b252114; }
html.ui2 .btn:active:not(:disabled) { transform: scale(.97); transition-duration: .08s; }
html.ui2 .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--ui-glow); }
html.ui2 .btn-primary:hover:not(:disabled) { filter: brightness(1.06); box-shadow: 0 10px 26px #9a3f2252; }
html.ui2 .btn.get-pro { border-color: #ecd2c2; background: var(--brand-fade); color: var(--brand-dark); }
html.ui2 .link-btn, html.ui2 .dlink, html.ui2 .mini-link { color: var(--brand-dark); }

/* ---- listing cards: big rounded photos that lift on hover, the photo easing in a little ---- */
html.ui2 .card .photo { border-radius: 22px; box-shadow: 0 1px 2px #2b25210d; transition: transform .45s var(--ui-ease), box-shadow .45s var(--ui-ease); }
html.ui2 .card .photo img { transition: transform .8s var(--ui-ease); }
html.ui2 .card:hover .photo { transform: translateY(-4px); box-shadow: var(--ui-lift); }
html.ui2 .card:hover .photo img { transform: scale(1.06); }
html.ui2 .card:active .photo { transform: scale(.98); transition-duration: .12s; }
html.ui2 .cardtext { gap: 2px; padding: 12px 4px 0; }
html.ui2 .card-price { font-weight: 700; color: var(--ink); }
html.ui2 .cardtext span { color: #3a342f; }
html.ui2 .save-btn { width: 36px; height: 36px; background: #fffaf3eb; color: var(--ink); box-shadow: 0 2px 8px #2b25211f; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.ui2 .save-btn.on { color: var(--brand); }
html.ui2 .photo, html.ui2 .heroimg { background-color: #ebe4da; }

/* ---- chips, segmented switches, small pills: fully round ---- */
html.ui2 .chip, html.ui2 .fulfill-opt, html.ui2 .rbadge, html.ui2 .deliv-tag, html.ui2 .oi-status, html.ui2 .bd-badge { border-radius: 999px; }
html.ui2 .chip { border-color: var(--line); transition: background .2s ease, border-color .2s ease, transform .2s var(--ui-ease); }
html.ui2 .chip:active { transform: scale(.96); }
html.ui2 .seg { padding: 4px; border-radius: 999px; background: #f0e7db; }
html.ui2 .seg button { border-radius: 999px; transition: background .25s var(--ui-ease), color .2s ease, box-shadow .25s var(--ui-ease); }
html.ui2 .seg button.on, html.ui2 .seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px #2b252114; }
html.ui2 .rbadge { background: var(--brand-soft); color: var(--brand-dark); }

/* ---- fields: soft grey wells that turn white with an orange ring when you type ---- */
html.ui2 .flt, html.ui2 .cat-btn { border-radius: 16px; transition: box-shadow .25s var(--ui-ease), background .25s ease, border-color .25s ease; }
html.ui2 .flt:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* ---- the Browse filters on a computer: a clean white panel ---- */
html.ui2:not(.native) .browse-side { background: transparent; border-right-color: transparent; box-shadow: 1px 0 0 #2b25210d; }   /* the filters sit on the page's own cream */

/* ---- a listing: the big photo rounder, sections in white cards ---- */
html.ui2 .heroimg { border-radius: 26px; }
html.ui2 .reviews .review, html.ui2 .reviews-page .review { transition: background .2s ease; }

/* ---- pop-ups, sheets, the Messages panel, toasts ---- */
html.ui2 .overlay { background: #2b25215c; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.ui2 .modal { background: var(--card); border-radius: 28px; box-shadow: 0 30px 80px #2b252140, 0 0 0 1px #2b25210a; }
html.ui2 .sheet { background: var(--card); border-radius: 28px 28px 0 0; }
html.ui2 .dock { border-radius: 24px; box-shadow: 0 24px 70px #2b252133, 0 0 0 1px #2b25210d; }
html.ui2 .dock.full { border-radius: 0; }
html.ui2 .account-menu, html.ui2 .sortmenu, html.ui2 .card-menu .menu-list { border-radius: 20px; box-shadow: 0 20px 50px #2b252126, 0 0 0 1px #2b25210a; }

/* ---- orders, the tracker, plans, reviews: white cards with soft shadows ---- */
html.ui2 .oi-row, html.ui2 .track-sheet, html.ui2 .pro-plan, html.ui2 .rv-sum, html.ui2 .bd-card { border-color: #2b25210d; border-radius: 22px; background: var(--card); box-shadow: 0 1px 2px #2b25210a, 0 10px 30px #2b25210d; }
html.ui2 .oi-row { overflow: hidden; transition: transform .3s var(--ui-ease), box-shadow .3s var(--ui-ease); }
html.ui2 .oi-row:hover { transform: translateY(-2px); box-shadow: var(--ui-lift); }
html.ui2 .track-bar i.on, html.ui2 .rv-bars em { background: var(--brand); }
html.ui2 .pro-plan .pp-btn:not(:disabled) { background: var(--brand); box-shadow: var(--ui-glow); }

/* ---- the footer: near-black instead of brown ---- */
html.ui2 .foot { background: #26201b; color: #cbc2b6; }

/* ---- the phone tab bar: a floating white pill; the tab you're on becomes an orange pill with its name ---- */
@media (max-width: 760px) {
  html.ui2 body { padding-bottom: calc(68px + var(--sab)); }
  html.ui2 .foot { display: none; }   /* no dark footer on a phone: the tab bar is the bottom of the screen (its links are in the ☰ menu) */
  /* A plain bar along the bottom edge, like a footer: five equal places (four in a narrower layout), an icon over a small name, the tab
     you're on in the brand colour with a short line above it that slides to the next one (app.js slideTab). Sell, in the middle, is one
     clean round coloured button rising a little out of the bar, with nothing under it. (The floating pill, the block behind the active tab
     and the label squeezed under the button were tried first and looked broken.) */
  html.ui2 .tabbar { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); grid-auto-flow: row; gap: 0; height: calc(60px + var(--sab)); padding: 0 8px var(--sab); border: 0; border-top: 1px solid #2b252114; border-radius: 0; background: var(--card); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.ui2 .tab-ind { display: block; position: absolute; top: -1px; left: 8px; width: calc((100% - 16px) / var(--n, 5)); height: 3px; background: none; transform: translateX(calc(var(--i, 0) * 100%)); pointer-events: none; }
  html.ui2 .tab-ind::after { content: ''; position: absolute; top: 0; left: 50%; width: 28px; height: 3px; margin-left: -14px; border-radius: 0 0 3px 3px; background: var(--brand); }
  html.ui2 .tab-ind[hidden] { display: none; }
  html.ui2 .tab { position: relative; z-index: 1; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; height: 60px; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #8a8177; font-size: calc(10.5px * var(--fs, 1)); font-weight: 600; transition: color .25s ease; }
  html.ui2 .tab > span:last-child { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html.ui2 .tab.on { color: var(--brand); background: none; box-shadow: none; }
  html.ui2 .tab.on > .ic { animation: ui2-tabpop .42s var(--ui-spring) both; }
  html.ui2 .tab:active { transform: none; }
  html.ui2 .tab:active > .ic { transform: scale(.88); transition: transform .12s ease; }
  html.ui2 .tab .badge { top: 6px; left: calc(50% + 4px); }
  html.ui2 .tab-sell { justify-content: flex-start; overflow: visible; }
  html.ui2 .tab-sell .tab-plus { display: grid; place-items: center; flex: none; width: 56px; height: 56px; margin: -14px auto 0; border-radius: 50%; background: linear-gradient(145deg, #e58a35 0%, #c2501f 48%, #8f3719 100%); color: #fff; box-shadow: 0 0 0 5px var(--card), 0 8px 18px #9a3f2247; transition: transform .28s var(--ui-spring); }
  html.ui2 .tab-sell .tab-plus .ic { width: 26px; height: 26px; stroke-width: 2.4; }
  html.ui2 .tab-sell:active .tab-plus { transform: scale(.92); }
  html.ui2 .tab.tab-sell > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* (read out, not shown) */
  /* Every tab opens under the very same header as Browse's: one height, the same frosted cream that stays put while the page scrolls,
     the logo the same size in the same corner, and the page's own warm background under it (the Inbox had a flat one of its own). Only
     the words change, and they fade in. */
  html.ui2:root .threads-bar { position: sticky; top: 0; z-index: 20; min-height: calc(58px + var(--sat)); padding: var(--sat) 14px 0; border: 0; background: #fcf4e9e6; box-shadow: 0 1px 0 #2b25210f; -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px); }
  html.ui2:root .threads-logo img { height: 30px; }
  html.ui2:root .threads-bar:has(+ main.enter) h1 { animation: ui2-head .32s var(--ui-ease) both; }
  html.ui2:root body:is(.route-sell, .route-edit) .sell-pane > .tab-bar { position: static; }
  html.ui2:root body.route-inbox main.inbox { background: transparent; }
  html.ui2:root body.route-inbox .thread, html.ui2:root body.route-inbox .thread.unread { background: transparent; }
  html.ui2:root body.route-inbox .thread:active { background: #2b25210a; }
  html.ui2:root body.route-inbox .thread-wrap:is(.swiping, .swiped) .thread { background: var(--bg); }   /* (solid while Delete is showing behind it) */
  /* going from one tab to another: the page comes in from the side you moved towards (clipped at the screen's edge, so the slide never
     makes the page wider than the phone) */
  html.ui2 #root { overflow-x: clip; }
  html.ui2 main.enter[data-tabdir="fwd"] { animation: ui2-tab-fwd .4s var(--ui-ease) both; }
  html.ui2 main.enter[data-tabdir="back"] { animation: ui2-tab-back .4s var(--ui-ease) both; }
  html.ui2:root body.route-inbox main.enter[data-tabdir="fwd"] { animation: ui2-tab-fwd .4s var(--ui-ease) both; }   /* (the Inbox turns the plain page animation off: this one still plays) */
  html.ui2:root body.route-inbox main.enter[data-tabdir="back"] { animation: ui2-tab-back .4s var(--ui-ease) both; }
  /* the pages that have no tab bar keep having none (an open chat, a listing, Sell/Edit, a pre-order, the tracker): the flex above must not bring it back */
  html.ui2 body:is(.chat-open, .route-listing, .route-sell, .route-edit, .route-order, .route-track) .tabbar { display: none; }
  html.ui2 body:is(.chat-open, .route-listing, .route-sell, .route-edit) { padding-bottom: 0; }
  html.ui2 .card .photo { border-radius: 18px; }
}
@keyframes ui2-head { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes ui2-tabpop { 0% { transform: scale(.8); } 60% { transform: scale(1.14); } 100% { transform: none; } }
@keyframes ui2-tab-fwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes ui2-tab-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes ui2-label { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* ---- motion: a page slides up into place when you go to it, and its cards follow one after another ---- */
html.ui2 main.enter { animation: ui2-page .5s var(--ui-ease) both; }
html.ui2 main.enter .grid > .card { animation: ui2-rise .6s var(--ui-ease) both; }
html.ui2 main.enter .grid > .card:nth-child(2) { animation-delay: .04s; }
html.ui2 main.enter .grid > .card:nth-child(3) { animation-delay: .08s; }
html.ui2 main.enter .grid > .card:nth-child(4) { animation-delay: .12s; }
html.ui2 main.enter .grid > .card:nth-child(5) { animation-delay: .16s; }
html.ui2 main.enter .grid > .card:nth-child(6) { animation-delay: .2s; }
html.ui2 main.enter .grid > .card:nth-child(7) { animation-delay: .24s; }
html.ui2 main.enter .grid > .card:nth-child(8) { animation-delay: .28s; }
html.ui2 main.enter .grid > .card:nth-child(n+9) { animation-delay: .32s; }
html.ui2 main.enter :is(.oi-row, .pro-plan, .bd-card, .review) { animation: ui2-rise .55s var(--ui-ease) both; }
html.ui2 main.enter :is(.oi-row, .pro-plan, .bd-card, .review):nth-child(2) { animation-delay: .06s; }
html.ui2 main.enter :is(.oi-row, .pro-plan, .bd-card, .review):nth-child(3) { animation-delay: .12s; }
html.ui2 main.enter :is(.oi-row, .pro-plan, .bd-card, .review):nth-child(n+4) { animation-delay: .18s; }
/* a pop-up springs in the first time it opens (web.css adds .enter only then) */
html.ui2 .overlay.enter .modal { animation: ui2-pop .5s var(--ui-spring) both; }
@keyframes ui2-page { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ui2-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes ui2-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.ui2 main.enter, html.ui2 main.enter *, html.ui2 .overlay.enter .modal, html.ui2 .tab.on span, html.ui2 .tab.on > .ic, html.ui2 .threads-bar h1 { animation: none !important; }
  html.ui2 .card:hover .photo, html.ui2 .card:hover .photo img, html.ui2 .btn:hover:not(:disabled), html.ui2 .oi-row:hover { transform: none; }
}

/* ---- the warm beige greys that were written straight into styles.css / web.css, turned into the cool light greys of this look ---- */
html.ui2 :is(.inbox-tabs, .cs-tabs, .ac-mode) { background: #f0e7db; }
html.ui2 :is(.oi-none, .oi-rail, .cook-empty, .facts div, .pro-on, .rv-bars i) { background: #f5ede2; }
html.ui2:not(.native) .browse-side .cat-btn, html.ui2 .browse-side .cat-btn, html.ui2 :is(.browse-side .tiles .chip, .browse-side .tier):not(.on):not([aria-pressed="true"]) { background: #f5ede2; }
html.ui2 :is(.btn, .account-menu a, .account-menu button, .sortmenu-row, .notif, .imap-ctl button, .bd-refresh, .pb-btn, button.navicon):hover:not(:disabled) { background-color: #f5ede2; }
/* ...but a filled button keeps its colour on hover, a shade darker (the light hover above is for the plain white ones only) */
html.ui2 :is(.btn.btn-primary, .btn.pp-btn, .tool.order-tool.pre):hover:not(:disabled) { background-color: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
html.ui2 .confirm-actions .btn.danger:hover:not(:disabled) { background-color: #7a2626; color: #fff; }
html.ui2 .msgs-card .chat-tools .tool.order-tool.pre:hover:not(:disabled) { background-color: var(--brand-fade); border-color: var(--line); color: var(--brand-dark); }
html.ui2 :is(.btn-primary, .pp-btn):hover:not(:disabled) { background-color: var(--brand); }
html.ui2 .pro-plan .pp-btn:disabled { background: #f0e7db; }
html.ui2 .bd-chip.flat { background: #f0e7db; }
html.ui2 :is(.browse-side .tiles .chip, .browse-side .tier):not(.on):hover { background: #e9e1d6; }
