/* JobSwipe – design: indigo + myntgul, rundade hörn, mobil först */
:root {
  /* Färger hämtade från loggan: mörkgrön text (#0a291d) och grön (#00a436). Gult behålls för ersättning. */
  --bg: #f2f6f1;
  --surface: #ffffff;
  --ink: #0f2a20;
  --ink-2: #4b6258;
  --ink-3: #86998f;
  --line: #e0e8e1;
  --brand: #08903a;
  --brand-ink: #ffffff;
  --brand-soft: #e0f3e6;
  --coin: #ffcf3f;
  --yes: #12b76a;
  --yes-soft: #dcf7ea;
  --no: #f04438;
  --no-soft: #fde4e1;
  --warn: #f79009;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(10, 41, 29, .13);
  --shadow-sm: 0 2px 8px rgba(10, 41, 29, .08);
  --nav-h: 68px;
  --head-h: 56px;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1711; --surface: #14241b; --ink: #eaf5ee; --ink-2: #a9c2b3; --ink-3: #6f8a7a; --line: #223a2d;
    --brand: #3ddc78; --brand-ink: #06210f; --brand-soft: #17331f; --yes-soft: #123a2a; --no-soft: #43201e; --shadow: 0 10px 30px rgba(0,0,0,.45);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--ink); }
body { display: flex; justify-content: center; font-size: 16px; line-height: 1.4; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

#app { width: 100%; max-width: 480px; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); position: relative; overflow: hidden; }
@media (min-width: 520px) { #app { margin: 0 auto; box-shadow: 0 0 0 1px var(--line), var(--shadow); } }

/* ---------- header / nav ---------- */
.topbar { height: var(--head-h); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.logo { font-weight: 900; font-size: 22px; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo-img { width: 36px; height: 36px; border-radius: 10px; flex: none; background: #fff; box-shadow: var(--shadow-sm); }
.lg-job { color: var(--ink); } .lg-swipe { color: var(--brand); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 19px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--no); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
main { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; -webkit-overflow-scrolling: touch; }
main.noscroll { overflow: hidden; }
.screen { padding: 4px 16px 24px; min-height: 100%; animation: fadein .18s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tabbar { flex: none; height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3); position: relative; text-decoration: none; }
.tab .ico { font-size: 22px; line-height: 1; }
.tab.active { color: var(--brand); }
.tab.add .ico { width: 46px; height: 46px; border-radius: 16px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 26px; margin-top: -14px; box-shadow: 0 6px 16px rgba(8,144,58,.4); }
.tab.add { color: var(--ink-2); }
.tab .badge { top: 6px; right: calc(50% - 26px); }

/* ---------- komponenter ---------- */
h1 { font-size: 26px; letter-spacing: -.02em; margin: 6px 0 12px; }
h2 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -.01em; }
h3 { font-size: 16px; margin: 0 0 4px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .tiny { font-size: 12px; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.card.tap { cursor: pointer; transition: transform .12s; } .card.tap:active { transform: scale(.985); }
.list > * + * { margin-top: 10px; }
.btn { min-height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 800; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, filter .15s; text-decoration: none; }
.btn:active { transform: scale(.97); } .btn:hover { filter: brightness(1.06); }
.btn.block { width: 100%; }
.btn.sec { background: var(--brand-soft); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 2px var(--line); }
.btn.yes { background: var(--yes); color: #fff; } .btn.no { background: var(--no); color: #fff; }
.btn.danger { background: var(--no-soft); color: var(--no); }
.btn.sm { min-height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.chip.on { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--brand-soft); color: var(--brand); }
.tag.green { background: var(--yes-soft); color: var(--yes); } .tag.red { background: var(--no-soft); color: var(--no); } .tag.yellow { background: #fff2c2; color: #8a6100; } .tag.gray { background: var(--line); color: var(--ink-2); }
.pay { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 12px; background: var(--coin); color: #3b2d00; font-weight: 900; font-size: 17px; }

label.field { display: block; font-weight: 700; font-size: 14px; }
label.field > span { display: block; margin-bottom: 6px; }
label.field small { font-weight: 500; color: var(--ink-3); }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); outline: none; transition: border-color .15s; font-weight: 500; }
textarea.input { min-height: 96px; resize: vertical; } .input:focus { border-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.error { color: var(--no); font-weight: 700; font-size: 14px; background: var(--no-soft); padding: 10px 14px; border-radius: 12px; }
.notice { background: #fff6d6; color: #6b4e00; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .notice { background: #3a3014; color: #ffd978; } .tag.yellow { background: #3a3014; color: #ffd978; } }
.avatar { border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 900; flex: none; overflow: hidden; }
.stars { color: var(--coin); letter-spacing: 1px; white-space: nowrap; } .stars .off { color: var(--line); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); } .empty .big { font-size: 54px; margin-bottom: 8px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: flex; background: var(--surface); border-radius: 14px; padding: 4px; box-shadow: var(--shadow-sm); gap: 4px; }
.seg button { flex: 1; padding: 9px 4px; border-radius: 11px; font-weight: 800; font-size: 13px; color: var(--ink-2); }
.seg button.on { background: var(--brand); color: var(--brand-ink); }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ink-2); padding: 8px 0; text-decoration: none; }

/* ---------- Upptäck / swipe ---------- */
.discover { display: flex; flex-direction: column; height: 100%; padding: 0 14px 10px; gap: 8px; }
.toolbar { flex: none; }
.deck-wrap { flex: 1; min-height: 0; position: relative; perspective: 1200px; }
.jcard { position: absolute; inset: 0 0 0 0; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; cursor: grab; }
.jcard.behind { transform: scale(.94) translateY(14px); filter: brightness(.97); pointer-events: none; transition: transform .25s, filter .25s; }
.jcard.dragging { cursor: grabbing; transition: none; }
.jcard.anim { transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s; }
.jcard .media { flex: 1 1 46%; min-height: 150px; position: relative; background: linear-gradient(135deg, #0a291d, #08903a 62%, var(--coin)); display: grid; place-items: center; overflow: hidden; }
.jcard .media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.jcard .media .cat-ico { font-size: 72px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.jcard .media .pay { position: absolute; right: 14px; bottom: 14px; font-size: 22px; padding: 8px 16px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.jcard .media .dist { position: absolute; left: 14px; bottom: 14px; background: rgba(23,23,43,.72); color: #fff; padding: 6px 12px; border-radius: 12px; font-size: 14px; font-weight: 800; backdrop-filter: blur(6px); }
.jcard .media .demo { position: absolute; left: 14px; top: 14px; }
.jcard .body { flex: 1 1 54%; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.jcard h2 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.jcard .desc { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.facts { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.owner { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.stamp { position: absolute; top: 26px; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-weight: 900; font-size: 24px; letter-spacing: .04em; opacity: 0; pointer-events: none; z-index: 3; text-transform: uppercase; background: rgba(255,255,255,.85); }
.stamp.yes { left: 20px; color: var(--yes); border-color: var(--yes); transform: rotate(-14deg); }
.stamp.no { right: 20px; color: var(--no); border-color: var(--no); transform: rotate(14deg); }
.actions { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding-top: 4px; }
.actions .btn { min-height: 56px; font-size: 16px; border-radius: 20px; }
.undo { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 20px; }
.undo[disabled] { opacity: .35; }
.actions + .offer { flex: none; min-height: 42px; font-size: 14px; border-radius: 16px; margin-top: 8px; }
.hint { text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---------- sheet / modal ---------- */
.overlay { position: absolute; inset: 0; background: rgba(15,16,32,.5); z-index: 50; display: flex; align-items: flex-end; animation: fadein .15s; }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px 24px; animation: up .25s cubic-bezier(.2,.8,.2,1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px; }
.gallery img { cursor: zoom-in; height: 200px; border-radius: 18px; scroll-snap-align: center; flex: none; max-width: 85%; object-fit: cover; }
.toast-wrap { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 16px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: fadein .2s; pointer-events: auto; }
.toast.err { background: var(--no); color: #fff; } .toast.ok { background: var(--yes); color: #fff; }

/* ---------- karta ---------- */
#map { width: 100%; height: 100%; min-height: 300px; background: var(--line); border-radius: 0; z-index: 1; }
.maphead { position: absolute; z-index: 5; left: 12px; right: 12px; top: 8px; }

/* ---------- chatt ---------- */
.chat { display: flex; flex-direction: column; height: 100%; }
.chat-head { flex: none; padding: 6px 14px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); align-self: flex-start; word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; background: var(--brand); color: var(--brand-ink); }
.msg .meta { font-size: 11px; opacity: .65; margin-top: 2px; }
.msg.sys { align-self: center; background: transparent; box-shadow: none; color: var(--ink-3); font-size: 13px; text-align: center; max-width: 92%; }
.chat-input { flex: none; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.chat-input .input { min-height: 46px; border-radius: 23px; }
.chat-input .send { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 20px; flex: none; }
.day-sep { align-self: center; font-size: 12px; color: var(--ink-3); font-weight: 700; margin: 6px 0; }

/* ---------- övrigt ---------- */
.profile-hero { text-align: center; padding: 8px 0 4px; }
.profile-hero .avatar { margin: 0 auto 10px; box-shadow: var(--shadow); }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: 16px; font-weight: 700; width: 100%; text-align: left; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.menu-item .ico { font-size: 20px; width: 28px; text-align: center; }
.menu-item .chev { margin-left: auto; color: var(--ink-3); }
.notif { display: flex; gap: 12px; padding: 14px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-sm); cursor: pointer; position: relative; }
.notif.unread { box-shadow: inset 4px 0 0 var(--brand), var(--shadow-sm); }
.notif .ni { width: 40px; height: 40px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.legal h2 { margin-top: 20px; } .legal p, .legal li { color: var(--ink-2); font-size: 15px; }
.thumb-row { display: flex; gap: 8px; flex-wrap: wrap; } .thumb { position: relative; width: 78px; height: 78px; border-radius: 14px; overflow: hidden; background: var(--line); } .thumb img { width: 100%; height: 100%; object-fit: cover; } .thumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; }
.add-thumb { width: 78px; height: 78px; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 26px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- inloggning ---------- */
.auth { padding: 20px 16px 28px; max-width: 440px; margin: 0 auto; }
.auth-logo { background: #fff; border-radius: 28px; padding: 6px; margin: 0 auto 14px; width: min(260px, 70%); box-shadow: var(--shadow); }
.auth-logo img { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; border-radius: 22px; }
.auth-tag { text-align: center; margin: 0 0 18px; color: var(--ink-2); }
.age-note { font-size: 13px; font-weight: 700; margin-top: 2px; } .age-note.ok { color: var(--yes); } .age-note.bad { color: var(--no); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 340px) { .grid2 { grid-template-columns: 1fr; } }

/* ---- favoritstjärna ---- */
.fav { position: absolute; right: 12px; top: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 26px; line-height: 1; cursor: pointer;
  background: rgba(23,23,43,.55); color: #fff; backdrop-filter: blur(6px); box-shadow: var(--shadow-sm); transition: transform .15s; }
.fav.on, .fav[aria-pressed="true"] { color: var(--coin); }
.fav:active { transform: scale(1.2); }
.fav.inline { position: static; background: var(--brand-soft); color: var(--ink-2); box-shadow: none; backdrop-filter: none; width: 40px; height: 40px; }
.fav.inline[aria-pressed="true"] { color: #e0a200; }

/* ---- platsval ---- */
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- introduktion ---- */
.welcome { display: flex; flex-direction: column; min-height: 100%; }
.welcome .slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px 8px; }
.welcome .big-ico { font-size: 84px; margin-bottom: 8px; }
.welcome .slide p { color: var(--ink-2); max-width: 34ch; margin: 8px 0 0; font-size: 17px; line-height: 1.45; }
.dots { display: flex; gap: 8px; justify-content: center; }
.dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--brand); width: 24px; border-radius: 6px; }

/* bildvisare */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; display: grid; place-items: center; border: 0; cursor: pointer; }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 34px; line-height: 1; padding-bottom: 4px; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
.lb-count { position: absolute; top: max(24px, calc(env(safe-area-inset-top) + 10px)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 800; pointer-events: none; }
.imgcount { position: absolute; left: 14px; top: 14px; z-index: 3; background: rgba(23,23,43,.72); color: #fff; padding: 5px 10px; border-radius: 12px; font-size: 13px; font-weight: 800; }

/* ---------- startskärm och mjuka övergångar ---------- */
#splash{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:radial-gradient(120% 90% at 50% 35%,#0bb04a 0%,#08903a 55%,#056a2b 100%);color:#fff;transition:opacity .6s ease,transform .6s ease;overflow:hidden}
#splash.out{opacity:0;transform:scale(1.06);pointer-events:none}
#splash .sp-logo{width:120px;height:120px;border-radius:30px;box-shadow:0 18px 50px rgba(0,0,0,.28);animation:sp-pop .9s cubic-bezier(.2,.9,.25,1.15) both,sp-float 3s ease-in-out .9s infinite;position:relative;z-index:2}
#splash .sp-name{font-size:34px;font-weight:900;letter-spacing:-.02em;animation:sp-up .7s .35s cubic-bezier(.2,.8,.2,1) both;position:relative;z-index:2}
#splash .sp-tag{font-size:15px;opacity:.9;animation:sp-up .7s .6s cubic-bezier(.2,.8,.2,1) both;position:relative;z-index:2;padding:0 24px;text-align:center}
#splash .sp-glow{position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.28),transparent 65%);animation:sp-breathe 2.4s ease-in-out infinite}
#splash .sp-ring{position:absolute;width:150px;height:150px;border-radius:50%;border:2px solid rgba(255,255,255,.55);animation:sp-ring 2.2s ease-out infinite}
#splash .sp-ring.r2{animation-delay:1.1s}
@keyframes sp-pop{0%{opacity:0;transform:scale(.4) rotate(-12deg)}100%{opacity:1;transform:none}}
@keyframes sp-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes sp-up{0%{opacity:0;transform:translateY(14px)}100%{opacity:1;transform:none}}
@keyframes sp-ring{0%{transform:scale(.7);opacity:.8}100%{transform:scale(3.2);opacity:0}}
@keyframes sp-breathe{0%,100%{transform:scale(.9);opacity:.7}50%{transform:scale(1.1);opacity:1}}
#main.route-in{animation:view-in .3s cubic-bezier(.2,.8,.2,1) both}
@keyframes view-in{0%{opacity:0;transform:translateY(8px)}100%{opacity:1;transform:none}}
.langsw{display:flex;justify-content:flex-end;gap:6px;margin-bottom:6px}
.langsw button{border:1px solid var(--line);background:transparent;color:var(--ink-2);border-radius:999px;padding:6px 12px;font-weight:700;font-size:13px;cursor:pointer}
.langsw button.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
@media (prefers-reduced-motion: reduce){#splash *,#main.route-in{animation:none!important}#splash{transition:opacity .2s}}

/* ---------- Datorvy (bred skärm): sidomeny till vänster, innehåll i mitten. Telefonvyn är oförändrad. ---------- */
@media (min-width: 900px) and (hover: hover) {
  :root { --side-w: 248px; }
  body { display: block; }
  #app { max-width: none; width: 100%; margin: 0; box-shadow: none; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--head-h) minmax(0, 1fr); grid-template-areas: "side top" "side main"; }
  #app.no-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  #app.no-top { grid-template-rows: minmax(0, 1fr); grid-template-areas: "side main"; }
  #app.no-top.no-side { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
  .topbar { grid-area: top; justify-content: flex-end; padding: 0 32px; }
  .topbar .logo { display: none; }
  main { grid-area: main; }
  .tabbar { grid-area: side; height: auto; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: var(--surface); border-top: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  .tabbar::before { order: -2; content: 'JobSwipe'; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 56px; margin-bottom: 14px; font-weight: 900; font-size: 24px; letter-spacing: -.03em; color: var(--brand); background: url(/logo-icon-96.png) 6px 50% / 38px 38px no-repeat; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 14px; border-radius: 14px; font-size: 16px; font-weight: 800; color: var(--ink-2); }
  .tab:hover { background: var(--bg); }
  .tab.active { background: var(--brand-soft); color: var(--brand); }
  .tab .ico { width: 28px; text-align: center; font-size: 22px; }
  .tab.add { order: -1; margin: 0 0 10px; background: var(--brand); color: var(--brand-ink); justify-content: center; box-shadow: 0 6px 16px rgba(8,144,58,.3); }
  .tab.add:hover { background: #07802f; }
  .tab.add .ico { all: unset; font-size: 22px; width: auto; margin: 0; }
  .tab .badge { top: 50%; right: 12px; transform: translateY(-50%); border-color: var(--surface); }
  .topbar .icon-btn:hover { box-shadow: var(--shadow); }

  /* innehåll: lagom bred kolumn, listor i två spalter */
  .screen { max-width: 880px; margin: 0 auto; padding: 12px 32px 40px; }
  .screen > .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
  .screen > .list > * + * { margin-top: 0; }
  h1 { font-size: 30px; }
  .card.tap:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

  /* Upptäck: kortet får bli större men inte oändligt, mitt på sidan */
  .discover { max-width: 620px; margin: 0 auto; width: 100%; padding: 4px 24px 18px; gap: 12px; }
  .jcard { border-radius: 30px; }
  .jcard .media { flex-basis: 52%; }
  .jcard h2 { font-size: 26px; }
  .jcard .desc { font-size: 16px; -webkit-line-clamp: 4; }
  .actions .btn { min-height: 60px; font-size: 17px; }
  .hint { font-size: 13px; }

  /* Karta fyller hela ytan, chatt i lagom bredd */
  .chat { max-width: 760px; margin: 0 auto; width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: var(--bg); }
  .chat-msgs { padding: 16px 20px; }
  .msg { max-width: 70%; }

  /* Inloggning och introduktion */
  .auth { max-width: 460px; padding-top: 6vh; }

  /* Dialogrutor: mitt på skärmen i stället för underifrån */
  .overlay { align-items: center; justify-content: center; padding: 24px; }
  .sheet { width: 100%; max-width: 560px; max-height: 88%; border-radius: 28px; box-shadow: var(--shadow); }
  .sheet .grab { display: none; }
  .gallery img { height: 240px; }
  .toast-wrap { left: 50%; right: auto; width: 440px; transform: translateX(-50%); }
}
@media (min-width: 1400px) and (hover: hover) {
  .screen { max-width: 1040px; }
  .screen > .list { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
}
