:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #14141f;
  --bg-tertiary: #1e1e2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent: #00d4ff;
  --accent-secondary: #00ff88;
  --danger: #ff4466;
  --focus-ring: #00d4ff;
  --focus-glow: rgba(0, 212, 255, 0.4);
  --radius-md: 12px;
}

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

html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#app { width: 100%; height: 100%; position: relative; }

.screen {
  width: 100%; height: 100%; position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column;
}
.screen.hidden { display: none; }

.focusable {
  transition: all 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer; outline: none;
}
.focusable:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.hidden { display: none !important; }

/* ---- Header ---- */
.app-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-primary);
  flex-shrink: 0;
}
.app-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.app-sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.hdr-row { display: flex; align-items: center; gap: 14px; }
.hdr-icon { font-size: 34px; line-height: 1; flex-shrink: 0; }
.hdr-text { flex: 1; min-width: 0; }

/* ---- Progress bar ---- */
.progress-track {
  margin-top: 16px; height: 10px; border-radius: 6px;
  background: var(--bg-tertiary); overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), #0096ff);
  transition: width 0.25s ease;
}
.progress-track.complete .progress-fill {
  background: linear-gradient(90deg, var(--accent-secondary), #00cc66);
}

/* ---- Scroll region ---- */
.scroll {
  flex: 1; overflow-y: auto;
  padding: 16px 18px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }

/* ---- Trip cards (home) ---- */
.trip-card {
  display: flex; align-items: center; gap: 16px;
  min-height: 88px; padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  text-align: left; color: var(--text-primary);
  font: inherit; width: 100%;
}
.trip-icon { font-size: 36px; line-height: 1; flex-shrink: 0; }
.trip-info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.trip-name { font-size: 19px; font-weight: 600; }
.trip-status { font-size: 13px; color: var(--text-secondary); }
.trip-status.done { color: var(--accent-secondary); font-weight: 600; }
.mini-track {
  height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
}
.mini-fill {
  display: block; height: 100%;
  background: var(--accent); border-radius: 4px;
  transition: width 0.25s ease;
}
.mini-fill.done { background: var(--accent-secondary); }

/* ---- Category heading ---- */
.cat-head {
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 6px 4px 2px;
}

/* ---- Item rows (checklist) ---- */
.item {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}
.checkbox {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 8px; border: 2px solid var(--text-muted);
  position: relative; transition: all 0.15s ease;
}
.item.checked .checkbox {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}
.item.checked .checkbox::after {
  content: ''; position: absolute; left: 9px; top: 4px;
  width: 6px; height: 12px;
  border: solid #062a16; border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.item-label { font-size: 17px; }
.item.checked .item-label { color: var(--text-muted); text-decoration: line-through; }

/* ---- Action buttons ---- */
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.btn {
  min-height: 56px; border-radius: var(--radius-md);
  background: var(--bg-tertiary); color: var(--text-primary);
  font-size: 16px; font-weight: 600; font-family: inherit; width: 100%;
}
.btn-ghost { background: transparent; border: 2px solid var(--bg-tertiary); }
