:root {
  --berry: #d6336c;
  --berry-dark: #a61e4d;
  --berry-soft: #ffe0ec;
  --leaf: #2f9e44;
  --leaf-soft: #d3f9d8;
  --warn: #e67700;
  --warn-soft: #fff4e0;
  --maint: #1971c2;
  --maint-soft: #e7f5ff;
  --ink: #212529;
  --ink-soft: #495057;
  --line: #dee2e6;
  --bg: #fafaf8;
  --card: #ffffff;
  --chip: #f1f3f5;
  --shadow: 0 2px 6px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic UI","Meiryo",sans-serif;
  color:var(--ink);background:var(--bg);
  line-height:1.6;font-size:18px; /* bigger base */
  -webkit-text-size-adjust:100%;
}

.app-header{
  background:linear-gradient(135deg,var(--berry) 0%,var(--berry-dark) 100%);
  color:white;padding:16px 20px;
  box-shadow:var(--shadow);
  position:sticky;top:0;z-index:10;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:720px;margin:0 auto}
.title-block{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.app-title{margin:0;font-size:22px;font-weight:700}
.date-badge{font-size:17px;font-weight:600;background:rgba(255,255,255,.2);padding:4px 12px;border-radius:999px;align-self:flex-start}

.menu-btn{
  background:white;color:var(--berry-dark);border:0;
  width:48px;height:48px;border-radius:50%;
  font-size:32px;font-weight:700;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 4px rgba(0,0,0,.2);
}
.menu-btn:active{transform:scale(.95)}

/* Drawer */
.nav-drawer{
  position:fixed;top:0;right:-320px;width:300px;height:100%;
  background:white;z-index:20;transition:right .25s ease;
  box-shadow:-4px 0 16px rgba(0,0,0,.2);
  overflow-y:auto;
}
.nav-drawer.open{right:0}
.nav-drawer::before{
  content:"";position:fixed;inset:0;background:rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .25s;z-index:-1;
}
.nav-drawer.open::before{opacity:1;pointer-events:auto}
.nav-drawer-inner{padding:20px;padding-top:60px;display:flex;flex-direction:column;gap:8px}
.nav-close{
  position:absolute;top:10px;right:14px;background:none;border:0;
  font-size:36px;font-weight:700;color:var(--ink-soft);cursor:pointer;
  width:44px;height:44px;line-height:1;
}
.nav-item{
  display:block;padding:14px 16px;font-size:18px;font-weight:600;
  color:var(--ink);text-decoration:none;border-radius:8px;
  border:1px solid var(--line);
}
.nav-item:hover{background:var(--berry-soft);border-color:var(--berry-soft)}
.nav-item.active{background:var(--berry);color:white;border-color:var(--berry)}
.nav-footer{
  margin-top:auto;padding-top:14px;border-top:1px solid var(--line);
  font-size:12px;color:var(--ink-soft);
}

.main{max-width:720px;margin:0 auto;padding:14px 14px 40px}

/* Today banner */
.today-banner{
  background:white;border-radius:12px;padding:16px 18px;margin-bottom:14px;
  box-shadow:var(--shadow);
  display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;
}
.tb-weather{text-align:center}
.tb-weather .ico{font-size:52px;line-height:1}
.tb-weather .temps{font-weight:700;font-size:20px;margin-top:4px}
.tb-weather .tmax{color:#e03131}
.tb-weather .tmin{color:#1971c2}
.tb-weather .extra{font-size:13px;color:var(--ink-soft);margin-top:3px}
.tb-business{display:flex;flex-direction:column;gap:8px}
.biz-line{display:flex;gap:8px;flex-wrap:wrap}
.biz-tag{
  font-size:16px;font-weight:700;padding:5px 12px;border-radius:6px;
}
.biz-tag.open{background:var(--leaf-soft);color:var(--leaf)}
.biz-tag.closed{background:#e9ecef;color:#868e96}
.biz-tag.partial{background:#fff3bf;color:#8a6d00}
.biz-tag.closed .label{text-decoration:line-through}
.spray-ok-banner{
  background:var(--maint);color:white;font-weight:700;
  padding:10px 14px;border-radius:6px;font-size:15px;
  display:flex;align-items:center;gap:8px;
}
.spray-ok-banner::before{content:"💧";font-size:22px}

/* Tour card */
.tour-card{
  background:linear-gradient(135deg,#ffe0b2 0%,#ffd580 100%);
  border-radius:12px;padding:16px 20px;margin-bottom:14px;
  box-shadow:var(--shadow);
}
.tour-card .t-label{font-size:14px;color:#8a4500;font-weight:700}
.tour-card .t-house{font-size:28px;font-weight:700;color:#8a4500;margin-top:4px}
.tour-card .t-note{font-size:15px;color:#8a4500;margin-top:4px}

/* Priority card */
.priority-card-s{
  background:#fffbea;border-left:5px solid var(--warn);
  border-radius:10px;padding:14px 18px;margin-bottom:14px;
  box-shadow:var(--shadow);
}
.priority-card-s h3{margin:0 0 6px;font-size:16px;color:var(--warn)}
.priority-card-s .pr-item{font-size:15px;line-height:1.6;margin-bottom:4px}
.priority-card-s .pr-item strong{color:#8a4500}

/* Team cards */
.team-card{
  background:white;border-radius:14px;padding:18px 18px 14px;
  box-shadow:var(--shadow);margin-bottom:16px;border-top:6px solid var(--berry);
}
.team-card.maintenance{border-top-color:var(--maint)}
.team-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.team-head h2{margin:0;font-size:24px;font-weight:700}
.team-head .team-icon{font-size:36px;line-height:1}
.team-card.harvest .team-head h2{color:var(--berry-dark)}
.team-card.maintenance .team-head h2{color:var(--maint)}

.team-body{display:flex;flex-direction:column;gap:10px}
.task-item{
  display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;
  padding:14px 14px;border-radius:10px;background:#fafafa;
  border-left:5px solid var(--line);
  font-size:17px;
}
.team-card.harvest .task-item{border-left-color:var(--berry-soft)}
.team-card.maintenance .task-item{border-left-color:var(--maint-soft)}
.task-item.done{opacity:.55}
.task-item.done .t-title{text-decoration:line-through}
.task-item .t-icon{font-size:32px;text-align:center;line-height:1}
.task-item .t-house{
  display:inline-block;background:var(--chip);padding:3px 10px;border-radius:4px;
  font-size:13px;font-weight:700;margin-bottom:4px;
}
.task-item .t-title{font-weight:700;font-size:18px}
.task-item .t-detail{font-size:14px;color:var(--ink-soft);margin-top:4px;line-height:1.5}
.task-item .t-done-mark{
  font-size:13px;padding:4px 10px;border-radius:4px;background:var(--leaf-soft);color:var(--leaf);font-weight:700;
}
.empty-team{
  text-align:center;padding:24px 10px;color:#adb5bd;font-size:15px;font-style:italic;
  background:#fafafa;border-radius:10px;
}

/* Monthly theme (seasonal) */
.monthly-theme-card{
  background:linear-gradient(135deg, var(--berry-soft) 0%, #fff 90%);
  border-radius:14px;padding:16px 18px;margin-bottom:16px;
  box-shadow:var(--shadow);
  border-left:5px solid var(--berry);
}
.mt-title{font-size:15px;color:var(--ink-soft);font-weight:700;margin-bottom:4px}
.mt-primary{font-size:22px;font-weight:700;color:var(--berry-dark);margin-bottom:8px;line-height:1.3}
.mt-subs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.mt-subs .sub{
  font-size:13px;padding:3px 10px;border-radius:999px;
  background:white;border:1px solid var(--berry-soft);color:var(--berry-dark);font-weight:600;
}
.mt-toggle{
  background:none;border:1px solid var(--berry-soft);color:var(--berry-dark);
  padding:6px 14px;border-radius:6px;font-size:13px;font-weight:700;cursor:pointer;
  margin-top:2px;
}
.mt-toggle:hover{background:var(--berry-soft)}
.mt-list{
  margin-top:10px;display:flex;flex-direction:column;gap:6px;
}
.mt-item{
  display:grid;grid-template-columns:44px 1fr;gap:10px;
  background:white;padding:10px 12px;border-radius:8px;
  border-left:4px solid var(--line);
}
.mt-item.style-精密{border-left-color:#1971c2}
.mt-item.style-慣行{border-left-color:var(--leaf)}
.mt-no{
  font-size:11px;font-weight:700;background:var(--berry-soft);color:var(--berry-dark);
  padding:2px 8px;border-radius:3px;text-align:center;height:22px;line-height:22px;
}
.mt-action{font-size:15px;font-weight:700;color:var(--ink);margin-bottom:3px}
.mt-action .style{
  font-size:10px;font-weight:700;padding:1px 6px;border-radius:3px;margin-left:6px;
  background:var(--chip);color:var(--ink-soft);
}
.mt-action .style.精密{background:#e7f5ff;color:#1971c2}
.mt-action .style.慣行{background:var(--leaf-soft);color:var(--leaf)}
.mt-timing{font-size:12px;color:var(--leaf);font-weight:600;margin-bottom:4px}
.mt-detail{font-size:13px;color:var(--ink-soft);line-height:1.6}
.mt-warn{
  font-size:12px;color:#7a3d00;background:var(--warn-soft);
  padding:5px 8px;border-radius:4px;margin-top:5px;line-height:1.5;
}
.mt-warn::before{content:"⚠ ";font-weight:700}

/* Upcoming 7 days */
.upcoming-card{
  background:white;border-radius:14px;padding:16px 14px 10px;
  box-shadow:var(--shadow);margin-bottom:16px;
}
.upc-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;margin-bottom:8px;padding:0 4px}
.upc-head h2{margin:0;font-size:20px;color:var(--berry-dark)}
.upc-hint{font-size:12px;color:var(--ink-soft)}

.upc-day{
  display:grid;grid-template-columns:64px 56px 1fr;gap:10px;
  padding:10px 8px;border-top:1px solid var(--line);
  align-items:start;
}
.upc-day:first-child{border-top:0}
.upc-day.is-weekend-sun .upc-date{color:#c92a2a}
.upc-day.is-weekend-sat .upc-date{color:#1971c2}
.upc-day.spray-ok{background:var(--maint-soft);border-radius:6px}
.upc-date{
  font-size:19px;font-weight:700;text-align:center;line-height:1.1;
}
.upc-date .dow{display:block;font-size:12px;color:var(--ink-soft);margin-top:2px}
.upc-weather{text-align:center;font-size:12px;color:var(--ink-soft)}
.upc-weather .ico{font-size:26px;line-height:1}
.upc-weather .t{font-weight:700;color:var(--ink);font-size:13px}
.upc-weather .t .tmax{color:#e03131}
.upc-weather .t .tmin{color:#1971c2}
.upc-content{display:flex;flex-direction:column;gap:5px;min-width:0}
.upc-biz{display:flex;flex-wrap:wrap;gap:4px}
.upc-biz .tag{font-size:11px;padding:1px 7px;border-radius:3px;font-weight:700}
.upc-biz .tag.open{background:var(--leaf-soft);color:var(--leaf)}
.upc-biz .tag.closed{background:#f1f3f5;color:#868e96;text-decoration:line-through}
.upc-biz .tag.partial{background:#fff3bf;color:#8a6d00}
.upc-biz .tag.spray{background:var(--maint);color:white;margin-left:auto}
.upc-tour{
  font-size:12px;background:#ffe0b2;color:#8a4500;
  padding:3px 8px;border-radius:4px;font-weight:700;
}
.upc-tasks{display:flex;flex-direction:column;gap:3px}
.upc-task{
  display:flex;align-items:center;gap:6px;font-size:13px;
  padding:3px 0;line-height:1.3;
}
.upc-task.done{opacity:.5;text-decoration:line-through}
.upc-task .icon{font-size:16px;flex:0 0 auto}
.upc-task .team{
  flex:0 0 auto;font-size:10px;padding:1px 5px;border-radius:3px;font-weight:700;
}
.upc-task .team.harvest{background:var(--berry-soft);color:var(--berry-dark)}
.upc-task .team.maintenance{background:var(--maint-soft);color:var(--maint)}
.upc-task .house{
  flex:0 0 auto;font-size:10px;padding:1px 5px;border-radius:3px;
  background:var(--chip);color:var(--ink-soft);font-weight:600;
}
.upc-task .title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.upc-empty{font-size:11px;color:#adb5bd;font-style:italic;padding:2px 0}

.app-footer{text-align:center;padding:20px;color:#868e96;font-size:12px}

/* Small phones: stack weather/business */
@media (max-width:420px){
  body{font-size:17px}
  .app-title{font-size:19px}
  .today-banner{grid-template-columns:1fr;text-align:center}
  .tb-weather .ico{font-size:44px}
  .task-item{grid-template-columns:44px 1fr auto;gap:10px;padding:12px}
  .task-item .t-icon{font-size:28px}
  .task-item .t-title{font-size:16px}
  .team-head h2{font-size:20px}
  .tour-card .t-house{font-size:22px}
}
