:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --border: #e5e7eb;

  --text: #111827;
  --muted: #6b7280;

  --accent: #2563eb;        /* calm blue */
  --accent-soft: #e0e7ff;

  --success: #16a34a;

  --radius: 16px;
  --shadow: 0 10px 24px rgba(0,0,0,.06);

  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  padding:24px;
  display:flex;
  justify-content:center;
}

.app{
  width:min(720px, 100%);
}

/* Header */
.header{
  margin-bottom:16px;
}

.titleRow{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background: var(--accent-soft);
  font-size:22px;
}

.titleText h1{
  margin:0;
  font-size:26px;
  letter-spacing: -0.2px;
}

.subtitle{
  margin:6px 0 0;
  color: var(--muted);
  line-height:1.35;
}

/* Vacation toggle row */
.modeRow{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.modeText{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.modeTitle{
  font-weight: 650;
}

.modeHint{
  color: var(--muted);
  font-size: 13px;
}

/* Switch */
.switch{
  position:relative;
  width:46px;
  height:26px;
  flex: 0 0 auto;
}
.switch input{ opacity:0; width:0; height:0; }

.slider{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#d1d5db;
  cursor:pointer;
  transition:.2s;
}
.slider:before{
  content:"";
  position:absolute;
  width:20px;
  height:20px;
  left:3px;
  top:3px;
  background:white;
  border-radius:999px;
  transition:.2s;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
}
.switch input:checked + .slider{
  background: var(--accent);
}
.switch input:checked + .slider:before{
  transform:translateX(20px);
}

/* Card */
.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}

/* Checklist */
.checklist{
  display:grid;
  gap:10px;
}

.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px;
  border:1px solid var(--border);
  border-radius:12px;
  cursor:pointer;
  transition: background .12s ease, transform .06s ease;
}

.item:hover{
  background:#fafafa;
}

.item:active{
  transform: scale(.995);
}

.left{
  display:flex;
  gap:12px;
  align-items:center;
}

.icon{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#f1f5f9;
  display:grid;
  place-items:center;
  font-size:18px;
  flex:0 0 auto;
}

.label{
  font-weight:650;
  line-height: 1.2;
}

.required{
  color: var(--muted);
  font-size:13px;
  margin-left:6px;
  font-weight: 500;
}

.meta{
  font-size:12px;
  color: var(--muted);
  margin-top:4px;
}

.check{
  width:26px;
  height:26px;
  border-radius:8px;
  border:2px solid var(--border);
  display:grid;
  place-items:center;
  color:transparent;
  flex: 0 0 auto;
}

.item.done{
  border-color: #bbf7d0;
  background:#f0fdf4;
}

.item.done .check{
  color: var(--success);
  border-color: var(--success);
}

/* Actions */
.actions{
  display:flex;
  gap:10px;
  margin-top:16px;
}

.btn{
  flex:1;
  padding:12px;
  border-radius:10px;
  font-weight:650;
  cursor:pointer;
  border:1px solid var(--border);
  background:white;
  transition: transform .06s ease, filter .15s ease;
}

.btn:active{
  transform: scale(.995);
}

.btn:disabled{
  cursor:not-allowed;
  opacity: 0.75;
}

.btn.primary{
  background: var(--accent);
  color:white;
  border:none;
}

.btn.primary:hover{
  filter: brightness(1.02);
}

.btn.secondary{
  background:#f3f4f6;
}

/* Download row shown after Ready to Leave */
.downloadRow{
  margin-top:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fafafa;
}

.downloadLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:12px;
  border-radius:10px;
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration:none;
  font-weight:700;
}

.downloadLink:hover{
  filter: brightness(0.98);
}

.downloadHelp{
  margin-top:8px;
  font-size:13px;
  color: var(--muted);
}

/* Message */
.msg{
  margin-top:12px;
  font-size:14px;
  color: var(--muted);
  min-height:20px;
}

/* Mobile */
@media (max-width: 420px){
  body{ padding:16px; }
  .titleText h1{ font-size:24px; }
  .item{ padding:12px; }
}