/* LinkinLiberty — single stylesheet. Restrained: type, spacing, color, hierarchy, cards.
   No icon blocks, no emoji. Thin-stroke monochrome SVG only. Mobile-first. */

:root {
  --blue: #0b5cb8;
  --blue-dark: #084a95;
  --blue-tint: #eaf1fa;
  --green: #057642;
  --green-tint: #e7f3ec;
  --text: #1c1d1e;
  --muted: #5b6068;
  --surface: #ffffff;
  --bg: #f3f2f0;
  --bg-soft: #eeeceb;
  --border: #d0d0d0;
  --border-soft: #e6e5e3;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.06);
  --shadow-lift: 0 4px 14px rgba(0,0,0,.10);
  --maxw: 960px;
  --feedw: 680px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --blue: #4f9bef;
  --blue-dark: #3d8ade;
  --blue-tint: #12283f;
  --green: #4cc38a;
  --green-tint: #10291c;
  --text: #e8e9ea;
  --muted: #9aa0a8;
  --surface: #1b1d20;
  --bg: #121315;
  --bg-soft: #191b1e;
  --border: #34383d;
  --border-soft: #2a2d31;
  --shadow: 0 1px 2px rgba(0,0,0,.4);
  --shadow-lift: 0 4px 14px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 650; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.03rem; }
p { margin: 0 0 .8rem; }

code { background: var(--bg-soft); padding: .1rem .3rem; border-radius: 4px; font-size: .88em; }

.muted { color: var(--muted); }
.small { font-size: .84rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------------- top nav ---------------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.navwrap {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.wordmark {
  font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); white-space: nowrap;
}
.wordmark span { color: var(--blue); }
.wordmark:hover { text-decoration: none; }

.navlinks { display: flex; gap: 4px; order: 3; width: 100%; }
.navlinks a {
  color: var(--muted); font-size: .93rem; font-weight: 600;
  padding: 8px 10px; border-radius: 6px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.navlinks a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }

.navsearch { flex: 1 1 160px; order: 2; display: none; }
.navsearch input {
  width: 100%; padding: 9px 12px; font: inherit; font-size: .92rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
.navsearch input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }

.navme { order: 4; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.themebtn {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); stroke: currentColor; fill: none; stroke-width: 1.6;
}
.themebtn svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; }
.themebtn:hover { background: var(--bg-soft); color: var(--text); }

.mewrap { position: relative; }
.mewrap .mymenu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 6px; display: none; z-index: 50;
}
.mewrap:hover .mymenu, .mewrap:focus-within .mymenu { display: block; }
.mymenu a, .mymenu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px;
  font: inherit; font-size: .92rem; color: var(--text); background: none;
  border: 0; border-radius: 6px; cursor: pointer;
}
.mymenu a:hover, .mymenu button:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; min-height: 44px; font: inherit; font-size: .94rem; font-weight: 600;
  border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1;
}
.btn svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }
[data-theme="dark"] .btn-primary { color: #0b1220; }
.btn-ghost { background: var(--surface); color: var(--blue); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-block { width: 100%; }
.btn-small { padding: 7px 12px; min-height: 38px; font-size: .86rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- avatars / badges ---------------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--blue-tint); color: var(--blue);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
}
.avatar-sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar-lg { width: 84px; height: 84px; font-size: 1.7rem; }

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: .78rem; font-weight: 600; line-height: 1.5;
}
.badge-open { background: var(--green-tint); color: var(--green); }
.badge-filled { background: var(--bg-soft); color: var(--muted); }

/* ---------------- layout ---------------- */
.main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }

