/* Production H5 surfaces, using the source beach / crab visual language.
   crab-theme.css owns the illustrated discovery scene and navigation. */
:root {
  --line: #201c2238;
  --muted: #5b5762;
  --faint: #726b76;
  --surface: #fffefb;
  --surface-soft: #fff8e9;
  --paper: #f6ebd6;
  --soft: #f0e3cb;
  --blue: #79b8f6;
  --blue-dark: #508fd0;
  --blue-soft: #e0efff;
  --green: #201c22;
  --yellow: #ffd24d;
  --yellow-soft: #fff0bc;
  --peach: #ffe0d7;
  --body-font: var(--sans);
  --display-font: var(--sans);
  --paper-grain: none;
  --crab-radius: 16px;
  --crab-small-shadow: 2px 3px 0 var(--ink);
  --h5-safe-top: env(safe-area-inset-top, 0px);
}

/* Paint the scene all the way to the screen edge. Safe-area padding belongs
   inside each scene/header, never between the viewport and its background. */
html.crab-h5-root,
body.crab-h5 { color: var(--ink); background: var(--sand); font-family: var(--sans); color-scheme: light; overscroll-behavior: none; }
/* A viewport-sized fixed body makes Safari retain its first sampled tint.
   Keep the document still with overflow clipping instead. */
