/* HomeCircle founder dashboard. Colours: brown #6B3419, mustard #DEAF5F, ink #2B1A10, warm white #FBF8F3, borders #E8DFD2. */
:root { --brown: #6B3419; --mustard: #DEAF5F; --ink: #2B1A10; --bg: #FBF8F3; --line: #E8DFD2; --muted: #6E5A4B; --soft: #4B392D;
        --head: #3F1E0C; --ok-bg: #E3F1EA; --ok: #14543D; --mid-bg: #FBEFD0; --mid: #7A4E00; --bad-bg: #F9E1DC; --bad: #8A2518; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
button:disabled { cursor: not-allowed; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.title { font-family: Georgia, serif; font-size: 24px; font-weight: 700; color: var(--head); }
.sub, .muted { color: var(--muted); }
.small { font-size: 13px; }
.badge-sample { font-size: 12px; font-weight: 600; background: var(--mid-bg); color: var(--mid); border: 1px solid #E6CF98; border-radius: 999px; padding: 6px 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 44px; padding: 0 20px; border-radius: 10px 10px 0 0; font-size: 15px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--head); }
.tab.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.h { font-size: 16px; font-weight: 700; color: var(--head); margin: 0; }
.h3 { font-size: 14px; font-weight: 700; color: var(--head); margin: 4px 0 0; }
.hero { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; }
.big { font-size: 40px; font-weight: 700; color: var(--head); line-height: 1.1; }
.mid { font-size: 28px; font-weight: 700; color: var(--head); }
.pool { font-size: 15px; color: var(--soft); max-width: 420px; line-height: 1.5; }
.right { text-align: right; }
.stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stage { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 16px; border-radius: 12px; min-height: 110px; border: 1px solid var(--line); background: #fff; color: var(--head); }
.stage.ok { border-color: var(--ok); background: var(--ok-bg); color: var(--ok); }
.stage .n { font-size: 36px; font-weight: 700; line-height: 1; }
.stage .l { font-size: 14px; font-weight: 600; }
.stage .hint { font-size: 12px; opacity: .9; }
.nudge { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-name { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #E6CF98; background: var(--mid-bg); color: #5C3A00; font-size: 14px; font-weight: 600; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; border: 1px solid #CDBFAE; background: #fff; }
.pill.on { background: var(--brown); border-color: var(--brown); color: #fff; }
.pill:disabled { background: #F4ECDF; color: var(--muted); font-weight: 400; }
.search { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.search input { min-height: 44px; border: 1px solid #CDBFAE; border-radius: 8px; padding: 0 12px; font-size: 16px; color: var(--ink); background: #fff; max-width: 360px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; text-align: left; min-height: 52px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; }
.row .name { font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-mid { background: var(--mid-bg); color: var(--mid); }
.tag-bad { background: var(--bad-bg); color: var(--bad); }
.tag-need { border-radius: 6px; padding: 4px 8px; font-weight: 700; background: var(--bad-bg); color: var(--bad); }
.btn-plain { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #CDBFAE; background: #fff; font-size: 14px; font-weight: 600; }
.head-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--soft); font-size: 14px; }
.name-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pname { font-family: Georgia, serif; font-size: 32px; font-weight: 700; color: var(--head); margin: 0; }
.two { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.two > .card { flex: 1 1 320px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #F0E7D9; }
.dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mid-bg); color: var(--mid); border: 1px solid #E6CF98; font-size: 13px; font-weight: 700; flex: none; }
.dot.done { background: #1F6B4F; color: #fff; border-color: #1F6B4F; }
.sl { font-size: 14px; font-weight: 600; }
.sd { font-size: 13px; color: var(--soft); }
.ptag { display: inline-block; border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; background: #F4ECDF; color: var(--head); }
.ptag.key { background: var(--brown); color: #fff; font-weight: 700; }
.summary { font-size: 15px; line-height: 1.55; margin: 0; }
ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score { font-size: 48px; font-weight: 700; color: var(--head); line-height: 1; }
.part .pl { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.track { height: 8px; background: #F0E7D9; border-radius: 4px; margin-top: 4px; }
.fill { height: 8px; border-radius: 4px; background: var(--brown); }
.pen { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px solid #EFE6D8; padding-top: 10px; }
.pen b, .bad { color: #9B2C1F; }
.good { color: var(--ok); }
.rule { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; border: 1px solid #EFE6D8; border-radius: 8px; padding: 8px 10px; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.member { text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-size: 16px; }
.mnote { font-size: 12px; color: var(--mid); }
.gridwrap { overflow-x: auto; }
.grid { display: grid; grid-template-columns: 72px repeat(7, minmax(64px, 1fr)); gap: 6px; min-width: 560px; align-items: stretch; }
.gh { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.gr { display: flex; align-items: center; font-size: 12px; color: var(--muted); font-weight: 600; }
.cell { min-height: 44px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--head); border: 1px solid #E6CF98; }
.cell.none { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); background: transparent; color: #B8A998; font-weight: 400; font-size: 13px; }
.cell.best { border: 3px solid var(--brown); }
.cell.sel { border: 3px solid var(--ink); }
.celldetail { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.5; }
.headline { font-size: 20px; font-weight: 700; color: var(--head); }
.events { display: flex; flex-direction: column; }
.gap { margin-left: 22px; padding: 8px 0 8px 18px; border-left: 3px dotted #CDBFAE; font-size: 13px; color: var(--muted); }
.event { padding: 16px 18px; }
.erow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.et { font-size: 16px; font-weight: 700; }
.when { font-size: 15px; font-weight: 600; color: var(--head); }
.keytag { display: inline-block; margin-left: 6px; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; background: #F4ECDF; color: var(--brown); }
.say { font-size: 14px; font-weight: 600; color: var(--soft); }
.say.good { color: var(--ok); }
.say.bad { color: var(--bad); }
.pchip { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; background: var(--ok-bg); color: var(--ok); }
.pchip.no { background: #F4F0EA; color: var(--muted); text-decoration: line-through; }
.foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.login { max-width: 420px; }
.login form { display: flex; flex-direction: column; gap: 12px; }
#app.blur { filter: blur(14px); }
.veil { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(251, 248, 243, .85); }
.veil[hidden] { display: none; }
.veil button { min-height: 56px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--brown); color: #fff; font-size: 18px; font-weight: 700; }
@media (max-width: 560px) { .right { text-align: left; } .big { font-size: 34px; } .score { font-size: 40px; } }
