/* The owner's activity dashboard. Tokens match the apps and the site: warm white ground, brown ink, mint actions. */
:root {
  --ground: #FFFAF5;
  --card: #FFFFFF;
  --ink: #3C2415;
  --ink-2: #5C4A3E;
  --line: rgba(125, 110, 99, 0.15);
  --line-strong: rgba(125, 110, 99, 0.3);
  --mint: #218A6C;
  --mint-ink: #235F4B;
  --mint-tint: #E8F5F0;
  --sage: #EEF3EC;
  --amber-tint: #FFF3E0;
  --orange: #B8651B;
  --grey: #7D6E63;
}
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/roboto-latin-v51.woff2') format('woff2'); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 14px/1.45 Roboto, "Noto Sans", system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.button { height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 600; }
.button.primary { border-color: var(--mint-ink); background: var(--mint-ink); color: #fff; }
.button.quiet { border-color: transparent; background: none; color: var(--ink-2); }
.button:focus-visible, .chip:focus-visible, .name:focus-visible, input:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.gate { max-width: 420px; margin: 18vh auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.gate h1 { font-size: 26px; line-height: 34px; }
.gate p { color: var(--ink-2); }
.gate-error { padding: 10px 12px; border-radius: 10px; background: var(--amber-tint); color: var(--ink) !important; }

.page { max-width: 1440px; margin: 0 auto; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 24px; }
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.head > div:first-child { flex: 1 1 280px; min-width: 0; }
.head h1 { font-size: 26px; line-height: 34px; }
.head p, .sub, .small { color: var(--ink-2); }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.small { font-size: 12px; line-height: 17px; }
.sub { font-size: 13px; line-height: 19px; margin: 2px 0 14px; }
.privacy { padding: 12px 16px; border-radius: 14px; background: var(--sage); font-size: 13px; line-height: 19px; }

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.tiles { gap: 12px; }
.tile, .card { background: var(--card); border: 1px solid var(--line); }
.tile { flex: 1 1 200px; padding: 16px 18px; border-radius: 16px; }
.tile .label { font-size: 13px; line-height: 18px; color: var(--ink-2); }
.tile .value { margin-top: 4px; font-size: 34px; line-height: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile.compact .value { font-size: 28px; line-height: 34px; }
.card { min-width: 0; padding: 20px 22px; border-radius: 20px; }
.card.wide { flex: 2 1 520px; }
.card.narrow { flex: 1 1 320px; }
.card h2 { font-size: 17px; line-height: 24px; font-weight: 600; }
.card h3 { margin: 18px 0 6px; font-size: 13px; line-height: 18px; font-weight: 600; }

.bars { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 18px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row .bar-label { flex: none; width: var(--label, 190px); }
.bar-row .track { flex: 1; min-width: 0; }
.bar-row .bar { display: block; height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--mint); }
.bars.orange .bar { background: var(--orange); }
.bar-row .count { flex: none; width: 40px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.callout { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--amber-tint); font-size: 13px; line-height: 19px; }

.chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 20px; }
.chart-head > div:first-child { flex: 1 1 240px; min-width: 0; }
.legend { display: flex; align-items: center; gap: 16px; font-size: 13px; line-height: 18px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; background: var(--mint); }
.swatch.deleted { background: var(--orange); }
.weeks { position: relative; height: 180px; margin-top: 18px; border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.week { position: relative; height: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 2px; }
.week .col { width: 12px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--mint); }
.week .col.deleted { background: var(--orange); }
.week .col.zero { border-radius: 0; }
.week .top { position: absolute; left: 0; right: 0; text-align: center; font-size: 12px; line-height: 16px; font-weight: 600; }
.week-labels { margin-top: 6px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 11px; line-height: 15px; color: var(--ink-2); text-align: center; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); font-size: 13px; line-height: 19px; margin-bottom: 8px; }
.note .small { display: block; margin-top: 4px; }

.people-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.people-head h2 { flex: 1 1 200px; }
.search { flex: 0 1 280px; min-width: 200px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); font: inherit; color: var(--ink); }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 44px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--mint-ink); background: var(--mint-tint); color: var(--mint-ink); font-weight: 600; }
.table-box { margin-top: 14px; overflow-x: auto; }
table { width: 100%; min-width: 940px; border-collapse: collapse; text-align: left; }
th { padding: 8px 12px; font-size: 12px; line-height: 17px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 0; }
tr:last-child td { border-bottom: 0; }
.name { min-height: 44px; padding: 0; border: 0; background: none; color: var(--mint-ink); font-weight: 600; text-align: left; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.dot.checking_in { background: var(--mint); }
.dot.in_alert { background: #8B2500; }
.dot.app_removed { background: var(--orange); border-radius: 2px; }
.dot.silent, .dot.paused { border-radius: 2px; }
.empty { padding: 18px 0; color: var(--ink-2); }

.scrim { position: fixed; inset: 0; background: rgba(60, 36, 21, 0.35); display: flex; justify-content: flex-end; }
.panel { width: min(560px, 100%); height: 100%; overflow-y: auto; padding: 24px 28px; background: var(--card); display: flex; flex-direction: column; gap: 18px; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; }
.panel-head > div { flex: 1; min-width: 0; }
.panel-head h2 { font-size: 22px; line-height: 30px; font-weight: 700; }
.close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 22px; line-height: 1; color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.fact { flex: 1 1 150px; padding: 12px 14px; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }
.fact.app_removed, .fact.in_alert { background: var(--amber-tint); border-color: transparent; }
.fact .value { margin-top: 2px; font-size: 15px; line-height: 21px; font-weight: 600; }
.panel h3 { margin: 0 0 8px; font-size: 15px; line-height: 21px; font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .mark { flex: none; width: 18px; text-align: center; font-weight: 700; color: var(--mint); }
.steps li.missing { color: var(--ink-2); }
.steps li.missing .mark { color: var(--grey); }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.phone { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); margin-bottom: 8px; }
.phone > span:first-child { flex: 1; min-width: 0; }
.phone strong { display: block; font-weight: 600; }
.badge { flex: none; padding: 3px 8px; border-radius: 6px; background: #F5F5F5; font-size: 12px; line-height: 17px; font-weight: 500; }
.badge.app_removed { background: var(--amber-tint); }
.badge.active { background: var(--mint-tint); }
.panel .privacy { margin-top: auto; font-size: 12px; line-height: 18px; }

@media (max-width: 640px) {
  .page { padding: 20px 16px 40px; }
  .bar-row .bar-label { width: 132px; }
  .panel { padding: 20px 16px; }
}
