/* Shared, in-flow home entry. No global resets or business UI selectors. */
a.mocho-home-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  background: transparent;
  font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-app-region: no-drag;
  touch-action: manipulation;
}
a.mocho-home-link svg { width: 18px; height: 18px; flex: 0 0 18px; color: inherit; }
a.mocho-home-link:hover { background: rgba(127, 127, 127, .12); }
a.mocho-home-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.mocho-home-row { display: flex; align-items: center; margin-bottom: 12px; }
.mocho-pomo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  padding: 4px max(12px, env(safe-area-inset-left));
  background: var(--bg, #1a1a2e);
  color: var(--text, #eaeaea);
  z-index: 99999;
}
.mocho-pomo-nav ~ .pomodoro-bar { top: 52px; }
body:has(> .mocho-pomo-nav) { padding-top: calc(var(--bar-height) + 52px); }
.title-bar > .mocho-home-link { margin-right: 12px; }
body:has(> .title-bar > .mocho-home-link) { --header-height: 52px; }
@media (max-width: 768px) {
  .title-bar:has(> .mocho-home-link) { flex-wrap: wrap; align-content: center; gap: 0 8px; }
  .title-bar:has(> .mocho-home-link) .logo { font-size: 12px; }
  .title-bar:has(> .mocho-home-link) .actions { width: 100%; margin-left: 0; overflow-x: auto; flex-shrink: 0; }
  .title-bar:has(> .mocho-home-link) .actions button { flex: 0 0 auto; min-height: 44px; white-space: nowrap; }
  body:has(> .title-bar > .mocho-home-link) { --header-height: 108px; }
}
@media (max-width: 640px) {
  .mocho-pomo-nav ~ .pomodoro-bar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  body:has(> .mocho-pomo-nav) { padding-top: 156px; }
}
