/* Konto: profil, motorcyklar och släp, journal, påminnelser */
.ko{max-width:900px}
.ko h2{margin:0}
.ko-err{color:var(--no);font-size:14px;margin:10px 0 0}
.ko-err:empty{display:none}
.ko-icon{flex:none;width:36px;height:36px;border:0;background:none;border-radius:50%;color:var(--muted);display:flex;align-items:center;justify-content:center}
.ko-icon:hover{background:var(--mist);color:var(--ink)}
.ko-icon svg{width:18px;height:18px}
.ko .btn svg,.ko-v .btn svg,.ko-box .btn svg{width:17px;height:17px;flex:none}
.ko-del{color:var(--no);margin-left:auto}
.ko-up{position:relative;overflow:hidden;cursor:pointer}
.ko-up input{position:absolute;inset:0;opacity:0;cursor:pointer}

/* Logga in */
.ko-login{display:flex;justify-content:center;padding-top:40px}
.ko-lbox{width:100%;max-width:400px}
.ko-mk{margin-bottom:18px}
.ko-mk .wordmark{font-size:30px}
.ko-lbox h1{margin-bottom:6px}
.ko-lbox form{margin-top:10px}
.ko-lbox .btn{margin-top:20px}
.ko-switch{margin:18px 0 0;font-size:15px}
.ko-proto{margin-top:28px;padding-top:16px;border-top:1px solid var(--line)}

