@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --font-ui: "Roboto", system-ui, sans-serif;
  --bg: #12110e;
  --bg-2: #1b1a16;
  --surface: #1e1d18;
  --surface-2: #26251f;
  --ink: #f3eee4;
  --ink-2: #b8b1a4;
  --ink-3: #8d8679;
  --line: #35332c;
  --green: #3dba8f;
  --green-deep: #7ee0b8;
  --green-2: #16352c;
  --orange: #e2b15a;
  --orange-2: #3a2e16;
  --gold: #e2c36a;
  --blue: #5cb4e0;
  --blue-2: #163240;
  --rose: #e07070;
  --rose-2: #3a1e1e;
  --violet: #9b93f0;
  --violet-2: #2a2748;
  --brown: #c4844a;
  --brown-2: #3a2a18;
  --gray: #9a958c;
  --gray-2: #2a2926;
  --near: #e2b15a;
  --lift: #2f2d27;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(26, 25, 21, 0.12), 0 14px 36px -18px rgba(0, 0, 0, 0.55);
  --scroll: #3a3830;
  --overlay: #12110e7a;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0e8;
  --bg-2: #ebe6da;
  --surface: #fffdf8;
  --surface-2: #f7f4ec;
  --ink: #1a1915;
  --ink-2: #5c574e;
  --ink-3: #8a8478;
  --line: #e4dfd3;
  --green: #0c9b74;
  --green-deep: #08785a;
  --green-2: #e5f6f0;
  --orange: #d99212;
  --orange-2: #fbf1d6;
  --gold: #b8962a;
  --blue: #2b9bd8;
  --blue-2: #e5f3fb;
  --rose: #d45454;
  --rose-2: #fbeaea;
  --violet: #6d63e8;
  --violet-2: #eeecfb;
  --brown: #b56d32;
  --brown-2: #f6eadc;
  --gray: #7a756c;
  --gray-2: #ece9e1;
  --near: #8a5a00;
  --lift: #fffdf8;
  --shadow: 0 1px 0 rgba(26, 25, 21, 0.04), 0 14px 36px -18px rgba(26, 25, 21, 0.18);
  --scroll: #cfc8b8;
  --overlay: #f3f0e8cc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
}

button,
input,
a {
  font: inherit;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.06);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.ghost-btn:hover {
  background: var(--surface-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
}

.chip:hover,
.chip.is-active {
  background: var(--green-2);
  color: var(--green-deep);
  border-color: transparent;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 18px;
  background: none;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 1px;
}

.topbar-spacer {
  flex: 1;
}

.info-wrap {
  position: relative;
}

.info-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.info-btn:hover,
.info-btn[aria-expanded="true"] {
  background: var(--surface-2);
  border-color: var(--green);
  color: var(--green-deep);
}

.info-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

.info-menu.open {
  display: block;
}

.info-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.info-menu a:hover {
  background: var(--surface-2);
}

.info-menu a span {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 400;
}

.workspace {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}

.kv dt {
  color: var(--ink-3);
}

.kv dd {
  margin: 0;
  color: var(--ink);
}

.muted {
  color: var(--ink-2);
}

.tiny {
  color: var(--ink-3);
  font-size: 12px;
}

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li + li {
  margin-top: 6px;
}
