:root {
  --bg: #eef4f3; --card: #ffffff; --ink: #1d2b2a; --muted: #62736f; --line: #d6e2df;
  --accent: #2f9e5b; --accent-ink: #ffffff; --accent-soft: #e2f4e9; --focus: #8a5cf6; --err: #c0392b;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #131a19; --card: #1c2524; --ink: #e8efee; --muted: #93a39f; --line: #2c3836;
          --accent: #3fbf72; --accent-ink: #08130c; --accent-soft: #1d3326; --focus: #a98bff; --err: #ff7a6b; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: .9em; }
.req { color: var(--err); }
.lbl .muted { font-weight: 400; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 16px; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
       padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
main { max-width: 920px; margin: 0 auto; padding: 20px 16px 60px; }
.stack { display: grid; gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { margin: 0 0 14px; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
       background: var(--accent-soft); color: var(--accent); font-size: .9rem; }
.login { width: min(400px, 100%); display: grid; gap: 14px; text-align: center; }
.login h1 { margin: 0; }
.login label { text-align: left; }
.dclogin { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #5865F2; color: #fff !important; font-weight: 700; text-decoration: none; font-size: 1.02rem; }
.dclogin:hover { background: #4752c4; } .dclogin svg { width: 22px; height: 22px; }
.codelogin { text-align: left; display: grid; gap: 10px; } .codelogin summary { cursor: pointer; color: var(--muted); font-size: .88rem; text-align: center; }
.codelogin[open] summary { margin-bottom: 8px; }

label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
input, select, textarea { font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%; font-weight: 400; }
input:focus, select:focus, textarea:focus, .shot:focus, .drop:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: 10px 18px; }
.primary { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.primary:disabled { opacity: .5; cursor: wait; }
.big { width: 100%; padding: 14px; font-size: 1.05rem; }
.error { color: var(--err); font-weight: 600; margin: 0; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: .85em; }

.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 22px; cursor: pointer; text-align: center; transition: .15s; }
.drop.over, .shot.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-empty { display: grid; gap: 4px; }
.files { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; text-align: left; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--accent-soft);
            padding: 8px 12px; border-radius: 8px; word-break: break-all; }
.x { background: none; color: var(--muted); padding: 2px 8px; font-size: 1.1rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shot { border: 2px dashed var(--line); border-radius: 12px; padding: 10px; cursor: pointer; display: grid; gap: 8px; align-content: start; transition: .15s; }
.shot.has { border-style: solid; border-color: var(--accent); }
.shot.focus { border-color: color-mix(in srgb, var(--focus) 55%, var(--line)); }
.shot.focus.has { border-color: var(--focus); }
.shot.active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.shot-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .92rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; min-height: 90px; }
.shot-empty { grid-column: 1 / -1; display: grid; place-items: center; min-height: 90px; color: var(--muted);
              background: var(--bg); border-radius: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg); }
.shot[data-multi="0"] .thumb { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; padding: 0 7px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; }
.note { font-size: .85rem; padding: 7px 9px; }
.paste { font-size: .85rem; padding: 8px 9px; text-align: center; cursor: text; caret-color: transparent;
         border-style: dashed; border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.paste:focus { border-style: solid; background: var(--accent-soft); }
.paste:focus::placeholder { color: var(--accent); font-weight: 700; }
.paste-msg { min-height: 1.2em; font-size: .8rem; text-align: center; color: var(--accent); }
.paste-msg.bad { color: var(--err); }

.submit-card { display: grid; gap: 12px; }
.progress { position: relative; height: 26px; border-radius: 13px; background: var(--bg); overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.done { text-align: center; display: grid; gap: 8px; justify-items: center; }
.check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
         background: var(--accent); color: var(--accent-ink); }
.recent { margin-top: 18px; }
.recent h3 { margin: 0 0 8px; font-size: 1rem; }
.recent ul { list-style: none; margin: 0; padding: 0; }
.recent li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }

/* ---------- tabs + browse ---------- */
:root { --pending: #d99a2b; --working: #3b82f6; --fixed: var(--accent); }
.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; }
.tabs a { padding: 7px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.tabs a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.pill { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 0 7px; font-size: .8rem; margin-left: 4px; }
.small { font-size: .8rem; }
.ok { color: var(--accent); }
.btn { display: inline-block; text-decoration: none; padding: 10px 18px; border-radius: 10px; }
.pre { white-space: pre-wrap; margin: 0 0 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line);
        background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; cursor: pointer; }
.chip span { color: var(--muted); font-weight: 400; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.chip.s-pending.on { border-color: var(--pending); background: color-mix(in srgb, var(--pending) 15%, transparent); }
.chip.s-working.on { border-color: var(--working); background: color-mix(in srgb, var(--working) 15%, transparent); }
.empty { text-align: center; display: grid; gap: 10px; justify-items: center; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
         text-decoration: none; color: inherit; display: grid; transition: transform .12s, border-color .12s; }
.pcard:hover { transform: translateY(-2px); border-color: var(--accent); }
.pcard { align-content: start; }
.pthumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.pthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pthumb .badge { z-index: 1; }
.pbody { padding: 12px 14px; display: grid; gap: 2px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; color: #fff; }
.badge.big { position: static; font-size: .9rem; padding: 6px 14px; white-space: nowrap; flex: none; display: inline-block; width: auto; }
.phead > div { flex: 1 1 260px; min-width: 0; }
.chip { white-space: nowrap; }
.statuspick label { margin: 0; display: inline-flex; grid: none; }
.badge.s-pending { background: var(--pending); } .badge.s-working { background: var(--working); } .badge.s-fixed { background: var(--fixed); color: var(--accent-ink); }

.phead { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap; }
.phead h1 { margin: 0; font-size: 1.5rem; }
.statusbox { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border-left: 4px solid var(--accent); background: var(--accent-soft); display: grid; gap: 8px; justify-items: start; }
.statusbox h3 { margin: 0; }
.statusbox.s-working { border-color: var(--working); background: color-mix(in srgb, var(--working) 12%, transparent); }
.statusbox.s-pending { border-color: var(--pending); background: color-mix(in srgb, var(--pending) 12%, transparent); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery a { display: grid; gap: 4px; text-decoration: none; color: var(--muted); font-size: .85rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.statuspick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.statuspick input { accent-color: var(--accent); }
.admin { border-style: dashed; }
@media (max-width: 600px) { .tabs { order: 3; width: 100%; } .tabs a { flex: 1; text-align: center; } }

/* little green plumbob */
.plumbob { width: 34px; height: 54px; margin: 0 auto; background: linear-gradient(135deg, #7be08f, #1f9a4b);
           clip-path: polygon(50% 0, 100% 42%, 50% 100%, 0 42%); }
.plumbob.small { width: 18px; height: 28px; margin: 0; }

@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .shots { grid-template-columns: 1fr 1fr; }
}
.restore { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ghost.btn { border: 1px solid var(--line); color: var(--ink); background: var(--card); }

/* ---------- questions for her ("Needs your answer") ---------- */
:root { --clarify: #8a5cf6; }
.badge.s-clarify { background: var(--clarify); }
.chip.s-clarify.on { border-color: var(--clarify); background: color-mix(in srgb, var(--clarify) 15%, transparent); }
.statusbox.s-clarify { border-color: var(--clarify); background: color-mix(in srgb, var(--clarify) 12%, transparent); }
.answerbox.s-clarify { border: 2px solid var(--clarify); }
.answerbox h2 { margin-top: 0; }
.answerbox label { display: grid; gap: 6px; }
.answerbox .q { font-weight: 600; }
.followup { border-top: 1px solid var(--line); padding-top: 8px; }
.followup:first-of-type { border-top: 0; }
.pcard.ask { border-color: var(--clarify); }
/* five tabs: on a phone the tab bar scrolls sideways instead of pushing the page wider */
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; flex: 0 0 auto; }

/* "Request new CC" (2026-10-31) */
.agechips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.agechip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line, #ccc); border-radius: 18px; cursor: pointer; }
.agechip input { margin: 0; width: auto; }
.kindtag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .75rem; font-weight: 700; vertical-align: middle;
  background: var(--clarify); color: #fff; }
/* 2026-10-31: with 9 tabs the header's min-content width pushed every page wider than a phone screen */
.top > * { min-width: 0; }
.tabs { min-width: 0; }
@media (max-width: 600px) { .tabs { flex-wrap: nowrap; } }

/* ---------- section nav (2026-12-03): parent sections + dropdowns, the open section's pages in a second row ---------- */
.tabs.sections { overflow: visible; align-items: center; }
.sec { position: relative; }
.sec > a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 9px; color: var(--muted);
           text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.sec > a.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.sec > a .pill { margin-left: 0; }
.pill.ask { background: var(--clarify); color: #fff; }
.caret { font-size: .7rem; opacity: .7; }
.plumbob.tiny { width: 10px; height: 16px; margin: 0; display: inline-block; }
.menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 210px; display: none; flex-direction: column; gap: 2px;
        padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
        box-shadow: 0 10px 28px rgba(0,0,0,.18); z-index: 20; }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* keeps hover alive across the gap */
.menu a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px;
          color: var(--ink); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.menu a:hover, .menu a:focus-visible { background: var(--bg); }
.menu a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
@media (hover: hover) and (min-width: 601px) {
  .sec:hover .menu, .sec:focus-within .menu { display: flex; }
}
.subtabs { background: var(--card); border-bottom: 1px solid var(--line); }
.subtabs-in { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 2px;
              overflow-x: auto; scrollbar-width: none; }
.subtabs .crumb { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
                  padding-right: 12px; margin-right: 6px; border-right: 1px solid var(--line); white-space: nowrap; }
.subtabs a { padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap;
             border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 4px; }
.subtabs a:hover { color: var(--ink); }
.subtabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 600px) {
  .tabs.sections { overflow-x: auto; }
  .tabs.sections .sec { flex: 1 0 auto; }
  .tabs.sections .sec > a { justify-content: center; width: 100%; padding: 7px 10px; }
  .caret { display: none; }
  .subtabs-in { padding: 0 12px; }
  .subtabs .crumb { display: none; }
}
/* "!" on the Health tab (see _nav.html) */
.bang.nav { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; margin-left: 5px; font-style: normal; font-weight: 900; font-size: .72rem;
  color: #2a1a00; background: linear-gradient(160deg, #ffe066, #ffb703); box-shadow: 0 0 8px rgba(255, 196, 0, .7); }
