:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#111;
  --muted:#666;
  --border:#e6e8ee;
  --shadow: 0 6px 18px rgba(0,0,0,.05);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:var(--bg);
  color:var(--text);
}

.header{
  position: sticky;
  top: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.header-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.brand{
  font-weight: 800;
  letter-spacing: .2px;
}

.nav{
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  justify-content:flex-end;
}

.nav a{
  text-decoration:none;
  color:var(--text);
  padding:8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.nav a:hover{ background:#f0f2f6; }
.nav a.active{
  background: var(--text);
  color: white;
}

.container{
  max-width: 980px;
  margin: 16px auto 28px;
  padding: 0 14px;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

h1{ margin: 0 0 8px; font-size: 1.35rem; }
p{ margin: 0 0 10px; color: var(--muted); line-height: 1.45; }

.grid{
  display:grid;
  gap: 12px;
}

@media (min-width: 760px){
  h1{ font-size: 1.6rem; }
  .grid.two{
    grid-template-columns: 1fr 1fr;
  }
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration:none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 650;
  min-height: 44px; /* touch-friendly */
}

.btn.primary{
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.btn:active{ transform: translateY(1px); }

label{
  display:block;
  font-size: .92rem;
  font-weight: 650;
  margin-bottom: 6px;
}

input, select, textarea{
  width:100%;
  font-size: 1rem;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  min-height: 44px;
}

textarea{ min-height: 88px; resize: vertical; }

.mini{
  font-size: .9rem;
  color: var(--muted);
}

.list{
  display:grid;
  gap:10px;
  margin-top: 12px;
}

.item{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.item strong{ display:block; margin-bottom: 2px; }
.footer{
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 0 14px;
  color: var(--muted);
  font-size: .9rem;
}