* { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--ink); }
main { margin: 0 auto; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }

/* masthead */
.mast {
  display: flex; justify-content: space-between; align-items: baseline; }
.mark { font-family: var(--serif); font-size: 26px; line-height: 1; }
.link { font-size: 14px; text-underline-offset: 3px; }

/* points */
.points { display: flex; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.points .n { font-family: var(--mono); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -.03em; }

.bar { height: 3px; background: var(--rule); margin-bottom: 7px; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .5s; }
.hint { color: var(--muted); font-size: 13px; }

/* tabs: plain words, underline the current one */
.tabs { margin-bottom: 6px; }
.tabs:empty { display: none; }
.tabs button { margin-bottom: -1px; }
.tabs button.on { border-bottom-color: var(--ink); }

/* rows: ruled lines, no boxes */
.item { display: flex; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 500; }
.item .meta { color: var(--muted); font-size: 13px; margin-top: 1px; }
.pts { font-family: var(--mono); white-space: nowrap; }
.item.dim { color: var(--muted); }

.btn { font-weight: 500; font-size: 14px; white-space: nowrap; }
.btn:hover { background: transparent; }
.btn:disabled { background: transparent; color: var(--muted); border-color: var(--rule); cursor: default; }

.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.full { padding: 12px; margin-top: 8px; }
.done { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.empty { font-family: var(--serif); font-size: 19px; }

.section { font-family: var(--mono); font-size: 11px; }

/* "N quick questions" prompt */
.qa-card {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  background: var(--raised); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  padding: 13px 16px; margin-top: 18px; border-radius: 0 3px 3px 0;
}
.qa-card .meta { color: var(--muted); font-size: 13px; }
.qa-card b { font-weight: 600; }
.go { font-weight: 500; white-space: nowrap; }
.qa-card:hover .go { text-decoration: underline; text-underline-offset: 3px; }

details { margin-top: 26px; }
summary { cursor: pointer; color: var(--muted); font-size: 14px; padding-bottom: 4px; }

/* forms */
label { display: block; font-size: 13px; font-weight: 500; margin: 16px 0 6px; }
input, select { width: 100%; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.screen-row { display: grid; grid-template-columns: 1fr 72px; gap: 8px; margin-bottom: 8px; }

/* intake + quick Q&A */
.intake h1 { font-size: 36px; line-height: 1.1; }
.steps { display: flex; gap: 4px; margin-bottom: 26px; }
.steps span { flex: 1; height: 2px; background: var(--rule); }
.steps span.on { background: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }

.chip:hover { border-color: var(--ink); }
.chip.on { border-color: var(--ink); }
.back { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.asker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-top: 26px; }
.qa-q { font-size: 40px !important; margin: 8px 0 30px !important; }
.yesno { grid-template-columns: 1fr 1fr; }
.yesno .btn { padding: 15px; background: transparent; color: var(--ink); }
.yesno .btn:hover { background: var(--ink); color: var(--paper); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(12, 16, 26, .5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10; }
.modal.hidden { display: none; }
.sheet { background: var(--paper); padding: 24px; width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; }
.sheet h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.1; }
.sheet p { margin: 0 0 16px; color: var(--muted); }
.sheet .asker { margin-top: 0; }

.toast {
  position: fixed; left: 20px; bottom: 20px; background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-size: 14px; z-index: 20; }
.toast.hidden { display: none; }

/* signed-in bits */
.avatar { border: 0; padding: 0; display: grid; place-items: center; align-self: center; cursor: pointer;
  transition: background .15s; }
.avatar:hover { background: color-mix(in srgb, var(--accent) 22%, var(--raised)); }
.avatar.on { background: var(--accent); color: var(--paper); }
.back-link { margin-bottom: 4px; text-decoration: none; }
.me-h { margin: 8px 0 2px; }
/* Profile: lines only between sections, not between rows */
.me .item { border-bottom: 0; }
.me .section { padding-top: 22px; margin-top: 20px; }
.field-q { margin-top: 24px; }
.field-q label .hint { font-weight: 400; margin-left: 6px; }
.chips.tight { margin: 10px 0 0; }
.two-btn { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 32px; }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.btn.center { text-align: center; text-decoration: none; }
.item.mine { align-items: flex-start; flex-wrap: wrap; }
.people { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.person { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.person a { color: var(--ink); }
code { font-family: var(--mono); font-size: 13px; background: var(--raised); padding: 1px 5px; border: 1px solid var(--rule); border-radius: 3px; }

/* in-app surveys */
textarea { width: 100%; color: var(--ink); resize: vertical; }
textarea:focus { outline: none; border-color: var(--ink); }
.sq { padding: 16px 0; border-top: 1px solid var(--rule); }
.sq-q { font-weight: 500; margin-bottom: 10px; display: flex; gap: 10px; }
.sq-n { font-size: 12px; padding-top: 3px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
label.opt { display: inline-block; margin: 0; font-weight: 400; font-size: 15px; position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; border: 1px solid var(--rule); background: var(--raised); padding: 8px 13px; border-radius: 3px; cursor: pointer; min-width: 42px; text-align: center; }
.opt span:hover { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.answers { margin: 0; padding-left: 18px; color: var(--ink); font-size: 14px; }
.answers li { margin-bottom: 4px; }
.tally { display: grid; grid-template-columns: minmax(60px, 1fr) 2fr 28px; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.tbar { height: 6px; background: var(--rule); }
.tbar i { display: block; height: 100%; background: var(--accent); }
.tally .pts { text-align: right; }

/* scheduling */
.day { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 8px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cal .btn { text-align: center; text-decoration: none; padding: 9px 6px; }

/* post form builders */
.qrow { border: 1px solid var(--rule); border-radius: 3px; padding: 8px; margin-bottom: 8px; background: var(--raised); }
.qline { display: grid; grid-template-columns: 1fr 140px 28px; gap: 6px; }
.qrow .qo { margin-top: 6px; }
.qrow input, .qrow select { background: var(--paper); }
.trow { display: grid; grid-template-columns: 1fr 28px; gap: 6px; margin-bottom: 8px; }
.x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 0; }
.x:hover { color: var(--accent); }
.link.left { display: inline-block; margin-top: 2px; }
[hidden] { display: none !important; }
@media (max-width: 420px) { .qline { grid-template-columns: 1fr 28px; } .qline select { grid-column: 1; grid-row: 2; } }
.sheet a:not(.btn) { color: var(--ink); text-underline-offset: 3px; word-break: break-all; }
.sync-status { font-size: 13px; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 8px 11px; margin: 4px 0 14px; }
.sync-status.ok { color: var(--ink); border-color: var(--ink); }
.sync-status.ok::before { content: '●'; color: #3f9a5a; margin-right: 7px; font-size: 10px; vertical-align: 1px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.up { display: flex; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.up span { color: var(--muted); }
details.once { margin-top: 4px; }
details.once summary { font-size: 13px; margin-bottom: 8px; }

/* points + heatmap */
.plan { margin-bottom: 30px; }

@media (max-width: 560px) {
}

/* suggested interview times */
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; margin: 2px 0 12px; }
.seg button { border: 0; background: var(--raised); padding: 6px 14px; font-size: 13px; color: var(--muted); }
.seg button.on { background: var(--ink); color: var(--paper); }
#f-sug .sync-status .link { margin-left: 8px; }
#f-sug .times .chip { padding: 6px 11px; font-size: 13px; }
.connect { border: 1px solid var(--rule); background: var(--raised); border-radius: 3px; padding: 14px; }
.connect details { margin-top: 8px; font-size: 14px; }
.connect summary { cursor: pointer; }
.connect ol { margin: 6px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; }

.pro-link { display: block; margin: 8px auto 0; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; cursor: pointer; }
.pro-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.back-row { display: flex; justify-content: center; gap: 24px; margin-top: 14px; }
.back-row .back { margin: 0; }

.study-more { flex-basis: 100%; border-top: 1px solid var(--rule); }
.study-more label { margin-top: 10px; }
.study-more .sm-h { font-family: var(--mono); font-size: 11px; }
.sm-actions { display: flex; align-items: center; gap: 18px; margin-top: 12px; }

.sm-times { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--raised); border-radius: 3px; padding: 5px 6px 5px 10px; font-size: 13px; }
.tchip.booked { color: var(--muted); padding-right: 10px; }
.tchip button { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; cursor: pointer; }
.tchip button:hover { color: var(--ink); }
.sm-grid { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; align-items: center; margin-top: 16px; }
.study-more .sm-grid label { margin: 0; color: var(--muted); font-weight: 400; }
.sm-grid input { padding-top: 8px; padding-bottom: 8px; }

.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fb950; margin-right: 8px; vertical-align: 1px; }
.cal-dot.bad { background: #d29922; }

.share-opt { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 8px 0; font-weight: 400; cursor: pointer; border-bottom: 1px solid var(--rule); }
.share-opt input { width: auto; margin-top: 3px; }
.share-opt .meta { display: block; color: var(--muted); font-size: 13px; }
.share-opt b { font-weight: 500; }
.shared { border: 1px solid var(--accent); border-radius: 6px; padding: 10px 14px 2px; margin-bottom: 18px; }
.shared-h { display: flex; justify-content: space-between; align-items: center; }
.shared .item:last-child { border-bottom: 0; }
#sheet .sm-h { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 14px 0 2px; }

/* Study details */
.study-more .person .muted { color: var(--muted); }
.study-more .role { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }

.btn.small { font-size: 13px; }

.study-more .person { align-items: center; }
a.btn.small { text-decoration: none; }
.study-acts { display: flex; align-items: center; gap: 10px; }
.study-more > .sm-h:first-child { margin-top: 4px; }

/* Private hypothesis in a study's details */
.hyp { margin: 4px 0 6px; }
.lock-note { font-size: 11px; color: var(--muted); font-weight: 400; }

.study-more .person.metric b { font-weight: 500; white-space: nowrap; }

#sheet textarea, .sm-grid textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 4px; background: var(--raised); color: var(--ink); resize: vertical; box-sizing: border-box; }
/* Inviting students who fit, and invites to you */
.study-more .person.fit { align-items: center; }
.study-more .who { display: flex; align-items: center; gap: 10px; }

.muted.small { font-size: 12px; }

.invite-card { border: 1px solid var(--run); border-radius: 6px; padding: 12px 14px; margin-bottom: 18px; }
.invite-card .title { font-weight: 500; margin: 2px 0; }
.invite-card .meta { color: var(--muted); font-size: 13px; }

/* Study details: who took part */
.faces { display: flex; border-bottom: 1px solid var(--rule); }

/* Interview takeaways under Completed */
.tk-hyp { font-style: italic; font-weight: 300; color: var(--muted); margin-bottom: 8px; }

/* Studies tab: a tile showing the study type */
.item.mine { gap: 12px; }

/* "See results" link */
.link.see-results { color: var(--accent); }

/* An open study sits on a soft card; lines only separate studies, never the rows inside one */
.item.mine.open { border-bottom: 0; }
.item.mine.open .study-more { border-top: 0; padding-top: 4px; }
.item.mine.open .study-more .person, .item.mine.open .faces { border-bottom: 0; }
.item.mine.open .pie-list .person { padding: 5px 0; }
.item.mine.open .faces { padding-bottom: 6px; }

/* Earn rows open into the same soft card as your studies */
.item.earn-row { flex-wrap: wrap; gap: 12px; }
.item.earn-row.open { border-bottom: 0; }
.item.earn-row.dim.open { opacity: 1; }
.item.earn-row.dim.open .title, .item.earn-row.dim.open .pts { color: var(--muted); }
.earn-more { flex-basis: 100%; }
.earn-more .kv { display: flex; gap: 12px; line-height: 1.9; }
.earn-more .kv > span:first-child { color: var(--muted); width: 56px; flex-shrink: 0; }
.earn-more .kv a { color: var(--accent); }
.earn-more .ok { color: #1e7a3c; font-weight: 500; }
.earn-sub { color: var(--muted); margin-bottom: 6px; }
.earn-more .times { display: flex; flex-wrap: wrap; gap: 6px; }

.earn-foot { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.earn-foot .link { font-size: 13px; }
.earn-foot .link.danger { color: #b33a3a; }
.earn-foot .muted { color: var(--muted); }

.need-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.need-tag { font-size: 12px; padding: 2px 9px; border-radius: 10px; border: 1px solid var(--rule); color: var(--ink); }
.need-tag.miss { border-style: dashed; color: var(--muted); }
@media (max-width: 520px) { .earn-more { padding-left: 0; } }
.cal-line { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cal-line.ok { color: #1e7a3c; }
.cal-line .link { font-size: 12px; }

/* A survey answered inside its Earn card */
.sv-q { margin-bottom: 16px; min-width: 0; }
.sv-qt { display: flex; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.sv-qt .sq-n { flex-shrink: 0; }
.sv-ans { padding-left: 20px; min-width: 0; }
.sv-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-ans textarea { display: block; width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; font-size: 14px; resize: vertical; }

.earn-more { min-width: 0; }

/* Invite a friend by email */
.friend-send { display: flex; gap: 8px; margin: 0; }
.friend-send input { flex: 1; min-width: 0; margin: 0; padding: 7px 10px; font-size: 14px; }
.friend-list { margin-top: 12px; }
.friend-li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; min-width: 0; }
.friend-li > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.friend-li .ok { color: #1e7a3c; font-weight: 500; white-space: nowrap; }
.friend-li .muted { color: var(--muted); white-space: nowrap; }

/* ================= Fast PMR: plain, classifieds-style look =================
   White page, Arial, blue underlined links, grey section bars, green points, no cards or shadows.
   These rules sit after the originals above and win over them. */
html:root {
  --paper: #fff; --raised: #f8f8f8; --ink: #222; --muted: #666; --rule: #ccc; --accent: #00c; --run: #b45f06;
  --serif: Georgia, 'Times New Roman', serif; --sans: Arial, Helvetica, sans-serif; --mono: Arial, Helvetica, sans-serif;
  color-scheme: light;
}
body { font: 13px/1.45 var(--sans); -webkit-font-smoothing: auto; }
main { max-width: 760px; padding: 10px 14px 60px; }
a { color: #00c; }
a:visited { color: #551a8b; }

/* masthead: purple serif name, plain links */
.mast { border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.mark { font: bold 20px var(--serif); color: #551a8b; }
.avatar { width: auto; height: auto; background: none !important; border-radius: 0; color: #00c !important; text-decoration: underline; }

/* points + plan: one quiet line */

/* tabs as text links */
.tabs { border: 0; font-size: 13px; }

/* section labels and folded sections become grey bars */
.section, details > summary, .study-more .sm-h {
  background: #eee; border: 1px solid var(--rule); padding: 3px 8px; margin: 10px 0 4px;
  font: bold 12px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; list-style: none;
}
details > summary::-webkit-details-marker { display: none; }

/* rows: dense, no tiles, title as a link */
.item { padding: 3px 0; gap: 8px; border-bottom: 0; align-items: baseline; }
.item .title { font: 13px var(--sans); color: #00c; text-decoration: underline; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.post-card .title { color: var(--ink); text-decoration: none; font-weight: bold; cursor: default; }
.item.dim .title { color: #999; }
.pts { color: #080; font-size: 12px; }
.item.dim .pts { color: #999; }

/* every button reads as a plain link */
.btn, .btn.ghost, .btn.small, .link {
  background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0;
  color: #00c !important; text-decoration: underline; font: 13px var(--sans) !important; text-transform: lowercase;
}
.btn:hover, .link:hover { color: #551a8b !important; }
.btn.full { display: inline; width: auto; margin: 6px 0; }
.btn.full::before { content: '» '; text-decoration: none; }

/* open cards: a flat grey box, no rounding or shadow */
.item.mine.open, .item.earn-row.open { border: 1px solid var(--rule); border-radius: 0; box-shadow: none; padding: 6px 10px; margin: 4px 0 6px; }
.earn-more { padding-left: 0; font-size: 12px; }
.earn-sub, .cal-line { font-size: 12px; }

/* time chips and answer chips as links; the picked one bold */
.chip, .earn-more .chip { background: none; border: 0; padding: 0 8px 0 0; color: #00c; text-decoration: underline; font-size: 12px; border-radius: 0; }
.chip.on, .earn-more .chip.on { background: none; color: var(--ink); font-weight: bold; text-decoration: none; }
input, textarea, select { border: 1px solid #999 !important; border-radius: 2px; font: 12px var(--sans); padding: 2px 4px; background: #fff; }

/* the pie shrinks; results read like a table with dotted rules */
.pie-list .person, .study-more .person { border-bottom: 1px dotted var(--rule) !important; padding: 2px 0 !important; }
.faces { color: var(--muted); }

/* pop-overs and toasts: plain boxes */
.sheet { border-radius: 0; box-shadow: none; border: 1px solid #999; }
h2 { font: bold 16px var(--sans); }
.toast { border-radius: 0; }

/* rows: title, then points and notes on the same line */
.item .body { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
details > summary { cursor: pointer; }
details > summary::before { content: '▸ '; }
details[open] > summary::before { content: '▾ '; }

/* Quick check, sign-in and profile steps: plain and left-aligned */
.intake { text-align: left; padding: 0; max-width: none; }
.intake .steps { display: none; }
.intake > .steps + .hint { background: #eee; border: 1px solid var(--rule); padding: 3px 8px; margin: 10px 0 8px;
  font: bold 12px var(--sans); color: var(--ink); }
.intake .asker { font: 12px var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; margin: 0 0 2px; }
.intake h1, .intake .qa-q { font: bold 16px/1.3 var(--sans) !important; letter-spacing: 0 !important; margin: 0 0 8px !important; }
.yesno { display: flex; justify-content: flex-start; gap: 16px; margin: 6px 0; }
.yesno .btn { width: auto; flex: none; font-size: 14px !important; }
.yesno .btn::before { content: '» '; text-decoration: none; }
.intake .back { display: inline; margin: 8px 0 0; padding: 0; border: 0; background: none; color: #00c; text-decoration: underline; font: 12px var(--sans); text-transform: lowercase; }
.empty, .loading { font: 13px var(--sans) !important; font-style: normal !important; color: var(--muted); padding: 8px 0; }
.row-note { font-size: 11px; color: var(--muted); }
.item.mine.open, .item.earn-row.open { background: none !important; }

/* open cards: a small "close" at the top right */
.row-close { margin-left: auto; align-self: flex-start; font-size: 12px !important; }
/* interview times: "Book:" label first */
.earn-more .times { align-items: baseline; }
.book-label { color: var(--ink); font-size: 12px; margin-right: 6px; }
/* surveys: no progress line, plain black question numbers, submit at the bottom right */
.sq-n { color: var(--ink) !important; font-family: var(--sans); }
.earn-foot.split { justify-content: space-between; }
.post-card .study-more label { display: block; margin: 8px 0 2px; font: bold 12px var(--sans); }
.post-card .study-more input, .post-card .study-more textarea, .post-card .study-more select { width: 100%; max-width: 100%; }

/* Open study: one line of counts, then a dense plain list */
.counts { font-size: 12px; margin: 0 0 4px; }
.counts button { border: 0; background: none; padding: 0; font: 12px var(--sans); color: #00c; text-decoration: underline; cursor: pointer; }
.counts button b { margin-right: 3px; }
.counts button.on { color: var(--ink); font-weight: bold; text-decoration: none; }
.counts button:disabled { color: #999; text-decoration: none; cursor: default; }
.counts .sep { color: var(--muted); }

.pie-list .person, .pie-list .person .who { font-size: 12px; }
.pie-list .person .muted.small { font-size: 11px; color: var(--muted); }
.pie-list .person .link, .pie-list .person a { font-size: 12px !important; }
.faces { padding: 0 0 2px !important; font-size: 12px; }
.tk-hyp { font-size: 12px; }

/* Earn / Studies as file-folder tabs: the open one is white and joins the page */
.tabs { display: flex !important; gap: 0 !important; border-bottom: 1px solid #999 !important; }
.tabs button { padding: 4px 14px !important; border: 1px solid #999 !important; border-bottom: 0 !important; margin: 0 -1px 0 0 !important;
  background: #eee !important; color: #00c !important; text-decoration: underline; text-transform: lowercase; font-size: 13px; }
.tabs button + button::before { content: none !important; }
.tabs button.on { background: #fff !important; color: var(--ink) !important; font-weight: bold; text-decoration: none;
  margin-bottom: -1px !important; padding-bottom: 5px !important; position: relative; }

/* Phones: same plain look, but every row and link gets a thumb-sized target */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .item { padding: 0 !important; }
  .item .title { display: inline-block; padding: 11px 0; font-size: 15px; }
  .item + .item, details > .item + .item { border-top: 1px dotted var(--rule); }
  .pts { font-size: 13px; }
  .tabs button { padding: 10px 20px !important; font-size: 15px !important; }
  details > summary, .section { padding: 10px 10px !important; font-size: 14px !important; }
  .btn, .link, .row-close, .counts button, .chip, .earn-more .chip { min-height: 36px; display: inline-flex !important; align-items: center; font-size: 14px !important; }
  .earn-more .times { gap: 2px 12px; }
  .pie-list .person, .study-more .person { padding: 6px 0 !important; font-size: 14px; }
  .avatar, .plan .link, .plan button { font-size: 15px; }
  .avatar { padding: 8px 0 8px 12px !important; }
  .row-note { font-size: 13px; }
  footer .pro-link, .pro-link { display: inline-block; padding: 10px 0; }
}

/* Desktop and laptop: everything a size bigger (phones already have their own sizes) */
@media (min-width: 601px) {
  main, .sheet { zoom: 1.2; }
}
/* The Pro line under the lists: small and quiet */
.pro-link { font-size: 12px !important; }
.title.arrow::before { content: '» '; text-decoration: none; display: inline-block; white-space: pre; }

/* Spacing: 10px between blocks, 20px before the footer, rows in a list sit flush (their padding spaces them) */
.mast { margin-bottom: 8px !important; }
.plan { margin: 0 0 10px !important; font-size: 13px; color: var(--muted); }
.plan b { color: var(--ink); }
.plan .sep { color: var(--muted); }
.plan .link { font-size: 13px !important; }
.tabs { margin: 0 0 10px !important; }
#list > details { margin: 0 0 10px; }
#list > details > summary { margin: 0 !important; }
#list > details[open] > summary { margin-bottom: 4px !important; }
#list > .item:not(.open) { padding: 4px 0; }
#list > .item + .item:not(.open) { margin-top: 0; }
.item.open { margin: 6px 0 !important; }
#list > .btn.full { margin: 10px 0 0 11px !important; }
.page-foot { margin-top: 20px; }
.page-foot .hint { margin: 0 0 4px; }
.earn-more, .study-more { margin-top: 6px; padding-top: 0; }
.earn-foot { margin-top: 10px; }
/* Profile: same bars, headings and gaps as everywhere else */
.me .section { padding: 3px 8px !important; margin: 10px 0 4px !important; border-top: 1px solid var(--rule) !important; }
.me h1, .me h2, .me .me-h { font: bold 16px var(--sans) !important; letter-spacing: 0 !important; margin: 6px 0 2px !important; }
.me .item { padding: 4px 0 !important; }
.me .btn.full { margin-top: 20px !important; }
.me > .hint, .me .hint { margin: 4px 0 !important; }
/* Folded rows start where an open card's title does (its 10px padding + 1px border), so titles don't jump */
#list > .item:not(.open), #list > details > .item:not(.open) { padding-left: 11px !important; }
@media (max-width: 600px) {
  /* Phones: open cards get the same 10px inner padding as on desktop, so titles line up with folded rows */
  #list .item.open { padding-left: 10px !important; padding-right: 10px !important; }
}

/* Network tab */
.act { display: flex; gap: 8px; padding: 3px 0 3px 11px; }
.act .when { color: #888; font-size: 12px; min-width: 34px; flex-shrink: 0; }
.act .link { font-size: 13px !important; }
.item .body .link { font: 13px var(--sans); }
@media (max-width: 600px) { .act { padding: 8px 0 8px 11px; font-size: 14px; } }
.link.study-name { text-transform: none !important; }

/* points: one line, with a progress line toward the next free post */
.plan.pbar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; }
.pbar > b { font-size: 16px; color: var(--ink); white-space: nowrap; }
.pbar-note { font-size: 12px; color: var(--muted); text-align: right; }
.pbar-line { flex: 1; min-width: 40px; height: 5px; background: #fff; border: 1px solid #999; }
.pbar-line span { display: block; height: 100%; background: #080; }

/* sign-in page: what Fast PMR is, sign-in under grey headers (indented like the other pages), price and links in the footer */
.login .section:first-child { margin-top: 0 !important; }
.login .login-in { padding-left: 11px; margin: 4px 0 6px; font-size: 13px; }
.login .intake .hint { margin: 4px 0; }
.login-foot { text-align: center; border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 8px; }
.login-foot .hint { margin: 2px 0 !important; }

/* Terms, Privacy and Refunds pages */
.doc .mark { text-decoration: none; }
.doc h1 { font: bold 20px var(--sans); margin: 14px 0 2px; }
.doc h2 { font: bold 14px var(--sans); margin: 18px 0 4px; }
.doc p, .doc li { font-size: 13px; line-height: 1.5; }
.doc ul { padding-left: 18px; margin: 4px 0; }
.doc .doc-links { margin-top: 26px; border-top: 1px solid var(--rule); padding-top: 8px; }

/* My profile: rows under the grey headers are indented, like the other pages */
.me > .item, .me > .me-none { padding-left: 11px !important; }
.me > .me-add { display: block; margin-left: auto !important; }  /* "+ add a calendar" sits on the right, like the other actions */

/* Pro: one plain line for giving 100 points */
.give-line { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; font-size: 12px; color: var(--muted); }
.give-line span { white-space: nowrap; }
.give-line input { flex: 1; min-width: 0; margin: 0; padding: 4px 8px; font-size: 13px; }

/* An interview that happened: boxed, with the confirm button by the name */
.person.todo, .study-more .person.todo { align-items: center; flex-wrap: nowrap; background: #fff8e1; border: 1px solid #e6c15a !important; padding: 3px 4px 3px 8px !important; margin: 3px 0; font-size: 13px; min-height: 0; }
.confirm-btn { font: inherit; font-size: 12px; line-height: 1.4; white-space: nowrap; padding: 1px 8px; min-height: 0 !important; border: 1px solid #888; border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; }
.confirm-btn:hover { background: #f0f0f0; }

/* Picking a time: plain day and time links */
.pick-sep { color: #999; margin: 0 5px; }
.pick-busy { color: #aaa; text-decoration: line-through; }

/* Interview takeaways, plain: no colored bar, the verdict as quiet text after the note */

/* Interviews you ran: indented names with a colored verdict, opening into a small card */
.study-more .person.tk-row { padding-left: 11px !important; border-bottom: 0 !important; }
.tk-v { margin-left: 4px; font-size: 13px; }
.tk-v.supports { color: #2e7d32; }
.tk-v.mixed { color: #b8860b; }
.tk-v.against { color: #c62828; }
.tk-card { margin: 2px 0 6px 22px; padding: 4px 10px; border-left: 2px solid var(--rule); font-size: 12px; line-height: 1.7; }
.tk-card .muted { color: var(--muted); margin-right: 4px; }

/* Scale questions: "Not at all" and "Very" either side of 1–5 */
.scale-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.scale-row > .opts { margin: 0 !important; }
.scale-end { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Sign-in code screen: one line, the code box, then sign in · start over */
.code-sent { margin: 8px 0 6px; }
.code-form input { margin: 0; }
.code-acts { margin-top: 6px; }
.code-form + #login-msg:empty { display: none; }

/* Interview study card: one list of people, a line, then inviting */
.tk-row.tk-ask { background: #fff8e1; border: 1px solid #e6c15a !important; padding: 2px 8px !important; margin: 3px 0 3px 3px; }
.tk-v.link { font-size: 13px; text-decoration: underline; }
.tk-v.link.supports { color: #2e7d32 !important; }
.tk-v.link.mixed { color: #b8860b !important; }
.tk-v.link.against { color: #c62828 !important; }
.tk-card input { margin: 2px 0; padding: 3px 6px; font-size: 12px; }
.tk-line { border: 0; border-top: 1px solid #ddd; margin: 6px 0 4px 11px; }
.tk-email { display: flex; align-items: center; justify-content: flex-start !important; gap: 12px; margin-bottom: 8px; }
.tk-email input { flex: 1; max-width: 320px; margin: 0; padding: 3px 6px; font-size: 13px; }

.tk-need { margin: 0 0 8px; font-size: 12px; color: var(--muted); }

/* Pro: "give 100" outlined in yellow with a pale yellow fill */
.link.give-btn { border: 1.5px solid #e6b800 !important; background: #fff8e1 !important; border-radius: 3px; padding: 1px 6px !important; text-decoration: none !important; }
