/* IDEATE Brain — Build 1.
   System faces only.  A webfont is a second hostname, and in Shanghai a second
   hostname is a hang rather than an error.  PingFang SC and Microsoft YaHei
   cover the Chinese chrome on every device the three partners actually use. */

:root{
  --paper:#FAFAF8;
  --sheet:#FFFFFF;
  --ink:#1C1B19;
  --ink-2:#4A4843;
  --grey:#86837C;
  --rule:#E4E1DA;
  --accent:#1F7A6C;
  --accent-ink:#FFFFFF;
  --warn:#96681C;
  --ok-bg:#E8F3F0;
  --radius:10px;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Helvetica,
         Arial,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root{
    --paper:#171614; --sheet:#201F1C; --ink:#F2F0EA; --ink-2:#C9C5BC;
    --grey:#8E8A81; --rule:#33312C; --accent:#4FA697; --accent-ink:#10201D;
    --warn:#D2A455; --ok-bg:#1D2E2A;
  }
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  background:var(--paper); color:var(--ink);
  font-family:var(--sans); font-size:16px; line-height:1.55;
  -webkit-text-size-adjust:100%;
  padding-bottom:calc(64px + env(safe-area-inset-bottom));
}
a{color:var(--accent);}

/* ---------------------------------------------------------- sign-in ----- */
.centre{min-height:88vh;display:flex;align-items:center;justify-content:center;padding:24px;}
.card{
  background:var(--sheet); border:1px solid var(--rule); border-radius:var(--radius);
  padding:32px 26px; width:100%; max-width:400px;
}
.wordmark{
  font-weight:700; letter-spacing:.18em; font-size:13px;
  color:var(--grey); margin-bottom:22px;
}
.lede{color:var(--ink-2); margin:0 0 20px;}
.sent{font-size:22px; margin:0 0 10px; font-weight:600;}
.fine{font-size:13px; color:var(--grey); margin:16px 0 0;}
.warn{
  font-size:14px; color:var(--warn); background:transparent;
  border-left:3px solid var(--warn); padding:8px 12px; margin:0 0 18px;
}
label{display:block; font-size:13px; color:var(--grey); margin-bottom:6px;}
input[type=email], textarea{
  width:100%; font:inherit; color:var(--ink); background:var(--paper);
  border:1px solid var(--rule); border-radius:8px; padding:12px 13px;
}
input[type=email]:focus, textarea:focus{outline:2px solid var(--accent); outline-offset:1px;}
button{
  font:inherit; font-weight:600; cursor:pointer;
  background:var(--accent); color:var(--accent-ink);
  border:0; border-radius:8px; padding:13px 18px; width:100%; margin-top:14px;
}
button.link{
  background:none; color:var(--grey); width:auto; margin:0; padding:0;
  font-weight:400; font-size:13px; text-decoration:underline;
}

/* ------------------------------------------------------------ shell ----- */
.top{padding:20px 20px 14px; border-bottom:1px solid var(--rule); background:var(--sheet);}
.who{display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px;}
.who .nm{font-size:13px; color:var(--grey);}
.who form{margin:0;}
.top h1{font-size:24px; margin:0; font-weight:600; letter-spacing:.02em;}
.top .sub{margin:2px 0 0; font-size:13px; color:var(--grey);}

.pane{padding:20px; max-width:680px; margin:0 auto;}

.ok{
  background:var(--ok-bg); color:var(--accent); border-radius:8px;
  padding:10px 14px; font-size:14px; font-weight:600; margin-bottom:14px;
}
.capture textarea{resize:vertical; min-height:120px;}
.hint{font-size:13px; color:var(--grey); margin:14px 0 0;}

.sec{font-size:13px; color:var(--grey); font-weight:600; margin:30px 0 10px;
     letter-spacing:.06em;}
.entries{list-style:none; margin:0; padding:0;}
.entries li{
  background:var(--sheet); border:1px solid var(--rule); border-radius:8px;
  padding:13px 15px; margin-bottom:9px;
}
.entries p{margin:0 0 6px; white-space:pre-wrap;}
.entries time{font-size:12px; color:var(--grey);}

/* empty states: week one is ALL empty state.  These are the product. */
.empty{
  border:1px dashed var(--rule); border-radius:var(--radius);
  padding:30px 24px; text-align:left; background:var(--sheet);
}
.empty h2{font-size:17px; margin:0 0 8px; font-weight:600;}
.empty p{margin:0; color:var(--ink-2); font-size:15px;}
.empty .phase{margin-top:14px; font-size:12px; color:var(--grey);}

.rows{list-style:none; margin:0; padding:0;}
.rows li{margin-bottom:9px;}
.rows a{
  display:block; text-decoration:none; color:var(--ink);
  background:var(--sheet); border:1px solid var(--rule);
  border-radius:8px; padding:14px 16px;
}
.rows .zh{font-weight:600; font-size:16px;}
.rows .sub{display:block; font-size:13px; color:var(--grey); margin-top:1px;}
.rows .ph{display:inline-block; font-size:11px; color:var(--grey); margin-top:6px;}

