:root {
  color-scheme: light;
  --bg: #f8f7f2;
  --paper: #fffefa;
  --green: #183e35;
  --ink: #25372f;
  --muted: #6d776e;
  --line: #e1e4d9;
  --orange: #b4532d;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 17px;
  font-weight: 600;
  background: var(--green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  line-height: 1.3;
}
button:hover,
.button:hover {
  filter: brightness(1.12);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #c98247;
  outline-offset: 4px;
}
.secondary {
  color: var(--green);
  background: var(--paper);
  border-color: #cdd3c7;
}
.text-button {
  padding: 6px 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.danger {
  color: #a83a31;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 234px;
  padding: 37px 23px 26px;
  background: var(--green);
  color: #f4f6e9;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font:
    36px Georgia,
    serif;
  letter-spacing: -1.5px;
}
.version {
  margin-left: auto;
  font:
    11px ui-monospace,
    monospace;
  letter-spacing: 0;
  color: #9cb3a7;
}
.brand-note {
  color: #b7c9bd;
  font-size: 12px;
  line-height: 1.8;
  margin: 20px 0 51px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #a0b7a8;
  margin: 0 12px 15px;
}
nav {
  display: grid;
  gap: 7px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 13px 12px;
  border-radius: 6px;
  color: #d1dfd4;
  border: 1px solid transparent;
}
nav a span {
  font-size: 20px;
  width: 22px;
  text-align: center;
  line-height: 1;
}
nav a:hover {
  background: #ffffff0b;
}
nav a[aria-current="page"] {
  background: #ffffff10;
  border-color: #ffffff19;
  color: #e4f1cc;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff22;
  padding-top: 22px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.9px;
}
.sidebar-bottom p {
  font:
    12px/1.8 system-ui,
    sans-serif;
  letter-spacing: 0;
  color: #b7c9bd;
  margin-bottom: 0;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #c4dca2;
  border-radius: 50%;
  margin-right: 7px;
}
.workspace {
  margin-left: 234px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 77px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  gap: 15px;
}
.topbar > div {
  display: flex;
  gap: 15px;
  align-items: center;
}
.slash {
  margin: 0 12px;
  color: #b4baaf;
}
.private-badge {
  border: 1px solid var(--line);
  background: #eff1e9;
  color: #56654f;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
main {
  padding: 44px 46px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}
.eyebrow {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 1.8px;
  color: var(--orange);
  text-transform: uppercase;
  margin: 0 0 15px;
}
h1 {
  font:
    44px/1.12 Georgia,
    serif;
  letter-spacing: -1.5px;
  margin: 0 0 15px;
  font-weight: normal;
}
h2 {
  font:
    23px/1.25 Georgia,
    serif;
  letter-spacing: -0.4px;
  font-weight: normal;
  margin: 0 0 8px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}
p {
  line-height: 1.75;
  margin: 0 0 16px;
}
.intro {
  color: var(--muted);
  max-width: 650px;
  font-size: 13px;
}
.heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.heading-row .intro {
  margin-bottom: 0;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 31px 0 24px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 21px 23px;
  background: var(--paper);
  position: relative;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.stat-icon {
  color: var(--orange);
  background: #f5eddf;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 16px;
}
.stat-number {
  font:
    44px Georgia,
    serif;
  display: block;
  margin: 17px 0 8px;
}
.stat-note {
  font-size: 11px;
  color: var(--muted);
}
.stat-arrow {
  position: absolute;
  right: 23px;
  top: 24px;
  color: #9da994;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
  background: var(--paper);
  margin-bottom: 22px;
}
.panel-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 19px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.step:last-child {
  padding-bottom: 0;
}
.step-number {
  font:
    14px Georgia,
    serif;
  border: 1px solid #d7dccd;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #6b795c;
}
.step div {
  flex: 1;
}
.step p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.step .button {
  font-size: 11px;
  white-space: nowrap;
}
.isolation {
  background: #edf0e4;
  border: 1px solid #dce2cf;
  border-radius: 9px;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 19px 23px;
}
.isolation-symbol {
  font-size: 28px;
  color: #6a7d56;
}
.isolation h3 {
  font-size: 12px;
  margin-bottom: 4px;
}
.isolation p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.isolation .tag {
  margin-left: auto;
  white-space: nowrap;
}
.tag {
  font:
    10px ui-monospace,
    monospace;
  color: #536848;
  background: #e1e9d6;
  padding: 6px 9px;
  border-radius: 4px;
}
footer {
  padding: 22px 46px;
  color: #939b8e;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
input,
textarea {
  display: block;
  width: 100%;
  background: #fffefa;
  border: 1px solid #ccd2c5;
  color: var(--ink);
  border-radius: 6px;
  padding: 12px;
  margin: 0 0 20px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 135px;
}
.code {
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  tab-size: 2;
}
textarea.code {
  min-height: 265px;
  background: #f4f5ef;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: -10px;
}
.connection-note {
  margin-top: 16px;
  margin-bottom: 0;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  align-items: center;
}
.login {
  max-width: 530px;
  margin: 45px auto;
}
.login img {
  margin-bottom: 27px;
}
.login .panel {
  margin-top: 28px;
}
main.login {
  max-width: 760px;
  padding: 28px 24px;
}
main.login .code {
  overflow-wrap: anywhere;
}
main.login .entry-actions button {
  font-size: 14px;
  padding: 11px 17px;
}
.error {
  color: #a1322b;
  background: #fff0e9;
  border: 1px solid #ecc5b6;
  padding: 12px;
  border-radius: 5px;
  font-size: 12px;
  margin-bottom: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.list {
  display: grid;
  gap: 14px;
}
.entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 21px 23px;
}
.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.entry h2 {
  font:
    17px Georgia,
    serif;
  overflow-wrap: anywhere;
}
.entry p {
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}
.entry-meta {
  color: #8a9382;
  font:
    10px ui-monospace,
    monospace;
}
.entry-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}
.entry-actions button {
  font-size: 11px;
  padding: 6px 9px;
}
.empty {
  text-align: center;
  border: 1px dashed #cdd4c4;
  border-radius: 9px;
  padding: 57px 22px;
  margin-top: 12px;
}
.empty-symbol {
  font-size: 33px;
  color: #91a17b;
  margin-bottom: 20px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
}
.filter {
  max-width: 390px;
}
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: start;
}
.split .panel {
  min-width: 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eef1e7;
  border: 1px solid #dde2d4;
  padding: 18px;
  border-radius: 6px;
  font:
    12px/1.8 ui-monospace,
    monospace;
  margin: 15px 0;
}
.result {
  min-height: 300px;
}
.result pre {
  background: #183e35;
  color: #e0edcd;
  border-color: #183e35;
}
.result-placeholder {
  padding: 50px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.connection-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.connection-row code {
  flex: 1;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 15px;
  background: #eef1e7;
  border-radius: 6px;
  min-width: 0;
}
#notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  color: white;
  background: var(--green);
  border-radius: 8px;
  box-shadow: 0 5px 25px #0002;
  max-width: min(430px, 90vw);
  font-size: 13px;
  z-index: 5;
}
@media (min-width: 1450px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 205px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 205px;
  }
  main {
    padding: 35px 26px;
  }
  .topbar,
  footer {
    padding-left: 26px;
    padding-right: 26px;
  }
  h1 {
    font-size: 37px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .step .button {
    padding: 10px;
  }
}
@media (max-width: 720px) {
  body {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 20px 12px;
  }
  .brand {
    font-size: 29px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .version {
    margin-left: 0;
  }
  .brand-note,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-top: 17px;
  }
  nav a {
    padding: 9px 11px;
    font-size: 11px;
    white-space: nowrap;
  }
  nav a span {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 57px;
    padding: 0 21px;
  }
  .topbar > div {
    gap: 6px;
  }
  .private-badge {
    display: none;
  }
  main {
    padding: 28px 21px;
  }
  h1 {
    font-size: 34px;
  }
  .stats {
    gap: 10px;
    margin-top: 24px;
  }
  .stat {
    padding: 17px;
  }
  .stat-arrow {
    display: none;
  }
  .stat-number {
    font-size: 38px;
  }
  .panel {
    padding: 20px;
  }
  .step {
    flex-wrap: wrap;
    gap: 12px;
  }
  .step div {
    min-width: 180px;
  }
  .step .button {
    margin-left: 45px;
  }
  .isolation {
    align-items: start;
    padding: 17px;
  }
  .isolation .tag {
    display: none;
  }
  footer {
    padding: 20px 21px;
  }
  footer span {
    display: none;
  }
  .heading-row {
    align-items: start;
    flex-direction: column;
  }
  .entry-top {
    flex-direction: column;
  }
  .entry-actions {
    margin-bottom: 15px;
  }
  .login {
    margin: 20px auto;
  }
  .login h1 {
    font-size: 36px;
  }
  .connection-row {
    flex-wrap: wrap;
  }
}
