:root {
  --bg: #FFFFFF; --soft: #F5F6F7; --card: #FFFFFF; --ink: #121A23; --ink2: #2A3542; --mute: #5B6672; --line: #E6E8EB; --line2: #D3D7DC;
  --head: #121A23;
  --main: #F28B2A; --main-d: #E07A18; --main-ink: #121A23; --main-soft: #FDF0E3; --main-txt: #A24E06;
  --ok: #217A45; --ok-soft: #E4F3EA; --warn: #9A5B00; --warn-soft: #FBF0DA; --bad: #B42318;
  --r: 14px; --pad: 24px; --shadow: 0 1px 2px rgba(18,26,35,.06), 0 6px 20px rgba(18,26,35,.06);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1, .h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3B82C4; outline-offset: 2px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.eyebrow.light { color: rgba(255,255,255,.85); }

/* Sidhuvud */
.top { position: sticky; top: 0; z-index: 20; background: var(--head); color: #fff; }
.top-in { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 var(--pad); display: flex; align-items: center; gap: 32px; }
.wm { font-weight: 700; font-size: 25px; letter-spacing: -0.045em; text-decoration: none; display: inline-flex; align-items: baseline; padding: 6px 0; color: #fff; }
.wm::after { content: ''; width: .26em; height: .26em; background: var(--main); margin-left: .07em; border-radius: 1px; }
.top-nav { display: flex; gap: 2px; flex: 1; height: 100%; }
.top-nav a { text-decoration: none; padding: 0 12px; display: flex; align-items: center; color: rgba(255,255,255,.72); font-weight: 500; font-size: 14px; position: relative; }
.top-nav a:hover { color: #fff; }
.top-nav a.on { color: #fff; }
.top-nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--main); }
.dot { display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--main); color: var(--main-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; margin-left: 5px; }

/* Knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--ink); }
.btn-main { background: var(--main); border-color: var(--main); color: var(--main-ink); box-shadow: 0 4px 14px rgba(242,139,42,.28); }
.btn-main:hover { background: var(--main-d); border-color: var(--main-d); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15px; }
.btn-glass { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }
.btn-glass:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.btn-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); cursor: default; }
.btn-ok:hover { border-color: transparent; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn-ghost:hover { color: var(--ink); border-color: transparent; background: var(--soft); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--main); }

/* Layout */
main { max-width: 1200px; margin: 0 auto; padding: 32px var(--pad) 64px; outline: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.head p:not(.eyebrow) { color: var(--mute); margin-top: 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.cols.one { grid-template-columns: minmax(0, 860px); }
.side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 88px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.panel h3 { margin-bottom: 12px; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--mute); text-decoration: none; font-weight: 500; font-size: 14px; margin-bottom: 16px; min-height: 36px; }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--ink); }
.sec { margin-top: 32px; }
.sec > h2 { margin-bottom: 12px; }

/* Toppbild */
.hero { width: 100vw; margin: -32px 0 0 calc(50% - 50vw); background-image: linear-gradient(90deg, rgba(14,19,26,.85) 0%, rgba(14,19,26,.58) 45%, rgba(14,19,26,.12) 100%), var(--hero-img); background-size: cover; background-position: center 40%; color: #fff; }
.hero-in { max-width: 1200px; margin: 0 auto; padding: 96px var(--pad) 120px; }
.hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.035em; max-width: 620px; }
.hero .lead { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.9); max-width: 520px; margin-top: 18px; }
.hero-b { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust { position: relative; z-index: 2; max-width: 1152px; margin: -48px auto 48px; background: #fff; border-radius: var(--r); box-shadow: 0 10px 40px rgba(18,26,35,.12); display: grid; grid-template-columns: repeat(4, 1fr); }
.trust > div { display: flex; gap: 12px; align-items: center; padding: 20px 22px; }
.trust > div + div { border-left: 1px solid var(--line); }
.trust svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--soft); color: var(--ink2); flex: none; }
.trust b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.trust span { display: block; font-size: 12px; color: var(--mute); }

/* Filter */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--line2); background: var(--card); border-radius: 999px; padding: 0 16px; min-height: 38px; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.sel { min-height: 40px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); padding: 0 34px 0 16px; font-size: 13px; font-weight: 500; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6672' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.search { flex: 1; min-width: 200px; min-height: 46px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); padding: 0 20px; }
.count { color: var(--mute); font-size: 13px; margin-left: auto; }

