:root {
  --bg: #060607;
  --surface: #0d0d0f;
  --surface2: #131316;
  --input: #17171a;
  --line: #222226;
  --line-soft: #1a1a1e;
  --ink: #f2f2f3;
  --muted: #9b9ba1;
  --faint: #63636a;
  --cream: #d2c9bb;
  --green: #4ade80;
  --green-bg: rgba(34, 197, 94, .12);
  --green-line: rgba(34, 197, 94, .35);
  --red: #f26d6d;
  --red-line: rgba(242, 109, 109, .5);
  --discord: #5865F2;
  --r: 10px;
  --sidebar-w: 260px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #2c2c30; color: #fff; }

main {
  max-width: none;
  margin: 0;
  padding: 0 24px 80px;
  display: flex;
  gap: 0;
  align-items: stretch;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.hbar {
  max-width: none;
  margin: 0;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Left sidebar bot list */
.bot-sidebar {
  flex: none;
  width: var(--sidebar-w);
  min-height: calc(100vh - 120px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 14px;
  background: #09090b;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  flex-shrink: 0;
}
.bot-sidebar h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bot-view-toggle {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  cursor: pointer;
}
.bot-view-toggle:hover { color: var(--ink); border-color: var(--muted); }
.bot-view-toggle.on { background: var(--surface2); color: var(--ink); border-color: #3d3d44; }
.bot-list-view { display: flex; flex-direction: column; gap: 4px; }
.bot-grid-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bot-grid-view .bot-item { padding: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
.bot-grid-view .bot-item .bav { width: 40px; height: 40px; font-size: 16px; }
.bot-grid-view .bot-item .binfo b { white-space: normal; }
.bot-grid-view .bot-item .binfo small { white-space: normal; }
.bot-grid-view .bot-item .pills { margin-left: 0; margin-top: 4px; }
.bot-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  width: 100%;
}
.bot-item:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.bot-item.sel { color: var(--ink); background: rgba(255, 255, 255, .08); border-left: 3px solid var(--cream); padding-left: 9px; }
.bot-item .bav { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; font-size: 14px; color: #fff; background: var(--surface2); border: 1px solid var(--line); border-radius: 50%; }
.bot-item .bav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bot-item .binfo { flex: 1; min-width: 0; }
.bot-item .binfo b { display: block; font-size: 12.5px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-item .binfo small { display: block; font-size: 11px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot-item .pills { display: flex; gap: 5px; flex-wrap: wrap; margin-left: 8px; }
.bot-item .pill { font-size: 9.5px; padding: 1px 7px; }

/* Dashboard content area */
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 28px 24px 0;
  overflow-y: auto;
}

.logo {
  width: 32px;
  height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #111;
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
}
.logo.has-img { background: none; padding: 0; }
.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }

.brand h1 { font-size: 17px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.brand h1 em { font-style: normal; font-weight: 700; }
.brand p { display: none; }

.sp { flex: 1; }

.topnav { display: flex; gap: 22px; margin-left: 26px; align-items: center; }
.navbtn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 4px 0;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
}
.navbtn:hover { color: var(--ink); }
.navbtn.on { color: var(--ink); }

#userchip { display: flex; align-items: center; gap: 9px; }
#pfp {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  object-fit: cover;
  background: var(--surface2);
}
#who { font-size: 13px; font-weight: 500; color: var(--ink); }

header a,
header button {
  border: 0;
  border-radius: 7px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
#loginBtn { color: #111; background: #f4f4f5; }
#loginBtn:hover { background: #fff; }
#logoutBtn { background: transparent; color: var(--faint); padding: 8px 4px; font-weight: 500; }
#logoutBtn:hover { color: var(--ink); }

.hero {
  padding: 72px 24px 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
}
.hero-logo { max-width: 64px; margin: 0 auto 22px; display: block; }

.kicker { display: none; }

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
}
.hero h2 span { color: #fff; }
.hero .sub { max-width: 560px; margin: 0 auto 26px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }

.btn-big {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
}
.btn-big:hover { border-color: var(--muted); }

.btn.discord-btn,
.btn-discord,
a.discord-btn {
  display: inline-block !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  color: #ffffff !important;
  background: #5865F2 !important;
  background-color: #5865F2 !important;
}
.btn.discord-btn:hover,
.btn-discord:hover,
a.discord-btn:hover {
  filter: brightness(1.1) !important;
  color: #ffffff !important;
  background: #5865F2 !important;
  background-color: #5865F2 !important;
}

.ghost { color: var(--faint); font-size: 12.5px; }
.ghost a { color: var(--muted); }

.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 56px; text-align: left; }
.feat .f {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.feat .ic { display: none; }
.feat b { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.feat p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.step { padding: 20px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); }
.step .n { display: none; }
.step b { font-size: 14px; font-weight: 650; }
.step p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.step code {
  padding: 1px 6px;
  font-size: 12px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.statband { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; justify-content: center; }
.stat {
  min-width: 150px;
  padding: 12px 22px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.stat b { display: block; font-size: 22px; letter-spacing: -0.02em; font-weight: 750; color: #fff; }
.stat span { font-size: 11.5px; color: var(--faint); }

.card {
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.card h2 {
  margin: 0;
  padding-bottom: 12px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.card h2 .pill { margin-left: 10px; vertical-align: 1px; }
.card h2 + .muted, .card h2 + p.muted { margin-top: 12px; }
.card h3 { margin: 22px 0 0; font-size: 12px; font-weight: 650; color: var(--muted); }

.dash-main > .card:first-child { margin-top: 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }

.muted { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.muted code {
  padding: 1px 6px;
  font-size: 12px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }


.pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 650;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  border-radius: 999px;
}
.pill.overdue { color: var(--red); background: rgba(242, 109, 109, .1); border-color: rgba(242, 109, 109, .4); }
.pill.duesoon { color: #f5c97b; background: rgba(245, 201, 123, .1); border-color: rgba(245, 201, 123, .35); }
.pill.paidok { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.pill.on { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.pill.off { color: var(--faint); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.pill.pingok { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.pill.pingbad { color: var(--red); background: rgba(242, 109, 109, .1); border-color: rgba(242, 109, 109, .4); }
.pingok { color: var(--green); }
.pingbad { color: var(--red); }


input,
textarea,
select {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--input);
  outline: none;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus { border-color: #3d3d44; box-shadow: none; }
input::placeholder,
textarea::placeholder { color: var(--faint); }
select { width: auto; }
select option { background: var(--surface2); }
textarea { width: 100%; min-height: 110px; font-family: inherit; line-height: 1.55; resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: #2f81f7; }
input[type="color"] { padding: 3px; height: 40px; cursor: pointer; }

label {
  display: block;
  margin: 12px 0 5px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
label .muted { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 11.5px; color: var(--faint); }


button.btn {
  border: 0;
  border-radius: 7px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #111;
  background: #f4f4f5;
}
button.btn:hover { background: #fff; }
button.btn:active { transform: none; }
button.btn.light {
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid #333338;
}
button.btn.light:hover { border-color: var(--muted); background: transparent; color: #fff; }
button.btn:disabled { opacity: .45; cursor: default; }


button[data-rmbtn],
button[data-rmopt],
button[data-rmmenu],
button[data-rmemb],
button[data-rmblk],
button[data-del],
button[data-rm],
button[data-act="del"],
button[data-clearplan] {
  color: var(--red);
  background: transparent;
  border: 1px solid var(--red-line);
}
button[data-rmbtn]:hover,
button[data-rmopt]:hover,
button[data-rmmenu]:hover,
button[data-rmemb]:hover,
button[data-rmblk]:hover,
button[data-del]:hover,
button[data-rm]:hover,
button[data-act="del"]:hover,
button[data-clearplan]:hover {
  background: rgba(242, 109, 109, .08);
  border-color: var(--red);
  color: var(--red);
}

.savebar { position: sticky; bottom: 12px; display: flex; justify-content: flex-start; margin-top: 16px; padding: 10px 0; background: linear-gradient(to top, var(--surface) 75%, transparent); }
.savebar .btn { box-shadow: 0 2px 10px rgba(0,0,0,.4); }

code.env {
  display: block;
  margin-top: 10px;
  padding: 14px;
  font-family: Consolas, Menlo, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  color: var(--muted);
  background: var(--input);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.notecard {
  margin-top: 10px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}
.notecard code { color: var(--ink); font-size: 11.5px; }

.cur { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.cur b { color: var(--faint); font-weight: 400; font-family: Consolas, Menlo, monospace; font-size: 11px; }

#botlist { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; align-items: stretch; }
.botcard {
  display: block;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}
.botcard.sel { border-color: #3d3d44; }
.botcard .btop { display: flex; gap: 14px; align-items: flex-start; }
.botcard .bav {
  width: 52px;
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.botcard .bav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.botcard .binfo { flex: 1; min-width: 0; }
.botcard .binfo b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.botcard .binfo small { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.botcard .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.botcard .expires { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.botcard .bdesc {
  margin: 10px 0 0;
  padding-left: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.botcard .bdesc::before { content: "> "; color: var(--faint); }
.botcard .btn-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

.sechead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.backbtn {
  flex: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid #333338;
  border-radius: 7px;
  padding: 7px 14px;
  background: transparent;
}
.backbtn:hover { border-color: var(--muted); color: #fff; }

.dashhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashhead .bav {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.dashhead .bav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.syncdot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}
.syncdot i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.conninfo { margin-top: 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 8px; }
.conninfo summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.conninfo summary:hover { color: var(--ink); }

.dashbody { display: flex; gap: 0; align-items: stretch; }
.leftbar {
  flex: none;
  width: var(--sidebar-w);
  min-height: calc(100vh - 140px);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #09090b;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  flex-shrink: 0;
}
.leftbar .bot-sidebar {
  width: 100%;
  max-height: none;
  position: static;
  padding: 16px 12px;
  background: transparent;
  border-right: 0;
  overflow: visible;
}
.leftbar .bot-sidebar h3 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.leftbar .bot-item {
  padding: 10px 12px;
  font-size: 12.5px;
}
.sidetabs {
  flex: none;
  width: var(--sidebar-w);
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  position: sticky;
  top: 70px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 16px 12px;
  background: transparent;
  border: 0;
  border-right: 0;
  border-radius: 0;
  border-top: 1px solid var(--line-soft);
}
.sgroup { border: 0; margin: 0; padding: 0; }
.sgroup > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.sgroup > summary::-webkit-details-marker { display: none; }
.sgroup > summary::after { content: '›'; font-size: 14px; color: var(--faint); }
.sidetabs button {
  width: 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 7px 10px 7px 22px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--faint);
  background: transparent;
  border: 0;
  border-radius: 6px;
}
.sidetabs button:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.sidetabs button.on { color: var(--ink); background: rgba(255, 255, 255, .08); }
.sidetabs .sic { display: none; }
.sidetabs b { display: block; font-size: 12.5px; font-weight: 500; }
#tabbody { flex: 1; min-width: 0; padding: 0; }
#tabbody > .card:first-child { margin-top: 0; }

.embedtools { display: flex; gap: 8px; margin-top: 14px; }
.embedtools input { flex: 1; max-width: 520px; }

.embedlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.embedlist button {
  text-align: left;
  min-height: 46px;
  padding: 8px 11px;
  cursor: pointer;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}
.embedlist button:hover { border-color: var(--line); }
.embedlist button.on { border-color: var(--cream); background: #1d1d21; box-shadow: none; }
.embedlist b { display: block; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.embedlist span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.egroup { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.egroup:last-of-type { margin-bottom: 16px; }
.egroup > summary { list-style: none; cursor: pointer; border-radius: 7px; padding: 4px; margin: -4px; }
.egroup > summary::-webkit-details-marker { display: none; }
.egroup > summary > .eghead { pointer-events: none; }
.egroup > summary:hover > .eghead { opacity: .85; }
.egarrow { display: inline-block; font-size: 12px; color: var(--faint); transition: transform .15s ease; }
.egroup[open] > summary .egarrow { transform: rotate(90deg); }
.eghead { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.egicon { display: none; }
.eghead b { display: block; font-size: 13px; font-weight: 650; }
.eghead .muted { display: block; margin-top: 1px; font-size: 12px; }

.edhead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding: 14px 16px; background: var(--input); border: 1px solid var(--line-soft); border-radius: 8px; }

.swatch {
  display: inline-block;
  width: 100%;
  height: 34px;
  margin-top: 6px;
  flex: none;
  background: #2a2a30;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.mockrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; }
.mockbtn { display: inline-block; border-radius: 6px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: #fff; }
.mockbtn.primary { background: #5865F2; }
.mockbtn.secondary { background: #4e5058; }
.mockbtn.success { background: #248046; }
.mockbtn.danger { background: #DA373C; }
.mockbtn.link { background: #4e5058; color: #00AFF4; }
.mockselect {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 420px;
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #dbdee1;
  background: #1e1f22;
  border-radius: 6px;
}
details.optemb { margin-top: 8px; }
details.optemb summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
details.optemb summary:hover { color: var(--ink); }

.preview { margin-top: 12px; padding: 14px; background: var(--input); border: 1px solid var(--line-soft); border-left: 2px solid #3d3d44; border-radius: 0 8px 8px 0; }
.preview .cap { margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.preview .msg { margin-bottom: 8px; padding: 10px 12px; color: #dbdee1; background: #1e1f22; border-left: 3px solid #c4c4c4; border-radius: 0 6px 6px 0; }
.preview .msg:last-child { margin-bottom: 0; }
.preview .msg h4 { margin: 0 0 4px; font-size: 13.5px; color: #fff; }
.preview .msg p { margin: 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.preview .msg small { font-size: 11px; color: #949ba4; }
.preview .plain { margin: 0 0 8px; font-size: 13px; color: #dbdee1; }
.preview hr { border: 0; border-top: 1px solid #4e5058; margin: 8px 0; }
.preview img { max-width: 100%; display: block; border-radius: 8px; }
.preview .pill { background: #4e5058; color: #fff; border: 0; }

.sumrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.sumcard { padding: 12px 14px; background: transparent; border: 1px solid var(--line-soft); border-radius: 8px; }
.sumcard small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sumcard b { font-size: 20px; letter-spacing: -0.01em; font-weight: 700; }
.sumcard b.bad { color: var(--red); }

.billrow { margin-top: 10px; padding: 14px 16px; background: transparent; border: 1px solid var(--line-soft); border-radius: 8px; }
.billhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.billhead b { font-size: 14px; font-weight: 650; }
.billgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 14px; margin: 10px 0; }
.billgrid small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; color: var(--faint); }
.billgrid div { font-size: 13px; }
.billgrid code {
  padding: 1px 6px;
  font-size: 11.5px;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.billbtns { gap: 8px; }
.billedit { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-soft); }

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 99;
  display: none;
  max-width: 90vw;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #141416;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer { padding: 24px; text-align: center; font-size: 11.5px; color: var(--faint); }
footer b { color: var(--muted); font-weight: 600; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2c2c30; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 860px) {
  .dashbody { flex-direction: column; }
  .leftbar { width: 100%; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 0; }
  .sidetabs { border-top: 0; }
  #tabbody { padding-left: 0; padding-top: 16px; }
}
@media (max-width: 720px) {
  .topnav { margin-left: 0; gap: 14px; }
  .navbtn { padding: 4px 0; }
  #who { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 12px; }
  .feat, .steps { grid-template-columns: 1fr; }
}

.varrow { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.varrow code {
  flex: none;
  min-width: 140px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: Consolas, Menlo, monospace;
  color: var(--ink);
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.varrow span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.prof-banner { width: 100%; max-height: 160px; object-fit: cover; display: block; border-radius: 8px; }
.prof-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.prof-av { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }

/* Home page — clean split landing */
.landing {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: stretch;
  padding: 60px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.landing-left .hero-logo {
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 12px;
  object-fit: cover;
}
.landing-left h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #fff;
}
.landing-left .sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 480px;
}
.landing-left .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.landing-left .doc-btn,
.landing-left .login-inline {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  display: inline-block;
}
.landing-left .doc-btn:hover,
.landing-left .login-inline:hover { border-color: var(--muted); background: var(--surface2); }
.landing-left .login-inline { color: var(--ink); }
.landing-right h3 {
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.landing-right .muted {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.feat-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feat-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
  color: #fff;
}
.feat-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .landing { gap: 32px; }
}
