:root {
  --ink: #1b2830;
  --muted: #5c6b76;
  --accent: #1f7a57;
  --danger: #9a3030;
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 50px rgba(48, 72, 88, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink);
  font: 15px/1.65 "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(126, 196, 168, 0.55), transparent 58%),
    radial-gradient(760px 480px at 100% 0%, rgba(156, 186, 232, 0.5), transparent 55%),
    radial-gradient(640px 420px at 78% 110%, rgba(224, 196, 156, 0.38), transparent 52%),
    #e6eef3;
}
button, input { font: inherit; }
a { color: var(--accent); }

.login {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 22px;
  padding: 28px;
}
.login-side, .login-main, .side, .top, .step, .skip, .money, .accounts, .desk, .detail, .card, .filters button {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.login-side, .login-main {
  border-radius: 28px;
  padding: 40px 36px;
}
.login-side h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.25; font-weight: 650; }
.login-side p, .hint, .lead { color: var(--muted); }
.login-side p { margin: 0; }
.login-main h2 { margin: 28px 0 8px; }
.login-main h2:first-child { margin-top: 0; }
.hint { margin: 0 0 18px; }
.form { display: grid; gap: 12px; max-width: 380px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.55);
  padding: 0 12px;
  color: var(--ink);
}
button.primary {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f9a70, #1f7a57);
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 122, 87, 0.28);
}
button.ghost {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 10px;
}
.error { color: var(--danger); min-height: 1.2em; margin: 0; }
.accounts, .desk { width: 100%; border-collapse: collapse; border-radius: 16px; overflow: hidden; margin-top: 8px; }
.accounts th, .accounts td, .desk th, .desk td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 14px;
}
.accounts tr:last-child td, .desk tr:last-child td { border-bottom: 0; }
.accounts tbody tr, .desk tbody tr { cursor: pointer; }
.accounts tbody tr:hover, .desk tbody tr:hover, .desk tbody tr.selected { background: rgba(255, 255, 255, 0.45); }
.accounts th, .desk th { background: rgba(255, 255, 255, 0.35); font-weight: 650; }

.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100%; gap: 16px; padding: 16px; }
.side {
  border-radius: 24px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  overflow: auto;
}
.side .logo { font-weight: 650; padding: 6px 10px 8px; }
.side .logo small, .role-chip, .menu-group { display: block; font-weight: 400; color: var(--muted); }
.role-chip { margin: 0 10px 8px; font-size: 13px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu-group { margin: 16px 10px 4px; font-size: 12px; }
.menu button {
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
}
.menu button.active, .menu button:hover { background: rgba(255, 255, 255, 0.55); }
.side .ghost { margin-top: auto; text-align: left; }
.workspace { display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.top {
  border-radius: 18px;
  display: flex;
  align-items: center;
  padding: 14px 18px;
}
.top b { font-size: 16px; }
.content { padding: 4px 2px 12px; overflow: auto; }
.content h2 { margin: 0 0 8px; }
.lead { margin: 0 0 16px; }
.step, .skip, .money, .detail, .card {
  border-radius: 18px;
}
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 0 10px;
}
.no {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(180deg, #3aaa7e, #1f7a57);
  color: white;
  display: grid; place-items: center; font-size: 13px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0 0 6px; }
.start-list { margin: 0 0 12px; padding-left: 22px; }
.start-list li { margin: 8px 0; }
.skip, .money, .detail, .card { padding: 14px 16px; }
.money { margin-top: 8px; background: rgba(255, 248, 236, 0.72); font-size: 14px; }
.skip { background: rgba(232, 246, 238, 0.72); }
.frame {
  width: 100%;
  height: calc(100vh - 92px);
  border: 0;
  border-radius: 18px;
  background: transparent;
}
.workspace.frame-mode .content { padding: 0; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.filters button { border-radius: 999px; padding: 4px 12px; cursor: pointer; box-shadow: none; }
.filters button.active { background: #1f7a57; color: white; border-color: transparent; }
.detail { margin-top: 12px; }
.detail h3, .card h3 { margin: 0 0 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card h3 { font-size: 16px; }
.card p, .detail p { margin: 0 0 8px; }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .login, .app, .grid2 { grid-template-columns: 1fr; }
  .login { padding: 14px; }
  .login-side, .login-main { padding: 24px 18px; }
  .frame { height: 70vh; }
}
