/* =====================================================================
   U-OS - Garasje. Moerk med UNO-gult, myke fade i bakgrunnen (ingen blur).
   Bygger paa .sx fra social.css.
   ===================================================================== */
.app-inner.ga { --x-page: #0b0b0d; --x-bg: #0b0b0d; --x-s1: #16161a; --x-s2: #1d1d22; --x-s3: #26262c; --x-line: rgba(255,255,255,.07); --x-line2: rgba(255,255,255,.13);
  --x-tx: #fff; --x-tx2: #d4d4d8; --x-tx3: #8b8b94; --x-acc: #ffb200; --x-acc-tx: #1a1300; --x-red: #ff5a5f; --x-green: #2fd27a;
  --x-font: 'Sora', 'Manrope', sans-serif; --x-body: 'Manrope', 'Segoe UI', sans-serif; --ga-y: #ffb200; }
.ga-col { position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; max-width: 480px; transform: translateX(-50%); background: var(--x-bg); overflow: hidden; }
.ufold:not(.folded) .ga-col { max-width: none; }
/* Bakgrunn: gul gloed oeverst og diagonale parkeringsstriper som fader ut */
.ga-bgfx { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 55% at 85% -8%, rgba(255,178,0,.22), rgba(255,178,0,.06) 45%, transparent 70%),
    radial-gradient(90% 40% at -10% 30%, rgba(255,178,0,.07), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,178,0,.045) 0 14px, transparent 14px 42px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 35%, transparent 75%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 35%, transparent 75%); }
.ga-holder { position: absolute; inset: 0; }
.ga-view { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--sbh); }
.ga-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding: 0 16px calc(var(--hb) + 18px); }
.ga-scroll::-webkit-scrollbar { display: none; }
.ga-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 4px 4px 14px; }
.ga-h1 { margin: 0; font: 800 30px var(--x-font); letter-spacing: -.6px; }
.ga-sum { font-size: 12.5px; color: var(--x-tx3); font-weight: 700; }
.ga-near { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; margin: 0 0 14px; padding: 0 14px; border: 0; border-radius: 15px; cursor: pointer;
  background: rgba(255,178,0,.10); color: var(--ga-y); box-shadow: inset 0 0 0 1px rgba(255,178,0,.28); font: inherit; font-size: 13.5px; font-weight: 800;
  transition: background .2s, transform .1s, opacity .2s; }
.ga-near span { flex: 1; text-align: left; }
.ga-near i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 8px; background: var(--ga-y); color: #1a1300; }
.ga-near:hover { background: rgba(255,178,0,.16); }
.ga-near:active { transform: scale(.98); }
.ga-near.busy { opacity: .6; pointer-events: none; }
.ga-note { color: var(--x-tx3); font-size: 12.5px; line-height: 1.45; text-align: center; padding: 10px 12px; margin: 0; }