/* -------------------------------------------------------- bottom bar ---- */
/* Same affordance, same place, on the phone and on the desktop: there is one
   thing to learn, not two. */
.tabs{
  position:fixed; left:0; right:0; bottom:0; z-index:10;
  display:flex; background:var(--sheet);
  border-top:1px solid var(--rule);
  padding-bottom:env(safe-area-inset-bottom);
}
.tab{
  flex:1; text-align:center; padding:14px 4px 13px;
  text-decoration:none; color:var(--grey); font-size:14px;
}
.tab.on{color:var(--accent); font-weight:600;}
.tab .zh{display:block;}

@media (min-width:900px){
  body{padding-bottom:0; padding-left:180px;}
  .tabs{
    top:0; bottom:0; right:auto; width:180px; flex-direction:column;
    border-top:0; border-right:1px solid var(--rule); padding-top:26px;
  }
  .tab{flex:0 0 auto; text-align:left; padding:12px 22px; font-size:15px;}
}

/* ─────────────────────────────────── phase 1 · chips and picking ───── */
.entries li.fresh{border-color:var(--accent); box-shadow:0 0 0 2px var(--ok-bg);}
.chips{display:flex; flex-wrap:wrap; gap:6px; margin:9px 0 7px;}
.chip{font-size:12.5px; line-height:1;}
.chip summary,.chip.flat{
  display:inline-block; list-style:none; cursor:pointer;
  background:var(--ok-bg); color:var(--accent); border:1px solid transparent;
  border-radius:20px; padding:6px 11px; font-weight:600; text-decoration:none;
}
.chip summary::-webkit-details-marker{display:none;}
.chip summary.unset,.chip.flat.unset{
  background:transparent; color:var(--grey); border-color:var(--rule);
  font-weight:400;
}
.chip.flat.quiet{background:transparent; color:var(--grey); font-weight:400;}
.pick{display:flex; flex-wrap:wrap; gap:6px; margin-top:8px;}
.pick .opt{
  width:auto; margin:0; padding:8px 13px; font-size:13px; border-radius:20px;
  background:var(--sheet); color:var(--ink-2); border:1px solid var(--rule);
  font-weight:500;
}
.pick .opt.on{background:var(--accent); color:var(--accent-ink); border-color:var(--accent);}

.back{color:var(--accent); text-decoration:none; font-size:14px;}
.quote{
  background:var(--sheet); border:1px solid var(--rule); border-left:3px solid var(--accent);
  border-radius:8px; padding:13px 15px; margin-bottom:16px; white-space:pre-wrap;
}
.search{display:flex; gap:8px; margin-bottom:6px;}
.search input{flex:1;}
.search button{width:auto; margin:0; padding:12px 16px;}
.picklist{list-style:none; margin:0; padding:0;}
.picklist li{margin-bottom:8px;}
.picklist form{margin:0;}
.pickrow{
  width:100%; margin:0; text-align:left; background:var(--sheet);
  color:var(--ink); border:1px solid var(--rule); border-radius:8px;
  padding:13px 15px; display:flex; align-items:baseline; gap:10px; font-weight:500;
}
.pickrow.on{border-color:var(--accent); background:var(--ok-bg);}
.pickrow .nm{font-weight:600;}
.pickrow .ty{font-size:12px; color:var(--grey); margin-left:auto;}
.newent{display:flex; flex-direction:column; gap:8px;}
.newent input,.newent select{
  width:100%; font:inherit; color:var(--ink); background:var(--paper);
  border:1px solid var(--rule); border-radius:8px; padding:12px 13px;
}
.newent button{margin-top:2px;}
.unlink{margin-top:22px; text-align:center;}

.nudge{
  background:var(--ok-bg); border-radius:8px; padding:13px 15px;
  font-size:13.5px; color:var(--ink-2); margin:16px 0;
}
.nudge b{color:var(--ink);}

.wk{background:var(--sheet); border:1px solid var(--rule); border-radius:10px;
    padding:22px 20px; text-align:center;}
.wk .big{display:flex; align-items:baseline; justify-content:center; gap:8px;}
.wk .n{font-size:44px; font-weight:700; color:var(--accent); line-height:1;}
.wk .l{font-size:15px; color:var(--grey);}
.wk-note{margin:10px 0 0; font-size:13px; color:var(--grey);}
.rowlist{list-style:none; margin:0; padding:0;}
.rowlist li{
  display:flex; justify-content:space-between; align-items:baseline;
  background:var(--sheet); border:1px solid var(--rule); border-radius:8px;
  padding:12px 15px; margin-bottom:7px;
}
.rowlist b{color:var(--accent); font-variant-numeric:tabular-nums;}
