:root {
  color-scheme: light;
  --fs-ink: #1f2424;
  --fs-muted: #6d746f;
  --fs-line: #ddd8cf;
  --fs-panel: #fffdf8;
  --fs-panel-strong: #f8f5ee;
  --fs-bg: #f4f1eb;
  --fs-sidebar: #232826;
  --fs-sidebar-active: #313734;
  --fs-sidebar-line: #49514d;
  --fs-sidebar-text: #faf7ee;
  --fs-sidebar-muted: #c5c7be;
  --fs-teal: #1b7f78;
  --fs-teal-soft: #dff1ed;
  --fs-gold: #b9731f;
  --fs-gold-soft: #f8e7c5;
  --fs-rose: #b54b4b;
  --fs-rose-soft: #f5dddd;
  --fs-green: #347a3b;
  --fs-green-soft: #e0efdf;
  --fs-shadow: 0 18px 45px rgba(45, 38, 29, 0.06);
  --fs-radius: 8px;
  --bg: var(--fs-bg);
  --surface: var(--fs-panel);
  --surface-soft: var(--fs-panel-strong);
  --surface-strong: #eee8dc;
  --line: var(--fs-line);
  --line-strong: #c9c1b4;
  --text: var(--fs-ink);
  --muted: var(--fs-muted);
  --accent: var(--fs-teal);
  --accent-soft: var(--fs-teal-soft);
  --warn: #7b520f;
  --good: var(--fs-green);
  --bad: var(--fs-rose);
  --shadow: var(--fs-shadow);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--fs-bg);
  color: var(--fs-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
.fs-page-title {
  color: var(--fs-ink);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.02;
}

h2 {
  color: var(--fs-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
}

h3 {
  color: var(--fs-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

a {
  color: inherit;
}

a.fs-button,
.secondary-button,
.primary-button {
  text-decoration: none;
}

.fs-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.fs-sidebar {
  background: var(--fs-sidebar);
  color: var(--fs-sidebar-text);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
}

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

.fs-brand img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 48px;
}

.fs-brand strong,
.fs-brand span {
  display: block;
  min-width: 0;
}

.fs-brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.fs-brand span {
  color: var(--fs-sidebar-muted);
  font-size: 12px;
  margin-top: 3px;
}

.fs-nav {
  display: grid;
  gap: 7px;
}

.fs-nav-button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--fs-radius);
  color: #ece7dc;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.fs-nav-button:hover,
.fs-nav-button.is-active {
  background: var(--fs-sidebar-active);
  border-color: var(--fs-sidebar-line);
}

.fs-nav-button svg {
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.fs-sidebar-footer {
  align-items: center;
  color: var(--fs-sidebar-muted);
  display: flex;
  font-size: 13px;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
}

.fs-sidebar-footer span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-dot {
  background: #48b675;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.fs-panel {
  background: var(--fs-panel);
  border: 1px solid var(--fs-line);
  border-radius: var(--fs-radius);
  box-shadow: var(--fs-shadow);
}

.fs-icon-tile {
  align-items: center;
  background: var(--fs-teal-soft);
  border-radius: var(--fs-radius);
  color: var(--fs-teal);
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

@media (max-width: 760px) {
  .fs-shell {
    grid-template-columns: 1fr;
  }

  .fs-sidebar {
    gap: 18px;
    padding: 20px 14px;
  }

  .fs-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fs-nav-button {
    justify-content: center;
    min-width: 0;
  }

  .fs-nav-button span {
    display: none;
  }

  .fs-sidebar-footer {
    display: none;
  }
}
