/* Mobile app shell */
body.app { background: var(--bg); padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.app-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: #fff; border-bottom: 1px solid var(--line);
}
.bell { position: relative; text-decoration: none; font-size: 22px; }
.bell b {
  position: absolute; top: -4px; left: -8px; background: var(--danger); color: #fff; font-size: 11px;
  border-radius: 999px; padding: 0 6px; line-height: 18px;
}
.app-main { max-width: 640px; margin: 0 auto; padding: 14px 16px 24px; }
.app-main .card { margin-bottom: 14px; }
.app-main h2 { font-size: 20px; margin: 8px 0; }
.section-title { font-size: 17px !important; margin: 18px 0 10px !important; }

.tabbar {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: 12px;
  color: var(--muted); text-decoration: none;
}
.tabbar a i { font-style: normal; font-size: 20px; filter: grayscale(1); opacity: .7; }
.tabbar a.on { color: var(--brand); font-weight: 700; }
.tabbar a.on i { filter: none; opacity: 1; }

.job-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  margin-bottom: 10px; text-decoration: none; color: var(--text);
}
.job-card:active { background: var(--brand-soft); }
.job-card h3 { margin: 0; font-size: 16px; }
.jc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.match { background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; border-radius: 999px; padding: 0 10px; font-size: 14px; white-space: nowrap; }

.search { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; margin-bottom: 4px; }
.search input { padding: 9px 10px; }
.cta-card {
  display: block; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius);
  padding: 14px 16px; text-decoration: none; margin-bottom: 14px; font-weight: 700;
}
.empty { text-align: center; color: var(--muted); padding: 36px 12px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; }
.sticky-cta { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 8px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 2px #fde68a; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

.note { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: var(--text); }
.note.unread { border-color: var(--brand); background: #f0fdfa; }
.note b, .note span, .note small { display: block; }
.note span { color: var(--muted); font-size: 14px; }
.note small { color: var(--muted); font-size: 12px; margin-top: 4px; }

.login { max-width: 420px; margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.login h1 { font-size: 22px; margin: 0 0 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #f3f4f6; border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.seg a { text-align: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 15px; }
.seg a.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.big-input { font-size: 20px !important; text-align: center; letter-spacing: 1px; }
.big-input.code { letter-spacing: 10px; }

.install-banner {
  display: flex; align-items: center; gap: 10px; background: #fffbeb; border-bottom: 1px solid #fde68a;
  padding: 8px 16px; font-size: 14px;
}
.install-banner[hidden] { display: none; }
.install-banner span { flex: 1; }
.install-banner .x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
