/* helloaccount — plain CSS, mobile first. */
:root {
  --brand: #0b7a75; --brand-dark: #075955; --brand-soft: #e6f4f3;
  --ink: #17212b; --muted: #5b6875; --line: #dde3e8; --bg: #f5f7f9; --card: #fff;
  --ok: #157f3b; --warn: #a15c00; --warn-soft: #fff4e0; --bad: #b42318; --bad-soft: #fdecea;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
h3 { font-size: 1rem; margin: 1rem 0 .4rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1rem; padding: .7rem 16px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo b { color: var(--brand); }
.top nav { margin-left: auto; display: flex; gap: .8rem; align-items: center; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a.btn { color: #fff; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 1.2rem; padding-bottom: 3rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }

.btn { display: inline-block; border: 0; border-radius: 8px; padding: .65rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--brand); color: #fff; text-decoration: none; text-align: center; }
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn.small { padding: .35rem .7rem; font-size: .85rem; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.btn.block { display: block; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }

label { display: block; font-weight: 600; margin: .7rem 0 .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .3rem; }
.hint { color: var(--muted); font-size: .85rem; margin-top: .2rem; }

.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash.ok { background: #e7f6ec; color: var(--ok); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
.flash ul { margin: 0; padding-left: 1.1rem; }

.badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #eef1f4; color: var(--muted); white-space: nowrap; }
.badge.posted, .badge.closed, .badge.review { background: #e7f6ec; color: var(--ok); }
.badge.needs_review, .badge.questions, .badge.failed { background: var(--warn-soft); color: var(--warn); }
.badge.duplicate, .badge.rejected { background: #f1f1f1; color: #888; }
.badge.awaiting_payment { background: var(--bad-soft); color: var(--bad); }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
tr.sub td { font-weight: 600; background: #fafbfc; }
.scroll { overflow-x: auto; }

/* Progress tracker */
.steps { display: flex; gap: .3rem; margin: 1rem 0; flex-wrap: wrap; }
.steps li { list-style: none; flex: 1 1 0; min-width: 90px; padding: .45rem .5rem; border-radius: 8px; background: #eef1f4; color: var(--muted); font-size: .8rem; text-align: center; }
.steps li.done { background: var(--brand-soft); color: var(--brand-dark); }
.steps li.now { background: var(--brand); color: #fff; font-weight: 600; }
.steps { padding: 0; }

.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin: 1rem 0; overflow-x: auto; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.count { background: var(--warn); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; margin-left: .2rem; }

/* Upload */
.drop { border: 2px dashed var(--brand); border-radius: var(--radius); background: var(--brand-soft); padding: 1.5rem 1rem; text-align: center; }
.drop.over { background: #d3ecea; }
.drop input[type=file] { display: none; }
.drop .btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: .8rem; }
#picked { margin-top: .8rem; }
.pick-head { font-size: .9rem; margin-bottom: .4rem; }
.picklist { list-style: none; margin: 0 0 .6rem; padding: 0; max-height: 26rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.picklist li { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-top: 1px solid var(--line); }
.picklist li:first-child { border-top: 0; }
.picklist img, .picklist .ficon { width: 44px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.picklist .fname { flex: 1; min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.picklist form { margin: 0; }
.picklist .x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #b42318; font-size: 1rem; cursor: pointer; padding: 0; }
.picklist .x:hover { background: #fee4e2; }

/* Folders */
details.folder { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
details.folder summary { padding: .7rem 1rem; cursor: pointer; font-weight: 600; }
details.folder .scroll { padding: 0 .6rem .6rem; }
details.folder.year { padding: 0; }
details.folder.year > summary { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; font-size: 1.05rem; }
details.folder.year > p, details.folder.year > details { margin-left: 1rem; margin-right: 1rem; }
details.folder.year > details:last-child { margin-bottom: 1rem; }
details.folder.sub { margin-left: 1.2rem; }
.year-body details.folder.sub { margin-left: 0; }
.move-year { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .2rem 0 .8rem; padding: .6rem .8rem; background: var(--bg, #f4f6f8); border-radius: 8px; }
.folder-path { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }

.question { border-left: 4px solid var(--warn); }
.question .q { background: var(--warn-soft); padding: .5rem .7rem; border-radius: 6px; margin: .5rem 0; }
.question .row { display: grid; gap: .6rem; }
@media (min-width: 720px) { .question .row { grid-template-columns: 220px 1fr; } }
.thumb { width: 100%; max-height: 320px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; }

.kpis { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.kpi .v { font-size: 1.25rem; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: .8rem; }

/* Landing */
.hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; padding: 3rem 0 3.5rem; }
.hero h1 { font-size: 2rem; line-height: 1.2; max-width: 640px; }
.hero p { font-size: 1.1rem; max-width: 600px; opacity: .95; }
.hero .price { font-size: 2.6rem; font-weight: 800; margin: .5rem 0; }
.hero .btn { background: #fff; color: var(--brand-dark); font-size: 1.05rem; padding: .8rem 1.4rem; }
.feature h3 { margin-top: 0; }
.footer { color: var(--muted); font-size: .85rem; padding: 2rem 0; text-align: center; }
.footer .langs { margin-top: .5rem; display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
/* Older Android WebViews ignore flex "gap" (html.no-flexgap is set by a tiny check in the layout): space with margins instead. */
html.no-flexgap .top .wrap > * + *, html.no-flexgap .top nav > * + *, html.no-flexgap .footer .langs > * + *,
html.no-flexgap .drop .btns > * + *, html.no-flexgap .move-year > * + *, html.no-flexgap .folder-path > * + *,
html.no-flexgap .check > * + *, html.no-flexgap details.folder.year > summary > * + * { margin-left: .7rem; }
html.no-flexgap .steps > *, html.no-flexgap .tabs > * { margin-right: .3rem; }
.footer .langs a.on { font-weight: 700; color: var(--text, inherit); text-decoration: none; }

.auth { max-width: 420px; margin: 2rem auto; }

/* Staff questions + "Ask client" (2026-11-16) */
.from-team { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand, #0b7a75); background: #e7f4f2; border-radius: 99px; padding: .1rem .6rem; margin-bottom: .35rem; }
.staff-bar { background: #fff8e6; border: 1px solid #f1d58a; border-radius: 10px; padding: .55rem .8rem; margin: .6rem 0; }
details.ask { position: relative; }
details.ask > summary { list-style: none; cursor: pointer; white-space: nowrap; }
details.ask > summary::-webkit-details-marker { display: none; }
details.ask[open] > form { position: absolute; right: 0; z-index: 5; width: min(320px, 80vw); background: #fff; border: 1px solid #dfe3e8; border-radius: 10px; padding: .6rem; box-shadow: 0 8px 24px rgba(0,0,0,.12); margin-top: .3rem; }
details.ask textarea { width: 100%; margin-bottom: .4rem; }

/* Free trial + plans (2026-11-20) */
.flash.trial { background: var(--warn-soft); color: #6b3d00; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.flash.trial .btn { margin-left: auto; }
.trial-meter { height: 6px; border-radius: 99px; background: #f3dfbd; overflow: hidden; flex-basis: 100%; }
.trial-meter i { display: block; height: 100%; background: var(--warn); }
.trial-wm { position: relative; overflow: hidden; }
.trial-wm::after { content: "TRIAL"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(4rem, 14vw, 9rem); font-weight: 800; color: var(--bad); opacity: .07; transform: rotate(-24deg); pointer-events: none; }
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.plan.best { border: 2px solid var(--brand); box-shadow: 0 6px 18px rgba(11,122,117,.12); }
.plan .tag { align-self: flex-start; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: .1rem .55rem; border-radius: 99px; }
.plan .price { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.plan ul { margin: .2rem 0 .6rem; padding-left: 1.1rem; color: var(--muted); font-size: .9rem; }
.plan form, .plan > a.btn { margin-top: auto; }
.plan .check { font-size: .85rem; }
.lockbox { text-align: center; padding: 1.4rem 1rem; }
.lockbox .big { font-size: 2.4rem; }
.subline { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
