:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --paper: #fff;
  --ink: #202525;
  --sub: #586260;
  --line: #dcdfd9;
  --tint: #eff1eb;
  --accent: #c64522;
  font:
    16px/1.5 "Inter",
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
body.dark {
  color-scheme: dark;
  --bg: #171c1d;
  --paper: #222929;
  --ink: #edf0eb;
  --sub: #adb9b5;
  --line: #424a47;
  --tint: #303835;
  --accent: #ff9876;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  border-radius: 9px;
}
button {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 8px 13px;
  cursor: pointer;
}
button:hover {
  border-color: var(--sub);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #dc8d39;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 228px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 29px 18px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -1.3px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand b {
  background: #ec6942;
  color: #fff;
  border-radius: 10px;
  padding: 0 7px;
  font-size: 29px;
}
aside > small {
  margin: 34px 10px 12px;
}
small,
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.1px;
  font-weight: 700;
  color: var(--sub);
}
nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  color: var(--sub);
  margin-bottom: 3px;
  min-height: 42px;
}
nav button.active {
  background: #fce8df;
  color: #923715;
  font-weight: 650;
}
nav i {
  font-style: normal;
  width: 23px;
  font-size: 20px;
  text-align: center;
}
.rail-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rail-foot small {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
}
.avatar {
  background: #f8d6b8;
  color: #5e3726;
  border-radius: 50%;
  padding: 8px 14px;
  font-weight: 700;
}
main {
  margin-left: 228px;
}
header {
  height: 67px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 66px);
  gap: 14px;
  font-size: 14px;
  color: var(--sub);
}
#theme {
  margin-left: auto;
}
#menu {
  display: none;
}
#page {
  max-width: 1550px;
  margin: auto;
  padding: 32px clamp(18px, 4vw, 66px) 60px;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #242e2e;
  color: #fff;
  border-radius: 20px;
  padding: 34px 36px;
  min-height: 208px;
}
.hero .eyebrow {
  color: #ffc3a5;
}
.hero h1,
h1,
h2,
h3,
p {
  margin: 0;
}
.hero h1 {
  font:
    500 clamp(38px, 4vw, 60px) / 1.1 Georgia,
    serif;
  letter-spacing: -2px;
  margin: 12px 0;
}
.hero p {
  color: #d3dbd7;
}
.hero svg {
  position: absolute;
  right: 1%;
  height: 110%;
  top: -5%;
  width: 36%;
  z-index: -1;
}
.stats {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  margin: 18px 0 29px;
  padding: 16px 0;
}
.stat {
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat b {
  font-size: 24px;
  line-height: 1.2;
  display: block;
}
.stat span,
.muted,
.card p {
  color: var(--sub);
}
.stat span {
  font-size: 14px;
}
.row,
.tools,
.actions,
.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.row {
  justify-content: space-between;
  margin: 20px 0 15px;
}
.primary {
  background: #bd4524;
  color: white;
  border-color: transparent;
  font-weight: 650;
}
.tools {
  padding: 0 0 18px;
}
.tools input {
  flex: 1;
  min-width: 150px;
}
input,
textarea,
select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  max-width: 100%;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.card-top,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.tile {
  font: 700 19px/37px monospace;
  width: 40px;
  text-align: center;
  border-radius: 10px;
  background: #e8e1fa;
  color: #5f4687;
}
.tone1 {
  background: #d9ece7;
  color: #265f56;
}
.tone2 {
  background: #ffe2cf;
  color: #834321;
}
.tone3 {
  background: #e0ebfa;
  color: #375d82;
}
.card h3 button {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 680;
  line-height: 1.3;
}
.card p {
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag {
  background: var(--tint);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
}
.card-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--sub);
}
.icon {
  border: 0;
  background: transparent;
  font-size: 20px;
  padding: 5px 9px;
}
.on {
  color: var(--accent);
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(650px, 94vw);
  max-height: 87dvh;
  padding: 24px;
  box-shadow: 0 24px 80px #0003;
}
dialog::backdrop {
  background: #18201eb0;
}
dialog label {
  display: grid;
  gap: 5px;
  margin: 11px 0;
  font-weight: 550;
}
dialog input:not([type="checkbox"]),
dialog textarea,
dialog select {
  width: 100%;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
.bodytext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--tint);
  padding: 16px;
  border-radius: 9px;
}
.actions {
  margin-top: 14px;
}
.more {
  display: block;
  margin: 20px auto;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 18px;
  background: #242e2e;
  color: white;
  border-radius: 12px;
  z-index: 10;
}
.platform {
  color: var(--accent);
  padding: 6px;
}
.empty {
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
mark {
  background: #ffdc89;
  color: #26231e;
}
button,
select {
  min-height: 40px;
}
@media (max-width: 900px) {
  aside {
    width: 185px;
    padding: 22px 10px;
  }
  main {
    margin-left: 185px;
  }
  .hero svg {
    opacity: 0.65;
  }
  .hero {
    padding: 26px;
  }
}
@media (max-width: 700px) {
  aside {
    display: none;
    width: 240px;
    box-shadow: 10px 0 60px #0004;
  }
  body.nav-open aside {
    display: flex;
  }
  main {
    margin: 0;
  }
  #menu {
    display: block;
  }
  header {
    height: 56px;
  }
  #page {
    padding-top: 18px;
  }
  .hero {
    min-height: 176px;
    padding: 22px;
  }
  .hero p {
    max-width: 72%;
    font-size: 14px;
  }
  .hero svg {
    right: -7%;
    width: 42%;
  }
  .stats {
    margin: 12px 0 20px;
  }
  .stat {
    padding: 0 10px;
  }
  .stat span {
    font-size: 12px;
  }
  .stat b {
    font-size: 20px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
  }
  .tools input {
    width: 100%;
    flex-basis: 100%;
  }
  button {
    min-height: 44px;
  }
  .row {
    align-items: start;
  }
  .rail-foot {
    margin-top: 18px;
  }
  aside {
    overflow: auto;
  }
}
.import-content {
  display: grid;
  gap: 12px;
}
.import-content header {
  padding: 0;
  justify-content: space-between;
  height: auto;
}
.import-content button {
  margin: 3px;
}
.import-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.import-row label {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 9px;
}
.import-row pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.import-row summary {
  cursor: pointer;
}
.import-content [role="status"] {
  overflow-wrap: anywhere;
}
.dialog-status {
  background: var(--tint);
  padding: 10px;
  border-radius: 8px;
}
.card h3,
.card-foot,
.tag {
  overflow-wrap: anywhere;
}
aside {
  overflow-y: auto;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.hero h1 {
  font-family: Georgia, serif;
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
  dialog[open] {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.4;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
