:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --text:#e7edf5;
  --muted:#9aa6b2;
  --line:#1f2a37;
  --accent:#6ee7ff;
  --accent2:#a78bfa;
  --danger:#ff5c7a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --radius2: 18px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(110,231,255,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(167,139,250,.10), transparent 55%),
    var(--bg);
  color:var(--text);
}
a{color:inherit}
.link{color:var(--accent); text-decoration:none}
.link:hover{text-decoration:underline}

.topbar{
  position:sticky; top:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  background: rgba(11,15,20,.75);
  border-bottom:1px solid rgba(31,42,55,.8);
  backdrop-filter: blur(10px);
  z-index:10;
}
.brand{display:flex; align-items:center; gap:12px}
.dot{
  width:14px; height:14px; border-radius:50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 4px rgba(110,231,255,.08);
}
.title{font-weight:900}
.subtitle{color:var(--muted); font-size:13px; margin-top:2px}
.actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap}

.wrap{max-width:1100px; margin: 22px auto; padding: 0 18px 50px}

.panel{
  background: linear-gradient(180deg, rgba(15,22,32,.92), rgba(12,18,26,.92));
  border:1px solid rgba(31,42,55,.9);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding:16px;
  margin-bottom:16px;
}

.filters{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.grow{flex:1}
.metaRow{
  display:flex;
  justify-content:space-between;
  margin-top:10px;
  gap:12px;
  flex-wrap:wrap;
}
.stats{color:var(--muted); font-family:var(--mono); font-size:13px}
.hint{color:var(--muted); font-size:13px}
.muted{color:var(--muted)}

.input,.select,.textarea{
  width:100%;
  background: rgba(6,10,14,.65);
  color:var(--text);
  border:1px solid rgba(31,42,55,.95);
  border-radius: 12px;
  padding: 11px 12px;
  outline:none;
}
.select{max-width:220px}
.textarea{min-height:110px; resize:vertical}
.input:focus,.select:focus,.textarea:focus{
  border-color: rgba(110,231,255,.55);
  box-shadow: 0 0 0 4px rgba(110,231,255,.10);
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius: 12px;
  border:1px solid rgba(31,42,55,.95);
  background: rgba(6,10,14,.65);
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
  user-select:none;
}
.btn:hover{border-color: rgba(110,231,255,.35)}
.btn.primary{
  background: linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.18));
  border-color: rgba(110,231,255,.35);
}
.btn.small{padding:8px 10px; border-radius: 10px; font-size:13px}
.btn.ghost{background: transparent}
.btn.danger{border-color: rgba(255,92,122,.40)}
.btn.danger:hover{border-color: rgba(255,92,122,.75)}

.fileBtn{position:relative; overflow:hidden}
.fileBtn input{position:absolute; inset:0; opacity:0; cursor:pointer}

.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card{
  display:flex;
  gap:14px;
  background: rgba(15,22,32,.85);
  border:1px solid rgba(31,42,55,.92);
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow);
  padding:14px;
}

.thumb{
  flex:0 0 92px;
  height:92px;
  border-radius: 14px;
  border:1px solid rgba(31,42,55,.92);
  background: rgba(6,10,14,.50);
  background-size: cover;
  background-position:center;
  display:block;
}

.content{flex:1; min-width:0}

.topRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.titleCol{min-width:0}
.card-title{
  display:block;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.card-title:hover{color:var(--accent)}
.subline{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  font-size:12.5px;
  margin-top:6px;
}
.pill{
  padding:3px 8px;
  border-radius: 999px;
  border:1px solid rgba(31,42,55,.95);
  background: rgba(6,10,14,.55);
  font-family: var(--mono);
  font-size: 12px;
}
.pill.blocked{border-color: rgba(255,92,122,.45)}
.pill.pinned{border-color: rgba(110,231,255,.35)}
.hidden{display:none}

.priceCol{text-align:right; min-width:120px}
.price{font-weight:950; font-size:18px}
.mini{font-size:12px; margin-top:3px}

.desc{margin-top:10px; font-size:13px; line-height:1.35; max-height:2.7em; overflow:hidden}

.controlRow{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:flex-end;
  flex-wrap:wrap;
}
.field{display:flex; flex-direction:column; gap:6px}
.label{color:var(--muted); font-size:12px; font-family:var(--mono)}
.btnRow{display:flex; gap:10px; flex-wrap:wrap; margin-left:auto}

.sectionTitle{
  font-weight:900;
  margin: 12px 0 8px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (max-width: 900px){
  .grid2{grid-template-columns:1fr}
  .priceCol{text-align:left}
}
.rowEnd{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:10px;
}

/* Notes preview line under description */
.notesLine{
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31,42,55,.92);
  border-radius: 12px;
  background: rgba(6,10,14,.35);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Saved feedback flash (status/tags/pin/title/etc) */
.card.savedFlash{
  border-color: rgba(62,229,139,.45);
  box-shadow: 0 0 0 4px rgba(62,229,139,.10), var(--shadow);
}

/* Inline title edit */
.titleEdit{
  width: 100%;
  font-weight: 900;
  font-size: 16px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(110,231,255,.45);
  background: rgba(6,10,14,.65);
  color: var(--text);
  outline: none;
}
.titleEdit:focus{
  box-shadow: 0 0 0 4px rgba(110,231,255,.10);
}

/* Permanent status stripe (doesn't change layout) */
.card{
  position: relative;
  border-left: 6px solid rgba(31,42,55,.92); /* default */
  padding-left: 12px; /* compensate for stripe so content aligns */
}

.card.status-new{ border-left-color: rgba(180,190,205,.55); }
.card.status-watching{ border-left-color: rgba(110,231,255,.85); }
.card.status-tour{ border-left-color: rgba(190,140,255,.90); }
.card.status-applied{ border-left-color: rgba(62,229,139,.90); }
.card.status-dead{ border-left-color: rgba(255,92,122,.90); }
.card.status-ignore{ border-left-color: rgba(120,130,145,.75); }

/* Optional: give dead/ignore a slightly dimmer feel */
.card.status-dead .content,
.card.status-ignore .content{
  opacity: .92;
}

/* Persistent tags indicator */
.pill.tagged{
  border-color: rgba(110,231,255,.30);
  opacity: .95;
}

.card.status-watching,
.card.status-tour,
.card.status-applied,
.card.status-dead{
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), var(--shadow);
}


