/* PulseCap Ember — app shell: centered column + 5-tab bar */

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

#app-shell,
.app-shell {
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  background: var(--bg);
}

#view {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + max(var(--safe), 12px));
  box-sizing: border-box;
}

#view > .screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.dash-screen {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
/* Top-aligned stack. Centering the hero in the full column left big dead
   bands above and below the session card on tall phones. */
.dash-hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  min-height: 0;
}
.dash-tip__body {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--txt);
}
.dash-lower {
  flex: 0 0 auto;
  padding-bottom: 8px;
}
.dash-meta {
  margin: 0 16px 16px;
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.dash-meta__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt3);
  margin-bottom: 4px;
}
.dash-meta__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}
.dash-meta__sub {
  font-size: 13px;
  color: var(--txt2);
  margin-top: 4px;
  line-height: 1.45;
}
.dash-week {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.dash-week span {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--bg4, var(--bg-elev-2));
}
.dash-week span.on {
  background: var(--accent);
}

#nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + var(--safe));
  padding: 6px 8px calc(6px + var(--safe));
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  z-index: 500;
}

#nav .nb {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  padding: 4px 2px;
  border-radius: 12px;
  transition: color var(--dur-fast) var(--ease-ios), transform var(--dur-fast) var(--ease-ios);
}

#nav .nb svg {
  width: 22px;
  height: 22px;
}

#nav .nb.on {
  color: var(--accent-text);
}

#nav .nb:active {
  transform: scale(0.97);
}

#nav .nb span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cap desktop shell owns sidebar + wide content ≥900px — do not force phone column */
#bg-canvas {
  display: none ;
}

body.cap-desktop-nav #app,
body.cap-desktop-nav .app-frame,
body.cap-desktop-nav #app-shell,
body.cap-desktop-nav .app-shell {
  max-width: none;
  margin: 0;
  height: 100%;
}

@media (min-width: 900px) {
  #app-shell,
  .app-shell {
    max-width: none;
  }
}

@media (max-width: 899px) {
  #app-shell,
  .app-shell,
  #nav {
    max-width: 480px;
  }
}

.screen-enter {
  opacity: 0;
  transform: translateY(8px);
}
.screen-enter-active {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur-med) var(--ease-ios), transform var(--dur-med) var(--ease-ios);
}

@media (prefers-reduced-motion: reduce) {
  .screen-enter,
  .screen-enter-active {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Horizontal gutter — one primitive for Settings and other stacked forms */
.screen-pad {
  padding: var(--space-4, 16px);
  box-sizing: border-box;
}

/* Settings / picker tab strips: one scrolling row, never wrap */
.cap-tab-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 16px 10px;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(90deg, transparent, var(--pc-000000) 12px, var(--pc-000000) calc(100% - 12px), transparent);
  mask-image: linear-gradient(90deg, transparent, var(--pc-000000) 12px, var(--pc-000000) calc(100% - 12px), transparent);
}
.cap-tab-bar::-webkit-scrollbar { display: none; }
.cap-tab-bar .cap-tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.clipboard-pulse__dot{color:var(--c1);fill:currentColor}