/* Jobbkort */
.list { display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.job:hover { box-shadow: 0 2px 4px rgba(18,26,35,.06), 0 14px 32px rgba(18,26,35,.1); transform: translateY(-1px); }
.job-img { position: relative; background: var(--soft); min-height: 150px; }
.job-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--main); color: var(--main-ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.job-b { padding: 16px 20px; display: flex; flex-direction: column; min-width: 0; }
.job:not(:has(.job-img)) .job-b { grid-column: 1 / -1; }
.job:not(:has(.job-img)) { grid-template-columns: 1fr; }
.job-top { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--mute); margin-bottom: 6px; flex-wrap: wrap; }
.job-top > span + span::before { content: '·'; margin-right: 8px; }
.type { font-weight: 600; color: var(--main-txt); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.type svg { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--main-soft); color: var(--main-txt); }
.tag svg { width: 12px; height: 12px; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.grey { background: var(--soft); color: var(--mute); }
.job h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--mute); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; }
.job-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 13px; }
.job-foot .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.job-foot .who b { font-weight: 600; }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Avatar */
.av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #DDE2E7; color: var(--ink2); font-weight: 600; font-size: 14px; object-fit: cover; }
.av.lg { width: 76px; height: 76px; font-size: 24px; }
.av.sm { width: 28px; height: 28px; font-size: 11px; }

/* Status */
.free { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.free::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.free.now { color: var(--ok); }
.free.week { color: var(--warn); }
.free.busy { color: var(--mute); }

/* Kollegor */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.person:hover { box-shadow: 0 2px 4px rgba(18,26,35,.06), 0 14px 32px rgba(18,26,35,.1); transform: translateY(-1px); }
.person-h { display: flex; gap: 12px; align-items: center; }
.person-h .av { width: 52px; height: 52px; font-size: 17px; }
.person-h div { min-width: 0; }
.person-h div b { display: block; font-size: 15px; font-weight: 600; }
.person-h div span { display: block; font-size: 13px; color: var(--mute); }
.certs { display: flex; flex-wrap: wrap; gap: 6px; }
.cert { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; }
.cert.have { background: var(--ok-soft); color: var(--ok); }
.cert.miss { background: var(--warn-soft); color: var(--warn); }
.cert svg { width: 13px; height: 13px; }
.person-f { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--mute); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* Underflikar */
.subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.subtabs a { padding: 12px 14px; font-weight: 500; font-size: 14px; color: var(--mute); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subtabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--main); }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink2); }

