@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f2ea;
  --bg-2: #fdf8f2;
  --panel: #ffffff;
  --text: #2a2623;
  --muted: #6f6a64;
  --accent: #d7906d;
  --border: #eadfd2;
  --container: 920px;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #fff3e6 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #e7f5f2 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { max-width: var(--container); margin: 0 auto; padding: 24px 24px 16px; }
.header-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.profile-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.menu-btn { width: 38px; height: 38px; padding: 0; border-radius: 999px; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.profile-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  padding: 12px;
}
.profile-card strong { color: var(--text); display: block; margin-bottom: 4px; }
.profile-card-email {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  word-break: break-word;
}
.profile-card-nav { display: grid; gap: 8px; }
.nav-btn-block { width: 100%; text-align: center; }
h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}
.sub { color: var(--muted); font-size: 13px; }
.sub-spaced { margin-top: 6px; }
.sub-gap { margin-top: 8px; }
.sub-gap-sm { margin-top: 6px; }
.sub-gap-md { margin-top: 10px; }
.sub-bottom { margin-bottom: 12px; }
.word-break { word-break: break-word; }
.pipeline-details {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
}
.history-list { display: grid; gap: 10px; }
.history-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.stack { display: grid; gap: 8px; }
nav { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.nav-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.nav-btn.active {
  background: linear-gradient(135deg, var(--accent), #c47d5c);
  color: #fff;
  border-color: transparent;
}
main { max-width: var(--container); margin: 0 auto; padding: 24px; }
.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.row-top { margin-top: 10px; }
.row-end {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.pill {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--muted);
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}
.btn-danger {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #e8c5c0;
  background: #fff;
  color: #a33434;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
pre {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
}
.hidden { display: none; }
.admin-only { display: none; }
body.is-admin .admin-only { display: inline-flex; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
  .profile-wrap { justify-self: end; margin-left: auto; }
}