/* Huvud */
.ko-head{display:flex;align-items:center;gap:18px;margin:8px 0 8px}
.ko-head>div{flex:1;min-width:0}
.ko-head h1{margin:0}
.ko-head p{margin:2px 0 0}
.ko-sec{padding-top:34px}
.ko-sec .sec-h{margin:0 0 14px}
.ko-sec>h2{margin-bottom:14px}
.ko-none{border:1px dashed #D6D2CB;border-radius:14px;padding:18px 20px;color:var(--muted)}
.ko-none p{margin:0}
.ko-acts{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px}

/* Påminnelser */
.ko-rems{border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ko-rem{display:flex;align-items:center;gap:12px;padding:12px 10px 12px 16px;border-top:1px solid var(--line)}
.ko-rem:first-child{border-top:0}
.ko-rico{flex:none;width:36px;height:36px;border-radius:50%;background:var(--mist);color:var(--act);display:flex;align-items:center;justify-content:center}
.ko-rico svg{width:18px;height:18px}
.ko-rb{flex:1;min-width:0;display:flex;flex-direction:column}
.ko-rb b{font-weight:600;line-height:1.35}
.ko-rb small{font-size:13px;color:var(--muted)}
.ko-rem.soon .ko-rico{background:var(--warn-soft);color:var(--warn)}
.ko-rem.soon small{color:var(--warn);font-weight:500}
.ko-rem.late .ko-rico{background:var(--no-soft);color:var(--no)}
.ko-rem.late small{color:var(--no);font-weight:500}
.ko-rem.done{opacity:.7}
.ko-rem.done .ko-rico{background:var(--ok-soft);color:var(--ok)}
.ko-rems+.fine{margin-top:10px}
.ko-quick{margin:6px 0 4px}
.ko-quick .chip{min-height:36px;font-size:13px;padding:0 12px}

/* Motorcyklar och släp */
.ko-vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.ko-vcard{display:block;text-decoration:none;color:var(--ink)}
.ko-vcard .ph{position:relative;display:block;aspect-ratio:16/10;border-radius:var(--r);overflow:hidden;background:#ECEAE6}
.ko-vcard .ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.ko-vcard:hover .ph img{transform:scale(1.03)}
.ko-vcard .ph i{position:absolute;top:10px;left:10px;font-style:normal;font-size:12px;font-weight:600;background:rgba(255,255,255,.94);border-radius:999px;padding:3px 10px}
.ko-vcard .cb{display:flex;flex-direction:column;padding:10px 2px 0}
.ko-vcard b{font-size:17px;font-weight:600;letter-spacing:-.01em}
.ko-vcard small{font-size:14px;color:var(--muted)}
.ko-vmeta{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin-top:4px}
.ko-vmeta svg{width:14px;height:14px;flex:none}
.ko-vmeta.soon{color:var(--warn);font-weight:500}

/* Länkrader */
.ko-links{border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ko-links a{display:flex;align-items:center;gap:14px;padding:14px 14px 14px 16px;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.ko-links a:first-child{border-top:0}
.ko-links a:hover{background:var(--mist)}
.ko-links a>svg{flex:none;width:22px;height:22px;color:var(--act)}
.ko-links a>svg:last-child{width:18px;height:18px;color:var(--muted)}
.ko-links span:not(.badge){flex:1;min-width:0;display:flex;flex-direction:column}
.ko-links b{font-weight:600}
.ko-links small{font-size:13px;color:var(--muted)}
.ko-links .badge{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--badge);color:#fff;font-size:12px;line-height:20px;text-align:center;font-weight:700}
.ko-out{margin-top:18px;color:var(--muted)}

/* Profil */
.ko-pic{display:flex;align-items:center;gap:18px;margin:10px 0 6px}
.ko-pic .fine{margin:8px 0 0}
.ko-pic .linkbtn{margin-left:12px;font-size:14px}

/* En hoj */
.ko-vhero{position:relative;height:min(42vh,380px);min-height:240px;border-radius:20px;overflow:hidden;display:flex;align-items:flex-end;background:#3A3E44;margin-bottom:24px}
.ko-vhero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ko-vhero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,13,15,0) 40%,rgba(12,13,15,.66) 100%)}
.ko-vhero-in{position:relative;z-index:1;padding:24px 28px;color:#fff}
.ko-vhero-in h1{font-size:clamp(28px,4vw,42px);letter-spacing:-.03em}
.ko-vhero-in p{margin:2px 0 0;color:rgba(255,255,255,.9)}
.ko-vhero-in .eyebrow{color:#F3CDB6}
.ko-facts{margin-bottom:8px}
.ko-jh{margin:30px 0 12px}
.ko-jchips{margin-bottom:14px}
.ko-jchips .chip{min-height:36px;font-size:13px}
.ko-year{margin-bottom:22px}
.ko-year h3{display:flex;justify-content:space-between;align-items:baseline;font-size:15px;color:var(--muted);font-weight:600;margin:0 0 8px;letter-spacing:0}
.ko-year h3 span{font-weight:500;font-size:14px}
.ko-log{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.ko-entry{display:flex;gap:14px;align-items:flex-start;padding:14px 8px 14px 16px;border-top:1px solid var(--line)}
.ko-entry:first-child{border-top:0}
.ko-entry time{flex:none;width:58px;font-size:13px;font-weight:600;color:var(--muted);padding-top:2px}
.ko-eb{flex:1;min-width:0;display:flex;flex-direction:column}
.ko-etype{align-self:flex-start;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--act);margin-bottom:2px}
.ko-eb b{font-weight:600;line-height:1.35}
.ko-eb small{font-size:14px;color:var(--muted)}
.ko-eb p{margin:6px 0 0;font-size:14px;color:var(--ink);white-space:pre-line}
.ko-receipt{margin-top:8px;max-width:160px;max-height:120px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.ko-side{position:sticky;top:calc(var(--top) + 20px);display:flex;flex-direction:column;gap:14px}
.ko-box{border:1px solid var(--line);border-radius:16px;padding:16px 18px}
/* Dela hojen */
.ko-vacts .btn svg{width:16px;height:16px}
.ko-shopts{display:flex;flex-direction:column;gap:8px;margin:16px 0 6px}
.ko-shopt{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.ko-shopt input{width:20px;height:20px;margin:2px 0 0;accent-color:var(--act);flex:none}
.ko-shopt span{display:flex;flex-direction:column}
.ko-shopt b{font-weight:600}
.ko-shopt small{font-size:13px;color:var(--muted)}
.ko-shnever{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--muted);background:var(--mist);border-radius:12px;padding:10px 14px;margin:12px 0 0}
.ko-shnever svg{flex:none;width:16px;height:16px;margin-top:2px;color:var(--act)}
.ko-vhero.noimg .noph{position:absolute;inset:0}
.ko-shmsg{position:relative;max-width:560px;margin:-4px 0 22px;padding:14px 18px;background:var(--mist);border-radius:18px 18px 18px 4px;font-size:17px;line-height:1.5}
.ko-shmsg small{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.ko-shared h2{margin-top:26px}
.ko-shcta h3{margin:0 0 6px}
.ko-shcta p{margin:0 0 14px}
.ko-box h3{font-size:15px;margin-bottom:10px}
.ko-box .btn{margin-top:10px}
.ko-box .btn+.btn{margin-top:8px}
.ko-box p{margin:0}
.ko-sum b{font-size:24px;font-weight:600;letter-spacing:-.02em}
.ko-srem{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line)}
.ko-srem span{flex:1;min-width:0;display:flex;flex-direction:column}
.ko-srem b{font-weight:600;font-size:14px}
.ko-srem small{font-size:13px;color:var(--muted)}
.ko-srem.soon small{color:var(--warn);font-weight:500}
.ko-srem.late small{color:var(--no);font-weight:500}
.ko-srem .btn{margin:0;min-height:34px;padding:0 12px;font-size:13px}
.ko-vacts .btn:first-child{margin-top:0}

/* Formulär */
.ko-vpic{display:flex;align-items:center;gap:16px;margin-top:6px}
.ko-vpic img,.ko-nopic{width:150px;aspect-ratio:4/3;border-radius:12px;object-fit:cover;flex:none}
.ko-nopic{display:flex;align-items:center;justify-content:center;background:var(--mist);color:var(--muted);font-size:13px}
.ko-lpic{display:flex;align-items:center;gap:14px}
.ko-lpic img{width:110px;height:82px;object-fit:cover;border-radius:10px}
.ko-again{margin-top:16px;font-size:15px}

@media (max-width:860px){
  .ko-head{flex-wrap:wrap;gap:14px}
  .ko-head .av.lg{width:64px;height:64px;font-size:26px}
  .ko-head .btn{width:100%}
  .ko-sec{padding-top:28px}
  .ko-vgrid{grid-template-columns:1fr}
  .ko-rem{padding:12px 6px 12px 12px;gap:10px}
  .ko-rem .btn{padding:0 12px}
  .ko-vhero{margin:0 -16px 18px;border-radius:0;height:260px;min-height:0}
  .ko-vhero-in{padding:18px 16px}
  .ko-side{position:static;margin-top:10px}
  .ko-entry{padding:12px 4px 12px 12px;gap:10px}
  .ko-entry time{width:50px}
  .ko-vpic img,.ko-nopic{width:120px}
  .ko-login{padding-top:16px}
  .ko-jh{flex-wrap:wrap}
}
