:root {
  --ink: #1d2430; --muted: #6b7585; --line: #e8edf3; --bg: #f7f9fc; --card: #ffffff;
  --blue: #3d8fd1; --blue-soft: #e4eff9; --radius: 16px;
  --font: -apple-system, "Segoe UI", Roboto, "Noto Sans Myanmar", "Myanmar Sangam MN", "Padauk", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); }
a { color: var(--blue); text-decoration: none; }
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) 18px 10px; }
.wordmark { font: 600 13px/1 Georgia, serif; letter-spacing: .18em; color: var(--ink); }
.wordmark small { font-size: 10px; }
.screen-title { font-weight: 700; font-size: 22px; margin-top: 6px; }
main { padding: 14px 14px calc(96px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex; background: #fff;
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 10px;
  color: var(--muted); font-size: 12px; font-weight: 600; }
.tabs a .ico { font-size: 22px; line-height: 1; }
.tabs a.on { color: var(--blue); }
.day { margin: 18px 4px 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.day.today { color: var(--blue); }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; color: var(--ink); box-shadow: 0 1px 2px rgba(20,40,80,.04); }
.card:active { transform: scale(.99); }
.card .t { font-weight: 650; font-size: 17px; line-height: 1.35; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.badge { padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: #eef1f5; color: #4b5563; }
.s-idea, .s-planned { background: #f1f3f6; color: #6b7280; }
.s-drafting { background: #fff4d6; color: #8a5a00; }
.s-designed { background: #e6f0ff; color: #1f5fae; }
.s-ready { background: #e3f7ec; color: #17794a; }
.s-scheduled { background: #e9e5ff; color: #5a3fc0; }
.s-posted { background: #dff3e7; color: #146c3f; }
.s-on_hold { background: #f3e8e8; color: #8b3a3a; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.muted { color: var(--muted); } .center { text-align: center; } .pad { padding: 30px 10px; }
.back { display: inline-block; margin: 2px 0 10px; font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.caption { white-space: pre-wrap; font-size: 15.5px; line-height: 1.7; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px;
  border: 0; border-radius: 12px; font: 700 16px var(--font); background: var(--blue); color: #fff; margin-top: 10px; }
.btn.soft { background: var(--blue-soft); color: #1f5fae; }
.btn:active { opacity: .85; }
.row { display: flex; gap: 10px; } .row .btn { flex: 1; }
details.pillar { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
details.pillar summary { list-style: none; padding: 14px 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
details.pillar summary::-webkit-details-marker { display: none; }
details.pillar summary .n { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 14px; }
.idea { padding: 11px 16px; border-top: 1px solid var(--line); }
.idea small { display: block; color: var(--muted); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #1d2430; color: #fff; padding: 10px 16px; border-radius: 99px; font-size: 14px; opacity: 0;
  transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.weeknav { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 4px; font-size: 14px; }
.weeknav button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font: 600 14px var(--font); color: var(--ink); }

/* fit any phone width: nothing may push the page wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }
main, .top, .tabs { width: 100%; }
.card, .panel, details.pillar { max-width: 100%; overflow-wrap: anywhere; }
.row .btn { width: auto; min-width: 0; flex: 1 1 0; }
.weeknav { gap: 8px; } .weeknav span { flex: 1; text-align: center; font-size: 13px; }
