#phone .hub-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 3px 6px max(3px, env(safe-area-inset-bottom));
  background: var(--wall-chrome);
  border-top: 1px solid var(--wall-line);
}
.hub-tabs a {
  display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 45px;
  text-decoration: none; color: var(--wall-muted); font-size: 11px; line-height: 1.2; font-weight: 600;
}
.hub-tabs a[aria-current] { color: var(--wall-accent); }
.hub-tabs a > span { position: relative; display: flex; }
.hub-tabs small { position: absolute; left: 85%; top: -2px; padding: 1px 4px; border-radius: 7px; background: var(--wall-accent); color: var(--wall-on-primary); font-size: 9px; }
#phone .hub-page { padding: 12px 14px 24px; }
#phone .hub-home-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 4px; }
#phone .hub-destination {
  text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 3px 8px; align-items: center;
  padding: 12px 9px; color: var(--wall-text); border: 1px solid var(--wall-line); border-radius: var(--wall-card-radius);
  background: var(--wall-surface);
}
.hub-destination-icon { grid-area: 1 / 1 / 3 / 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 34px; color: var(--wall-accent); }
.hub-destination strong { grid-area: 1 / 2; font-size: 15px; }
.hub-destination small { grid-area: 2 / 2 / 3 / 4; color: var(--wall-muted); font-size: 12px; line-height: 1.4; }
.hub-destination > svg { grid-area: 1 / 3; color: var(--wall-muted); }
.hub-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 15px 0 8px; }
.hub-section-head h2, .hub-empty h2, .hub-announcement h2 { margin: 0; font-size: 16px; line-height: 1.4; }
.hub-section-head h1, .hub-ident h1 { margin: 0; font-size: 21px; line-height: 1.3; }
.hub-section-head button, .hub-wallet button:not(.hub-primary) { display: inline-flex; align-items: center; gap: 3px; min-height: 38px; border: 0; background: transparent; color: var(--wall-muted); font-size: 13px; }
.hub-posts { padding-inline: 4px; }
.hub-post, .hub-row, .hub-notice { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; color: var(--wall-text); }
.hub-post { text-decoration: none; padding: 9px 0; border-top: 1px solid var(--wall-line); }
.hub-post img { border-radius: var(--wall-control-radius); object-fit: cover; flex: none; }
.hub-post > span, .hub-notice > span:nth-child(2) { flex: 1; min-width: 0; }
.hub-post small, .hub-post strong, .hub-notice strong, .hub-notice small { display: block; }
.hub-post small, .hub-ident small, .hub-row small, .hub-notice small, .hub-notice time { color: var(--wall-muted); font-size: 12px; }
.hub-post strong { font-size: 15px; line-height: 1.45; margin-top: 3px; }
.hub-post > svg, .hub-row > svg:last-child, .hub-notice > svg { flex: none; color: var(--wall-muted); }
.hub-ident { display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.hub-ident > div { flex: 1; }
.hub-ident small { display: block; margin-top: 5px; }
.hub-avatar { display: grid; place-items: center; width: 54px; height: 54px; overflow: hidden; border: 1px solid var(--wall-line); border-radius: 15px; background: var(--wall-surface); color: var(--wall-accent); }
.hub-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hub-wallet { padding: 11px 14px 12px; border: 1px solid var(--wall-line); border-radius: var(--wall-card-radius); background: linear-gradient(115deg, color-mix(in srgb, var(--wall-primary) 11%, var(--wall-surface)), var(--wall-surface) 75%); }
.hub-wallet > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-wallet > div > span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.hub-wallet > div > span svg { color: var(--wall-accent); }
.hub-wallet .hub-balance { font-size: 38px; letter-spacing: -.035em; line-height: 1.18; font-variant-numeric: tabular-nums; }
.hub-wallet p { margin: 8px 0 0; font-size: 12px; color: var(--wall-muted); }
#phone .hub-primary, #phone .hub-subtle { display: inline-flex; align-items: center; justify-content: center; gap: 3px; border-radius: var(--wall-control-radius); padding: 0 12px; min-height: 40px; font-weight: 650; }
#phone .hub-primary { background: var(--wall-primary); border: 0; color: var(--wall-on-primary); }
#phone .hub-subtle { border: 1px solid var(--wall-line); background: var(--wall-surface); color: var(--wall-accent); }
.hub-group { background: var(--wall-surface); border: 1px solid var(--wall-line); border-radius: var(--wall-card-radius); padding: 0 12px; }
.hub-row, .hub-notice { padding: 12px 1px; min-height: 49px; border: 0; background: transparent; }
.hub-row + .hub-row, .hub-notice + .hub-notice { border-top: 1px solid var(--wall-line); }
.hub-row strong { flex: 1; font-size: 14px; font-weight: 580; }
.hub-row > svg:first-child { color: var(--wall-accent); }
.hub-inbox .hub-section-head { margin: 4px 0 12px; min-height: 38px; }
.hub-filters { display: flex; gap: 6px; margin-bottom: 15px; }
.hub-filters button { min-height: 38px; padding: 0 12px; border: 1px solid var(--wall-line); background: transparent; border-radius: var(--wall-control-radius); color: var(--wall-muted); font-size: 13px; }
.hub-filters button[aria-pressed="true"] { border-color: var(--wall-accent); color: var(--wall-accent); background: var(--wall-surface); }
.hub-empty { display: grid; justify-items: center; text-align: center; padding: 34px 12px; border: 1px solid var(--wall-line); background: var(--wall-surface); border-radius: var(--wall-card-radius); }
.hub-empty-icon, .hub-notice-icon { display: grid; place-items: center; background: var(--wall-raised); color: var(--wall-accent); border-radius: 11px; }
.hub-empty-icon { width: 54px; height: 54px; margin-bottom: 13px; }
.hub-empty p, .hub-announcement p { color: var(--wall-muted); font-size: 13px; line-height: 1.6; margin: 5px 0 14px; }
.hub-notice-icon { width: 36px; height: 36px; position: relative; flex: none; }
.hub-notice-icon i { position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--wall-accent); }
.hub-notice strong { font-size: 14px; }
.hub-notice small { margin-top: 4px; }
.hub-notice time { flex: none; width: 40px; font: 11px/1.4 ui-monospace, monospace; }
.hub-announcement { margin-top: 16px; }
@media (max-width: 350px) {
  #phone .hub-page { padding-inline: 10px; }
  #phone .hub-destination { padding-inline: 6px; gap: 2px 4px; }
  .hub-destination-icon { width: 22px; }
}

.hub-resume { padding-inline: 4px; }
.hub-resume .hub-row { border-block: 1px solid var(--wall-line); }
.hub-resume .hub-row span { flex: 1; }
.hub-resume .hub-row small { display: block; margin-top: 3px; }
