/* Worker-facing phone surface — only what the shared components do not cover. */
.phone { background: var(--bg); }
.phone-status { font-family: var(--font-body); font-size: var(--t-13); font-weight: 800; }
.embed .phone-stage { padding: 0; height: 100dvh; background: var(--bg); }
.embed .phone { transform: none; width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
.embed .phone::before, .embed .phone-home { display: none; }
.logo-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 18px; }
.logo-block img { width: 132px; height: 132px; }
.logo-block .wm { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 6px; }
.logo-block .mtp { font-size: var(--t-13); font-weight: 800; letter-spacing: 0.12em; margin-top: 6px; }
.logo-block .mtp .m { color: var(--accent-ink); } .logo-block .mtp .p { color: var(--primary-ink); }
.lang-opt { min-height: 72px; }
.corr { display: none; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: oklch(1 0 0 / .6); font-size: var(--t-13); color: var(--ink-2); font-weight: 500; line-height: 1.45; }
.is-sel .corr { display: block; }
.trail { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.trail .pill b { font-family: var(--font-mono); }
.trail .arr { color: var(--muted-2); }
.altword { text-align: center; font-size: var(--t-13); color: var(--muted); font-weight: 600; margin: 8px 0; }
.stamp { font-size: var(--t-12); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.arch-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 12px; }
.sortbtn { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-12); font-weight: 700; color: var(--accent-ink); white-space: nowrap; padding: 6px 0; }
.count-note { font-size: var(--t-12); color: var(--muted); font-weight: 700; }
.rate-opt .badge.sym { width: 40px; }
.hint-row { display: flex; align-items: center; gap: 8px; font-size: var(--t-12); color: var(--muted); font-weight: 600; margin-top: 10px; }
.hint-row .ico { width: 16px; height: 16px; color: var(--accent); }
.detail-h { padding: 14px 16px; border-radius: var(--r-card); background: var(--accent-soft); }
.detail-h .stamp { color: var(--ink); }
@media (max-width: 600px) {
  .phone-stage { --phone-fit: 1; padding: 0; height: 100dvh; grid-template-columns: 1fr; background: var(--bg); }
  .phone { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .phone::before, .phone-home { display: none; }
  body.has-pocbar .phone-stage, body.has-pocbar .phone { height: calc(100dvh - var(--pocbar-h)); }
}
@media (max-height: 940px) { .phone-stage { --phone-fit: .95; } }
@media (max-height: 880px) { .phone-stage { --phone-fit: .90; } }
@media (max-height: 820px) { .phone-stage { --phone-fit: .84; } }
@media (max-height: 770px) { .phone-stage { --phone-fit: .78; } }
@media (max-height: 700px) { .phone-stage { --phone-fit: .72; } }
@media (max-height: 640px) { .phone-stage { --phone-fit: .66; } }

/* Sticky footer: solid, with a soft fade above it so cards never show through the button. */
.a-foot { position: sticky; bottom: 0; background: var(--bg); padding-top: 10px; }
.a-foot::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; pointer-events: none;
  background: linear-gradient(to top, var(--bg), oklch(0.966 0.011 250 / 0)); }