/* Skilt */
.ga-plate { display: inline-flex; align-items: center; height: 20px; border-radius: 5px; background: linear-gradient(180deg, #fbf9f2, #e9e5d8); box-shadow: inset 0 0 0 1.5px #23232a, 0 1px 0 rgba(255,255,255,.06); flex-shrink: 0; }
.ga-plate b { color: #111; font: 800 11.5px/20px 'IBM Plex Mono', monospace; letter-spacing: 1.2px; padding: 0 8px; white-space: nowrap; }
.ga-plate.big { height: 30px; border-radius: 7px; box-shadow: inset 0 0 0 2px #23232a, 0 2px 8px rgba(0,0,0,.35); }
.ga-plate.big b { font-size: 17px; line-height: 30px; padding: 0 13px; letter-spacing: 2px; }

/* Status */
.ga-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 11px; font-weight: 800; white-space: nowrap; flex-shrink: 0; }
.ga-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ga-chip.ok { color: var(--x-green); background: rgba(47,210,122,.13); }
.ga-chip.out { color: var(--ga-y); background: rgba(255,178,0,.14); }
.ga-chip.bad { color: var(--x-red); background: rgba(255,90,95,.14); }
.ga-chip.off { color: var(--x-tx3); background: rgba(255,255,255,.08); }

/* Ikon for typen (ingen bilder) */
.ga-kic { display: grid; place-items: center; flex: none; }
.ga-kic.tile { width: 48px; height: 48px; border-radius: 15px; background: rgba(255,255,255,.06); color: var(--x-tx2); }
.ga-kic.tile.s-ok { background: rgba(47,210,122,.12); color: var(--x-green); }
.ga-kic.tile.s-out { background: rgba(255,178,0,.13); color: var(--ga-y); }
.ga-kic.tile.s-bad { background: rgba(255,90,95,.13); color: var(--x-red); }
.ga-artbox { pointer-events: none; }
.ga-art { width: 100%; height: 100%; overflow: visible; }
/* Favorittkortet: tegningen som et svakt vannmerke som fader ut mot venstre */
.ga-artbox.mark { position: absolute; right: -26px; bottom: -6px; width: 250px; height: 100px; opacity: .22;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%); }
/* Bilsiden: stor tegning med gloed bak og skygge under */
.ga-artbox.big { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 78%; max-width: 330px; aspect-ratio: 244 / 96; }
.ga-artbox.big::before { content: ''; position: absolute; inset: -40% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(50% 50% at 50% 55%, rgba(255,178,0,.22), transparent 70%); }
.ga-artbox.big.s-ok::before { background: radial-gradient(50% 50% at 50% 55%, rgba(47,210,122,.20), transparent 70%); }
.ga-artbox.big.s-bad::before { background: radial-gradient(50% 50% at 50% 55%, rgba(255,90,95,.20), transparent 70%); }
.ga-artbox.big::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -10px; height: 16px; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.75), transparent 75%); z-index: -1; }
.ga-artbox.big .ga-art { animation: gaIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gaIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.reduce-motion .ga-artbox.big .ga-art { animation: none; }

/* Stort favorittkort */
.ga-hero { position: relative; width: 100%; border: 0; padding: 0; text-align: left; cursor: pointer; border-radius: 24px; overflow: hidden; margin-bottom: 16px; color: var(--x-tx);
  background: linear-gradient(160deg, #1f1f25 0%, #141418 60%, #101013 100%); box-shadow: inset 0 0 0 1px var(--x-line); animation: gaUp .35s cubic-bezier(.2,.8,.2,1) both; }
.ga-hero::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ga-y); }
.ga-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 70% at 100% 0%, rgba(255,178,0,.18), transparent 65%); }
.ga-hero-i { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 18px 64px 16px 18px; }
.ga-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ga-kick { font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ga-y); }
.ga-hero-t { font: 800 22px var(--x-font); letter-spacing: -.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-hero-s { font-size: 12.5px; color: var(--x-tx3); }
.ga-hero-bot { display: flex; align-items: center; gap: 9px; margin-top: 6px; min-width: 0; }
.ga-hero-w { font-size: 12px; color: var(--x-tx2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ga-hero-gps { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--ga-y); color: #1a1300; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(255,178,0,.35); }
.ga-hero-gps:active { transform: scale(.94); }

/* Søk og filter */
.ga-search { height: 40px; border-radius: 13px; background: var(--x-s2); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--x-tx3); margin-bottom: 10px; cursor: text; box-shadow: inset 0 0 0 1px var(--x-line); }
.ga-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--x-tx); font-size: 14px; height: 100%; padding: 0; }
.ga-search input::placeholder { color: var(--x-tx3); }
.ga-filters, .ga-hours { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.ga-filters::-webkit-scrollbar, .ga-hours::-webkit-scrollbar { display: none; }
.ga-f { flex: none; border: 0; border-radius: 15px; height: 30px; padding: 0 12px; background: var(--x-s2); color: var(--x-tx2) !important; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: inset 0 0 0 1px var(--x-line); transition: background .15s ease, color .15s ease; }
.ga-f i { font-style: normal; font-size: 11px; color: var(--x-tx3); }
.ga-f.on { background: var(--ga-y); color: #1a1300 !important; box-shadow: none; }
.ga-f.on i { color: rgba(26,19,0,.6); }

/* Liste */
.ga-list { display: flex; flex-direction: column; gap: 8px; }
.ga-row { position: relative; width: 100%; border: 0; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 12px; border-radius: 18px; color: var(--x-tx);
  background: linear-gradient(90deg, #1b1b20, #141418 70%); box-shadow: inset 0 0 0 1px var(--x-line); overflow: hidden; animation: gaUp .32s cubic-bezier(.2,.8,.2,1) both; }
.ga-row::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--x-tx3); }
.ga-row.s-ok::before { background: var(--x-green); }
.ga-row.s-out::before { background: var(--ga-y); }
.ga-row.s-bad::before { background: var(--x-red); }
.ga-row:active { transform: scale(.985); }
.ga-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ga-rt b { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.ga-star { color: var(--ga-y); display: inline-flex; }
.ga-star svg { fill: currentColor; }
.ga-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ga-where { font-size: 11.5px; color: var(--x-tx3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-chev { color: var(--x-tx3); flex: none; display: flex; }

/* Detalj */
.ga-bar { position: absolute; left: 0; right: 0; top: var(--sbh); z-index: 3; display: flex; justify-content: space-between; padding: 6px 12px; pointer-events: none; }
.ga-ib { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20,20,24,.72); color: var(--x-tx); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1px var(--x-line2); }
.ga-ib.on { color: var(--ga-y); }
.ga-ib.on svg { fill: currentColor; }
.ga-ib.sm { width: 32px; height: 32px; background: var(--x-s2); }
.ga-ib:active { transform: scale(.94); }
.ga-detail .ga-scroll { padding-top: 0; }
.ga-dhero { position: relative; height: 210px; margin: 0 -16px; overflow: hidden;
  background: radial-gradient(70% 80% at 50% 45%, rgba(255,178,0,.22), rgba(255,178,0,.05) 55%, transparent 75%), linear-gradient(180deg, #17171b, var(--x-bg)); }
.ga-dhero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, transparent, var(--x-bg)); }
.ga-dhead { position: relative; margin: -18px 2px 14px; display: flex; flex-direction: column; gap: 6px; }
.ga-dname { display: flex; align-items: center; gap: 8px; }
.ga-dname h2 { margin: 0; font: 800 26px var(--x-font); letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-dsub { font-size: 13px; color: var(--x-tx3); }
.ga-drow { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.ga-card { background: linear-gradient(160deg, #1a1a1f, #141418); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--x-line); padding: 14px; margin-bottom: 10px; }
.ga-loc { display: flex; align-items: center; gap: 12px; }
.ga-loc-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,178,0,.14); color: var(--ga-y); display: grid; place-items: center; flex: none; }
.ga-loc .ga-rt span { font-size: 12.5px; color: var(--x-tx3); white-space: normal; }
.ga-pill { flex: none; border: 0; border-radius: 16px; height: 32px; padding: 0 13px; background: var(--ga-y); color: #1a1300; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.ga-pill:active { transform: scale(.96); }
.ga-imp { display: flex; flex-direction: column; gap: 4px; background: linear-gradient(160deg, #2a1517, #171012); box-shadow: inset 0 0 0 1px rgba(255,90,95,.25); }
.ga-imp b { color: #ff8a8d; font-size: 13.5px; }
.ga-imp span { color: #d9a5a6; font-size: 12.5px; }
.ga-cond { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 14px 8px; }
.ga-gauge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ga-gauge svg { width: 70px; height: 70px; transform: rotate(135deg); }
.ga-gauge circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.ga-gauge .tr { stroke: rgba(255,255,255,.08); }
.ga-gauge .fg { stroke: var(--ga-y); transition: stroke-dasharray .6s cubic-bezier(.2,.8,.2,1); }
.ga-gauge.low .fg { stroke: var(--x-red); }
.ga-gauge b { position: absolute; top: 24px; font: 800 15px var(--x-font); }
.ga-gauge span { font-size: 11.5px; color: var(--x-tx3); font-weight: 700; margin-top: -6px; }
.ga-facts { display: flex; flex-direction: column; padding: 4px 14px; }
.ga-fact { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--x-line); font-size: 13px; }
.ga-fact:last-child { border-bottom: 0; }
.ga-fact span { color: var(--x-tx3); }
.ga-fact b { font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-big { width: 100%; border: 0; border-radius: 16px; height: 50px; margin-top: 6px; background: linear-gradient(135deg, #ffc53d, #ffb200 55%, #f09a00); color: #1a1300; font: 800 15px var(--x-font); display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; box-shadow: 0 6px 20px rgba(255,178,0,.22); }
.ga-big:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ga-big:not(:disabled):active { transform: scale(.98); }

/* Del noekkel */
.ga-share .sx-panel { gap: 6px; }
.ga-sh-k { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--x-tx3); margin: 8px 4px 2px; }
.ga-share .ga-hours { margin: 0 -14px 4px; padding: 0 14px; }
.ga-sh-list { display: flex; flex-direction: column; gap: 4px; max-height: 210px; overflow-y: auto; scrollbar-width: none; }
.ga-sh-list::-webkit-scrollbar { display: none; }
.ga-sh-row { border: 0; border-radius: 13px; padding: 10px 12px; background: var(--x-s2); color: var(--x-tx); display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; text-align: left; box-shadow: inset 0 0 0 1px var(--x-line); }
.ga-sh-row b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-sh-row span { font-size: 12px; color: var(--x-tx3); flex: none; }
.ga-sh-row.on { box-shadow: inset 0 0 0 2px var(--ga-y); background: rgba(255,178,0,.10); }

@keyframes gaUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reduce-motion .ga-row, .reduce-motion .ga-hero { animation: none; }
/* Oppdatering mens en bil er på vei: ingen animasjon */
.ga-still .ga-row, .ga-still .ga-hero, .ga-still .ga-artbox.big .ga-art { animation: none; }

/* Parkering og gjeld */
.ga-park { display: flex; flex-direction: column; gap: 10px; }
.ga-park-top { display: flex; align-items: center; gap: 12px; }
.ga-park .ga-rt span { font-size: 12.5px; color: var(--x-tx3); }
.ga-rate { flex: none; font: 800 13px var(--x-font); color: var(--x-green); }
.ga-rate.on { color: var(--ga-y); }
.ga-slots { display: flex; gap: 5px; }
.ga-slots i { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,.08); }
.ga-slots i.used { background: var(--x-green); }
.ga-slots i.over { background: var(--ga-y); }
.ga-park-p { margin: 0; font-size: 12px; line-height: 1.45; color: var(--x-tx3); }
.ga-debt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,178,0,.08); box-shadow: inset 0 0 0 1px rgba(255,178,0,.22); }
.ga-debt .ga-rt span { white-space: normal; line-height: 1.4; }
.ga-park.bad .ga-debt { background: rgba(255,90,95,.09); box-shadow: inset 0 0 0 1px rgba(255,90,95,.28); }
.ga-park.bad .ga-debt b { color: #ff8a8d; }
.ga-pill:disabled { opacity: .5; }
.ga-pill.ghost { background: rgba(255,178,0,.12); color: var(--ga-y); box-shadow: inset 0 0 0 1px rgba(255,178,0,.3); }

/* Levering */
.ga-dlv { width: 100%; border: 0; text-align: left; color: var(--x-tx); display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: linear-gradient(160deg, #241c08, #16130b); box-shadow: inset 0 0 0 1px rgba(255,178,0,.28); }
.ga-dlv.on { cursor: default; }
.ga-dlv .ga-rt span { font-size: 12.5px; color: #d8c79c; white-space: normal; line-height: 1.4; }
.ga-dlv-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--ga-y); color: #1a1300; display: grid; place-items: center; flex: none; animation: gaPulse 1.8s ease-in-out infinite; }
@keyframes gaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,178,0,.35); } 50% { box-shadow: 0 0 0 7px rgba(255,178,0,0); } }
.reduce-motion .ga-dlv-ic { animation: none; }
.ga-dbox { margin-bottom: 10px; }
.ga-dbox .ga-big { margin-top: 0; }
.ga-dbox .ga-note { padding-bottom: 0; }
.ga-note2 .ga-rt span { white-space: normal; }

/* Beslag */
.ga-imp b + span { margin-top: 2px; }

/* Slitasje (fra mekanikeren) */
.ga-wear { display: flex; flex-direction: column; gap: 9px; }
.ga-wear-h { display: flex; align-items: center; gap: 8px; }
.ga-wear-h b { font-size: 13.5px; flex: 1; }
.ga-wear-ic { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.07); color: var(--x-tx2); display: grid; place-items: center; }
.ga-svc { font-size: 11px; font-weight: 800; color: var(--x-red); background: rgba(255,90,95,.13); border-radius: 10px; padding: 3px 8px; }
.ga-wrow { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; }
.ga-wrow span { color: var(--x-tx3); font-weight: 700; }
.ga-wrow b { text-align: right; font-weight: 800; }
.ga-wbar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.ga-wbar i { display: block; height: 100%; border-radius: 3px; background: var(--x-green); transition: width .5s ease; }
.ga-wrow.low .ga-wbar i { background: var(--x-red); }
.ga-wrow.low b { color: #ff8a8d; }

/* Sjefen: tjenestebiler ute */
.ga-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 10px; }
.ga-sec b { font: 800 16px var(--x-font); }
.ga-sec span { font-size: 12px; color: var(--x-tx3); font-weight: 700; }

/* Låsesmed: bestill nøkkel */
.ga-big.ga-big2 { background: var(--x-s2); color: var(--x-tx); box-shadow: inset 0 0 0 1px var(--x-line); }
.ga-big.ga-big2 svg { color: var(--ga-y); }
.ga-keys .ga-sh-list { max-height: none; gap: 6px; margin-bottom: 4px; }
.ga-krow { align-items: center; padding: 12px; }
.ga-krow .ga-rt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ga-krow .ga-rt b { white-space: normal; }
.ga-krow .ga-rt span { flex: 1 1 auto; white-space: normal; line-height: 1.35; }
.ga-kprice { flex: none; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--ga-y); }
.ga-keyo.ready { box-shadow: inset 0 0 0 1px rgba(255,178,0,.4); }
