/* ...existing code... */
:root{
  --bg:#f6f8fa;
  --card:#ffffff;
  --accent:#2b6cb0;
  --muted:#6b7280;
  --maxw:900px;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial, sans-serif;
  background:linear-gradient(180deg,#eef2ff 0%,var(--bg) 100%);
  color:#111827;
  padding:24px;
}
.container{
  max-width:var(--maxw);
  margin:0 auto;
}
h1{margin:0 0 12px;font-size:25px; text-align: center; color: darkslateblue;}
.card{
  background:var(--card);
  border-radius:8px;
  padding:14px;
  box-shadow:0 1px 2px rgba(16,24,40,0.04);
  margin-bottom:12px;
}
.card.small{font-size:12px; text-align:center}
input,button,textarea,select{
  display:block;
  width:100%;
  padding:8px 10px;
  margin:6px 0;
  border-radius:6px;
  border:1px solid #e5e7eb;
  font-size:14px;
}
button{
  background:var(--accent);
  color:white;
  border:none;
  cursor:pointer;
}
button:hover{opacity:0.95}
.result{
  background:#f8fafc;
  border:1px dashed #e6eef8;
  padding:8px;
  margin-top:8px;
  font-family:monospace;
  white-space:pre-wrap;
  max-height:260px;
  overflow:auto;
}
.controls{display:flex;gap:8px}
@media(min-width:700px){
  .controls{justify-content:flex-end}
}

/* New auth grid: make register/confirm/login three columns */
.auth-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap:12px;
  align-items:start;
}
.auth-column{
  background:transparent;
  padding:0;
  max-height:220px; /* half-height feel */
  overflow:auto;
}
.auth-column h2{margin:0 0 8px;font-size:16px}
.compact-form input{ padding:6px 8px; font-size:13px; margin:6px 0; }
.compact-form .small-btn{ margin-top:6px; }

/* user info box */
.auth-info{ align-self:center; }

/* label for is admin checkbod */
.small-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  cursor:pointer;
}
.small-label input[type="checkbox"]{
  width:14px;
  height:14px;
  margin:0;
  padding:0;
  transform:translateY(1px);
  /* fallback for consistent sizing across browsers */
  -webkit-appearance:checkbox;
  appearance:checkbox;
}
/* small button style — do not span full width */
.small-btn{
  width:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  font-size:13px;
  border-radius:6px;
}

/* search input and controls row */
.controls-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.search-input{
  flex:1;
  min-width:160px;
  padding:8px 10px;
  margin:0;
}

/* icon spacing (right side icon already placed after text) */
.small-btn .icon{ margin-left:6px; opacity:0.95; }

/* Notes grid / card (existing) */
.notes-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:12px;
  margin-top:12px;
}
.note-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #eef2fb;
}
.note-imgwrap{
  background:#f3f6fb;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:140px;
  max-height:200px;
  overflow:hidden;
}
.note-imgwrap img{
  max-width:100%;
  max-height:200px;
  object-fit:contain;
  display:block;
}
.note-meta{padding:10px}
.note-meta h3{margin:0 0 6px;font-size:16px}
.muted{color:var(--muted);font-size:12px;margin-bottom:6px}
.note-comments{padding:8px 10px;border-top:1px solid #f1f5f9;background:#fafcff;font-size:13px}
.ai-comment{
  font-style:italic;
  color:#666;
  margin-left:20px;
  font-size:12px;
}
.hidden{display:none}
