:root {
  --bg: #f4f7fb;
  --card: rgba(255, 255, 255, 0.92);
  --ink: #162033;
  --muted: #6c768a;
  --line: #dde4f0;
  --high: #ff6b6b;
  --high-soft: #fff1f1;
  --normal: #4c7cf0;
  --normal-soft: #eef3ff;
  --done: #9aa5ba;
  --shadow: 0 18px 45px rgba(29, 41, 72, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 38%, #f8fbff 100%);
  color: var(--ink);
}

button, input, select { font: inherit; }

.app-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 14px 28px;
  overflow-x: hidden;
}

.page-nav {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 4px 0 14px;
}

.page-nav-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.page-nav-btn.active {
  background: var(--ink);
  color: white;
}

.notification-prompt {
  margin-bottom: 16px;
  padding: 14px;
}

.notification-prompt p {
  margin: 6px 0 0;
  color: var(--muted);
}

.notification-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hidden {
  display: none;
}

.pages {
  position: relative;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  padding: 10px 4px 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--normal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 0.95;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
}

.card, .lane {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.composer {
  padding: 14px;
  margin-bottom: 16px;
}

#job-text {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  background: #fff;
}

.composer-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
  justify-content: space-between;
}

.composer-row-wrap {
  flex-wrap: wrap;
}

.priority-toggle {
  display: flex;
  gap: 8px;
}

.priority-btn, .add-btn, .delete-btn {
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.priority-btn {
  padding: 10px 14px;
  border-radius: 999px;
  background: #edf1f7;
  color: var(--muted);
  font-weight: 600;
}

.priority-btn.active[data-priority="high"] {
  background: var(--high-soft);
  color: #bf2f2f;
}

.priority-btn.active[data-priority="normal"] {
  background: var(--normal-soft);
  color: #2854c5;
}

.add-btn {
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font-weight: 700;
}

.assignee-select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 14px;
  background: white;
  color: var(--ink);
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--ink);
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.board {
  display: grid;
  gap: 14px;
}

.lane {
  padding: 14px;
}

.high-lane {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.normal-lane {
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 100%);
}

.archive-lane {
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
}

.shopping-lane {
  background: linear-gradient(180deg, #f5fbf7 0%, #ffffff 100%);
}

.lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.lane-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lane-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.count-pill {
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 32, 51, 0.06);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.job-list {
  display: grid;
  gap: 10px;
}

.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.job-main-wrap {
  min-width: 0;
  flex: 1;
}

.job-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.job-check {
  width: 20px;
  height: 20px;
  accent-color: var(--normal);
  flex: 0 0 auto;
}

.job-text {
  font-size: 1rem;
  line-height: 1.35;
  word-break: break-word;
}

.job-card.done .job-text {
  text-decoration: line-through;
  color: var(--done);
}

.job-card.completing {
  opacity: 0.45;
  transform: scale(0.985);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.job-meta {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 32px;
}

.assignee-pill,
.job-time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.assignee-pill {
  background: var(--normal-soft);
  color: #2854c5;
}

.assignee-pill.empty {
  background: #eef1f5;
  color: var(--muted);
}

.job-time {
  background: #f4f6fa;
  color: var(--muted);
}

.delete-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f2f5f9;
  color: #7c879c;
  font-size: 1.2rem;
}

.danger-btn {
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  background: #ffe7e7;
  color: #c62828;
  font-weight: 700;
  cursor: pointer;
}

.empty-state {
  padding: 18px 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,0.65);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-version {
  margin-top: 14px;
  text-align: right;
  font-size: 0.75rem;
  color: #97a2b6;
}

@media (min-width: 720px) {
  .board {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