.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin: 0 0 14px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow-lift); }
stack { display: block; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.empty { color: var(--muted); text-align: center; padding: 28px 16px; }
.more { margin: 12px 0 0; font-size: .92rem; font-weight: 600; }

.pagehead { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }

/* ---------------- flash ---------------- */
.flash {
  background: var(--blue-tint); color: var(--text); border: 1px solid var(--blue);
  border-radius: 6px; padding: 10px 14px; margin: 12px 0; font-size: .93rem;
}
.formerror {
  background: #fdecec; color: #a11515; border: 1px solid #f0b4b4;
  border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; font-size: .93rem;
}
[data-theme="dark"] .formerror { background: #3a1c1c; color: #f3b0b0; border-color: #6b2b2b; }

/* ---------------- landing ---------------- */
.hero { padding: 28px 0 20px; max-width: 720px; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .76rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.hero h1 { font-size: 2.05rem; letter-spacing: -.02em; margin-bottom: 10px; }
.lede { font-size: 1.22rem; font-weight: 650; color: var(--green); margin-bottom: 12px; }
.sub { color: var(--muted); font-size: 1.02rem; max-width: 620px; }
.herocta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.herostat { font-size: .88rem; }

.howitworks { margin-top: 26px; }
.step { position: relative; }
.stepnum { display: block; font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .08em; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

.twocol { display: grid; gap: 26px; margin-top: 30px; grid-template-columns: 1fr; }
.cta { margin-top: 34px; padding: 26px 20px; text-align: center; background: var(--blue-tint); border-radius: var(--radius); }
.cta h2 { font-size: 1.35rem; }
.cta p { color: var(--muted); }

/* ---------------- person / job cards ---------------- */
.personcard, .personrow { display: flex; align-items: center; gap: 12px; }
.personcard > div, .personrow > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pname { font-weight: 650; color: var(--text); font-size: .97rem; }
.pname:hover { color: var(--blue); }
.pheadline { color: var(--muted); font-size: .87rem; }
.jobtitle { display: block; font-size: 1.06rem; font-weight: 650; color: var(--text); margin-bottom: 4px; }
.jobtitle:hover { color: var(--blue); text-decoration: none; }
.jobmeta { color: var(--muted); font-size: .9rem; margin: 0 0 4px; }
.jobpay { color: var(--green); font-weight: 650; font-size: .92rem; margin: 0 0 6px; }
.jobfoot { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seekercard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.seekercard .avatar { margin-bottom: 2px; }
.seekercard .btn { margin-top: auto; width: 100%; }

/* ---------------- feed ---------------- */
.feedlayout { display: grid; gap: 20px; grid-template-columns: 1fr; }
.feedcol { max-width: var(--feedw); }
.feedside { display: flex; flex-direction: column; gap: 0; }
.composerhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 600; color: var(--muted); font-size: .93rem; }
.composer textarea, .stackform textarea, .stackform input, .commentbox input {
  width: 100%; font: inherit; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--text);
}
textarea { resize: vertical; }
.stackform textarea:focus, .stackform input:focus, .commentbox input:focus, .composer textarea:focus {
  outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue);
}
.composerfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.postcard { padding: 16px; }
.posthead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.postwho { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.postbody { white-space: pre-wrap; word-wrap: break-word; margin: 2px 0 12px; }
.poststats { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); }
.postactions { display: flex; gap: 6px; padding-top: 6px; }
.actbtn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; border-radius: 6px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
  padding: 8px 10px; min-height: 44px;
}
.actbtn svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.actbtn:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.actbtn.on { color: var(--blue); }
.actbtn.on svg { fill: var(--blue-tint); }

.comments { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 8px; }
.comments li { font-size: .9rem; }
.cname { font-weight: 650; color: var(--text); }
.commentbox { display: flex; gap: 8px; margin-top: 10px; align-items: center; }

.promisecard { background: var(--blue-tint); border-color: var(--blue); }
.promise { font-weight: 650; color: var(--blue); margin: 0 0 6px; }

/* ---------------- profile ---------------- */
.profilegrid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.profilecard { text-align: left; }
.profiletop { margin-bottom: 12px; }
.profilename { font-size: 1.45rem; margin-bottom: 2px; }
.profileheadline { font-size: .98rem; margin: 0 0 6px; }
.profilelocation { font-size: .9rem; margin: 0 0 10px; }
.profilelocation svg, .seekercard svg, .jobfacts svg { stroke: currentColor; fill: none; stroke-width: 1.6; vertical-align: -2px; }
.profilestats { list-style: none; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); display: flex; gap: 22px; }
.profilestats li { display: flex; flex-direction: column; }
.profilestats strong { font-size: 1.05rem; }
.profilestats span { font-size: .8rem; color: var(--muted); }
.connected { color: var(--green); font-weight: 600; font-size: .9rem; }
.pendingnote { font-size: .9rem; }
.nopromise { margin: 12px 0 0; }
.aboutbody { white-space: pre-wrap; color: var(--text); }