body.crab-h5 { width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.crab-h5 .phone-screen { max-width: 430px; overflow: clip; background: var(--sand); }
.crab-h5 .mobile-app { display: flex; flex-direction: column; overflow: clip; background: var(--sand); color: var(--ink); font-family: var(--sans); }
.crab-h5 .mobile-scroll { flex: 1; height: auto; min-height: 0; padding: calc(14px + var(--h5-safe-top)) 18px max(30px, env(safe-area-inset-bottom)); overflow-y: auto; }
.crab-h5 .mobile-app > .mobile-scroll { overscroll-behavior-y: none; }
.crab-h5 .mobile-scroll:has(+ .crab-nav) { padding-bottom: calc(106px + env(safe-area-inset-bottom)); }
.crab-h5 .discover-view > .mobile-scroll { padding: 0 0 calc(96px + env(safe-area-inset-bottom)); }
.crab-h5 .discover-view .sky { padding-top: calc(12px + var(--h5-safe-top)); padding-bottom: 10px; background-color: var(--sky-top); }
.crab-h5 .discover-view .sky > .sun { top: calc(var(--sun-y) + var(--h5-safe-top)); }
.crab-h5 .discover-view .sky > .cloud { top: calc(var(--cloud-y) + var(--h5-safe-top)); }
.crab-h5 .discover-view .sky > .gull { top: calc(60px + var(--h5-safe-top)); }

/* Safari samples a narrow fixed edge even on pages without a tab bar.
   This continues the existing footer surface without tinting it like the hero. */
.crab-browser-bottom { position: fixed; z-index: 30; inset: auto 0 0; height: 6px; background: var(--h5-browser-bottom, var(--sand)); pointer-events: none; }
@media (min-width: 600px) { .crab-browser-bottom { display: none; } }

/* The 430px frame is a desktop preview, not a maximum phone width.
   Cover detail routes too: their authored stylesheet loads after this one. */
@media (max-width: 599px) {
  .crab-h5 #phone-screen { max-width: none; }
}

/* Installed iOS web apps can resolve 100dvh below the physical bottom edge
   with viewport-fit=cover / black-translucent (WebKit bug 254868). There is
   no collapsing browser toolbar in standalone mode: use the full vh canvas,
   while retaining dvh if it is larger. Size its clipping ancestors as well.
   Safe-area padding already belongs to the header and footer; do not add it
   again to the shell. Keep ordinary Safari on its existing dynamic height. */
@media (max-width: 599px) and (display-mode: standalone) {
  html.crab-h5-root,
  body.crab-h5,
  .crab-h5 #phone-screen { height: 100vh; height: max(100vh, 100dvh); }
  .crab-browser-bottom { display: none; }
}

/* Only moving content needs a soft status-bar scrim. At rest, the original
   scene stays entirely visible; the fade avoids another hard horizontal band. */
.crab-h5 .phone-screen::after {
  content: '';
  position: absolute;
  z-index: 70;
  inset: 0 0 auto;
  height: calc(var(--h5-safe-top) + 12px);
  pointer-events: none;
  background: #fffefb80;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(#000 0 calc(100% - 12px), transparent);
  mask-image: linear-gradient(#000 0 calc(100% - 12px), transparent);
  opacity: 0;
}
.crab-h5 .phone-screen[data-status-scrim]::after { opacity: var(--status-scrim, 0); }

@media (min-width: 600px) {
  html.crab-h5-root,
  body.crab-h5 { background: #dcd0b8; }
}
/* Keep the search close to the title group, with the original crab and boat
   resting on a compact waterline instead of a separate band of empty space. */
/* Translated headings can put this join on a fractional pixel. Extend the
   water paint upward so separately rasterized edges cannot expose the sand. */
.crab-h5 .discover-view .shore { height: 66px; box-shadow: 0 -1px 0 var(--water); }
.crab-h5 .discover-view .shore::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: -42px;
  height: 48px;
  pointer-events: none;
  background:
    radial-gradient(circle at 11% 9px, #fff 0 3px, var(--ink) 3.2px 4.4px, transparent 4.6px),
    radial-gradient(circle at 31% 35px, #fff 0 1.7px, var(--ink) 1.9px 2.9px, transparent 3.1px),
    radial-gradient(circle at 68% 20px, #fff 0 2.4px, var(--ink) 2.6px 3.7px, transparent 3.9px),
    radial-gradient(circle at 90% 11px, #fff 0 2.7px, var(--ink) 2.9px 4px, transparent 4.2px);
}
.crab-h5 .discover-view .boat { left: 22px; top: -4px; width: 44px; height: 26px; animation: crab-boat-waterline 16s ease-in-out infinite alternate; }
.crab-h5 .discover-view .searchwrap { top: 18px; }
/* A single ink outline carries the speech bubble and its small, slanted point. */
.crab-h5 .discover-view .bubble {
  max-width: min(190px, calc(100vw - 150px));
  overflow-wrap: anywhere;
}
.crab-h5 .discover-view .bubble.comic-bubble {
  bottom: 46px;
  min-height: 24px;
  padding: 3px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.crab-h5 .discover-view .bubble.comic-bubble::after { content: none; }
.crab-h5 .discover-view .crab-speech-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.6px;
  stroke-linejoin: round;
  filter: drop-shadow(1px 1px 0 var(--ink));
  pointer-events: none;
}
.crab-h5 .discover-view .crab-speech-words { position: relative; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes crab-boat-waterline {
  0% { transform: translate(0,0) rotate(-2deg); }
  48% { transform: translate(76px,2px) rotate(1deg); }
  100% { transform: translate(150px,0) rotate(-1deg); }
}
.crab-h5 .discover-view .foam.a { left: 27px; top: 13px; }
.crab-h5 .discover-view .foam.b { left: 112px; top: 27px; }
.crab-h5 .discover-view .foam.c { left: 204px; top: 9px; }
.crab-h5 .discover-view .foam.d { left: 319px; top: 24px; }
.crab-h5 .discover-view .foam.e { left: 414px; top: 12px; }
.crab-h5 .mobile-status { display: none; }
.crab-h5 .card-copy { display: block; width: 100%; text-align: left; }
.crab-h5 .card-place { display: flex; align-items: center; gap: 5px; min-height: 44px; margin: 0; padding: 0 10px; color: var(--ink-2); font: 600 9px/1.4 var(--mono); letter-spacing: .2px; overflow-wrap: anywhere; text-decoration: none; }
.crab-h5 .card-place .post-icon { width: 11px; height: 11px; flex: none; }
.crab-h5 .card-place:focus-visible, .crab-h5 .post-place-stamp:focus-visible { outline: 3px solid #427eb9; outline-offset: 3px; }
.crab-h5 .crab-card-avatar { display: block; width: 18px; height: 18px; flex: none; border-radius: 50%; object-fit: cover; }
.crab-h5 .card .by .author { gap: 5px; font-size: 10.5px; font-weight: 500; }
.crab-h5 .card .by .author > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.crab-h5 .board-heading { align-items: center; flex-wrap: wrap; }
.crab-h5 .board-heading h2 { min-width: 0; }
.crab-h5 .board-place { flex: none; margin-left: auto; }
.crab-h5 .search .crab-search-submit { display: grid; place-items: center; flex: 0 0 24px; width: 24px; min-height: 44px; position: relative; font-size: 20px; }
.crab-h5 .search .crab-search-submit::before { content: ''; position: absolute; inset: 0 -10px; }
.crab-h5 .nav.crab-nav { z-index: 20; height: calc(76px + env(safe-area-inset-bottom)); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.crab-h5 .crab-nav .navcrab { bottom: calc(27px + env(safe-area-inset-bottom)); }
.crab-h5 .crab-nav button span { position: relative; }
.crab-h5 .crab-unread { position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); }
html:not([lang^=zh]) .crab-h5 .headline { font-size: 20px; }
.phone {
  --cloud-x: 4px;
  --cloud-y: 11px;
}
.phone[data-time=morning] { --cloud-x: 12px; --cloud-y: 10px; }
.phone[data-time=dusk] { --cloud-x: 0px; --cloud-y: 14px; }
.phone[data-time=night] { --cloud-x: 6px; --cloud-y: 11px; }
.phone,
.phone[data-time=morning],
.phone[data-time=dusk],
.phone[data-time=night] {
  --sun-x: calc(var(--cloud-x) + 50px);
  --sun-y: calc(var(--cloud-y) - 9px);
}
.phone .sky > .sun { z-index: 2; }
.phone .sky > .cloud {
  z-index: 3;
  right: var(--cloud-x);
  top: var(--cloud-y);
  pointer-events: none;
  transition: right .8s, top .8s, opacity .8s;
  animation: sky-cloud-drift 16s ease-in-out infinite;
}
@keyframes sky-cloud-drift {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-10px, 0); }
  72% { transform: translate(6px, 0); }
}
.phone h1.headline {
  position: relative;
  z-index: 5;
  max-width: 100%;
  font-size: clamp(20px, 5.4vw, 22px);
  line-height: 1.3;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
html[lang^=th] .crab-h5 .headline { font-size: 19px; line-height: 1.45; }
html[lang^=vi] .crab-h5 .headline { font-size: 19px; line-height: 1.4; }
/* Long language names need a little more air above the crab's moving claws. */
html:is([lang^=id], [lang^=ms]) .crab-h5 .discover-view .sky { padding-bottom: 30px; }
@media (max-width: 360px) {
  html:not([lang^=zh]):not([lang^=ja]):not([lang^=ko]) .crab-h5 .discover-view .sky { padding-bottom: 30px; }
}
.crab-h5 button, .crab-h5 a, .crab-h5 input, .crab-h5 textarea { -webkit-tap-highlight-color: transparent; }
.crab-h5 button, .crab-h5 a { touch-action: manipulation; }
.crab-h5 :focus-visible { outline: 3px solid #236caf; outline-offset: 4px; }
.crab-h5 input, .crab-h5 textarea, .crab-h5 select { font-family: var(--sans); }
.crab-h5 input[type=checkbox] { accent-color: var(--ink); }
.crab-h5 .ui-icon { display: block; width: 20px; height: 20px; flex: none; }
.crab-h5 .mobile-header { position: relative; min-height: 54px; margin: 0 0 18px; padding: 0 0 14px; gap: 10px; border-bottom: 1.6px solid var(--ink); }
.crab-h5 .mobile-header h3 { max-width: calc(100% - 108px); margin: 0 auto; font-size: 18px; font-weight: 900; line-height: 1.4; letter-spacing: -.4px; text-align: center; }
.crab-h5 .mobile-header .small-icon { border: var(--comic-line); background: var(--surface); border-radius: 50%; }
.crab-h5 .mobile-header .back-button { width: 40px; height: 40px; font-size: 27px; line-height: 1; }
.crab-h5 .mobile-header .post-icon { display: block; width: 20px; height: 20px; }
.crab-h5 .crab-header-dot { position: absolute; right: 10px; width: 9px; height: 9px; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); }
.crab-h5 .small-icon { flex: none; min-width: 44px; min-height: 44px; color: var(--ink); font-size: 20px; }
.crab-h5 .detail-header-actions, .crab-h5 .create-actions { right: 0; top: 0; }
.crab-h5 .app-brand strong { font-size: 16px; font-weight: 900; }
.crab-h5 .app-brand .brand-circle { border: var(--comic-line); color: var(--ink); background: var(--sun); border-radius: 12px; }
.crab-h5 .crab-page-intro { position: relative; display: flex; align-items: center; gap: 12px; min-height: 118px; margin: 0 0 22px; padding: 18px 16px; border: var(--comic-line); border-radius: 18px; background: var(--blue); box-shadow: var(--crab-small-shadow); }
.crab-h5 .crab-page-intro > div { min-width: 0; flex: 1; }
.crab-h5 .crab-page-intro h1, .crab-h5 .crab-page-intro h2, .crab-h5 .crab-page-intro strong { display: block; font-size: 23px; font-weight: 900; line-height: 1.45; letter-spacing: -.5px; }
.crab-h5 .crab-page-intro p { margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.crab-h5 .crab-page-art { width: 76px; flex: 0 0 76px; align-self: center; }
.crab-h5 .crab-page-art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Reusable controls: the outlined objects from the discovery scene. */
.crab-h5 .primary-button, .crab-h5 .ghost-button, .crab-h5 .card-action, .crab-h5 .work-primary, .crab-h5 .work-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 16px;
  border: var(--comic-line); border-radius: 13px; color: var(--ink); background: var(--surface); font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none;
}
.crab-h5 .primary-button, .crab-h5 .work-primary { background: var(--coral); box-shadow: var(--crab-small-shadow); }
.crab-h5 .primary-button:active, .crab-h5 .work-primary:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.crab-h5 .ghost-button, .crab-h5 .work-secondary { box-shadow: none; }
.crab-h5 .text-button { min-height: 44px; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.crab-h5 .danger-button { background: var(--coral); }
.crab-h5 button:disabled { opacity: .5; cursor: default; }
.crab-h5 .mobile-input, .crab-h5 .mobile-textarea, .crab-h5 .mobile-select { width: 100%; min-height: 50px; padding: 12px 14px; border: var(--comic-line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 16px; line-height: 1.65; }
.crab-h5 .mobile-textarea { min-height: 142px; resize: vertical; }
.crab-h5 .mobile-input::placeholder, .crab-h5 .mobile-textarea::placeholder { color: #7a727e; }
.crab-h5 .mobile-input:focus, .crab-h5 .mobile-textarea:focus { outline: 3px solid #79b8f666; outline-offset: 2px; }
.crab-h5 .form-label { margin: 20px 0 9px; font-size: 14px; font-weight: 700; color: var(--ink); }
.crab-h5 .form-label:first-child { margin-top: 0; }
.crab-h5 .form-card, .crab-h5 .auth-panel, .crab-h5 .review-panel, .crab-h5 .checkout-card, .crab-h5 .order-detail-card { padding: 18px; margin: 14px 0; border: var(--comic-line); border-radius: var(--crab-radius); background: var(--surface); box-shadow: none; }
.crab-h5 .form-card p { margin: 10px 0; line-height: 1.7; }
.crab-h5 .form-card a, .crab-h5 .policy-link { color: var(--ink); text-underline-offset: 4px; }
.crab-h5 .state-banner { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--ink-2); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.crab-h5 .state-banner.error { color: #8f2e22; background: #ffe3dc; border-color: #cc695780; }
.crab-h5 .state-banner.success { color: #225444; background: #daf4e5; border-color: #4c997480; }
.crab-h5 .state-banner.pending { color: #6a501e; background: var(--yellow-soft); border-color: #aa873b80; }
.crab-h5 .toast { z-index: 999; bottom: calc(100px + env(safe-area-inset-bottom)); max-width: min(360px, calc(100vw - 36px)); border: var(--comic-line); border-radius: 13px; color: var(--ink); background: var(--sun); box-shadow: var(--crab-small-shadow); font-size: 14px; line-height: 1.65; text-align: center; }
.crab-h5 .empty-view { padding: 36px 16px 42px; color: var(--ink-2); }
.crab-h5 .empty-view strong { margin: 14px 0 10px; color: var(--ink); font-size: 18px; font-weight: 900; }
.crab-h5 .empty-view p { margin: 0 0 24px; font-size: 14px; line-height: 1.8; }
.crab-h5 .crab-empty { width: 100%; height: auto; margin: 0 auto 16px; }
.crab-h5 .crab-empty .crab-page-art { display: block; width: 94px; max-width: 100%; margin: 0 auto 16px; }
.crab-h5 .crab-empty svg { display: block; width: 100%; height: auto; overflow: visible; }
.crab-h5 .discover-view .crab-empty { padding: 12px 8px 24px; }
.crab-h5 .discover-view .crab-empty strong { margin: 8px 0; }
.crab-h5 .discover-view .crab-empty p { margin-bottom: 16px; }
/* The discovery hero already carries the mascot; keep its empty result compact. */
.crab-h5 .discover-view .crab-empty .crab-page-art { display: none; }
.crab-h5 .empty-icon { width: 54px; height: 54px; border: var(--comic-line); background: var(--sun); color: var(--ink); }
.crab-h5 .tag, .crab-h5 .post-category { border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; color: var(--ink); background: var(--blue-soft); font-size: 11px; line-height: 1.5; }
.crab-h5 .tag.green { background: #daf4e5; color: #225444; }
.crab-h5 .tag.purple { background: var(--peach); color: #793b2d; }
.crab-h5 .status-tag, .crab-h5 .post-extra, .crab-h5 .verified-tag { font-size: 11px; line-height: 1.5; }
.crab-h5 .status-tag { color: var(--ink-2); background: var(--soft); }
.crab-h5 .status-tag.review { background: var(--yellow-soft); color: #6a501e; }
.crab-h5 .status-tag.published, .crab-h5 .verified-tag { background: #daf4e5; color: #225444; }
.crab-h5 .status-tag.rejected, .crab-h5 .status-tag.delisted { background: var(--peach); color: #8f2e22; }

/* Welcome and account recovery keep one readable form above the keyboard. */
.crab-h5 .login-app .login-scroll { padding: calc(22px + var(--h5-safe-top)) 22px max(30px, env(safe-area-inset-bottom)); }
.crab-h5 .auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crab-h5 .auth-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.crab-h5 .auth-brand strong { font-size: 16px; font-weight: 900; letter-spacing: -.4px; }
.crab-h5 .brand-icon { display: block; flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.crab-h5 .auth-brand.wordmark > span { color: var(--coral); }
.crab-h5 .auth-monogram { display: grid; grid-auto-flow: column; place-content: center; width: 37px; height: 39px; border: var(--comic-line); border-radius: 11px; background: var(--sun); color: var(--ink); font: 600 14px var(--mono); box-shadow: 2px 2px 0 var(--ink); }
.crab-h5 .auth-monogram > span { color: #b73c29; }
.crab-h5 .auth-browse { flex: none; min-height: 44px; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.crab-h5 .auth-topbar-actions { display: flex; align-items: center; gap: 8px; }
.crab-h5 .auth-language { display: grid; place-items: center; flex: none; min-width: 40px; min-height: 40px; padding: 0 8px; border: var(--comic-line); border-radius: 50%; background: var(--sun); color: var(--ink); font: 600 11px var(--mono); box-shadow: 2px 2px 0 var(--ink); }
.crab-h5 .auth-main { max-width: 380px; margin: 34px auto 0; }
.crab-h5 .auth-intro { position: relative; margin-bottom: 26px; }
.crab-h5 .auth-eyebrow { margin: 0 0 12px; color: var(--ink-2); font: 600 10px var(--mono); letter-spacing: 1.4px; }
.crab-h5 .auth-intro h1 { position: relative; margin: 0; font-size: 29px; line-height: 1.5; font-weight: 900; letter-spacing: -.8px; overflow-wrap: anywhere; }
.crab-h5 .auth-intro h1 > span { display: inline-block; }
.crab-h5 .auth-intro > p:last-child { position: relative; margin: 12px 0 0; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.crab-h5 .auth-welcome .auth-intro { margin: 0; padding: 26px 21px 25px; border: var(--comic-line); border-radius: 18px 18px 0 0; background: var(--blue); }
.crab-h5 .auth-welcome .illustrated-intro { padding-top: 24px; }
.crab-h5 .auth-intro .crab-auth-mascot, .crab-h5 .auth-intro .intro-crab, .crab-h5 .auth-intro > svg { display: block; width: 94px; height: 80px; margin: -2px 0 5px auto; overflow: visible; }
.crab-h5 .crab-auth-mascot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.crab-h5 .auth-form { display: flex; flex-direction: column; }
.crab-h5 .auth-welcome .auth-form { padding: 24px 21px; border: var(--comic-line); border-top: 0; border-radius: 0 0 18px 18px; background: var(--surface); box-shadow: var(--crab-small-shadow); }
.crab-h5 .auth-form > label, .crab-h5 .auth-label-row label { color: var(--ink); font-size: 14px; font-weight: 700; }
.crab-h5 .auth-form > label { margin: 20px 0 9px; }
.crab-h5 .auth-form > label:first-of-type { margin-top: 0; }
.crab-h5 .auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: 10px; }
.crab-h5 .auth-forgot { min-height: 44px; padding-left: 12px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.crab-h5 .auth-form .mobile-input { height: 52px; margin: 0; background: #fff; }
.crab-h5 .auth-form .auth-submit-button { width: 100%; min-height: 52px; margin: 24px 0 0; font-size: 16px; }
.crab-h5 .auth-submit-button .ticket-stub { display: none; }
.crab-h5 .auth-submit-button .ticket-label { flex: 1; }
.crab-h5 .auth-submit-button .ticket-arrow { font-size: 22px; }
.crab-h5 .auth-form .auth-agreement { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; color: var(--ink-2); font-size: 12px; font-weight: 400; line-height: 1.8; }
.crab-h5 .auth-agreement input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; }
.crab-h5 .auth-agreement a { color: var(--ink); text-underline-offset: 4px; }
.crab-h5 .auth-switch-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; color: var(--ink-2); font-size: 13px; }
.crab-h5 .auth-switch-row button { min-height: 44px; padding: 8px 5px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.crab-h5 .auth-footer { margin: 22px 0 0; text-align: center; }
.crab-h5 .auth-footer-line { display: block; width: 32px; height: 4px; margin: auto; border-radius: 50%; background: var(--coral); }
.crab-h5 .auth-footer p { margin: 13px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.8; }
.crab-h5 .auth-legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.crab-h5 .auth-legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 12px; font-weight: 700; text-underline-offset: 4px; }
.crab-h5 .auth-wechat { width: 100%; margin-top: 16px; }
.crab-h5 .auth-secondary-page .auth-panel { padding: 20px; }
.crab-h5 .auth-panel p { margin: 16px 0 20px; font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.crab-h5 .auth-panel-heading { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-soft); }
.crab-h5 .auth-panel-heading .brand-circle { display: none; }
.crab-h5 .auth-panel-heading strong { color: var(--ink); font-size: 16px; }
.crab-h5 .auth-panel-heading small { color: var(--ink-2); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }

/* Publishing, search and collections reuse production form and card behavior. */
.crab-h5 .status-line, .crab-h5 .draft-status { padding: 8px 0; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.crab-h5 .upload-grid { gap: 9px; margin-top: 12px; }
.crab-h5 .upload-cell { min-width: 0; border: 1.6px dashed var(--ink); border-radius: 12px; background: var(--blue-soft); color: var(--ink); }
.crab-h5 .upload-cell .remove-image { width: 44px; height: 44px; border: var(--comic-line); border-radius: 0 0 0 12px; color: var(--ink); background: var(--sun); }
.crab-h5 .type-tabs { margin: 8px 0 20px; border: var(--comic-line); border-radius: 12px; }
.crab-h5 .type-tabs button { min-height: 46px; padding: 10px 6px; color: var(--ink-2); background: var(--surface); font-size: 13px; }
.crab-h5 .type-tabs button + button { border-left: 1px solid var(--line); }
.crab-h5 .type-tabs button.is-active { color: var(--ink); background: var(--sun); font-weight: 700; }
.crab-h5 .form-actions { gap: 10px; margin-top: 18px; }
.crab-h5 .form-actions > * { min-width: 0; padding-inline: 10px; }
.crab-h5 .search-box { min-height: 50px; gap: 8px; padding: 0 12px; border: var(--comic-line); border-radius: 25px; background: #fff; color: var(--ink-2); box-shadow: var(--crab-small-shadow); }
.crab-h5 .search-box input { min-height: 48px; color: var(--ink); font-size: 16px; }
.crab-h5 .search-box .search-submit { min-height: 44px; flex: none; color: var(--ink); font-size: 13px; }
.crab-h5 .search-box .small-icon { min-width: 32px; width: 32px; }
.crab-h5 .search-section { margin: 22px 0; }
.crab-h5 .search-section-title { min-height: 34px; margin-bottom: 10px; color: var(--ink-2); font-size: 13px; }
.crab-h5 .chips { flex-wrap: wrap; gap: 8px; overflow: visible; }
.crab-h5 .chip { min-height: 42px; padding: 10px 13px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); font-size: 12px; }
.crab-h5 .chip.trend { color: var(--ink); background: var(--yellow-soft); }
.crab-h5 .mobile-tabs, .crab-h5 .result-tabs, .crab-h5 .collection-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 20px; padding: 2px 1px 9px; border-bottom: 1px solid var(--line); }
.crab-h5 .mobile-tabs::-webkit-scrollbar, .crab-h5 .result-tabs::-webkit-scrollbar, .crab-h5 .collection-tabs::-webkit-scrollbar { display: none; }
.crab-h5 .mobile-tab, .crab-h5 .result-tabs button, .crab-h5 .collection-tabs button { flex: 1 0 auto; min-height: 44px; padding: 9px 12px; border: 1.6px solid transparent; border-radius: 11px; color: var(--ink-2); background: transparent; font-size: 13px; white-space: nowrap; }
.crab-h5 .mobile-tab.is-active, .crab-h5 .result-tabs button.is-active, .crab-h5 .collection-tabs button.is-active { border-color: var(--ink); color: var(--ink); background: var(--sun); font-weight: 700; }
.crab-h5 .mobile-tab.is-active::after { display: none; }
.crab-h5 .collection-actions { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 8px 2px 12px; margin-top: -8px; border-bottom-color: var(--line); }
.crab-h5 .collection-actions .text-button { margin: 0; font-size: 12px; }
.crab-h5 .collection-actions .status-tag { flex-basis: 100%; width: fit-content; background: transparent; padding-inline: 0; }
.crab-h5 .mobile-card { border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: none; }
.crab-h5 .feed-grid { gap: 12px; }
.crab-h5 .feed-card { padding: 0; }
.crab-h5 .feed-card .post-card-copy { padding: 8px 10px 0; }
.crab-h5 .feed-card h4 { font-size: 14px; line-height: 1.55; }
.crab-h5 .feed-card .post-card-footer { margin: 8px 10px 0; padding: 9px 0 12px; }
.crab-h5 .meta-line, .crab-h5 .author strong, .crab-h5 .metric-row { color: var(--ink-2); font-size: 11px; }
.crab-h5 .post-card-footer .author { gap: 5px; }
.crab-h5 .card-action-group { grid-template-columns: 1fr; }

/* Community meetups: photographic cards with a date pinned to the image. */
.crab-h5 .activity-intro { margin-bottom: 18px; padding: 20px; border: var(--comic-line); border-radius: 18px; background: var(--blue); box-shadow: var(--crab-small-shadow); }
.crab-h5 .activity-intro strong { font-size: 22px; font-weight: 900; line-height: 1.5; letter-spacing: -.4px; }
.crab-h5 .activity-intro p { margin-top: 9px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.crab-h5 .activity-tabs { gap: 9px; margin: 20px 0 18px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
.crab-h5 .activity-tabs button { min-height: 44px; padding: 9px 14px; border: var(--comic-line); border-radius: 22px; color: var(--ink); background: var(--surface); font-size: 13px; }
.crab-h5 .activity-tabs button.is-active { color: var(--ink); background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.crab-h5 .event-list { gap: 22px; }
.crab-h5 .event-card { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; border: var(--comic-line); border-radius: 16px; overflow: hidden; }
.crab-h5 .event-photo { position: relative; }
.crab-h5 .event-card .event-thumb { display: block; width: 100%; height: 180px; margin: 0; border-radius: 0; object-fit: cover; }
.crab-h5 .date-tile { position: absolute; top: 12px; left: 12px; display: grid; justify-items: center; gap: 2px; min-width: 49px; padding: 8px 10px; border: var(--comic-line); border-radius: 10px; color: var(--ink); background: var(--sun); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-4deg); }
.crab-h5 .date-tile b { font: 600 22px/1 var(--mono); }
.crab-h5 .date-tile small { font: 600 10px var(--mono); }
.crab-h5 .event-card-copy { padding: 16px 16px 0; }
.crab-h5 .event-card-copy h4 { margin: 10px 0 8px; font-size: 19px; font-weight: 900; line-height: 1.5; }
.crab-h5 .event-card-copy p { margin-bottom: 13px; color: var(--ink-2); font-size: 13px; line-height: 1.75; }
.crab-h5 .event-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.crab-h5 .event-card-footer { flex-wrap: wrap; gap: 6px 12px; margin: 15px 16px 0; padding: 13px 0 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.crab-h5 .event-card-footer strong { color: var(--ink); }
.crab-h5 .event-detail-thumb { display: block; width: 100%; height: 220px; margin: 0 0 18px; border: var(--comic-line); border-radius: 16px; }
.crab-h5 .event-detail-title { margin: 12px 0 18px; font-size: 25px; font-weight: 900; line-height: 1.5; letter-spacing: -.4px; }
.crab-h5 .event-detail-meta { gap: 10px; margin-bottom: 18px; padding: 17px; border: var(--comic-line); border-radius: 14px; color: var(--ink-2); background: var(--surface); }
.crab-h5 .event-detail-meta span { font-size: 13px; line-height: 1.65; }
.crab-h5 .event-detail-body { color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.crab-h5 .event-host { gap: 11px; margin: 22px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--yellow-soft); }
.crab-h5 .event-host .avatar { width: 38px; height: 38px; }
.crab-h5 .event-host strong { font-size: 13px; }
.crab-h5 .event-host small { margin-top: 5px; color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.crab-h5 .rating-row { gap: 6px; margin: 16px 0; }
.crab-h5 .rating-row button { min-width: 44px; min-height: 44px; font-size: 30px; }
.crab-h5 .rating-row button.is-active { color: #bd7900; }
.crab-h5 .review-panel .primary-button { margin-top: 16px; }

/* Detail keeps a persistent composer and the existing working post actions. */
.crab-h5 .post-detail { --post-ink: var(--ink); --post-muted: var(--ink-2); --post-line: var(--line); --post-blue: var(--ink); --post-soft: var(--soft); font-family: var(--sans); }
.crab-h5 .post-topbar { min-height: calc(68px + var(--h5-safe-top)); padding: calc(10px + var(--h5-safe-top)) 18px 10px; border-bottom: var(--comic-line); background: var(--sand); }
.crab-h5 .post-topbar-title { font-size: 15px; font-weight: 900; }
.crab-h5 .post-topbar-title span { font-family: var(--mono); font-size: 9px; font-weight: 600; }
.crab-h5 .post-icon-button { border: var(--comic-line); background: var(--surface); color: var(--ink); }
.crab-h5 .post-detail .post-scroll { padding: 0; }
.crab-h5 .post-author { padding: 20px 18px; gap: 10px; }
.crab-h5 .post-avatar { border: var(--comic-line); background: var(--blue-soft); color: var(--ink); }
.crab-h5 .post-author-info a, .crab-h5 .post-comment-meta a { color: inherit; text-decoration: none; }
.crab-h5 .post-author-info strong { font-size: 14px; }
.crab-h5 .post-author-info > span { font-size: 11px; }
.crab-h5 .post-place-stamp { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 44px; margin: 0 0 16px; padding: 6px 12px 6px 10px; border: var(--comic-line); border-radius: 18px; background: var(--yellow-soft); color: var(--ink); font: 600 12px/1.4 var(--mono); overflow-wrap: anywhere; text-decoration: none; }
.crab-h5 .post-place-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.crab-h5 .post-place-actions .post-place-stamp { margin: 0; }
.crab-h5 .post-apple-maps { min-height: 44px; padding: 8px 12px; border: var(--comic-line); border-radius: 18px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; }
.crab-h5 .post-place-stamp .post-icon { width: 15px; height: 15px; flex: none; }
.crab-h5 .post-follow.is-self { display: none; }
.crab-h5 .post-button { min-height: 44px; padding: 0 13px; border: var(--comic-line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 12px; }
.crab-h5 .post-follow { min-width: 80px; background: var(--sun); }
.crab-h5 .post-edit { min-width: 80px; background: var(--sun); }
.crab-h5 .post-follow.is-active { border-color: var(--ink); background: var(--soft); color: var(--ink-2); }
.crab-h5 .post-gallery { margin: 0 12px; border: var(--comic-line); border-radius: 14px; background: var(--surface); }
.crab-h5 .post-detail .detail-hero { display: block; width: 100%; height: auto; aspect-ratio: auto; max-height: none; border-radius: 0; object-fit: contain; }
.crab-h5 .post-gallery .gallery-count { background: var(--sand); color: var(--ink); border: var(--comic-line); font: 600 11px var(--mono); }
.crab-h5 .post-gallery .gallery-prev, .crab-h5 .post-gallery .gallery-next { color: var(--ink); background: var(--sun); border: var(--comic-line); }
.crab-h5 .post-copy { padding: 16px 20px 0; }
.crab-h5 .post-translate { border-color: transparent; padding-right: 0; background: transparent; color: var(--ink-2); }
.crab-h5 .post-detail .detail-title { margin: 12px 0 18px; font: 900 25px/1.5 var(--sans); letter-spacing: -.5px; }
.crab-h5 .post-detail .detail-body { color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.crab-h5 .post-contact, .crab-h5 .post-service { padding: 16px; border: var(--comic-line); border-radius: 14px; background: var(--blue-soft); }
.crab-h5 .post-reactions { gap: 8px; padding: 24px 0; }
.crab-h5 .post-reaction { min-width: 70px; padding: 0 11px; }
.crab-h5 .post-reaction.is-active { border-color: var(--ink); color: var(--ink); background: var(--peach); }
.crab-h5 .post-reaction.is-active .post-icon { fill: var(--coral); }
.crab-h5 .post-comments { padding: 23px 20px 30px; border-top: var(--comic-line); background: var(--surface); }
.crab-h5 .post-comments-heading { margin-bottom: 22px; }
.crab-h5 .post-comments-heading h2 { font-size: 18px; font-weight: 900; }
.crab-h5 .post-comments-heading h2 span { color: var(--ink); background: var(--yellow-soft); font-family: var(--mono); }
.crab-h5 .post-comments-heading > span { font-size: 11px; }
.crab-h5 .post-comment { gap: 10px; border-color: var(--line); }
.crab-h5 .post-comment-delete, .crab-h5 .post-comment-translate, .crab-h5 .post-comment-reply, .crab-h5 .post-comment-report { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.crab-h5 .post-comment-like { color: var(--ink-2); }
.crab-h5 .post-comment-like.is-active { color: #FF7A63; }
.crab-h5 .post-comment-like.is-active .post-icon { fill: #ff7a6333; stroke: #FF7A63; }
.crab-h5 .post-detail .post-comment p { color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.crab-h5 .post-comments-empty .post-icon { color: var(--ink); background: var(--blue-soft); border: var(--comic-line); }
.crab-h5 .post-comments-empty strong { color: var(--ink-2); }
.crab-h5 .post-composer { flex: none; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); border-top: var(--comic-line); background: var(--sand); box-shadow: none; }
.crab-h5 .post-compose-row { gap: 9px; }
.crab-h5 .post-compose-row textarea { padding: 12px; border: var(--comic-line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 16px; }
.crab-h5 .post-compose-row textarea:focus { border-color: var(--ink); outline: 3px solid #79b8f666; }
.crab-h5 .post-button-primary { background: var(--coral); box-shadow: 2px 2px 0 var(--ink); }
.crab-h5 .post-send:disabled { color: #756e76; background: var(--soft); border-color: var(--line); box-shadow: none; }
.crab-h5 .post-send .post-icon { display: none; }

/* Personal corner, following and avatar editing. */
.crab-h5 .h5-social-home { padding: 0; }
.crab-h5 .social-profile-head { position: relative; flex-wrap: wrap; gap: 15px; padding: 20px 18px; border: var(--comic-line); border-radius: 18px; background: var(--blue); box-shadow: var(--crab-small-shadow); }
.crab-h5 .social-profile-avatar { width: 72px; height: 72px; border: 3px solid var(--surface); box-shadow: 0 0 0 1.6px var(--ink); }
.crab-h5 .social-profile-head > div { flex: 1; min-width: 120px; }
.crab-h5 .social-profile-head h1 { margin: 5px 0 8px; font: 900 22px/1.4 var(--sans); }
.crab-h5 .social-profile-head p { margin-bottom: 9px; color: var(--ink-2); font-size: 12px; line-height: 1.75; }
.crab-h5 .social-profile-head small { font-size: 11px; color: var(--ink-2); }
.crab-h5 .social-eyebrow { font: 600 8px var(--mono); letter-spacing: 1px; color: var(--ink-2); }
.crab-h5 .social-profile-head > .social-text-button { margin-left: auto; padding: 8px 12px; border: var(--comic-line); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 12px; }
.crab-h5 .social-quick-links { margin: 18px 0 6px; padding: 12px 0; border: var(--comic-line); border-radius: 14px; background: var(--surface); }
.crab-h5 .social-quick-links button { min-height: 60px; gap: 5px; }
.crab-h5 .social-quick-links button + button { border-left: 1px solid var(--line); }
.crab-h5 .social-quick-links strong { font: 600 23px var(--mono); }
.crab-h5 .social-quick-links span { font-size: 12px; color: var(--ink-2); }
.crab-h5 .social-tabs { justify-content: space-between; gap: 8px; margin: 12px 0 20px; padding: 5px 0 10px; border-bottom: 1px solid var(--line); }
.crab-h5 .social-tabs > span { padding: 10px 0; font-size: 16px; font-weight: 900; }
.crab-h5 .social-tabs > button { min-height: 44px; padding: 10px 0 10px 8px; font-size: 12px; color: var(--ink-2); }
.crab-h5 .social-tabs [aria-current=page]::before { display: none; }
.crab-h5 .social-tabs [aria-current=page]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 3px; border-radius: 50%; background: var(--coral); }
.crab-h5 .social-post-grid { gap: 18px 12px; }
.crab-h5 .social-post { overflow: hidden; padding-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.crab-h5 .social-post > img { aspect-ratio: 4 / 5; border-radius: 0; }
.crab-h5 .social-post > div { padding: 0 11px; }
.crab-h5 .social-post h3 { margin: 11px 0 8px; font: 700 14px/1.6 var(--sans); }
.crab-h5 .social-post span { font-size: 11px; }
.crab-h5 .social-empty { padding: 32px 15px 38px; }
.crab-h5 .social-empty strong { font-weight: 900; }
.crab-h5 .social-empty p { margin-bottom: 22px; font-size: 13px; }
.crab-h5 .social-member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; padding: 14px 0 20px; }
.crab-h5 .social-member-actions h2 { font: 900 17px var(--sans); }
.crab-h5 .social-member-buttons { display: flex; flex: 0 0 auto; gap: 8px; }
.crab-h5 .social-member-buttons .primary-button,
.crab-h5 .social-member-buttons .ghost-button { min-width: 72px; min-height: 44px; padding: 0 12px; }
.crab-h5 .chat-view .mobile-scroll { padding-bottom: 16px; }
.crab-h5 .chat-compose {
  position: relative;
  z-index: 4;
  margin-bottom: calc(76px + env(safe-area-inset-bottom));
}
.crab-h5 .chat-thread { display: flex; flex-direction: column; gap: 10px; min-height: 36dvh; padding-bottom: 8px; }
.crab-h5 .chat-row { display: flex; }
.crab-h5 .chat-row.is-mine { justify-content: flex-end; }
.crab-h5 .chat-row.is-theirs { align-items: flex-end; gap: 6px; }
.crab-h5 .chat-bubble { max-width: min(82%, 280px); padding: 10px 14px 8px; border: 1.6px solid var(--ink); border-radius: 16px 14px 16px 12px; background: #fff; overflow-wrap: anywhere; }
.crab-h5 .chat-row.is-theirs .chat-bubble { max-width: min(calc(100% - 50px), 280px); }
.crab-h5 .chat-report { flex: none; min-width: 44px; min-height: 44px; padding: 6px; border: 0; color: var(--ink-2); background: transparent; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.crab-h5 .chat-row.is-mine .chat-bubble { border-radius: 14px 16px 12px 16px; background: var(--yellow-soft); }
.crab-h5 .chat-bubble p { margin: 0; font-size: 15px; line-height: 1.55; }
.crab-h5 .chat-bubble time { display: block; margin-top: 6px; color: var(--ink-2); font: 600 10px/1 var(--mono); }
.crab-h5 .chat-unavailable { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; }
.crab-h5 .chat-empty { padding: 28px 12px; }
.crab-h5 .chat-compose { display: flex; flex: none; gap: 8px; align-items: flex-end; padding: 10px 16px 12px; border-top: 1.6px solid var(--ink); background: var(--sand, #F6EBD6); }
.crab-h5 .chat-compose textarea { flex: 1; min-height: 44px; max-height: 96px; margin: 0; padding: 10px 12px; border: 1.6px solid var(--ink); border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.4; resize: none; }
.crab-h5 .chat-compose .primary-button { min-width: 72px; min-height: 44px; }
.crab-h5 .social-private-note { margin: 10px 0 18px; font-size: 12px; }
.crab-h5 .social-follow-list article { gap: 12px; padding: 17px 0; }
.crab-h5 .social-follow-list .member-link { font-size: 14px; }
.crab-h5 .social-text-button { color: var(--ink); font-size: 12px; text-underline-offset: 4px; }
.crab-h5 .menu-list { padding: 0 16px; margin: 22px 0 0; border: var(--comic-line); border-radius: 16px; background: var(--surface); box-shadow: none; }
.crab-h5 .menu-list button { min-height: 63px; gap: 12px; padding: 12px 0; border-bottom-color: var(--line); color: var(--ink); background: transparent; font-size: 13px; }
.crab-h5 .menu-icon { width: 32px; height: 32px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); background: var(--blue-soft); }
.crab-h5 .menu-list button:nth-child(3n + 2) .menu-icon { background: var(--yellow-soft); }
.crab-h5 .menu-list button:nth-child(3n) .menu-icon { background: var(--peach); }
.crab-h5 .menu-chevron { color: var(--ink-2); font-size: 22px; }
.crab-h5 .profile-avatar-card { margin: 16px 0; padding: 18px 14px; border: var(--comic-line); border-radius: 16px; background: var(--surface); }
.crab-h5 .avatar-picker { margin: 0; }
.crab-h5 .avatar-picker-head { gap: 14px; }
.crab-h5 .avatar-preview { width: 74px; height: 74px; border: var(--comic-line); }
.crab-h5 .avatar-picker-head h3 { font: 700 17px var(--sans); }
.crab-h5 .avatar-picker-head p { font-size: 12px; }
.crab-h5 .avatar-upload { min-height: 44px; padding: 9px 12px; border: var(--comic-line); border-radius: 11px; color: var(--ink); background: var(--sun); font-size: 13px; }
.crab-h5 .avatar-options { gap: 5px; }
.crab-h5 .avatar-option { gap: 7px; padding: 10px 3px; border: 1.6px solid transparent; border-radius: 12px; font-size: 11px; }
.crab-h5 .avatar-option .member-avatar { width: 50px; height: 50px; }
.crab-h5 .avatar-option[aria-pressed=true] { border-color: var(--ink); background: var(--yellow-soft); background-image: none; }
.crab-h5 .avatar-option[aria-pressed=true]::before, .crab-h5 .avatar-option[aria-pressed=true] > span:first-of-type { background: none; }
.crab-h5 .avatar-option[aria-pressed=true]::before { display: none; }
.crab-h5 .avatar-check { top: 3px; right: 5px; color: var(--ink); }
.crab-h5 .avatar-status { color: var(--ink-2); font-size: 12px; }
.crab-h5 .avatar-status.is-error { color: #8f2e22; }
.crab-h5 .profile-head { padding: 18px; border: var(--comic-line); border-radius: 16px; background: var(--blue); }
.crab-h5 .profile-head > div { min-width: 0; }
.crab-h5 .profile-head h4 { color: var(--ink); overflow-wrap: anywhere; }
.crab-h5 .profile-avatar { border: 3px solid var(--surface); box-shadow: 0 0 0 1.6px var(--ink); }
.crab-h5 .profile-edit-link { min-height: 44px; color: var(--ink); font-size: 13px; }

/* Inbox, service lifecycle and past orders share the same visual objects. */
.crab-h5 .notification { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 11px; margin: 14px 0; padding: 17px 14px; border: var(--comic-line); border-radius: 14px; background: var(--surface); }
/* The legacy notification renderer sets three border edges inline. */
.crab-h5 .notification[style] { border: var(--comic-line) !important; background: var(--surface) !important; }
.crab-h5 .notification:last-child { border-bottom: var(--comic-line); }
.crab-h5 .notification .notice-icon { width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 10px; color: var(--ink); background: var(--sun); }
.crab-h5 .notification strong { font-size: 14px; line-height: 1.6; }
.crab-h5 .notification p { margin: 6px 0 0; color: var(--ink-2); font-size: 12px; line-height: 1.75; }
.crab-h5 .notification time { font-size: 10px; color: var(--ink-2); }
.crab-h5 .work-dialog, .crab-h5 .work-detail, .crab-h5 .work-center { padding: 0; }
.crab-h5 .work-center > h1 { display: none; }
.crab-h5 .work-dialog h1, .crab-h5 .work-detail h1 { margin: 16px 0; font: 900 23px/1.5 var(--sans); }
.crab-h5 .work-dialog > p, .crab-h5 .work-intro { color: var(--ink-2); font-size: 14px; line-height: 1.85; }
.crab-h5 .work-offer { margin: 22px 0; padding: 18px; border: var(--comic-line); border-radius: 16px; background: var(--blue-soft); background-image: none; }
.crab-h5 .work-service { background: var(--yellow-soft); }
.crab-h5 .work-offer h2 { font: 900 18px/1.6 var(--sans); }
.crab-h5 .work-offer-heading > span:first-child { color: var(--ink); }
.crab-h5 .work-facts, .crab-h5 .work-parties { gap: 16px; }
.crab-h5 .work-facts small, .crab-h5 .work-parties small { font-size: 11px; }
.crab-h5 .work-facts strong { font-size: 15px; }
.crab-h5 .work-steps { gap: 9px; padding-top: 16px; border-top-color: var(--line); }
.crab-h5 .work-steps li { font-size: 11px; }
.crab-h5 .work-steps li::before { font-family: var(--mono); color: var(--ink); }
.crab-h5 .work-status { border: 1px solid var(--line); border-radius: 7px; color: var(--ink-2); background: var(--surface); font-size: 11px; }
.crab-h5 .work-status-active, .crab-h5 .work-status-helping { background: var(--blue-soft); color: #294e75; }
.crab-h5 .work-status-pending, .crab-h5 .work-status-awaiting-confirmation { background: var(--yellow-soft); color: #6a501e; }
.crab-h5 .work-status-completed { background: #daf4e5; color: #225444; }
.crab-h5 .work-status-cancelled, .crab-h5 .work-status-declined, .crab-h5 .work-status-closed { background: var(--soft); color: var(--ink-2); }
.crab-h5 .work-offer-actions { display: flex; flex-direction: column; gap: 10px; }
.crab-h5 .work-offer-actions .work-primary, .crab-h5 .work-offer-actions .work-secondary { width: 100%; }
.crab-h5 .work-helpers { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.crab-h5 .work-contact { margin: 14px 0; }
.crab-h5 .work-contact .work-primary { width: 100%; }
.crab-h5 .work-dialog textarea { min-height: 150px; border: var(--comic-line); border-radius: 12px; font: 16px/1.8 var(--sans); }
.crab-h5 .work-parties a { color: var(--ink); font-size: 15px; }
.crab-h5 .work-budget strong { font: 600 22px var(--mono); }
.crab-h5 .work-request-note { padding: 16px; border: 1px solid var(--line); background: var(--surface); }
.crab-h5 .work-next { gap: 10px; }
.crab-h5 .work-next > button, .crab-h5 .work-next > a { flex: 1; }
.crab-h5 .work-timeline li::before { width: 9px; height: 9px; left: -19px; border: 1px solid var(--ink); background: var(--coral); }
.crab-h5 .work-list { gap: 16px; }
.crab-h5 .work-record { padding: 18px; border: var(--comic-line); border-radius: 16px; background: var(--surface); }
.crab-h5 .work-record h2 { font: 700 17px/1.6 var(--sans); }
.crab-h5 .work-record-link { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crab-h5 .work-message { margin: 14px 0; padding: 18px; border: var(--comic-line); border-radius: 14px; background: var(--surface); }
.crab-h5 .work-message p { margin: 7px 0 10px; color: var(--ink-2); font-size: 13px; }
.crab-h5 .work-unread { background: var(--yellow-soft); }
.crab-h5 .work-unread-dot { color: #b74430; }
.crab-h5 .orders-summary { gap: 8px; margin: 14px 0 24px; padding: 20px 9px; border: var(--comic-line); border-radius: 16px; background: var(--blue); }
.crab-h5 .orders-summary strong { color: var(--ink); font: 600 21px var(--mono); overflow-wrap: anywhere; }
.crab-h5 .orders-summary small { display: block; margin-top: 8px; color: var(--ink-2); font-size: 11px; }
.crab-h5 .order-list { gap: 16px; }
.crab-h5 .order-card { padding: 18px; border: var(--comic-line); border-radius: 16px; background: var(--surface); box-shadow: none; }
.crab-h5 .order-card > strong { color: var(--ink); font-size: 16px; line-height: 1.6; }
.crab-h5 .order-kind { color: var(--ink-2); font-size: 11px; }
.crab-h5 .order-status { padding: 5px 9px; font-size: 11px; }
.crab-h5 .order-status.success { color: #225444; background: #daf4e5; }
.crab-h5 .order-status.pending { color: #6a501e; background: var(--yellow-soft); }
.crab-h5 .order-status.danger { color: #8f2e22; background: var(--peach); }
.crab-h5 .order-status.neutral { color: var(--ink-2); background: var(--soft); }
.crab-h5 .order-card-meta { align-items: flex-start; margin-top: 13px; color: var(--ink-2); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.crab-h5 .order-card-meta b { color: var(--ink); font: 600 17px var(--mono); }
.crab-h5 .order-card-foot { flex-wrap: wrap; margin-top: 13px; padding-top: 12px; color: var(--ink-2); border-color: var(--line); font-size: 11px; }
.crab-h5 .checkout-title h2 { margin: 14px 0; font-size: 23px; font-weight: 900; line-height: 1.5; }
.crab-h5 .checkout-row { padding: 13px 0; color: var(--ink-2); border-color: var(--line); font-size: 13px; line-height: 1.65; }
.crab-h5 .checkout-row strong { min-width: 0; max-width: 65%; color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.crab-h5 .checkout-total { align-items: center; padding-top: 17px; color: var(--ink-2); border-color: var(--line); font-size: 14px; }
.crab-h5 .checkout-total strong { color: var(--ink); font: 600 24px var(--mono); }
.crab-h5 .order-detail-head { display: block; padding: 8px 0 12px; }
.crab-h5 .order-detail-head h2 { margin: 12px 0; font-size: 23px; font-weight: 900; line-height: 1.5; }
.crab-h5 .order-detail-head small { color: var(--ink-2); font: 600 10px var(--mono); overflow-wrap: anywhere; }
.crab-h5 .phone-screen[data-screen=order-detail] .mobile-scroll > .ghost-button { margin-top: 12px; margin-right: 8px; }
.crab-h5 .phone-screen[data-screen=content-action] .mobile-scroll > button { display: block; width: 100%; margin-top: 12px; }

/* Preferences, city selection and trust pages use clear, generous list rows. */
.crab-h5 .secondary-lead { margin: 4px 0 23px; }
.crab-h5 .secondary-lead strong { color: var(--ink); font-size: 22px; font-weight: 900; line-height: 1.5; }
.crab-h5 .secondary-lead p { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.8; }
.crab-h5 .permission-row, .crab-h5 .secondary-action { min-height: 64px; gap: 12px; padding: 15px; border: var(--comic-line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.crab-h5 .permission-icon { flex: none; width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: 10px; background: var(--sun); color: var(--ink); font-size: 20px; }
.crab-h5 .permission-row strong { font-size: 14px; }
.crab-h5 .permission-row small { margin-top: 5px; color: var(--ink-2); font-size: 11px; line-height: 1.6; }
.crab-h5 .city-list { margin-top: 22px; border: var(--comic-line); border-radius: 16px; background: var(--surface); }
.crab-h5 .city-option { min-height: 72px; padding: 15px 18px; border-bottom-color: var(--line); background: transparent; color: var(--ink); }
.crab-h5 .city-option.is-active { color: var(--ink); background: var(--blue-soft); }
.crab-h5 .city-option-name { gap: 13px; }
.crab-h5 .city-option strong { font-size: 16px; }
.crab-h5 .city-radio { width: 23px; height: 23px; border: var(--comic-line); background: var(--surface); }
.crab-h5 .city-option.is-active .city-radio { border-color: var(--ink); color: var(--ink); background: var(--sun); }
.crab-h5 .preference-group, .crab-h5 .settings-group { padding: 5px 17px; margin: 18px 0; border: var(--comic-line); border-radius: 16px; background: var(--surface); }
.crab-h5 .preference-group h4, .crab-h5 .settings-group h4, .crab-h5 .secondary-section h4 { margin: 14px 0 8px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.crab-h5 .preference-option, .crab-h5 .settings-row, .crab-h5 .toggle-row { min-height: 72px; gap: 14px; padding: 16px 0; color: var(--ink); border-top-color: var(--line); background: transparent; }
.crab-h5 .preference-option strong, .crab-h5 .settings-row strong, .crab-h5 .toggle-row strong { color: var(--ink); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.crab-h5 .preference-option small, .crab-h5 .settings-row small, .crab-h5 .toggle-row small { margin-top: 5px; color: var(--ink-2); font-size: 11px; line-height: 1.7; }
.crab-h5 .preference-option > span:first-child, .crab-h5 .settings-row > span:first-child, .crab-h5 .toggle-row > span { min-width: 0; }
.crab-h5 .preference-option.is-active { color: var(--ink); }
.crab-h5 .preference-check { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border: var(--comic-line); border-radius: 50%; color: var(--ink); background: var(--surface); }
.crab-h5 .preference-option.is-active .preference-check { background: var(--sun); }
.crab-h5 .language-preference-group .preference-option { justify-content: flex-start; }
.crab-h5 .preference-option > .language-option-code { display: grid; place-items: center; flex: 0 0 39px; width: 39px; height: 35px; border: 1.5px solid var(--ink); border-radius: 50% 45% 48% 43%; background: var(--soft); color: var(--ink); font: 600 10px/1 var(--mono); }
.crab-h5 .preference-option.is-active .language-option-code { background: var(--sun); transform: rotate(-3deg); }
.crab-h5 .language-option-copy { flex: 1; min-width: 0; }
.crab-h5 .language-preference-group .preference-check { margin-left: auto; }
.crab-h5 .toggle-row input { flex: none; appearance: none; position: relative; width: 45px; height: 28px; margin: 0; border: var(--comic-line); border-radius: 16px; background: var(--soft); cursor: pointer; }
.crab-h5 .toggle-row input::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border: 1px solid var(--ink); border-radius: 50%; background: var(--surface); transition: transform .18s ease; }
.crab-h5 .toggle-row input:checked { background: var(--blue); }
.crab-h5 .toggle-row input:checked::before { transform: translateX(16px); }
.crab-h5 .settings-row.danger strong { color: #963829; }
.crab-h5 .safety-hero { gap: 13px; padding: 19px 17px; margin-bottom: 25px; border: var(--comic-line); border-radius: 16px; color: var(--ink); background: var(--yellow-soft); }
.crab-h5 .safety-hero-icon { width: 34px; height: 34px; border: var(--comic-line); border-radius: 10px; color: var(--ink); background: var(--coral); }
.crab-h5 .safety-hero strong { font-size: 17px; font-weight: 900; line-height: 1.6; }
.crab-h5 .safety-hero p { margin-top: 8px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.crab-h5 .support-contact { margin: 8px 0 24px; }
.crab-h5 .support-contact > h4 { margin: 0 0 8px; color: var(--ink-2); font-size: 12px; line-height: 1.5; }
.crab-h5 .support-contact-lead { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.crab-h5 .support-contact-list { border: var(--comic-line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.crab-h5 .support-contact-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px; border-top: 1px solid var(--line); }
.crab-h5 .support-contact-row:first-child { border-top: 0; }
.crab-h5 .support-contact-row > div { min-width: 0; flex: 1; }
.crab-h5 .support-contact-row span { display: block; color: var(--ink-2); font-size: 11px; line-height: 1.5; }
.crab-h5 .support-contact-row strong { display: block; margin-top: 5px; color: var(--ink); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.crab-h5 .support-contact-row a { color: inherit; text-decoration: none; }
.crab-h5 .support-copy { flex: none; min-width: 44px; min-height: 44px; padding: 0 14px; border: var(--comic-line); border-radius: 12px; color: var(--ink); background: var(--sun); font-size: 13px; font-weight: 800; }
.crab-h5 .support-copy:active { translate: 1px 1px; }
.crab-h5 .secondary-section { margin: 22px 0; }
.crab-h5 .guidance-list, .crab-h5 .rule-list, .crab-h5 .report-reasons { border: var(--comic-line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.crab-h5 .guidance-list > div { gap: 12px; padding: 18px 15px; border-color: var(--line); }
.crab-h5 .guidance-list > div > span { width: 24px; height: 24px; border: 1px solid var(--ink); color: var(--ink); background: var(--blue-soft); font: 600 11px var(--mono); }
.crab-h5 .guidance-list strong { color: var(--ink); font-size: 14px; }
.crab-h5 .guidance-list small { margin-top: 7px; color: var(--ink-2); font-size: 12px; line-height: 1.8; }
.crab-h5 .rule-list p { padding: 17px; color: var(--ink-2); border-color: var(--line); font-size: 13px; line-height: 1.85; }
.crab-h5 .secondary-action { margin-top: 23px; font-size: 14px; }
.crab-h5 .report-reason { gap: 12px; min-height: 68px; padding: 16px; border-bottom-color: var(--line); color: var(--ink); background: var(--surface); font-size: 13px; }
.crab-h5 .report-reason > span { width: 22px; height: 22px; flex: none; border: var(--comic-line); }
.crab-h5 .report-reason.is-active { color: var(--ink); background: var(--blue-soft); }
.crab-h5 .report-reason.is-active > span { border-color: var(--ink); color: var(--ink); background: var(--sun); }
.crab-h5 .report-success { margin-top: 30px; padding: 25px 20px; border: var(--comic-line); border-radius: 18px; background: var(--surface); box-shadow: var(--crab-small-shadow); }
.crab-h5 .success-mark { width: 50px; height: 50px; margin-bottom: 18px; border: var(--comic-line); color: var(--ink); background: var(--blue); }
.crab-h5 .report-success strong { color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1.6; }
.crab-h5 .report-success p { margin: 14px 0 23px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.crab-h5 .manage-post-preview { padding: 15px; border: var(--comic-line); border-radius: 14px; background: var(--surface); }
.crab-h5 .manage-post-preview strong { color: var(--ink); font-size: 14px; }
.crab-h5 .manage-post-preview small { color: var(--ink-2); font-size: 12px; }

@media (hover: hover) {
  .crab-h5 .primary-button:not(:disabled):hover, .crab-h5 .work-primary:not(:disabled):hover, .crab-h5 .post-button-primary:not(:disabled):hover { color: var(--ink); background: #ff927c; border-color: var(--ink); }
  .crab-h5 .ghost-button:hover, .crab-h5 .post-icon-button:hover, .crab-h5 .post-button:not(.post-button-primary):not(:disabled):hover { color: var(--ink); border-color: var(--ink); background: var(--yellow-soft); }
}
@media (min-width: 600px) {
  .crab-h5 .phone-screen { border: var(--comic-line); border-radius: 36px; box-shadow: 8px 8px 0 var(--ink); }
}
@media (max-width: 360px) {
  .crab-h5 .mobile-scroll { padding-inline: 14px; }
  .crab-h5 .mobile-header h3 { font-size: 16px; }
  .crab-h5 .crab-page-intro { padding: 16px 14px; gap: 8px; }
  .crab-h5 .crab-page-intro h1, .crab-h5 .crab-page-intro h2, .crab-h5 .crab-page-intro strong { font-size: 21px; }
  .crab-h5 .crab-page-art { width: 62px; flex-basis: 62px; }
  .crab-h5 .login-app .login-scroll { padding-inline: 16px; }
  .crab-h5 .auth-brand strong { font-size: 14px; }
  .crab-h5 .auth-browse { font-size: 12px; }
  .crab-h5 .auth-welcome .auth-intro, .crab-h5 .auth-welcome .auth-form { padding-inline: 18px; }
  .crab-h5 .auth-intro h1 { font-size: 26px; }
  .crab-h5 .social-profile-head { padding: 17px 14px; gap: 12px; }
  .crab-h5 .social-profile-avatar { width: 60px; height: 60px; }
  .crab-h5 .social-profile-head h1 { font-size: 20px; }
  .crab-h5 .form-card { padding: 15px; }
  .crab-h5 .avatar-picker-head { gap: 10px; }
  .crab-h5 .avatar-preview { width: 62px; height: 62px; }
  .crab-h5 .avatar-option .member-avatar { width: 43px; height: 43px; }
  .crab-h5 .post-author { padding-inline: 16px; }
  .crab-h5 .post-copy, .crab-h5 .post-comments { padding-inline: 16px; }
  .crab-h5 .post-detail .detail-title { font-size: 23px; }
  .crab-h5 .post-reactions { gap: 7px; }
  .crab-h5 .post-button { padding-inline: 10px; }
  .crab-h5 .notification { grid-template-columns: 30px minmax(0, 1fr); }
  .crab-h5 .notification time { grid-column: 2; }
  .crab-h5 .orders-summary strong { font-size: 18px; }
  .crab-h5 .support-contact-row { padding-inline: 13px; gap: 10px; }
  .crab-h5 .support-contact-row strong { font-size: 14px; }
}
@media (max-height: 720px) {
  .crab-h5 .auth-main { margin-top: 24px; }
  .crab-h5 .auth-welcome .auth-intro { padding-block: 20px; }
  .crab-h5 .auth-intro .crab-auth-mascot, .crab-h5 .auth-intro .intro-crab, .crab-h5 .auth-intro > svg { width: 74px; height: 62px; }
}
/* Motion lifecycle and mobile accessibility additions. */
.crab-motion-paused, .crab-motion-paused * { animation-play-state: paused !important; }
.phone .search input { font-size: 16px; }
.phone .search input::placeholder { font-size: 14px; }
.phone .search:focus-within { outline: 0; box-shadow: var(--shadow); }
.phone .search input:focus,
.phone .search input:focus-visible,
.phone .search .crab-search-submit:focus,
.phone .search .crab-search-submit:focus-visible { outline: 0; box-shadow: none; }
.phone .locbtn {
  position: relative;
  height: auto;
  min-height: 32px;
  padding: 6px 11px 7px 9px;
  line-height: 1.25;
  overflow: visible;
  touch-action: manipulation;
}
.phone .locbtn::before { content: ''; position: absolute; inset: -7px 0; }
.phone .locnote {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: auto;
  min-height: 36px;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 7px 10px 8px 12px;
  overflow: visible;
  border: var(--comic-line);
  border-radius: 18px;
  background: var(--sun);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
  touch-action: manipulation;
}
.phone .locnote::before { content: ''; position: absolute; inset: -4px 0; }
.phone .locnote span {
  max-width: 9.5em;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone .loccaret {
  display: grid;
  place-items: center;
  width: 10px;
  height: 10px;
  margin-left: 1px;
  color: var(--ink);
  font-style: normal;
  flex: none;
  transform-origin: 50% 55%;
  transition: transform .18s ease;
}
.phone .loccaret svg {
  display: block;
  width: 10px;
  height: 10px;
}
.phone .locrow {
  /* The chips keep their own foreground layer above the mascot's hit area. */
  z-index: auto;
  min-width: 0;
  padding: 0 3px 3px 0;
  margin-bottom: -3px;
  flex-wrap: nowrap;
  align-items: center;
}
.phone .loclang,
.phone .loccity {
  position: relative;
  z-index: 8;
  display: inline-flex;
  min-width: 0;
  flex: 0 1 auto;
  align-items: center;
  overflow: visible;
}
.phone .loclang { max-width: calc(100% - 126px); }
.phone .locnote[aria-expanded="true"] .loccaret,
.phone .locbtn[aria-expanded="true"] .loccaret { transform: rotate(180deg); }
.phone .sky.has-language-menu {
  overflow: visible;
}
.phone .sky.has-language-menu .locrow {
  z-index: 8;
}
.phone .loclang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  z-index: 12;
  display: grid;
  box-sizing: border-box;
  width: 240px;
  max-width: none;
  max-height: min(276px, 42vh);
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px;
  border: var(--comic-line);
  border-radius: 16px;
  background: #fffefb;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.phone .loclang .loclang-menu {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  padding: 6px 6px 6px 6px;
  gap: 4px;
}
.phone .loclang-menu-scroller {
  display: grid;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.phone .loclang-menu-scroller::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.phone .loclang-rail {
  position: relative;
  flex: none;
  width: 8px;
  margin: 8px 1px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: #f6ebd6;
  touch-action: none;
}
.phone .loclang-thumb {
  position: absolute;
  left: -1px;
  right: -1px;
  top: 0;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  background: var(--sun);
  box-shadow: 1px 1px 0 var(--ink);
  pointer-events: none;
}
.phone .loclang-menu[hidden] { display: none; }
.phone .loclang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  text-align: left;
  color: var(--ink);
}
.phone .loclang-option b {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  background: #fff8e9;
  font: 600 10px/1 var(--mono);
}
.phone .loclang-option span {
  min-width: 0;
  padding: 2px 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone .loclang-option.is-active { background: var(--sun); }
.phone .loclang-option.is-active b { background: #fff; }
.phone .mascot { touch-action: manipulation; }
.phone .mascot.waving .claw.r { animation: crab-greet .75s ease-in-out; transform-box: view-box; transform-origin: 155px 94px; }
@keyframes crab-greet { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(20deg); } 70% { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) {
  .crab-h5 *, .crab-h5 *::before, .crab-h5 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.crab-h5 .event-photo.has-no-photo { min-height: 80px; background: #e4f2fc; }
