body { padding-bottom: env(safe-area-inset-bottom); }
.top {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand img { border-radius: 8px; }
.menu {
  position: sticky; top: 57px; z-index: 9; background: var(--panel); border-bottom: 1px solid var(--line);
  display: grid; padding: 6px 8px 10px;
}
.menu button {
  font: inherit; text-align: left; background: none; border: none; color: var(--text);
  padding: 14px 12px; border-radius: 10px; min-height: 48px; cursor: pointer;
}
.menu button:hover, .menu button[aria-current=page] { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
main { max-width: 560px; margin: 0 auto; padding: 16px; outline: none; }

.status { text-align: center; padding: 22px 16px; }
.status .who { color: var(--muted); margin-bottom: 4px; }
.status .state { font-size: 1.35rem; font-weight: 750; margin-bottom: 2px; }
.status .state.in { color: var(--in); }
.status .clock { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin: 6px 0 2px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--muted); margin-right: 8px; vertical-align: middle; }
.dot.in { background: var(--in); box-shadow: 0 0 0 4px color-mix(in srgb, var(--in) 25%, transparent); }

.stampbtn {
  display: block; width: 100%; min-height: 96px; border: none; border-radius: 22px; cursor: pointer;
  font: inherit; font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; margin: 4px 0 14px;
  color: #fff; background: var(--in); box-shadow: 0 6px 20px color-mix(in srgb, var(--in) 35%, transparent);
}
.stampbtn.out { background: var(--out); color: var(--bg); box-shadow: none; }
.stampbtn:active { transform: scale(.99); }
.stampbtn[disabled] { opacity: .6; }
.stampbtn small { display: block; font-size: .95rem; font-weight: 600; opacity: .9; color: inherit; }

.door { display: flex; gap: 10px; align-items: center; justify-content: center; font-weight: 650; color: var(--in); margin-bottom: 10px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: .9rem; }

.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.weeknav h2 { margin: 0; font-size: 1.1rem; text-align: center; }
.day {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; min-height: 60px;
}
.day.today { border-color: var(--brand); border-width: 2px; }
.day.weekend { background: color-mix(in srgb, var(--panel) 70%, var(--bg)); }
.day .d { width: 58px; flex: none; }
.day .d b { display: block; text-transform: capitalize; }
.day .d span { color: var(--muted); font-size: .85rem; }
.day .t { flex: 1; min-width: 0; font-size: .92rem; color: var(--muted); }
.day .t .badge { margin: 2px 4px 0 0; }
.day .h { font-weight: 750; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.sumline { display: flex; justify-content: space-between; font-weight: 700; padding: 10px 4px; border-top: 2px solid var(--line); }

.sess { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sess .grow b { font-variant-numeric: tabular-nums; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kinds .chip { border-radius: 12px; min-height: 52px; }
.timeinputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help ol { padding-left: 20px; } .help li { margin-bottom: 6px; }
.center { text-align: center; }
.logo-big { display: block; margin: 8px auto 12px; border-radius: 18px; }

/* Kort: læg TidsReg på hjemmeskærmen */
.card.install { margin-top: 16px; border: 2px solid var(--brand); }
.card.install h2 { margin-top: 0; }
ol.steps { padding-left: 1.3em; margin: 6px 0 10px; }
ol.steps li { margin: 6px 0; }
.ico { display: inline-block; padding: 0 4px; border: 1px solid currentColor; border-radius: 4px; font-size: .85em; }
.installbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand); font-weight: 600; text-decoration: none; }
.installbar span { font-weight: 500; white-space: nowrap; }