/* ---------------- jobs detail ---------------- */
.jobdetailhead { margin-bottom: 14px; }
.jobdesc { white-space: pre-wrap; margin-bottom: 16px; }
.jobfacts { margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.jobfacts > div { margin: 0; }
.jobfacts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.jobfacts dd { margin: 2px 0 0; font-size: .94rem; }
.posterblock, .applyblock, .applicantsblock {
  border-top: 1px solid var(--border-soft); padding-top: 14px; margin-top: 14px;
}
.applicantcard { padding: 12px; }
.applicantmsg { margin: 8px 0 0; font-size: .92rem; color: var(--text); white-space: pre-wrap; }
.appliednote { color: var(--green); font-weight: 600; }

.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filterbar input[type="search"] {
  flex: 1 1 220px; min-width: 180px; font: inherit; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text);
}
.filterbar input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.checkline { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.checkline input { width: auto; min-height: 0; }
.checkline.inline { white-space: nowrap; }

.searchblock { margin-bottom: 26px; }
.searchblock h2 { display: flex; gap: 10px; align-items: baseline; }

/* ---------------- network ---------------- */
.netgrid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.netblock { margin-bottom: 22px; }
.netblock h2 { display: flex; gap: 10px; align-items: baseline; }
.personcard form { margin: 0; }

/* ---------------- auth forms ---------------- */
.authwrap { max-width: 460px; margin: 12px auto; }
.authwrap.wide { max-width: 640px; }
.authcard h1 { margin-bottom: 6px; }
.promisenote { color: var(--green); font-weight: 650; margin-bottom: 8px; }
.stackform { display: flex; flex-direction: column; gap: 6px; }
.stackform label { font-size: .88rem; font-weight: 600; margin-top: 8px; }
.stackform .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.stackform .btn { margin-top: 16px; }
.formactions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.formactions .btn { margin-top: 0; }
.authalt { margin-top: 16px; font-size: .92rem; }
.lockednote { margin-top: 16px; }
.authwrap .pagehead { margin-bottom: 14px; }
.card h2 { margin-top: 0; }
.card + .card { margin-top: 0; }

/* ---------------- footer ---------------- */
.sitefoot {
  border-top: 1px solid var(--border-soft); background: var(--bg-soft);
  padding: 22px 0 30px; margin-top: 20px;
}
.promise { font-weight: 650; color: var(--blue); }
.footlinks { display: flex; flex-wrap: wrap; gap: 16px; font-size: .88rem; margin: 8px 0 0; align-items: center; }

/* ---------------- responsive ---------------- */
@media (min-width: 700px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 2.5rem; }
  .navwrap { flex-wrap: nowrap; }
  .navlinks { order: 2; width: auto; }
  .navsearch { order: 3; display: block; max-width: 300px; }
  .navme { order: 4; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .twocol { grid-template-columns: 1fr 1fr; }
  .profilegrid { grid-template-columns: 300px 1fr; align-items: start; }
  .feedlayout { grid-template-columns: minmax(0, var(--feedw)) 1fr; }
  .netgrid { grid-template-columns: 1fr 1fr; align-items: start; }
  .jobfacts { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 420px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 12px; }
  .hero h1 { font-size: 1.72rem; }
  .profilestats { gap: 16px; }
}

/* ==========================================================================
   Pivot 2 — booths, items, auctions, AI rails
   ========================================================================== */
.pageactions { display: flex; gap: 8px; flex-wrap: wrap; }
.navbadge {
  margin-left: 6px; padding: 1px 6px; border-radius: 20px;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-soft); color: var(--muted); vertical-align: 1px;
}
.navbadge-new { background: var(--green-tint); color: var(--green); }

