:root{
  --bg:#0f2f1f;
  --bg2:#0b2417;
  --card:rgba(247,242,233,.96);
  --card2:rgba(255,255,255,.85);
  --text:#f7f2e9;
  --text2:rgba(247,242,233,.82);
  --ink:#0f2f1f;
  --gold:rgba(214,194,139,1);
  --border:rgba(214,194,139,.18);
  --border2:rgba(15,47,31,.16);

  --r-xl:24px;
  --r-lg:18px;
  --r-md:14px;

  --shadow:0 16px 36px rgba(0,0,0,.12);
  --shadow-strong:0 24px 80px rgba(0,0,0,.35);

  --pad:14px;
  --max:920px;
}

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

body.app{
  margin:0;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(214,194,139,.08), transparent 55%),
              radial-gradient(900px 520px at 80% 20%, rgba(43,182,115,.08), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

.wrap{ max-width:var(--max); margin:0 auto; padding:var(--pad); }
.page{ padding-bottom:120px; }

h1,h2,h3{ margin:0; letter-spacing:-.02em; }
h1{ font-weight:1100; font-size:26px; }
h2{ font-weight:1100; font-size:18px; opacity:.98; }

.backLink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:6px 0 10px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(247,242,233,.16);
  background: rgba(255,255,255,.06);
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r-xl);
  box-shadow:var(--shadow);
  padding:16px;
  color:var(--ink);
}

.muted{ opacity:.75; font-size:12px; color: rgba(15,47,31,.78); }
.who{ font-weight:1000; color:var(--ink); }

input,select,textarea{
  width:100%;
  border-radius:var(--r-md);
  border:1px solid var(--border2);
  padding:12px 12px;
  font-weight:700;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  outline: none;
}
input:focus,select:focus,textarea:focus{
  border-color: rgba(214,194,139,.55);
  box-shadow: 0 0 0 4px rgba(214,194,139,.18);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:16px;
  padding:12px 14px;
  font-weight:1000;
  border:1px solid var(--border2);
  background:var(--card2);
  color:var(--ink);
  cursor:pointer;
  user-select:none;
}
.btn:disabled{ opacity:.55; cursor:not-allowed; }
.btn--primary{ background:rgba(43,182,115,.22); }
.btn--danger{ background:rgba(217,83,79,.18); }
.btn--ghost{ background:transparent; color:var(--ink); }

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid var(--border2);
  border-radius:999px;
  padding:6px 10px;
  font-weight:1000;
  background: rgba(255,255,255,.78);
  color:var(--ink);
}

.empty{
  padding:12px;
  border-radius:16px;
  border:1px dashed rgba(15,47,31,.22);
  background: rgba(255,255,255,.70);
  color: rgba(15,47,31,.86);
}

.topRow{ display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap; }

hr{ border:0; height:1px; background: rgba(247,242,233,.12); margin:16px 0; }

/* Desktop scroll repair for legacy app pages */
@media (min-width: 769px){
  html,
  body.app{
    height: auto !important;
    min-height: 100% !important;
  }

  body.app{
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}
