:root{
  --bg:#f6f2ed;
  --panel:#fffaf5;
  --panel-2:#f3ebe3;
  --text:#3f3a37;
  --muted:#8d847d;
  --line:#e6d8cd;
  --accent:#7da6a1;
  --accent-2:#d6a77a;
  --danger:#d98686;
  --success:#86b98d;
  --shadow:0 10px 30px rgba(106, 88, 76, .08);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
}

.shell{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

.sidebar{
  padding:24px;
  border-right:1px solid var(--line);
  background:var(--panel);
}

.brand{
  font-size:28px;
  font-weight:800;
  letter-spacing:.3px;
  margin-bottom:8px;
}

.muted{
  color:var(--muted);
}

.userbox,
.card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  box-shadow:var(--shadow);
}

.nav{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.nav a{
  padding:12px 14px;
  background:var(--panel-2);
  border-radius:12px;
  color:var(--text);
  text-decoration:none;
}

.nav a:hover{
  background:#ece2d8;
}

.content{
  padding:24px;
}

.alert{
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:16px;
  border:1px solid var(--line);
  background:#fff;
}

.alert.success{
  background:#eef7ef;
  border-color:#cfe2d2;
  color:#47624a;
}

.alert.error{
  background:#fbefef;
  border-color:#e6c5c5;
  color:#8d4f4f;
}

.auth-card,
.form-card{
  max-width:560px;
}

form{
  display:grid;
  gap:12px;
}

input,textarea,select,button{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  font:inherit;
}

input:focus,textarea:focus,select:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(125,166,161,.16);
}

button{
  background:var(--accent);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  border:none;
}

button:hover{
  background:#6e9893;
}

label{
  display:grid;
  gap:6px;
}

.split-links{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.hero{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
  margin-bottom:20px;
}

.layout{
  display:grid;
  grid-template-columns:1.7fr 1fr;
  gap:20px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}

.month-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.dow{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.04em;
}

.day-cell{
  min-height:110px;
  padding:10px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
}

.day-cell.faded{
  opacity:.45;
}

.day-num{
  font-weight:700;
  margin-bottom:8px;
}

.event-dot{
  padding:6px 8px;
  border-radius:10px;
  margin-bottom:6px;
  background:color-mix(in srgb, var(--c) 18%, white);
  border-left:4px solid var(--c);
  font-size:12px;
  color:var(--text);
}

.event-list{
  display:grid;
  gap:12px;
}

.event-item{
  padding:14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  border-left:5px solid var(--accent);
}

.nav-form{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.nav-form input,
.nav-form select{
  width:auto;
}

@media (max-width: 980px){
  .shell,
  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    border-right:none;
    border-bottom:1px solid var(--line);
  }

  .hero{
    flex-direction:column;
    align-items:stretch;
  }
}