/* The owner's web app (D78). Colors and type come from tokens.css; mobile first, 360 px up. */
body.dueno {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: max(16px, env(safe-area-inset-top)) 16px calc(88px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.dueno * { box-sizing: border-box; }
.dueno .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dueno .eyebrow { margin: 0; color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.dueno h1 { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.dueno h2 { margin: 0 0 12px; font-size: 1rem; }
.dueno .chip { padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; white-space: nowrap; background: var(--surface-2); color: var(--text-muted); }
.dueno .chip.on { background: var(--ok-soft); color: var(--ok-text); }
.dueno .chip.off { background: var(--warn-soft); color: var(--warn-text); }
.dueno .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dueno .stats .stat:first-child { grid-column: 1 / -1; }
.dueno .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.dueno .stat .label { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.dueno .stat .value { margin: 4px 0 0; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dueno .stats .stat:first-child .value { font-size: 2.2rem; color: var(--accent); }
.dueno .bar { margin-bottom: 10px; }
.dueno .bar-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.95rem; margin-bottom: 4px; }
.dueno .bar-track { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.dueno .bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.dueno .list { list-style: none; margin: 0; padding: 0; }
.dueno .list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-top: 1px solid var(--border); }
.dueno .list li:first-child { border-top: 0; }
.dueno .list li span:first-child { flex: 1; }
.dueno .muted { color: var(--text-muted); }
.dueno .small { font-size: 0.85rem; }
.dueno .center { text-align: center; }
.dueno .note { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.dueno .warn { color: var(--warn-text); }
.dueno .note.warn { background: var(--warn-soft); }
.dueno .tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
}
.dueno .tabs button {
  min-height: 44px; border: 0; border-radius: 12px; font: inherit; font-size: 0.95rem;
  background: transparent; color: var(--text-muted); cursor: pointer;
}
.dueno .tabs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
@media (min-width: 720px) {
  body.dueno { max-width: 720px; margin: 0 auto; }
  .dueno .stats { grid-template-columns: repeat(3, 1fr); }
  .dueno .stats .stat:first-child { grid-column: auto; }
  .dueno .tabs { left: 50%; right: auto; width: 720px; transform: translateX(-50%); border-radius: 16px 16px 0 0; }
}