/* Detaljsida */
.detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.detail.has-img { padding-top: 0; overflow: hidden; }
.detail-img { position: relative; margin: 0 -28px 24px; height: 300px; background: var(--soft); }
.detail-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-img .badge { top: 16px; left: 16px; font-size: 13px; padding: 4px 12px; }
.detail h1 { font-size: 30px; margin: 8px 0 14px; }
.facts { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 22px 0; }
.facts div { flex: 1 1 140px; padding: 14px 16px; outline: 1px solid var(--line); }
.facts dt { font-size: 11px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.facts dd { margin: 3px 0 0; font-weight: 600; font-size: 14px; }
.body-text { white-space: pre-line; font-size: 15px; line-height: 1.65; max-width: 66ch; color: var(--ink2); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.prof { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.prof h1 { margin: 0; font-size: 28px; }
.note { font-size: 12px; color: var(--mute); display: flex; gap: 6px; align-items: flex-start; margin-top: 12px; }
.note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.row:first-child { border-top: 0; padding-top: 0; }
.row:last-child { padding-bottom: 0; }
.row > div { flex: 1; min-width: 0; }
.row b { display: block; font-weight: 600; font-size: 14px; }
.row span.mute { font-size: 13px; }
a.row:hover b { text-decoration: underline; text-decoration-color: var(--main); text-underline-offset: 3px; }

/* Forum */
.thread { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; text-decoration: none; align-items: center; box-shadow: var(--shadow); }
.thread:hover { border-color: var(--line2); }
.thread > div { flex: 1; min-width: 0; }
.thread h3 { font-size: 15px; margin-bottom: 4px; }
.thread .meta { font-size: 12px; }
.thread .num { text-align: center; min-width: 52px; font-size: 11px; color: var(--mute); }
.thread .num b { display: block; font-size: 18px; color: var(--ink); }
.post { padding: 20px 0; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.post:first-of-type { border-top: 0; padding-top: 0; }
.post > div { flex: 1; min-width: 0; }
.post-h { font-size: 13px; margin-bottom: 6px; }
.post-h b { font-weight: 600; }
.helpful { margin-top: 12px; }
.helpful.on { background: var(--ok-soft); border-color: transparent; color: var(--ok); }

/* Formulär */
.form { display: grid; gap: 20px; max-width: 700px; }
.field label, .field .lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--mute); margin: -2px 0 8px; }
.inp { width: 100%; min-height: 48px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); padding: 11px 14px; font-size: 16px; }
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(18,26,35,.1); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pick label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; background: var(--card); cursor: pointer; font-weight: 500; font-size: 14px; margin: 0; }
.pick label svg { width: 20px; height: 20px; color: var(--mute); flex: none; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick label:has(input:checked) svg { color: var(--main-d); }
.pick label:has(input:focus-visible) { outline: 3px solid #3B82C4; outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line2); border-radius: 999px; padding: 0 16px; min-height: 40px; background: var(--card); cursor: pointer; font-size: 13px; font-weight: 500; margin: 0; }
.checks input { accent-color: var(--ink); width: 16px; height: 16px; }
.checks label:has(input:checked) { border-color: var(--ink); }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }

/* Ditt läge */
.seg { display: grid; gap: 8px; }
.seg button { text-align: left; border: 1px solid var(--line2); background: var(--card); border-radius: 12px; padding: 11px 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; min-height: 44px; }
.seg button span { font-weight: 400; font-size: 12px; color: var(--mute); display: block; }
.seg button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg .free { font-size: 0; }

/* Chatt */
.inbox .row { padding: 14px 0; }
.inbox .row:first-child { padding-top: 0; }
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; height: calc(100vh - 230px); min-height: 420px; box-shadow: var(--shadow); overflow: hidden; }
.chat-h { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-h div b { display: block; font-weight: 600; }
.chat-h div span { font-size: 12px; color: var(--mute); }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; white-space: pre-line; font-size: 14px; box-shadow: 0 1px 1px rgba(18,26,35,.06); }
.msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; }
.msg small { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.msg-ctx { align-self: center; font-size: 12px; color: var(--mute); text-align: center; padding: 4px 10px; }
.msg-ctx a { color: var(--ink); font-weight: 600; }
.chat-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-f .inp { min-height: 46px; border-radius: 999px; padding: 0 18px; }

/* Tom */
.empty { text-align: center; padding: 44px 20px; color: var(--mute); background: var(--soft); border-radius: var(--r); }
.empty b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

/* Ruta */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(12,17,23,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sheet-in { background: var(--card); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sheet-in h2 { margin-bottom: 6px; }
.sheet-in .actions { justify-content: flex-end; }
.sheet-in .row .type svg { width: 22px; height: 22px; color: var(--main-d); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1100; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--main); font-weight: 700; margin-left: 10px; }

/* Notiser */
.bell { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: rgba(255,255,255,.8); text-decoration: none; }
.bell:hover, .bell.on { color: #fff; background: rgba(255,255,255,.1); }
.bell svg { width: 22px; height: 22px; }
.bell .dot { position: absolute; top: 4px; right: 2px; margin: 0; }
.new { width: 9px; height: 9px; border-radius: 50%; background: var(--main); flex: none; }
.new.old { background: transparent; }

/* Karta */
.jmap { height: 380px; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 16px; z-index: 0; box-shadow: var(--shadow); }
.pop { display: grid; gap: 4px; font-family: var(--font); min-width: 180px; }
.pop b { font-size: 14px; line-height: 1.3; }
.pop a { color: var(--main-txt); font-weight: 700; }
.leaflet-container { font-family: var(--font); background: #ECEEF0; }
.jmap .leaflet-tile-pane { filter: grayscale(1) contrast(.9) brightness(1.06); }

/* Företaget */
.alert { display: flex; gap: 14px; align-items: center; background: var(--main-soft); border: 1px solid #F6D2AE; border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.alert > svg { width: 22px; height: 22px; color: var(--main-txt); flex: none; }
.alert > div { flex: 1; min-width: 0; }
.alert b { display: block; font-weight: 600; }
.alert span { font-size: 13px; color: var(--ink2); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.proj { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.proj:hover { box-shadow: 0 2px 4px rgba(18,26,35,.06), 0 14px 32px rgba(18,26,35,.1); transform: translateY(-1px); }
.proj-h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.proj-h b { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; margin: 4px 0; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.tasks { display: grid; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.task:first-child { border-top: 0; }
.task input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ok); flex: none; cursor: pointer; }
.task span { min-width: 0; }
.task b { display: block; font-weight: 500; font-size: 14px; }
.task small { font-size: 12px; color: var(--mute); }
.task small a { color: var(--ink2); }
.task em { font-style: normal; }
.task em.late { color: var(--bad); font-weight: 600; }
.task.done b { text-decoration: line-through; color: var(--mute); }
.addtask { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px auto; gap: 8px; margin-top: 12px; }
.addtask .inp { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.donelist { margin-top: 14px; }
.donelist summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--mute); padding: 8px 0; }
.wk-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.wk { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.wk th, .wk td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
.wk thead th { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); background: var(--soft); }
.wk tbody tr:last-child > * { border-bottom: 0; }
.wk tbody th { min-width: 190px; font-weight: 400; }
.wk-p { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; }
.wk-p b { display: block; font-weight: 600; font-size: 14px; }
.wk-p span { font-size: 12px; color: var(--mute); }
.wk-sel { width: 100%; max-width: 170px; min-height: 36px; font-size: 12px; }
.wk-m { display: none; }
.wk-m .row b { display: inline; margin-right: 8px; }
.wk-m .wk-sel { max-width: 175px; }

.proto { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); text-align: center; }

/* Mobilflikar */
.tabbar { display: none; }

@media (max-width: 1000px) {
  .cols, .cols.one { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .trust { grid-template-columns: 1fr 1fr; margin-left: var(--pad); margin-right: var(--pad); }
  .trust > div:nth-child(3) { border-left: 0; }
  .trust > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  body { font-size: 15px; }
  .top-nav, .top-cta { display: none; }
  .top-in { height: 56px; }
  .wm { font-size: 24px; }
  .bell { margin-left: auto; margin-right: -8px; }
  main { padding: 20px var(--pad) calc(92px + env(safe-area-inset-bottom)); }
  h1, .h1 { font-size: 26px; }
  .hero { margin-top: -20px; background-image: linear-gradient(180deg, rgba(14,19,26,.5) 0%, rgba(14,19,26,.82) 100%), var(--hero-img); }
  .hero-in { padding: 52px var(--pad) 84px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 15px; }
  .hero-b .btn { flex: 1 1 100%; }
  .hero-b .btn-glass { display: none; }
  .trust { margin: -40px 0 32px; }
  .trust > div { padding: 12px 14px; gap: 10px; }
  .trust svg { width: 30px; height: 30px; padding: 7px; }
  .trust b { font-size: 12px; }
  .trust span { display: none; }
  .filters .search { flex: 1 1 100%; }
  .addtask { grid-template-columns: 1fr 1fr; }
  .addtask .inp:first-child { grid-column: 1 / -1; }
  .addtask .btn { grid-column: 1 / -1; }
  .alert { flex-wrap: wrap; }
  .alert .btn { width: 100%; }
  .wk-wrap { display: none; }
  .wk-m { display: grid; gap: 12px; }
  .mapbtn { width: 40px; padding: 0; flex: none; }
  .mapbtn span { display: none; }
  .job-img { height: 130px; }
  .fab { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
  body.past .fab { opacity: 1; transform: none; pointer-events: auto; }
  .head { flex-direction: column; align-items: stretch; gap: 12px; }
  .head .btn { width: 100%; }
  .job { grid-template-columns: 1fr; }
  .job-img { min-height: 0; height: 150px; }
  .job-b { padding: 14px 16px 16px; }
  .detail { padding: 20px; }
  .detail-img { margin: 0 -20px 20px; height: 210px; }
  .detail h1 { font-size: 23px; }
  .two, .three { grid-template-columns: 1fr; }
  .three.keep, .two.keep { grid-template-columns: 1fr 1fr; }
  .three.keep { grid-template-columns: 1.4fr 1fr 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 12px; padding: 0 var(--pad); scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .filters .sel { flex: 1; min-width: 0; }
  .count { width: 100%; margin: 0; }
  .actions .btn { flex: 1; }
  .chat { height: calc(100vh - 220px); border-radius: 0; margin: 0 calc(-1 * var(--pad)); border-left: 0; border-right: 0; box-shadow: none; }
  .jmap { height: 300px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 500; color: var(--mute); text-decoration: none; position: relative; min-height: 54px; }
  .tabbar a svg { width: 23px; height: 23px; }
  .tabbar a.on { color: var(--ink); font-weight: 600; }
  .tabbar a.on svg { color: var(--main-d); }
  .tabbar .dot { position: absolute; top: 4px; left: 52%; margin: 0; }
  .fab { position: fixed; right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 25; border-radius: 999px; padding: 0 22px; min-height: 52px; box-shadow: 0 8px 24px rgba(242,139,42,.4); }
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-in { border-radius: 20px 20px 0 0; max-height: 90vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 761px) { .fab { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
