/* NOTE: :root moved to css/common.css — remove any :root / html / body global overrides here */

*{ box-sizing:border-box; }
html{ height:100%; }

body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

.topbar{
  position:sticky; top:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; background:var(--panel); border-bottom:1px solid rgba(255,255,255,0.03);
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}
.brand{ display:flex; gap:10px; align-items:center }
.brand .home{ text-decoration:none; font-size:20px }
.topbar h1{ font-size:18px; margin:0 }

.actions{ display:flex; gap:8px; align-items:center }

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

.filters{
  display:flex; flex-wrap:wrap; gap:8px; align-items:center;
  background:transparent; padding:8px 0; border-radius:8px;
}
.input{
  padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.04); background:transparent; color:inherit;
}
#q{ flex:1 1 240px }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap:16px;
  align-items:start;
}
.card{
  display:flex; flex-direction:column; justify-content:space-between; gap:10px;
  border:1px solid var(--border); border-radius:8px; background:var(--card); padding:12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.3);
}
.card .title{ margin:0 0 4px; font-size:16px; font-weight:700; color:var(--text); }
.card .sub{ color:var(--muted); font-size:13px }

.tags{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px }
.tag{
  font-size:12px; padding:2px 8px; background:rgba(255,255,255,0.03); color:var(--text); border-radius:999px; border: 1px solid rgba(20,184,166,0.08);
}
.tag.muted{ color:var(--muted); background:transparent; opacity:0.9; }

.ops{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; align-items:center; }

.empty{
  text-align:center; color:var(--muted); padding:18px;
}
.empty a{ color:var(--accent); text-decoration:none }

/* Palette: Teal (ajusta colores si quieres otra) */
.list-view .item-card {
  background: #071921; /* carta */
  border-color: rgba(255,255,255,0.03);
  box-shadow: 0 8px 26px rgba(0,0,0,0.45);
}
.list-view .item-actions .btn {
  background: rgba(20,184,166,0.09);
  border: 1px solid rgba(20,184,166,0.16);
  color: #cffcf6;
}
.list-view .item-actions .btn.delete {
  background: linear-gradient(180deg, #14b8a6, #0ea79a);
  color: #042927;
}
.tag {
  background: rgba(20,184,166,0.12);
  color: #9ff5ec;
  border: 1px solid rgba(20,184,166,0.08);
}
