:root{
  --bg:#e2dadb;
  --card:#f7f3f3;
  --text:#1f1f1f;
  --muted:#555;
  --red:#b32025;
  --green:#1f7a3a;
  --border:rgba(0,0,0,0.12);
  --shadow:0 10px 30px rgba(0,0,0,0.10);
  --radius:18px;
}

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

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

.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px 16px;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  width:min(520px, 100%);
}

.logo-frame{
  width:120px;
  height:120px;
  border-radius:999px;
  border:1px solid var(--border);
  background:white;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 12px;
  overflow:hidden;
}

.logo{
  width:86%;
  height:auto;
  display:block;
}

h1{
  font-size:28px;
  line-height:1.15;
  margin:6px 0 6px;
  text-align:center;
}

.sub{
  margin:0 0 14px;
  text-align:center;
  color:var(--text);
  font-size:17px;
}

.moods{
  display:flex;
  gap:12px;
  justify-content:center;
  margin-top:6px;
}

.mood{
  width:76px;
  height:76px;
  border-radius:999px;
  border:1px solid var(--border);
  background:white;
  font-size:34px;
  cursor:pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}
.mood:active{ transform: scale(0.98); }
.mood-low:hover{ border-color: var(--red); }
.mood-mid:hover{ border-color: rgba(0,0,0,0.35); }
.mood-high:hover{ border-color: var(--green); }

/* overlay modal */
.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px 16px;
  z-index:999;
}
.hidden{ display:none; }

.modal{
  width:min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow:auto;
}

.panel-title{
  margin:0 0 10px;
  font-size:19px;
  text-align:center;
}

.form{
  display:flex;
  flex-direction:column;
  gap:12px;
  text-align:left;
}

label{
  font-size:15px;
  color:var(--muted);
  margin-bottom:6px;
  display:block;
}

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:17px;
  background:white;
}
textarea{ min-height:120px; resize:vertical; }

.btnrow{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.btn{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:white;
  cursor:pointer;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
}
.btn-primary{
  background:var(--green);
  border-color:transparent;
  color:white;
}
.btn-danger{
  background:var(--red);
  border-color:transparent;
  color:white;
}
.btn-link{
  background:white;
}

.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight:900;
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.6);
  display:inline-block;
}

.note{
  color:var(--muted);
  font-size:14px;
  line-height:1.4;
  margin:8px 0 0;
  text-align:left;
}

.center{
  text-align:center;
}
