/* Eksper mobil panel — tablet/telefon optimize */
:root{
  --white:#FFFFFF;
  --white-2:#FAFAFA;
  --white-3:#F5F2EC;
  --navy:#1B3A5C;
  --navy-2:#0F2640;
  --orange:#F26419;
  --orange-2:#C44516;
  --orange-tint:#FFF1E6;
  --orange-soft:#FFB37A;
  --ink:#0F1419;
  --ink-2:#1F2937;
  --muted:#5C6470;
  --muted-2:#8A8F9A;
  --line:#EAE5D8;
  --line-2:#F0EBDF;
  --success:#2D7A3E;
  --success-soft:#D9EDDD;
  --warning:#E8A317;
  --warning-soft:#FBEFD3;
  --danger:#C0392B;
  --danger-soft:#F5D9D5;
  --info:#2563EB;
  --info-soft:#DBE5FB;
  --display:'Space Grotesk',sans-serif;
  --sans:'Inter Tight',sans-serif;
  --r-md:12px;
  --r-lg:18px;
}
*,*::before,*::after{ box-sizing:border-box; }
body{
  margin:0;
  font-family:var(--sans);
  font-size:15px;
  line-height:1.5;
  background:var(--white-3);
  color:var(--ink-2);
  -webkit-font-smoothing:antialiased;
  padding-bottom:80px; /* bottom nav space */
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; border:0; background:none; color:inherit; }

h1,h2,h3,h4{ font-family:var(--display); margin:0; color:var(--navy); font-weight:600; letter-spacing:-.015em; line-height:1.2; }
h1{ font-size:24px; }
h2{ font-size:20px; }
h3{ font-size:17px; }

/* =============== APP HEADER =============== */
.app-header{
  background:var(--navy-2);
  color:var(--white);
  padding:14px 18px;
  display:flex; align-items:center; gap:14px;
  position:sticky; top:0; z-index:30;
}
.app-header svg.logo{ width:32px; height:auto; flex-shrink:0; }
.app-header .brand-text{ flex:1; }
.app-header .brand-text strong{
  display:block; font-family:var(--display);
  font-size:17px; color:var(--white); letter-spacing:-.04em;
}
.app-header .brand-text span{
  font-size:10px; letter-spacing:.24em; color:var(--orange-soft);
  text-transform:uppercase; font-weight:600;
}
.app-header .iconbtn{
  width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08);
  border-radius:8px;
  color:var(--white);
}
.app-header .iconbtn svg{ width:18px; height:18px; }

/* =============== PAGE =============== */
.page{
  padding:18px;
  max-width:720px;
  margin:0 auto;
}
.page-head{ margin-bottom:18px; }
.page-head h1{ margin-bottom:4px; }
.page-head p{ font-size:13.5px; color:var(--muted); margin:0; }

