/* Home page hero: the phone-app chrome and real screen pieces. Loads after home.css. */

.app-phone {
  flex-direction: column;
  min-height: 640px;
  border-radius: 28px;
}

.app-phone .sidebar { display: none !important; }

.app-phone .phonebar,
.app-phone .tabbar { display: flex !important; }

.app-phone .phonebar {
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  background: var(--tt-navy);
  color: #fff;
}

/* The app's top-bar mark (layout.css .mobile-topbar-left::before): it hides
   logo.svg on phones and draws this circle instead. */
.app-phone .phonebar .mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.app-phone .phonebar div > strong,
.app-phone .phonebar div > span { display: block; line-height: 1.15; }

.app-phone .phonebar strong { font-size: 0.98rem; font-weight: 700; }

.app-phone .phonebar div > span {
  margin-top: 2px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.app-phone .stage-body {
  flex: 1;
  min-height: 520px;
  background: #eef2f8;
}

.app-phone .panel {
  inset: 0;
  top: 0;
  padding: 14px 14px 12px;
  gap: 8px;
  /* The clock scrolls these; no scrollbar or finger scrolling in the stage. */
  overflow: hidden;
}

.nw { white-space: nowrap; }

.app-phone .panel-title {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.app-phone .panel-sub {
  margin: -2px 0 4px;
  color: #64748b;
  font-size: 0.92rem;
}

.app-phone .tabbar {
  position: relative;
  height: 56px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.app-phone .tab {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 56px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.app-phone .tab svg { display: block; }

.app-phone .tab.is-on { color: #2463eb; font-weight: 700; }

.app-phone .tab-ind { display: none; }

.stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.season-value {
  margin: 2px 0 0;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.season-value.neg { color: #ef4444; }
.season-value.pos { color: #166534; }

.season-gap {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 700;
}

.sec {
  margin: 10px 0 4px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f3c68;
}

.sec:first-child { margin-top: 0; }

.strip-tight { margin-top: 4px; }

.entry-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 2px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.entry-list li:last-child .entry-row { border-bottom: 0; }

.entry-main { flex: 1; min-width: 0; }

.entry-name {
  display: block;
  font-weight: 650;
  font-size: 0.92rem;
}

.entry-note.overdue { color: var(--tt-danger); }

.entry-note {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.75rem;
  font-style: normal;
}

.entry-amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.entry-amt.owed,
.entry-amt.bad { color: #ef4444; }

.entry-amt.good { color: #166534; }

.entry-chev { color: #64748b; font-size: 1.1rem; }

.bar-list { list-style: none; margin: 0; padding: 0; }

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}

.bar-track {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  background: #eef2f8;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: #2463eb;
  transform-origin: left center;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
}

.act-pri {
  background: #2463eb;
  color: #fff;
}

.act-sec {
  background: #fff;
  color: #0f3c68;
  border: 1.5px solid #b8c9de;
}

.dues-player + .dues-player { margin-top: 8px; }

.dues-player {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 10px 12px;
}

.dues-player-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.dues-player-name { font-weight: 700; font-size: 0.92rem; }

.dues-player-owes {
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.dues-player-owes.owed { color: #ef4444; }
.dues-player-owes.clear { color: #166534; }

.dues-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 650;
}

.dues-chip.paid { background: #dcfce7; color: #166534; }
.dues-chip.overdue { background: #fee2e2; color: #991b1b; }
.dues-chip.unpaid { background: #fef3c7; color: #92400e; }

.dues-chip-mark {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.dues-chip-amt { margin-left: auto; font-variant-numeric: tabular-nums; }

.reminder-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef2f8;
  color: #0f3c68;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
}

.row-hot {
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 10px;
}

/* Same dim as the app's #sidebar-overlay. */
.scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(11, 31, 51, 0.48);
  opacity: 0;
  visibility: hidden;
}

.drawer {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(78%, 240px);
  background: #0f3c68;
  color: #fff;
  padding: 16px 10px;
  transform: translateX(-105%);
  box-shadow: 8px 0 24px rgba(11, 45, 78, 0.28);
}

/* App drawer: TT avatar, close button, Log Out at the foot (layout.css, phone). */
.drawer-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 2px 8px 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.drawer-x {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.drawer-out {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
}

.drawer-brand { margin: 0 8px; font-weight: 750; }
.drawer-team {
  margin: 4px 8px 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.drawer-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.drawer-item.is-on {
  background: #fff;
  color: #0f3c68;
  font-weight: 700;
}

.app-phone .sheet {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border: 0;
  border-radius: 26px 26px 0 0;
  padding: 26px 20px 22px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 60, 104, 0.18);
}

/* On a phone the app's export dialog is a sheet off the bottom edge: grab handle,
   round close button top right (components.css, max-width 500px). */
.app-phone .sheet::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: -8px auto 14px;
}

.sheet-x {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f3c68;
  font-size: 21px;
  line-height: 38px;
  text-align: center;
}

.mini .sheet-x { display: none; }

/* A whole app page in a feature card (Actuals): same title and subtitle as the app. */
.mini-page .panel-title {
  margin: 2px 2px 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.mini-page .panel-sub {
  margin: -6px 2px 2px;
  color: #64748b;
  font-size: 0.9rem;
}

.sheet-eye {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
}

.sheet h3 {
  margin: 4px 0 12px;
  color: #0f3c68;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.choice {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: #0f3c68;
  font-weight: 700;
}

.choice-pri { background: #2463eb; color: #fff; }

.choice-quiet {
  background: none;
  color: #2463eb;
  min-height: 40px;
  font-weight: 650;
}

.pdf-fill {
  position: absolute;
  inset: 0;
  background: #1d4ed8;
  transform: scaleX(0);
  transform-origin: left center;
}

.choice span { position: relative; }

.mini .sheet {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  opacity: 1;
  visibility: visible;
  margin-top: 10px;
}
