:root{
  --bg:#0a0a0d;
  --panel:#111117;
  --panel2:#15151d;
  --border:#2a2a36;
  --text:#f2f2f6;
  --muted:#a9a9b5;
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --btn:#1f1f2a;
  --btn2:#2a2a38;
  --accent:#60a5fa;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:22px;
  --gap:14px;
  font-synthesis-weight:none;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1000px 600px at 20% 0%, rgba(96,165,250,.15), transparent 55%),
              radial-gradient(900px 500px at 100% 10%, rgba(34,197,94,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}
code{background:#0f0f15; padding:2px 6px; border-radius:10px; border:1px solid var(--border)}

.page{min-height:100%; display:grid; place-items:center; padding:24px;}
.card{
  background:rgba(17,17,23,.75);
  border:1px solid var(--border);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
}

.auth{width:min(420px, 95vw); padding:22px;}
.auth h1{margin:0 0 6px 0; font-size:26px}
.muted{color:var(--muted)}
.small{font-size:12px}
.error{
  background: rgba(239,68,68,.10);
  border:1px solid rgba(239,68,68,.25);
  color:#fecaca;
  padding:10px 12px;
  border-radius:14px;
  margin:10px 0 0 0;
}

.form{display:flex; flex-direction:column; gap:12px; margin-top:14px}
label span{display:block; font-size:13px; color:var(--muted); margin-bottom:6px}
input, textarea, select{
  width:100%;
  background:rgba(10,10,13,.6);
  border:1px solid var(--border);
  color:var(--text);
  padding:11px 12px;
  border-radius:14px;
  outline:none;
}
textarea{min-height:90px; resize:vertical}
input:focus, textarea:focus{border-color:rgba(96,165,250,.6); box-shadow:0 0 0 3px rgba(96,165,250,.15)}

.topbar{
  position:sticky; top:0;
  z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  background:rgba(10,10,13,.75);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand .title{font-size:18px; font-weight:700}
.brand .subtitle{font-size:12px; color:var(--muted); margin-top:2px}
.topbar-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.btn{
  background:var(--btn);
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  user-select:none;
}
.btn:hover{background:var(--btn2)}
.btn.primary{background:rgba(96,165,250,.18); border-color:rgba(96,165,250,.35)}
.btn.primary:hover{background:rgba(96,165,250,.25)}
.btn.danger{background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.25)}
.btn.danger:hover{background:rgba(239,68,68,.18)}
.file-btn{display:inline-flex; align-items:center; gap:8px}

.container{max-width:1050px; margin:0 auto; padding:16px}
.tabs{
  display:flex; flex-wrap:wrap;
  gap:10px;
  padding:10px;
  border:1px solid var(--border);
  border-radius:var(--radius2);
  background:rgba(17,17,23,.55);
}
.tab{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.tab.active{
  color:var(--text);
  background:rgba(96,165,250,.12);
  border-color:rgba(96,165,250,.25);
}
.content{margin-top:14px; display:grid; gap:14px}
.panel{
  border:1px solid var(--border);
  border-radius:var(--radius2);
  background:rgba(17,17,23,.65);
  padding:14px;
}
.panel h2{margin:0; font-size:18px}
.panel .sub{margin-top:6px; color:var(--muted); font-size:13px}

.row{display:flex; gap:12px; flex-wrap:wrap}
.row > *{flex:1}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width:720px){ .grid2{grid-template-columns:1fr} }

.items{display:grid; gap:10px; margin-top:12px}
.item{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(10,10,13,.35);
  padding:12px;
}
.item-left{display:flex; gap:10px; align-items:flex-start}
.item-title{font-weight:650}
.item-title.done{color:var(--muted); text-decoration:line-through}
.pills{display:flex; gap:8px; flex-wrap:wrap; margin-top:6px}
.pill{
  font-size:12px;
  color:var(--text);
  background:rgba(42,42,54,.55);
  border:1px solid var(--border);
  padding:3px 8px;
  border-radius:999px;
}
.badge{font-size:12px; padding:4px 8px; border-radius:999px; border:1px solid var(--border)}
.badge.good{background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.25); color:#bbf7d0}
.badge.warn{background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.25); color:#fde68a}

.footer{margin-top:10px; padding:6px 2px}
.actions{display:flex; gap:10px; flex-wrap:wrap}
hr{border:none; border-top:1px solid var(--border); margin:12px 0}

/* --- Trailer Trekker: tighter, more cohesive list rows --- */
.item{
  display:flex;
  align-items:center;          /* centers checkbox + text + actions */
  justify-content:space-between;
  gap:14px;
}

.item-left{
  display:flex;
  align-items:center;          /* checkbox aligns with title */
  gap:12px;
  min-width:0;
  flex:1;
}

.item-left input[type="checkbox"]{
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 auto;
}

.item-left > div{
  min-width:0;
  flex:1;
}

.item-title{
  font-size:15px;
  line-height:1.2;
}

.pills{
  margin-top:6px;
}

.actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}

.actions .btn{
  padding:8px 10px;            /* less bulky */
  border-radius:12px;
}

.btn.danger{
  white-space:nowrap;          /* keeps “Remove” from wrapping */
}
