/* SHEN Wellness marketing desk — one stylesheet, mobile first, no framework.
   Palette: deep green #143C30 · warm ivory #FCF4E4 · restrained gold #D4A44C · charcoal brown #3A2E25 */
:root {
  --green: #143C30; --green-soft: rgba(20, 60, 48, .08); --ivory: #FCF4E4; --gold: #D4A44C; --brown: #3A2E25;
  --paper: #FFFCF6; --line: rgba(58, 46, 37, .14); --muted: rgba(58, 46, 37, .62); --danger: #8A2D1F;
  --radius: 16px; --tap: 48px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--brown);
  font: 16px/1.5 -apple-system, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--green); }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; margin: 0 0 .5rem; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.15rem; margin-top: 1.5rem; } h3 { font-size: 1rem; color: var(--muted); }
p { margin: .4rem 0; }
small, .muted { color: var(--muted); font-size: .88rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin: .5rem 0; max-height: 60vh; overflow: auto; }

/* ---- header / nav ---- */
header.top { background: var(--green); color: var(--ivory); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem .4rem; }
.brand a { color: var(--ivory); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.brand .mark { display: inline-block; width: 1.9rem; height: 1.9rem; line-height: 1.9rem; text-align: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); margin-right: .5rem; font-size: 1rem; }
.brand span.sub { color: rgba(252, 244, 228, .6); font-weight: 400; font-size: .85rem; margin-left: .4rem; }
button.link { background: none; border: 0; color: rgba(252, 244, 228, .75); font: inherit; font-size: .9rem; padding: .4rem .2rem; cursor: pointer; }
nav.strip { display: flex; gap: .2rem; overflow-x: auto; padding: 0 .6rem .55rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
nav.strip::-webkit-scrollbar { display: none; }
nav.strip a { flex: 0 0 auto; color: rgba(252, 244, 228, .78); text-decoration: none; padding: .5rem .85rem; border-radius: 999px; font-size: .93rem; line-height: 1.2; }
nav.strip a.on { background: rgba(252, 244, 228, .14); color: var(--ivory); }
nav.strip a .n { display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .3em; border-radius: 999px; background: var(--gold); color: var(--brown); font-size: .75rem; font-weight: 700; text-align: center; }
nav.strip a .n.warn { background: #E2B4AA; }
nav.strip details.more { position: relative; flex: 0 0 auto; border: 0; padding: 0; margin: 0; background: none; display: none; }
nav.strip details.more > summary { color: rgba(252, 244, 228, .78); padding: .5rem .85rem; border-radius: 999px; font-size: .93rem; line-height: 1.2; min-height: 0; font-weight: 400; cursor: pointer; }
nav.strip details.more > summary::before { content: none; }
nav.strip details.more > summary.on, nav.strip details.more[open] > summary { background: rgba(252, 244, 228, .14); color: var(--ivory); }
nav.strip details.more > summary .n { display: inline-block; min-width: 1.3em; padding: 0 .35em; margin-left: .3em; border-radius: 999px; background: #E2B4AA; color: var(--brown); font-size: .75rem; font-weight: 700; text-align: center; }
nav.strip details.more .panel { position: absolute; right: 0; top: 2.4rem; background: var(--green); border: 1px solid rgba(252, 244, 228, .18); border-radius: 12px; padding: .4rem; display: flex; flex-direction: column; min-width: 10rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 20; }
nav.strip details.more .panel a { color: rgba(252, 244, 228, .85); }
nav.strip .xs-only { display: contents; }
@media (min-width: 1100px) {
  nav.strip { overflow: visible; flex-wrap: nowrap; justify-content: center; }
  nav.strip details.more { display: block; }
  nav.strip .xs-only { display: none; }
}

main { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 4rem; }
.alert { background: #F6D9CF; color: var(--danger); padding: .7rem 1rem; text-align: center; font-weight: 600; }
.flash { background: var(--green); color: var(--ivory); margin: 0 auto; max-width: 760px; padding: .6rem 1rem; border-radius: 0 0 12px 12px; font-size: .95rem; }
.paused { background: var(--gold); color: var(--brown); padding: .5rem 1rem; text-align: center; font-weight: 600; }

/* ---- cards & layout ---- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; box-shadow: 0 1px 2px rgba(58, 46, 37, .05); }
.card.quiet { background: var(--paper); box-shadow: none; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 560px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem; text-decoration: none; color: inherit; display: block; }
.stat b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--green); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.warn b { color: var(--danger); }

/* ---- Chinese content blocks ---- */
.zh { font-size: 1.3rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.zh.big { font-size: 1.55rem; font-weight: 600; letter-spacing: .02em; }
.cap { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
[lang="zh-Hans"] { font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif; }

/* ---- chips, badges ---- */
.chip { display: inline-block; padding: .18rem .62rem; border-radius: 999px; font-size: .8rem; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.chip.gold { background: rgba(212, 164, 76, .22); color: #6B4F12; }
.chip.red { background: #F6D9CF; color: var(--danger); }
.chip.grey { background: rgba(58, 46, 37, .08); color: var(--muted); }
.chip.ok { background: #DCEBDD; color: #1F5A2E; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0; }

/* ---- buttons & forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 1.2rem; border-radius: 12px; border: 1px solid var(--green); background: var(--green); color: var(--ivory); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.wide { width: 100%; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--brown); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.danger { background: #fff; color: var(--danger); border-color: #D9B4AA; }
.btn.small { min-height: 40px; padding: 0 .9rem; font-size: .92rem; font-weight: 500; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { font: inherit; width: 100%; min-height: var(--tap); padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; }
textarea { min-height: 5.5rem; resize: vertical; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; min-height: 0; margin: 0 .5rem 0 0; vertical-align: middle; }
label { display: block; font-size: .9rem; color: var(--muted); margin: .6rem 0 .25rem; }
label.inline { display: flex; align-items: center; color: inherit; font-size: 1rem; min-height: var(--tap); margin: 0; }
form.stack > * + * { margin-top: .5rem; }
form.inline { display: inline; }
.actions { display: grid; gap: .6rem; margin-top: 1rem; }
.actions .two { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
details { border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; margin: .5rem 0; background: var(--paper); }
details > summary { cursor: pointer; font-weight: 600; min-height: 2rem; line-height: 2rem; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: "▸ "; color: var(--gold); }
details[open] > summary::before { content: "▾ "; }

/* ---- images ---- */
.banner-img { width: 100%; height: auto; display: block; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.thumb { width: 72px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); flex: 0 0 auto; }
.takes { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.takes img { height: 160px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.takes img.chosen { outline: 3px solid var(--gold); }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .5rem -1rem; padding: 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
th, td { padding: .5rem .45rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
tr.dim td { color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- lists ---- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1 1 auto; min-width: 0; }
.list a.title { font-weight: 600; text-decoration: none; color: var(--brown); }

/* ---- report (rendered markdown) ---- */
.report h1, .report h2, .report h3 { margin-top: 1rem; }
.report table { margin: .5rem 0; }
.report ul, .report ol { padding-left: 1.3rem; }
.report li { margin: .2rem 0; }

/* ---- bars (budget) ---- */
.bar { height: 8px; border-radius: 999px; background: var(--green-soft); overflow: hidden; margin-top: .3rem; }
.bar i { display: block; height: 100%; background: var(--green); }
.bar i.over { background: var(--danger); }

/* ---- queue ---- */
.qc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: .5rem 0; }
.qc-grid div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .45rem; text-align: center; }
.qc-grid b { display: block; font-size: 1.2rem; color: var(--green); }
.qc-grid span { font-size: .75rem; color: var(--muted); }
.report-box { border-left: 3px solid var(--gold); padding: .3rem .8rem; margin: .5rem 0; background: var(--paper); border-radius: 0 10px 10px 0; font-size: .93rem; }
.report-box b { color: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .mark { font-size: 2.2rem; color: var(--gold); }

/* ---- calendar ---- */
.day { border-top: 1px solid var(--line); padding: .6rem 0; }
.day.today { background: rgba(212, 164, 76, .1); margin: 0 -1rem; padding: .6rem 1rem; border-radius: 10px; }
.day h3 { margin: 0 0 .3rem; color: var(--brown); }
.day .slot { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; font-size: .95rem; }
.day .slot .t { font-variant-numeric: tabular-nums; color: var(--muted); min-width: 3.2rem; }

/* ---- creative review · scores ---- */
.small { font-size: .9rem; }
ul.plain { margin: .2rem 0 .4rem; padding-left: 1.2rem; }
ul.plain li { margin: .15rem 0; }
.grid2.tight { gap: .5rem; }
.review-head { display: flex; gap: .9rem; align-items: flex-start; }
.thumb.big { width: 110px; height: 146px; }
.empty-thumb { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: .75rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: .3rem; }
.score { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15rem; }
.score.ok { color: #1F5A2E; } .score.gold { color: #6B4F12; } .score.red { color: var(--danger); } .score.grey { color: var(--muted); }
.scorecard { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; }
.scorecard.quiet { border-style: dashed; }
.bars { margin: .4rem 0 .2rem; }
.barrow { display: grid; grid-template-columns: 9rem 1fr 2.2rem; gap: .5rem; align-items: center; font-size: .8rem; margin: .18rem 0; }
.barrow span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barrow .bar { margin: 0; height: 7px; }
.barrow .bar i.low { background: var(--gold); }
.barrow b { text-align: right; font-variant-numeric: tabular-nums; }
.direction { border-left: 3px solid var(--gold); padding: .2rem .6rem; margin: .4rem 0 0; font-size: .9rem; }
.concepts { display: grid; gap: .5rem; margin: .4rem 0; }
@media (min-width: 700px) { .concepts { grid-template-columns: repeat(3, 1fr); } }
.concept { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; font-size: .92rem; }
.concept.picked { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.concept p { margin: .3rem 0; }
.thesis { font-size: 1.05rem; font-weight: 600; color: var(--green); margin: .2rem 0 .4rem; }
.decision { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .6rem; }

/* ---- design history ---- */
.hgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 560px) { .hgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .hgrid { grid-template-columns: repeat(4, 1fr); } .hgrid.small { grid-template-columns: repeat(6, 1fr); } }
.hcard { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.hcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--paper); }
.hcard.take img { opacity: .8; }
.hcard .meta { padding: .45rem .6rem .6rem; font-size: .82rem; }
.hcard .meta b { display: block; }
.hcard .chips { margin: .25rem 0; gap: .25rem; }
.hcard .chip { font-size: .7rem; padding: .1rem .45rem; }
.dupe { display: flex; gap: .6rem; align-items: center; }
.dupe img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---- experiments compare ---- */
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin: .6rem 0; }
@media (min-width: 700px) { .compare { grid-template-columns: repeat(3, 1fr); } }
.cmp { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .5rem; font-size: .85rem; display: grid; gap: .25rem; }
.cmp img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; }
.cmp .empty-thumb { aspect-ratio: 4 / 5; }

/* ---- activity ---- */
.run .act { border-top: 1px solid var(--line); padding: .5rem 0; }
.run .act.bad { background: #FBEDE8; margin: 0 -1rem; padding: .5rem 1rem; }
.run .act.dim { opacity: .6; }
.act-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .93rem; }
.act-head .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .82rem; min-width: 7.5rem; }
.why { font-size: .9rem; margin: .3rem 0 .2rem 7.9rem; display: grid; gap: .15rem; }
.why small { display: inline-block; min-width: 5rem; text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; }
@media (max-width: 560px) { .why { margin-left: 0; } }
.run .report-box { margin-left: 7.9rem; }
@media (max-width: 560px) { .run .report-box { margin-left: 0; } }

/* ---- calendar lanes ---- */
.lane-legend { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 .8rem; }
.cal { padding: .5rem .8rem; overflow-x: auto; }
.lanes { display: grid; grid-template-columns: 7rem repeat(var(--lanes, 4), minmax(9rem, 1fr)); gap: .4rem; border-top: 1px solid var(--line); padding: .45rem 0; min-width: 44rem; }
.lanes.head { border-top: 0; font-size: .85rem; }
.lanes.today { background: rgba(212, 164, 76, .1); margin: 0 -.8rem; padding: .45rem .8rem; border-radius: 10px; }
.lanes.past { opacity: .72; }
.lanes.empty-day { padding: .2rem 0; }
.lanes.empty-day .lane-day { font-size: .82rem; color: var(--muted); }
.lanes.empty-day .lane-day b { font-weight: 500; }
.lane-day { font-size: .9rem; }
.lane.off { background: repeating-linear-gradient(135deg, rgba(58, 46, 37, .035) 0 6px, transparent 6px 12px); border-radius: 8px; }
.lanes.head .lane.off { color: var(--muted); }
.lane-other { grid-column: 1 / -1; display: flex; gap: .4rem; flex-wrap: wrap; }
.pchip { display: block; text-decoration: none; color: inherit; font-size: .82rem; line-height: 1.3; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 8px; padding: .3rem .5rem; margin: .2rem 0; }
.pchip small { display: block; color: var(--muted); font-size: .72rem; }
.pchip .t { font-variant-numeric: tabular-nums; color: var(--muted); }
.pchip.ok { border-left-color: #1F5A2E; } .pchip.gold { border-left-color: var(--gold); } .pchip.red { border-left-color: var(--danger); }
.pchip.slot { border-style: dashed; color: var(--muted); background: transparent; }
.pchip.slot.skipped { text-decoration: line-through; }
.pchip.slot form { display: inline; }
.pchip.slot button.link { color: var(--green); padding: 0 .2rem; font-size: .78rem; }

/* ---- performance ---- */
table.entry input { min-height: 36px; padding: .3rem .4rem; width: 5.5rem; text-align: right; }

/* ---- assets ---- */
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 700px) { .logo-grid { grid-template-columns: repeat(5, 1fr); } }
.logo-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem; text-decoration: none; color: inherit; text-align: center; }
.logo-tile.dark { background: var(--green); color: var(--ivory); }
.logo-tile img { width: 100%; height: 64px; object-fit: contain; display: block; }
.logo-tile small { display: block; font-size: .68rem; margin-top: .3rem; word-break: break-all; color: inherit; opacity: .8; }
.photo-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 560px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; font-size: .88rem; }
.photo.quiet { background: var(--paper); }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; display: block; margin-bottom: .4rem; }
.photo .empty-thumb { aspect-ratio: 4 / 5; margin-bottom: .4rem; }
.photo p { margin: .2rem 0; }

/* ---- login ---- */
.login { max-width: 380px; margin: 12vh auto 0; text-align: center; }
.login .mark { font-size: 2.6rem; color: var(--gold); border: 2px solid var(--gold); border-radius: 50%; width: 5rem; height: 5rem; line-height: 4.8rem; margin: 0 auto 1rem; }
.login input { text-align: center; font-size: 1.2rem; letter-spacing: .1em; }
.error { color: var(--danger); font-weight: 600; margin: .5rem 0; }