/* =============== TASK CARDS =============== */
.task-card{
  background:var(--white);
  border-radius:var(--r-md);
  padding:16px 18px;
  border:1px solid var(--line);
  margin-bottom:12px;
  display:flex; gap:14px; align-items:flex-start;
  position:relative;
}
.task-card.priority{
  border-left:4px solid var(--orange);
  background:linear-gradient(90deg, var(--orange-tint), var(--white) 12%);
}
.task-card .ico{
  width:42px; height:42px;
  border-radius:10px;
  background:var(--orange-tint);
  color:var(--orange);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.task-card .info{ flex:1; min-width:0; }
.task-card .info .top{
  display:flex; align-items:center; gap:8px;
  flex-wrap:wrap;
  margin-bottom:2px;
}
.task-card .id{
  font-family:var(--display);
  font-weight:600; font-size:13px;
  color:var(--navy); letter-spacing:.02em;
}
.task-card .info strong{
  display:block;
  font-size:15px; color:var(--ink);
  margin-bottom:3px;
}
.task-card .info p{
  font-size:13px; color:var(--muted);
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.task-card .info .meta{
  display:flex; gap:14px; margin-top:8px;
  font-size:12px; color:var(--muted-2);
}
.task-card .info .meta span{
  display:inline-flex; align-items:center; gap:4px;
}
.task-card .arrow{
  color:var(--muted-2);
  display:flex; align-items:center;
  flex-shrink:0;
}
.task-card:active{ transform:scale(.99); }

/* =============== BADGE =============== */
.badge{
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px;
  font-size:11px; font-weight:600;
  border-radius:999px;
}
.badge::before{
  content:""; width:6px; height:6px; border-radius:50%; background:currentColor;
}
.badge-success{ background:var(--success-soft); color:var(--success); }
.badge-warning{ background:var(--warning-soft); color:var(--warning); }
.badge-danger{ background:var(--danger-soft); color:var(--danger); }
.badge-info{ background:var(--info-soft); color:var(--info); }
.badge-orange{ background:var(--orange-tint); color:var(--orange); }

/* =============== STAT TILES =============== */
.stat-grid{
  display:grid; grid-template-columns:repeat(2, 1fr);
  gap:10px;
  margin-bottom:18px;
}
.stat-tile{
  background:var(--white);
  border-radius:var(--r-md);
  padding:14px 16px;
  border:1px solid var(--line);
}
.stat-tile .num{
  font-family:var(--display);
  font-size:24px; font-weight:600;
  color:var(--navy);
  line-height:1;
  margin-bottom:5px;
}
.stat-tile .num.orange{ color:var(--orange); }
.stat-tile .lbl{
  font-size:12px;
  color:var(--muted);
}

/* =============== BOTTOM NAV =============== */
.bottom-nav{
  position:fixed;
  bottom:0; left:0; right:0;
  background:var(--white);
  border-top:1px solid var(--line);
  padding:10px 4px calc(10px + env(safe-area-inset-bottom));
  display:flex;
  z-index:50;
  box-shadow:0 -8px 24px rgba(15,38,64,.06);
}
.bottom-nav a{
  flex:1;
  display:flex; flex-direction:column; align-items:center;
  gap:4px;
  padding:8px 4px;
  font-size:11px; font-weight:500;
  color:var(--muted);
  border-radius:8px;
  transition:color .15s;
}
.bottom-nav a svg{ width:22px; height:22px; }
.bottom-nav a.active{
  color:var(--orange);
}
.bottom-nav a.active::before{
  content:""; position:absolute; top:0;
  width:24px; height:3px;
  background:var(--orange);
  border-radius:0 0 3px 3px;
}

/* =============== BIG ACTION BUTTON =============== */
.action-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%;
  padding:14px;
  font-size:15px; font-weight:600;
  border-radius:var(--r-md);
  background:var(--orange);
  color:var(--white);
  letter-spacing:.02em;
  box-shadow:0 4px 14px rgba(242,100,25,.25);
  transition:all .15s;
}
.action-btn:active{ transform:scale(.98); }
.action-btn svg{ width:18px; height:18px; }
.action-btn.secondary{
  background:var(--navy);
  box-shadow:0 4px 14px rgba(27,58,92,.18);
}
.action-btn.ghost{
  background:var(--white);
  color:var(--navy);
  border:1.5px solid var(--line);
  box-shadow:none;
}

/* =============== REPORT FORM =============== */
.section-block{
  background:var(--white);
  border-radius:var(--r-md);
  padding:18px;
  margin-bottom:12px;
  border:1px solid var(--line);
}
.section-block h3{ margin-bottom:14px; }

.field{
  display:flex; flex-direction:column; gap:6px;
  margin-bottom:14px;
}
.field label{
  font-size:12.5px; font-weight:600;
  color:var(--navy);
}
.input,.select,.textarea{
  width:100%;
  padding:11px 14px;
  font-size:15px;
  background:var(--white);
  border:1.5px solid var(--line);
  border-radius:9px;
  outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.input:focus,.select:focus,.textarea:focus{
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(242,100,25,.1);
}
.textarea{ min-height:90px; resize:vertical; line-height:1.5; }

/* =============== PARTS GRID (kaporta) =============== */
.parts-grid{
  display:grid; grid-template-columns:1fr 1fr;
  gap:8px;
}
.part{
  background:var(--white);
  border:1.5px solid var(--line);
  border-radius:9px;
  padding:10px 12px;
  font-size:13px;
  display:flex; align-items:center; justify-content:space-between;
  cursor:pointer;
  transition:all .15s;
}
.part .dot{
  width:14px; height:14px; border-radius:50%;
  background:var(--success);
  flex-shrink:0;
}
.part.painted .dot{ background:var(--warning); }
.part.replaced .dot{ background:var(--danger); }
.part.local .dot{ background:#E67E22; }
.part:active{ transform:scale(.98); }

/* =============== OBD CODES =============== */
.obd-code{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:9px;
  padding:12px 14px;
  margin-bottom:8px;
  display:flex; align-items:center; gap:12px;
}
.obd-code .code{
  font-family:var(--display);
  font-size:14px; font-weight:700;
  color:var(--navy);
  background:var(--white-3);
  padding:4px 10px;
  border-radius:6px;
  letter-spacing:.04em;
}
.obd-code .desc{
  flex:1;
  font-size:13.5px;
  color:var(--ink-2);
}

/* =============== PHOTO UPLOAD =============== */
.photo-upload{
  display:grid; grid-template-columns:repeat(3, 1fr);
  gap:8px;
}
.photo-tile{
  aspect-ratio:1;
  background:var(--white-3);
  border:1.5px dashed var(--line);
  border-radius:9px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  color:var(--muted);
  font-size:11px;
  position:relative;
  overflow:hidden;
}
.photo-tile.filled{
  background:var(--navy);
  border:0;
  color:var(--white);
}
.photo-tile svg{ width:22px; height:22px; margin-bottom:4px; }
.photo-tile .add svg{ color:var(--orange); }

/* Login (eksper) */
.login-page{
  min-height:100vh;
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  background:linear-gradient(180deg, var(--white) 0%, var(--white-3) 100%);
}
.login-card{
  width:100%; max-width:380px;
  background:var(--white);
  border-radius:var(--r-lg);
  padding:36px 28px;
  box-shadow:0 12px 40px rgba(15,38,64,.08);
}
.login-card .logo-row{
  text-align:center;
  margin-bottom:30px;
}
.login-card .logo-row svg{ width:64px; margin:0 auto 12px; }
.login-card .logo-row .role{
  font-size:11px; font-weight:700; letter-spacing:.24em;
  color:var(--orange);
}
.login-card h2{
  font-size:22px;
  text-align:center;
  margin-bottom:6px;
}
.login-card .lede{
  font-size:13px; color:var(--muted);
  text-align:center; margin-bottom:24px;
}

/* Inline link icons */
a svg, .section-block a svg{
  width:18px; height:18px;
  display:inline-block;
  vertical-align:middle;
}
.section-block a{
  text-decoration:none;
}
.action-btn svg{
  width:18px; height:18px;
}
.input-icon svg, .stat-tile svg{
  width:18px; height:18px;
}
.task-card .arrow svg{
  width:16px; height:16px;
}
.task-card .ico svg{
  width:20px; height:20px;
}
.app-header svg.logo{
  width:32px; height:auto;
}
.app-header .iconbtn svg{
  width:18px; height:18px;
}
.bottom-nav a svg{
  width:22px; height:22px;
}
.obd-code svg{
  width:14px; height:14px;
}
