* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #000;
  color: #fff;
  font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100vh;
  padding: 16px;
  gap: 12px;
}

/* ── Top bar ─────────────────────────────────────────── */
#topbar {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  font-size: 15px;
  color: #aaa;
  padding-bottom: 10px;
  border-bottom: 1px solid #222;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

#datetime {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

#weather-info {
  display: -webkit-flex;
  display: flex;
  gap: 18px;
  -webkit-align-items: center;
  align-items: center;
}

#outdoor-temp {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

#tesla-info {
  font-size: 15px;
  color: #aaa;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px 10px;
}

#tesla-info:active {
  background: #1a1a1a;
}

/* ── Familie row ─────────────────────────────────────── */
#familie-row {
  background: #111;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
  color: #ccc;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-height: 32px;
}

#familie-row .familie-label {
  color: #888;
  margin-right: 8px;
}

#familie-row .familie-event {
  display: inline-block;
  margin-right: 16px;
}

#familie-row .event-location-weather {
  font-size: 12px;
  color: #888;
  margin-left: 4px;
}

/* ── Person columns ──────────────────────────────────── */
#columns {
  display: -webkit-flex;
  display: flex;
  gap: 10px;
  -webkit-flex: 1;
  flex: 1;
  overflow: hidden;
}

.person-col {
  -webkit-flex: 1;
  flex: 1;
  background: #0d0d0d;
  border-radius: 8px;
  padding: 12px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

.person-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e1e1e;
}

.past-count {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.events-today {
  -webkit-flex: 1;
  flex: 1;
  overflow: hidden;
}

.tomorrow-label {
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
  margin-bottom: 4px;
  border-top: 1px solid #1a1a1a;
  padding-top: 6px;
}

.event-item {
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-time {
  font-size: 15px;
  color: #888;
  display: block;
  font-weight: 500;
}

.event-title {
  font-size: 18px;
  color: #e0e0e0;
}

.event-title.allday {
  font-size: 17px;
  color: #c0c0c0;
}

.event-item.tomorrow .event-time {
  color: #444;
}

.event-item.tomorrow .event-title {
  color: #888;
  font-size: 16px;
}

.event-location-weather {
  display: block;
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}

/* ── This week ───────────────────────────────────────── */
#denne-uken {
  background: #0d0d0d;
  border-radius: 8px;
  padding: 10px 14px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

#denne-uken h3 {
  font-size: 11px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

#uke-events {
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.uke-event {
  font-size: 13px;
  color: #888;
}

.uke-event .uke-day {
  color: #555;
  margin-right: 4px;
}

/* ── Bottom bar ──────────────────────────────────────── */
#bottombar {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
}

#handleliste-btn {
  background: none;
  border: 1px solid #333;
  color: #aaa;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  -webkit-appearance: none;
}

#handleliste-btn:active {
  background: #1a1a1a;
}

#trumf-notice {
  font-size: 13px;
  color: #666;
}

/* ── Loading / error states ──────────────────────────── */
.loading {
  color: #333;
  font-size: 13px;
}

.no-events {
  color: #333;
  font-size: 13px;
  font-style: italic;
}
