:root {
  --brand: #0a7f86;
  --brand-ink: #075e63;
  --brand-dark: #06555a;
  --brand-soft: #e6f3f3;
  --saffron: #f2a900;
  --saffron-soft: #fff4d4;
  --saffron-ink: #7a5200;
  --ink: #17202a;
  --ink-2: #2f3a45;
  --muted: #5b6670;
  --line: #e3e7eb;
  --line-2: #cfd6dc;
  --bg: #f4f6f7;
  --surface: #fff;
  --danger: #c93b3b;
  --ok: #18884b;
  --top-h: 64px;
  --bn-h: 62px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 16px/1.55 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface);
}
.btn:hover { background: var(--bg); }
.btn.brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.brand:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.btn.soft:hover { background: #d6ebeb; }
.btn.big { height: 50px; font-size: 16px; }
.btn.wide { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2);
}
.iconbtn:hover { color: var(--ink); background: var(--bg); }

/* header */
.top { position: sticky; top: 0; z-index: 900; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; height: var(--top-h); padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; flex: none; }
.logo svg { width: 30px; height: 30px; }
.logo b { color: var(--brand); font-weight: 800; }
.logo.small { font-size: 18px; }
.topsearch {
  flex: 1; min-width: 0; max-width: 460px; display: flex; align-items: center; height: 42px;
  border: 1px solid var(--line-2); border-radius: 10px; padding-left: 12px; overflow: hidden; background: var(--surface);
}
.topsearch:focus-within { border-color: var(--brand); }
.topsearch .i { color: var(--muted); width: 18px; height: 18px; }
.topsearch input { flex: 1; min-width: 0; border: 0; outline: 0; height: 100%; padding: 0 10px; background: none; }
.topsearch .btn { height: 100%; border-radius: 0; padding: 0 16px; }
body.on-home .topsearch { visibility: hidden; }
.topnav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.tl { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.tl:hover, .tl.on { color: var(--brand-ink); }
.tl.on { background: var(--brand-soft); }
.badge { position: absolute; top: 2px; left: 20px; min-width: 17px; height: 17px; border-radius: 9px; background: #d93a63; color: #fff; font: 700 10.5px/17px Onest, sans-serif; text-align: center; padding: 0 4px; font-style: normal; }
.post { margin-left: 8px; height: 42px; }
.textsize { height: 40px; min-width: 40px; padding: 0 8px; border-radius: 8px; font-weight: 700; color: var(--ink-2); }
.textsize:hover { background: var(--bg); }
.textsize.on { background: var(--brand-soft); color: var(--brand-ink); }
html.bigtext main { zoom: 1.14; }
.lang { height: 40px; min-width: 40px; padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.lang:hover { background: var(--bg); }

/* page */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 22px 20px 48px; outline: 0; }
main.full { max-width: none; padding: 0; }
.narrow { max-width: 760px; margin: 0 auto; }
.crumbs { margin-bottom: 12px; }
.backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 500; height: 34px; padding-right: 8px; }
.backlink .i { width: 18px; height: 18px; }
.backlink:hover { color: var(--brand); }
.h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.lead { color: var(--ink-2); font-size: 15.5px; margin: 6px 0 0; max-width: 62ch; }
.muted { color: var(--muted); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.sec-t { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.box > .sec-t:first-child { margin-top: 0; }

/* home: search band */
.band { background: var(--brand); color: #fff; margin: -22px calc(50% - 50vw) 0; padding: 30px calc(50vw - 50%) 26px; }
.band h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.band .sub { margin: 4px 0 16px; color: #cdeaea; font-size: 15px; }
.bigsearch { display: flex; background: #fff; border-radius: 12px; padding: 5px; gap: 5px; box-shadow: 0 6px 20px rgba(0, 40, 44, .18); }
.bigsearch label { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding-left: 10px; color: var(--muted); }
.bigsearch input { flex: 1; min-width: 0; border: 0; outline: 0; height: 46px; font-size: 16px; color: var(--ink); background: none; }
.bigsearch select { width: 210px; border: 0; border-left: 1px solid var(--line); padding: 0 10px; outline: 0; background: none; color: var(--ink-2); }
.bigsearch .btn { height: 46px; padding: 0 26px; font-size: 16px; }
.popular { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 14px; color: #cdeaea; }
.popular a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.popular a:hover { text-decoration-color: #fff; }

/* categories */
.catbox { margin-top: 20px; padding: 8px; }
.catlist { display: grid; grid-template-columns: repeat(4, 1fr); }
.catrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; min-width: 0; }
.catrow:hover { background: var(--bg); }
.catrow.on { background: var(--brand-soft); }
.catrow .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.catrow.on .ic { background: var(--brand); color: #fff; }
.catrow .nm { flex: 1; min-width: 0; font-weight: 500; font-size: 14.5px; line-height: 1.25; }
.catrow .n { color: var(--muted); font-size: 13.5px; }
.catmore { display: none; width: 100%; height: 42px; color: var(--brand-ink); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }

/* chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 1px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 500; font-size: 14px; color: var(--ink-2);
}
.chip .i { width: 17px; height: 17px; color: var(--brand); }
.chip:hover { border-color: var(--ink-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .i { color: #fff; }
.activecat { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.activecat .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.activecat h1 { font-size: 22px; font-weight: 700; }

/* results */
.results { display: grid; grid-template-columns: 250px 1fr; gap: 20px; margin-top: 18px; align-items: start; }
.side { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 18px; }
.side h3 { font-size: 16px; font-weight: 700; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input {
  width: 100%; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--surface); outline: 0;
}
textarea.input { height: auto; min-height: 140px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field .err { color: var(--danger); font-size: 13px; }
.field.bad .input { border-color: var(--danger); }
.radios { display: grid; gap: 2px; }
.radios label { display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; font-size: 14.5px; }
.radios input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .total { font-weight: 600; font-size: 16px; margin-right: auto; }
.toolbar select { height: 38px; border-radius: 8px; border: 1px solid var(--line-2); padding: 0 8px; background: var(--surface); }
.filterbtn { display: none; height: 38px; }

.list { display: grid; gap: 10px; }
.job {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0;
}
.job:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgba(23, 32, 42, .06); }
.job h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--brand-ink); overflow-wrap: anywhere; }
.job:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.job h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.pay { font-size: 18px; font-weight: 700; color: var(--ink); }
.pay.none { font-size: 15px; font-weight: 400; color: var(--muted); }
.job .pay { grid-column: 1; margin-top: 2px; }
.job .meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.meta .i { width: 16px; height: 16px; color: var(--muted); }
.job .snip { grid-column: 1; color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job .side-r { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.job .when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.job .when.fresh { color: var(--ok); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job .tags { grid-column: 1; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-size: 14px; }
.tag .i { width: 15px; height: 15px; color: var(--brand); }
.fav { position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.fav:hover { background: var(--bg); color: #d93a63; }
.fav.on { color: #d93a63; }
.more { display: flex; justify-content: center; margin-top: 18px; }
.empty { text-align: center; padding: 44px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.empty .big { width: 52px; height: 52px; color: var(--muted); }
.empty h3 { margin: 10px 0 6px; font-size: 18px; }
.empty p { color: var(--muted); margin: 0 auto 16px; max-width: 42ch; }
.skel { background: linear-gradient(90deg, #eceff1 25%, #f5f7f8 37%, #eceff1 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 12px; min-height: 120px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* job page */
.detail { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.detail .main { display: grid; gap: 14px; min-width: 0; }
.dhead h1 { font-size: 26px; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.dhead .meta { display: grid; gap: 6px; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.dhead .tags { margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 20px; margin: 0; }
.facts div { display: grid; gap: 2px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; font-size: 16px; }
.desc { line-height: 1.7; font-size: 17px; overflow-wrap: anywhere; max-width: 68ch; color: var(--ink); }
.desc p { margin: 0 0 10px; }
.desc p:last-child { margin-bottom: 0; }
.desc h4 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.desc h4:first-child { margin-top: 0; }
.desc ul { margin: 0 0 10px; padding-left: 22px; }
.desc li { margin: 0 0 5px; }
.desc a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.desc.clamp { max-height: 400px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.aside { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 14px; }
.contact { display: grid; gap: 10px; }
.contact .pay { font-size: 24px; margin-bottom: 4px; }
.contact .phone { font-size: 18px; letter-spacing: .01em; }
.actions { display: flex; gap: 8px; }
.actions .on { color: #d93a63; }
.market h3 { font-size: 15px; font-weight: 600; }
.market .bar { position: relative; height: 10px; border-radius: 5px; background: var(--bg); margin: 32px 0 6px; }
.market .rng { position: absolute; top: 0; bottom: 0; background: #b9dfe0; border-radius: 5px; }
.market .med { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--brand-ink); border-radius: 2px; margin-left: -1px; }
.market .me { position: absolute; top: -28px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.market .scale { position: relative; height: 18px; color: var(--muted); font-size: 12.5px; }
.market .scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.verdict { font-weight: 600; margin: 8px 0 0; }
.verdict.up { color: var(--ok); }
.verdict.down { color: var(--danger); }
.minimap { height: 210px; border-radius: 10px; overflow: hidden; background: #e8eef0; }
.warn { display: flex; gap: 12px; align-items: flex-start; background: var(--saffron-soft); color: var(--saffron-ink); border-radius: 12px; padding: 13px 16px; font-size: 15px; }
.warn .i { margin-top: 1px; }
.srcline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; padding: 2px; flex-wrap: wrap; }
.srcline a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.srcline button { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; font-size: 12.5px; }
.srcline button .i { width: 15px; height: 15px; }
.srcline button:hover { color: var(--danger); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }

/* map */
.mapwrap { position: relative; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
#bigmap { position: absolute; inset: 0; background: #e8eef0; }
.mapbar { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; pointer-events: none; }
.mapbar > * { pointer-events: auto; }
.mapbar .chips { flex: 1; }
.mapbar .chip, .mapbar .iconbtn { box-shadow: 0 2px 8px rgba(0,0,0,.18); border-color: transparent; }
.mapcount { position: absolute; z-index: 500; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 500; padding: 8px 15px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.pin { position: absolute; transform: translate(-50%, -100%); background: var(--brand); color: #fff; font: 600 12px/1 Onest, sans-serif; padding: 6px 8px; border-radius: 7px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); border: 1.5px solid #fff; cursor: pointer; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--brand); }
.pin.none { background: #55626e; }
.pin.none::after { border-top-color: #55626e; }
.clus { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: rgba(10, 127, 134, .9); color: #fff; border: 3px solid rgba(255,255,255,.9); font: 700 13px Onest, sans-serif; box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: pointer; }
.leaflet-div-icon { background: none; border: 0; }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.leaflet-popup-content { margin: 12px 14px; font: 14px/1.4 Onest, sans-serif; min-width: 220px; }
.pop h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.pop .pay { font-size: 15.5px; }
.pop .btn { height: 36px; margin-top: 10px; width: 100%; }
.leaflet-container a.btn.brand { color: #fff; }
.poplist { display: grid; gap: 2px; max-height: 260px; overflow: auto; margin: 0 -4px; }
.poplist a { display: block; padding: 7px 4px; border-radius: 6px; }
.poplist a:hover { background: var(--bg); }
.poplist b { display: block; font-weight: 600; color: var(--brand-ink); }

/* tools */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; margin-top: 20px; }
.tool { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tool:hover { border-color: var(--brand); }
.tool .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
.tool .ic .i { width: 23px; height: 23px; }
.tool h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.tool p { margin: 0; color: var(--muted); font-size: 14px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.out { display: grid; gap: 10px; background: var(--brand-soft); border-radius: 12px; padding: 18px; }
.out .row { display: flex; justify-content: space-between; gap: 10px; }
.out .row b { font-size: 16.5px; }
.out .row.main b { font-size: 24px; color: var(--brand-ink); }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { height: 38px; padding: 0 14px; border-radius: 8px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.sal-list { display: grid; margin-top: 14px; }
.sal-row { display: grid; grid-template-columns: 220px 1fr 100px; gap: 14px; align-items: center; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.sal-row:last-child { border-bottom: 0; }
.sal-row:hover { background: var(--bg); }
.sal-row .nm { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.sal-row .nm .i { color: var(--brand); }
.sal-row .track { position: relative; height: 8px; border-radius: 4px; background: var(--bg); }
.sal-row .rng { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #b9dfe0; }
.sal-row .md { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: var(--brand-ink); }
.sal-row .v { text-align: right; font-weight: 700; }
.sal-row .v small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.qa { display: grid; gap: 8px; }
.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.qa summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); }
.qa details[open] summary::after { content: "–"; }
.qa details p { margin: 0 0 16px; color: var(--ink-2); }
.tips { display: grid; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.tips li { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tips li .i { color: var(--brand); margin-top: 1px; }
.quiz .opt { display: block; width: 100%; text-align: left; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); font-weight: 500; margin-top: 8px; }
.quiz .opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.progress { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--brand); transition: width .25s; }

/* resume */
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.cvform { display: grid; gap: 14px; }
.cvpaper { min-height: 560px; background: #fff; border-radius: 4px; box-shadow: 0 6px 30px rgba(23, 32, 42, .14); padding: 38px 40px; font-size: 13.5px; color: #1d232a; position: sticky; top: calc(var(--top-h) + 16px); }
.cvpaper h2 { font-size: 26px; font-weight: 700; }
.cvpaper .role { color: var(--brand-ink); font-weight: 600; font-size: 15px; margin-top: 2px; }
.cvpaper .cont { color: #4a5560; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cvpaper h4 { margin: 20px 0 6px; font-size: 13px; color: var(--brand-ink); border-bottom: 1px solid #d6e6e7; padding-bottom: 4px; }
.cvpaper p { margin: 0; white-space: pre-line; }

/* post form */
.form { display: grid; gap: 16px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; font-size: 14px; }
.checks input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ok-box { text-align: center; padding: 36px 20px; }
.ok-box .big { width: 56px; height: 56px; color: var(--ok); }
.prose p { margin: 0 0 12px; color: var(--ink-2); max-width: 64ch; }

/* footer */
.foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px 20px 26px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; font-size: 14px; color: var(--muted); }
.foot-brand p { margin: 8px 0 0; max-width: 40ch; }
.foot-col { display: grid; gap: 7px; align-content: start; }
.foot-col h4 { font-size: 14px; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.foot-col a:hover { color: var(--brand); }
.copy { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
body.mapmode .foot { display: none; }

#toast { position: fixed; z-index: 2000; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: .2s; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

.bottomnav { display: none; }

.sheet-bg { position: fixed; inset: 0; z-index: 1500; background: rgba(23,32,42,.45); }
.sheet { position: fixed; z-index: 1501; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 18px 18px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 18px; animation: up .2s ease; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto; }
.sheet .hd { display: flex; justify-content: space-between; align-items: center; }
.sheet .hd h3 { font-size: 18px; }
.sheet .radios { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet .radios label { min-height: 38px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; }
.sheet .radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.sheet .radios input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

@media (max-width: 1080px) {
  .topnav .tl span { display: none; }
  .catlist { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 1fr 300px; }
}
@media (max-width: 900px) {
  :root { --top-h: 56px; }
  .topnav .tl, .topnav .post, .topsearch { display: none; }
  .top-in { gap: 10px; padding: 0 16px; }
  .logo { font-size: 20px; }
  main { padding: 16px 16px calc(var(--bn-h) + 28px); }
  main.full { padding: 0; }
  .band { margin-top: -16px; padding-top: 20px; padding-bottom: 18px; }
  .band h1 { font-size: 22px; }
  .band .sub { margin-bottom: 12px; font-size: 14px; }
  .bigsearch { flex-wrap: wrap; }
  .bigsearch label { flex-basis: 100%; }
  .bigsearch select { flex: 1; width: auto; border-left: 0; height: 44px; background: var(--bg); border-radius: 8px; }
  .bigsearch .btn { height: 44px; padding: 0 20px; }
  .catlist { grid-template-columns: 1fr 1fr; }
  .catbox:not(.open) .catrow:nth-child(n+9) { display: none; }
  .catbox:not(.open) .catmore { display: block; }
  .catrow { padding: 9px 8px; gap: 10px; }
  .catrow .ic { width: 34px; height: 34px; }
  .catrow .nm { font-size: 13.5px; }
  .catrow .n { display: none; }
  .results { grid-template-columns: 1fr; margin-top: 14px; }
  .side { display: none; }
  .filterbtn { display: inline-flex; }
  .toolbar .total { flex-basis: 100%; }
  .toolbar select { margin-left: auto; }
  .job { padding: 14px; grid-template-columns: 1fr auto; }
  .job h3 { font-size: 17px; }
  .desc { font-size: 17px; }
  .detail { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .detail .main { display: contents; }
  .detail .main > * { order: 2; }
  .detail .main > .dhead { order: 0; }
  .aside { position: static; order: 1; }
  .detail .aside .market, .detail .aside .minimapbox { display: none; }
  .dhead h1 { font-size: 22px; }
  .calc, .cv { grid-template-columns: 1fr; }
  .cvpaper { position: static; padding: 26px 22px; min-height: 0; }
  .foot { display: none; }
  .mapwrap { height: calc(100dvh - var(--top-h) - var(--bn-h)); }
  .mapcount { bottom: 14px; }
  .sal-row { grid-template-columns: 1fr 90px; }
  .sal-row .track { grid-column: 1 / -1; grid-row: 2; }
  .form .two { grid-template-columns: 1fr; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 950; left: 0; right: 0; bottom: 0;
    height: calc(var(--bn-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); }
  .bottomnav a.on { color: var(--brand); }
  .bottomnav .i { width: 22px; height: 22px; }
  .bottomnav .plus i { width: 42px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
  #toast { bottom: calc(var(--bn-h) + 16px); }
}
@media (max-width: 560px) {
  .box { padding: 16px; border-radius: 12px; }
  .catbox { padding: 6px; }
  .h1 { font-size: 22px; }
  .grid3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body > *:not(main), .cvform, .noprint, .crumbs, .h1, .lead { display: none !important; }
  main { padding: 0; max-width: none; }
  .cv { display: block; }
  .cvpaper { box-shadow: none; position: static; padding: 0; }
}
