/* mhh205.cloud — shared stylesheet, matched to the runlevelstudio.com design system */
:root {
  --navy: #1F4E79;
  --teal: #2E8074;
  --teal-bright: #3A9C8D;
  --cream: #F5F1E8;
  --cream-dim: rgba(245, 241, 232, 0.72);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', 'Avenir Next', 'Trebuchet MS', sans-serif;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(58, 156, 141, 0.16), transparent 60%),
    linear-gradient(180deg, #275685 0%, var(--navy) 42%, #1A4266 100%);
  background-attachment: fixed;
  color: var(--cream);
  min-height: 100vh;
  line-height: 1.55;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 64px; }
.wrap-narrow { max-width: 480px; margin: 0 auto; padding: 72px 24px 64px; }

.rise { opacity: 0; transform: translateY(14px); animation: rise 0.6s ease-out forwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.brand-name {
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.brand-name span { color: var(--teal-bright); font-weight: 600; }

.tagline {
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cream-dim);
  margin-bottom: 44px;
}
.tagline span { color: var(--teal-bright); font-weight: 800; }

h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.12; margin-bottom: 14px; text-align: center; }
h2 { font-size: 1.3rem; font-weight: 900; margin: 40px 0 16px; }

.kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: block;
  margin-bottom: 6px;
}

.badge {
  display: inline-block;
  border: 1.5px solid var(--teal-bright);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(58, 156, 141, 0.55); }
a.card { text-decoration: none; color: inherit; }
.card-title { font-weight: 800; font-size: 1.06rem; line-height: 1.25; color: var(--cream); }
.card-desc { color: var(--cream-dim); font-size: 0.9rem; flex-grow: 1; }

label { display: block; font-weight: 800; font-size: 0.85rem; margin: 16px 0 6px; letter-spacing: 0.02em; }
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 241, 232, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease;
}
input[type="text"]:focus, input[type="password"]:focus { border-color: var(--teal-bright); }

select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 241, 232, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.18s ease;
  resize: vertical;
}
select:focus, textarea:focus { border-color: var(--teal-bright); }
select option { background: var(--navy); color: var(--cream); }

.btn {
  display: inline-block;
  margin-top: 22px;
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(46, 128, 116, 0.4); }
.btn:active { transform: translateY(0); }
.btn-small { width: auto; margin-top: 0; padding: 9px 18px; font-size: 0.88rem; }

.error {
  margin-top: 14px;
  color: #F0A48A;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.4em;
}
.shake { animation: shake 0.35s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

a.brand-link { text-decoration: none; color: inherit; }

.countdown {
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--teal-bright);
  border: 1.5px solid rgba(58, 156, 141, 0.45);
  border-radius: 999px;
  padding: 8px 20px;
  margin: -10px auto 30px;
  max-width: fit-content;
  font-variant-numeric: tabular-nums;
}
.countdown.warn { color: #F0C987; border-color: rgba(240, 201, 135, 0.6); }
.countdown.danger {
  color: #F0A48A;
  border-color: rgba(240, 164, 138, 0.7);
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.55; } }

.copy-mini {
  background: none;
  border: 1px solid rgba(245, 241, 232, 0.25);
  border-radius: 999px;
  color: var(--cream-dim);
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 10px;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
}
.copy-mini:hover { color: var(--cream); border-color: var(--teal-bright); }

input[type="range"] { width: 100%; accent-color: var(--teal-bright); margin-top: 6px; }
.score-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.score-val { font-weight: 900; font-size: 1.2rem; color: var(--teal-bright); min-width: 1.4em; text-align: right; }
.score-total {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal-bright);
  margin: 8px 0 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); border-color: var(--teal-bright); }

.drop {
  border: 2px dashed rgba(58, 156, 141, 0.55);
  border-radius: 18px;
  padding: 34px 22px;
  text-align: center;
  color: var(--cream-dim);
  font-weight: 600;
  transition: border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.drop.over { border-color: var(--teal-bright); background: rgba(58, 156, 141, 0.08); }
.drop strong { color: var(--cream); }

.status { margin-top: 12px; font-weight: 700; font-size: 0.9rem; min-height: 1.4em; }
.status.ok { color: var(--teal-bright); }
.status.bad { color: #F0A48A; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.18);
}
td {
  padding: 12px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.09);
  font-size: 0.94rem;
  color: var(--cream);
}
td a { color: var(--cream); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(58, 156, 141, 0.5); }
td a:hover { border-color: var(--teal-bright); }
td.dim { color: var(--cream-dim); font-size: 0.85rem; white-space: nowrap; }

.note { color: var(--cream-dim); font-size: 0.88rem; margin-top: 10px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.14);
  margin-bottom: 4px;
}
.toolbar-count { font-weight: 800; font-size: 0.85rem; color: var(--cream-dim); }
.toolbar-actions { display: flex; gap: 10px; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn:disabled:hover { transform: none; box-shadow: none; }
.btn-danger { background: linear-gradient(135deg, #C96A4E, #A9502F); }
.btn-danger:hover { box-shadow: 0 8px 24px rgba(169, 80, 47, 0.4); }

.col-check { width: 34px; }
.col-actions { white-space: nowrap; text-align: right; }
input[type="checkbox"] { accent-color: var(--teal-bright); width: 16px; height: 16px; cursor: pointer; }

.btn-ghost {
  background: none;
  border: 1.5px solid rgba(245, 241, 232, 0.25);
  border-radius: 999px;
  color: var(--cream-dim);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 13px;
  margin-left: 7px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { color: var(--cream); border-color: var(--teal-bright); }
.btn-ghost-danger:hover { color: #F0A48A; border-color: #C96A4E; }

.rename-input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--teal-bright);
  background: rgba(0, 0, 0, 0.25);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  outline: none;
}

.content { max-width: 720px; }
.wrap-xl { max-width: 1500px; }
.wrap-xl .content { margin-left: auto; margin-right: auto; }
.editor-zone { width: 100%; }
.editor-zone > p { max-width: 720px; margin-left: auto; margin-right: auto; }
.editor-zone h2 { text-align: center; }
.content h2 { margin-top: 34px; }
.content p, .content li { color: var(--cream); font-size: 0.98rem; }
.content ul, .content ol { margin: 10px 0 18px 22px; }
.content li { margin-bottom: 7px; }
.content ul a, .content ol a { color: var(--teal-bright); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(58, 156, 141, 0.4); }
.content ul a:hover, .content ol a:hover { border-color: var(--teal-bright); }
.content code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.86em;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 6px;
  padding: 2px 7px;
}
.content pre {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 10px 0 18px;
}
.content pre code { background: none; border: none; padding: 0; }
.timebox { border-left: 3px solid var(--teal-bright); padding-left: 14px; margin-bottom: 10px; }
.timebox strong { color: var(--teal-bright); }

footer {
  margin-top: 56px;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.8rem;
  font-weight: 600;
}
