:root{
  /* colori e variabili base */
  --bg:#f5f5f7;
  --card:#fff;
  --text:#111827;
  --muted:rgba(17,24,39,.6);
  --border:rgba(17,24,39,.10);
  --shadow:0 10px 30px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
}
a{color:inherit;text-decoration:none}

/* contenitore centrale, più largo */
.container{
  max-width:1320px;   /* prima 980 */
  margin:0 auto;
  padding:28px;
}

/* carte e stili base */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brandTitle{
  font-size:24px;
  font-weight:700;
  letter-spacing:-0.02em;
}
.brandSub{
  font-size:14px;
  color:var(--muted);
  margin-top:2px;
}
.row{
  display:flex;
  align-items:center;
  gap:10px;
}
.btn{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:10px 14px;
  cursor:pointer;
  font-size:14px;
}
.btn:hover{background:rgba(0,0,0,.03)}
.btn:disabled{opacity:.6;cursor:not-allowed}
.btnPrimary{
  border:0;
  background:#111827;
  color:#fff;
}
.btnPrimary:hover{background:#0b1220}
.input{
  border:1px solid var(--border);
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  width:100%;
  outline:none;
  font-size:14px;
}
.input:focus{border-color:rgba(17,24,39,.25)}
.muted{color:var(--muted)}
.list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.noteCard{
  padding:16px;
  cursor:pointer;
  transition:background .2s ease;
}
.noteCard:hover{background:rgba(0,0,0,.015)}
.noteTitle{
  font-weight:700;
  letter-spacing:-0.01em;
}
.noteMeta{
  font-size:13px;
  color:var(--muted);
  margin-top:6px;
}
.grid2{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:12px;
}
@media (max-width:800px){
  .grid2{grid-template-columns:1fr}
}
textarea.input{
  min-height:220px;
  resize:vertical;
  line-height:1.5;
}
.hr{
  height:1px;
  background:var(--border);
  margin:14px 0;
}

/* logo e badge più grandi */
.badgeLogo{
  width:120px;
  height:62px;
  border-radius:20px;
  background:transparent;
  border:1px solid var(--border);
  box-shadow:0 12px 36px rgba(0,0,0,.10);
  display:grid;
  place-items:center;
  overflow:hidden;
}

/* TODO */
.todoRow{
  display:grid;
  grid-template-columns:26px 1fr;
  gap:10px;
  align-items:start;
}
.todoActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.loginInputs{
  max-width:500px;
  margin:auto;
}
/* logo topbar */
.brand img {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.logoCompact {
  height: 50px;
  width: auto;
  display: block;
}