:root{
  color-scheme:dark;
  --bg:#07120e;
  --panel:#102119;
  --panel-2:#153024;
  --line:#244335;
  --text:#f2fff7;
  --muted:#a2baaa;
  --gold:#e3c075;
  --gold-soft:#f4dfaa;
  --green:#75e0a8;
  --green-deep:#2f9a69;
  --red:#ff8d8d;
  --shadow:0 12px 34px rgba(0,0,0,.2);
  --radius-xl:24px;
  --radius-lg:18px;
  --font-sans: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(117,224,168,.12), transparent 34%),
    radial-gradient(circle at 0% 0, rgba(227,192,117,.1), transparent 30%),
    linear-gradient(180deg, #07120e 0%, #0a1510 100%);
}
body::before{content:none}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
img{display:block;max-width:100%}

.phone{
  max-width:560px;
  margin:0 auto;
  min-height:100vh;
  padding:16px 16px 24px;
}

body:not(.authed) .stat-grid,
body:not(.authed) .shortcuts,
body:not(.authed) .list,
body:not(.authed) .note {
  display:none !important;
}
body:not(.authed) #logout,
body.authed #login {
  display:none !important;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:4px;
  flex-wrap:wrap;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.brand-mark{
  display:grid;
  grid-template:repeat(2,5px)/repeat(2,5px);
  gap:3px;
  width:30px;
  height:30px;
  padding:6px;
  border-radius:7px;
  background:var(--gold);
  flex:0 0 auto;
}
.brand-mark i{border-radius:1px;background:#0f1612}
.brand-mark i:nth-child(2){opacity:.6}
.brand-mark i:nth-child(3){opacity:.78}
.brand strong,
.brand small{display:block}
.brand strong{font-size:14px;line-height:1.1}
.brand small{margin-top:2px;color:var(--muted);font-size:9px;letter-spacing:.16em}
.status-chip{
  flex:0 0 auto;
  padding:8px 10px;
  border:1px solid rgba(227,192,117,.28);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  color:var(--gold-soft);
  font-size:11px;
  white-space:nowrap;
}

.hero{
  margin-top:16px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0, rgba(117,224,168,.2), transparent 42%),
    linear-gradient(180deg, rgba(16,33,25,.96), rgba(16,33,25,.84));
  box-shadow:var(--shadow);
}
.hero small{
  color:var(--gold);
  font-size:10px;
  font-weight:700;
  letter-spacing:.18em;
}
.hero h1{
  margin:10px 0 12px;
  font-size:clamp(28px, 7vw, 38px);
  line-height:1.08;
}
.hero p{
  margin:0;
  color:var(--muted);
  line-height:1.8;
  font-size:14px;
}
.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.hero-pills span{
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  color:#eff7f0;
  font-size:11px;
}

button{
  width:100%;
  margin:14px 0 0;
  min-height:48px;
  border:0;
  border-radius:18px;
  padding:14px 16px;
  background:linear-gradient(135deg, var(--green), #9bf1c2);
  color:#07120e;
  font-weight:900;
  box-shadow:0 12px 28px rgba(117,224,168,.18);
}
button.logout-button{
  background:transparent;
  color:var(--gold-soft);
  border:1px solid rgba(227,192,117,.45);
  box-shadow:none;
}

.stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.stat-grid article{
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(16,33,25,.84);
}
.stat-grid span{
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:10px;
  background:rgba(227,192,117,.14);
  color:var(--gold-soft);
  font-size:11px;
  font-weight:800;
}
.stat-grid strong{
  display:block;
  margin-top:10px;
  font-size:13px;
}
.stat-grid small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}

.shortcuts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.shortcuts article,
.list,
.note{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:rgba(16,33,25,.88);
  box-shadow:var(--shadow);
}
.shortcuts article{
  min-height:92px;
  padding:14px;
}
.shortcuts strong{
  display:block;
  font-size:13px;
}
.shortcuts span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}

.list{
  margin-top:14px;
  padding:16px;
}
.list-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.list h2{
  margin:0;
  font-size:18px;
}
.list-head span{
  color:var(--muted);
  font-size:11px;
}

#items{
  display:grid;
  gap:10px;
}
.item{
  padding:14px;
  border-top:0;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  background:rgba(4,10,8,.55);
}
.item:first-child{border-top:1px solid rgba(255,255,255,.08)}
.item strong,
.item h3{
  color:#f7fbf8;
}
.item p{
  margin:6px 0 0;
  color:var(--muted);
  line-height:1.7;
  font-size:13px;
}
.actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.actions button{
  margin:0;
  min-height:40px;
  border:1px solid transparent;
}
.actions .reject{
  background:transparent;
  color:var(--red);
  border-color:rgba(255,141,141,.44);
}

.empty{
  color:var(--muted);
  padding:10px 2px;
}

.note{
  margin-top:14px;
  padding:14px 16px;
}
.note p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
}

button:disabled{opacity:.58}
button:focus-visible{
  outline:2px solid rgba(227,192,117,.55);
  outline-offset:2px;
}

@media (max-width: 420px){
  .shortcuts,
  .stat-grid{
    grid-template-columns:1fr;
  }
  .status-chip{
    display:none;
  }
}