.pill {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: .76rem; font-weight: 650; line-height: 1.5;
  background: var(--bg-soft); color: var(--muted);
}
.pill-available { background: var(--green-tint); color: var(--green); }
.pill-held { background: #fdf1dc; color: #8a5a00; }
.pill-rented { background: var(--blue-tint); color: var(--blue); }
[data-theme="dark"] .pill-held { background: #3a2d10; color: #f0c674; }
.pill-extended { background: #fde7e7; color: #a11515; }
[data-theme="dark"] .pill-extended { background: #3a1c1c; color: #f3b0b0; }
.pill-state-open { background: var(--blue-tint); color: var(--blue); }
.pill-state-closing-soon, .pill-state-closing { background: #fdf1dc; color: #8a5a00; }
.pill-state-extended { background: #fde7e7; color: #a11515; }
.pill-state-closed { background: var(--bg-soft); color: var(--muted); }
.statusstrip { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.notice {
  background: var(--bg-soft); border-color: var(--border-soft);
  color: var(--muted); font-size: .9rem; padding: 12px 14px;
}
.notice.card { margin-top: 16px; }

/* booths */
.boothgrid { align-items: start; }
.boothcard { display: flex; gap: 12px; align-items: flex-start; }
.boothcard .boothcode {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-tint); color: var(--blue);
  font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
  text-decoration: none;
}
.boothcard .boothcode:hover { background: var(--blue); color: #fff; text-decoration: none; }
.boothbody { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.boothcard.status-rented .boothcode { background: var(--bg-soft); color: var(--muted); }
.boothcard.status-held .boothcode { background: #fdf1dc; color: #8a5a00; }
.facts { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 0; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.facts dd { margin: 2px 0 0; font-size: .93rem; }

/* items */
.itemcard { display: flex; flex-direction: column; gap: 3px; }
.itemprice { color: var(--green); font-weight: 650; margin: 0; font-size: .96rem; }
.itempricebig { color: var(--green); font-weight: 700; font-size: 1.25rem; margin: 0 0 4px; }
.item-sold, .item-removed { opacity: .68; }
.ownerbox { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.ownerbox h3 { font-size: .95rem; }
.ownerbox form { margin: 0 0 8px; }

/* auctions */
.tabbar { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.tab { padding: 9px 12px; font-size: .9rem; font-weight: 600; color: var(--muted); border-radius: 6px 6px 0 0; }
.tab:hover { background: var(--bg-soft); text-decoration: none; }
.tab.on { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.lotcard { display: flex; flex-direction: column; gap: 4px; }
.lotopen { font-size: 1.04rem; font-weight: 650; color: var(--text); }
.lotopen:hover { color: var(--blue); text-decoration: none; }
.lot-main .bidbox { padding: 14px; background: var(--blue-tint); border-radius: var(--radius); margin-bottom: 12px; }
.bidlabel { text-transform: uppercase; letter-spacing: .07em; font-size: .72rem; font-weight: 700; color: var(--blue); margin: 0; }
.bidbig { font-size: 1.9rem; font-weight: 700; margin: 2px 0 4px; }
.windowline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 4px; }
.bidform { border-top: 1px solid var(--border-soft); padding-top: 12px; margin-top: 8px; }
.draftrow { display: flex; gap: 8px; align-items: stretch; }
.draftrow input { flex: 1 1 auto; min-width: 0; }
.draftbox { padding: 12px; background: var(--bg-soft); border-radius: var(--radius); }
.draftbox > label { margin-top: 0; }
.nudge { background: var(--green-tint); border-color: var(--green); color: var(--text); font-size: .92rem; }
.fairness { border-color: var(--blue); background: var(--blue-tint); }
.fairness h2 { font-size: 1.02rem; }
.hashline { word-break: break-all; font-size: .74rem; margin: 6px 0; }
.revealbox { font-size: .88rem; background: var(--surface); border-radius: 6px; padding: 10px 12px; }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ladder li { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; }
.ladder .lname { flex: 1 1 auto; font-weight: 600; }
.ladder .lprice { color: var(--green); font-weight: 650; }

/* tables */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.datatable { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.datatable th, .datatable td { padding: 9px 10px; text-align: left; font-size: .88rem; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.datatable th { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.datatable tr:last-child td { border-bottom: 0; }
.rowform { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inlineform { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.inlineform form { margin: 0; }
select, .filterbar select {
  font: inherit; font-size: .92rem; padding: 9px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 44px;
}
.typebadge {
  align-self: flex-start; padding: 2px 8px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--blue-tint); color: var(--blue); text-decoration: none; white-space: nowrap;
}
.typebadge:hover { text-decoration: none; background: var(--blue); color: #fff; }
.personcard .btn { margin-top: 0; }

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .draftrow { flex-wrap: wrap; }
  .draftrow .btn { width: 100%; }
}
