:root{
  --bg:#fffdf5;
  --card:#ffffff;
  --text:#1b1b1f;
  --muted:#6b6b76;
  --border:rgba(27,27,31,.12);

  --y:#ffd84d;
  --y2:#ffbf1a;
  --y-soft:#fff2bf;
  --shadow:0 10px 28px rgba(27,27,31,.08);

  --ghost:#ffffff;
}

.hidden{ display:none !important; }

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Arial, sans-serif;
  background:
    radial-gradient(900px 480px at 18% -10%, rgba(255,216,77,.55), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(255,191,26,.35), transparent 55%),
    var(--bg);
  color:var(--text);
}

.wrap{
  max-width: 1020px;
  margin: 0 auto;
  padding: 22px 16px 44px;
}

.hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.title{
  margin:0;
  font-size: 40px;
  letter-spacing: -0.8px;
  line-height: 1.05;
  font-weight: 900;
  background: linear-gradient(90deg, #1b1b1f 0%, #1b1b1f 45%, #b07a00 65%, #ffbf1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(27,27,31,.10);
}

.title-emoji{
  display:inline-block;
  margin-right: 10px;
  transform: translateY(-2px);
  color: #1b1b1f;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #1b1b1f;
  filter: drop-shadow(0 8px 14px rgba(27,27,31,.15));
}

.subtitle{ margin:8px 0 0 0; color:var(--muted); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}

.card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.card-actions{display:flex; gap:8px; align-items:center}

h2{margin:0;font-size:18px}
h3{margin:0 0 10px 0;font-size:14px;color:var(--muted);font-weight:800}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 900px){ .split{grid-template-columns:1fr} }

.panel{
  border:1px solid rgba(27,27,31,.10);
  border-radius:14px;
  padding:12px;
  background: linear-gradient(180deg, rgba(255,242,191,.45), rgba(255,255,255,.85));
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 720px){ .grid{grid-template-columns:1fr} }

/* ✅ labels (e.g., “Meeting length (minutes)”) bigger */
label{
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:15px; /* was 13px */
}

input, select{
  width:100%;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(27,27,31,.16);
  background: rgba(255,255,255,.9);
  color:var(--text);
  outline:none;
}

input:focus, select:focus{
  border-color: rgba(255,191,26,.85);
  box-shadow: 0 0 0 4px rgba(255,191,26,.22);
}

.inline-note{
  grid-column: 1 / -1;
  font-size:12.5px;
  color:var(--muted);
  line-height:1.35;
  padding:10px;
  border-radius:12px;
  border:1px dashed rgba(27,27,31,.18);
  background: rgba(255,255,255,.65);
}

.btnrow{
  display:flex;
  gap:10px;
  margin-top: 12px;
  flex-wrap:wrap;
}

button{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(27,27,31,.14);
  background: var(--ghost);
  color: var(--text);
  cursor:pointer;
  font-weight:800;
}

button:hover{ border-color: rgba(27,27,31,.26); }

button.primary{
  border-color: rgba(27,27,31,.18);
  background: linear-gradient(180deg, var(--y), var(--y2));
  color: #1b1b1f;
}

button.ghost{ background:#fff; }

button:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  line-height: 1.35;
}

.muted{color:var(--muted)}

.result-box{
  border-radius:14px;
  border:1px solid rgba(27,27,31,.12);
  background: rgba(255,255,255,.9);
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.footer{ text-align:center; margin-top: 10px; }

/* timetable page (existing) */
.tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.tab{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(27,27,31,.14);
  background:#fff;
  font-weight:900;
}
.tab.active{
  background: linear-gradient(180deg, var(--y), var(--y2));
}

.gridwrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(27,27,31,.10);
  background:#fff;
}

.gridrow{ display:grid; }

.cell{
  padding:0;
  height: 26px;
  border-right:1px solid rgba(27,27,31,.06);
  border-bottom:1px solid rgba(27,27,31,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  color:var(--muted);
}

.headcell{
  height:34px;
  font-weight:900;
  color:var(--text);
  background: rgba(255,242,191,.55);
}

.sticky{
  position: sticky;
  left: 0;
  z-index: 2;
}

.personcell{
  justify-content:flex-start;
  padding:0 10px;
  background:#fff;
  font-weight:800;
  color:var(--text);
}

.header .sticky{ z-index:3; }

.slotcell{ background:#fff; }
.slotcell.busy{ background: rgba(27,27,31,.10); }
.slotcell.pref{
  background: linear-gradient(180deg, rgba(255,216,77,.95), rgba(255,242,191,.55));
  border: 1px solid rgba(27,27,31,.10);
}

/* Top-K visualization */
.viz-legend{
  font-size: 12.5px;
  line-height: 1.35;
  margin-bottom: 10px;
}
.viz-wrap{
  border-radius:14px;
  border:1px solid rgba(27,27,31,.10);
  background:#fff;
  overflow:auto;
}
.viz-grid{
  display:grid;
  gap:0;
  min-width: 860px;
}
.viz-cell{
  height: 26px;
  border-right:1px solid rgba(27,27,31,.06);
  border-bottom:1px solid rgba(27,27,31,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  color: rgba(27,27,31,.75);
  user-select:none;
}
.viz-head{
  height: 34px;
  font-weight: 900;
  background: rgba(255,242,191,.55);
  color: var(--text);
}
.viz-time{
  justify-content:flex-start;
  padding-left: 10px;
  font-weight: 800;
  color: var(--text);
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 3;
}
.viz-head.viz-time{
  background: rgba(255,242,191,.75);
  z-index: 4;
}


