:root {
  font-family: system-ui, sans-serif;
  color: #263d34;
  background: #f4f6f4;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  padding: 13px 14px;
  border: 1px solid #d5dfd8;
  border-radius: 9px;
  background: white;
  color: inherit;
}
button:hover {
  background: #eef3ef;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: #214b3d;
  color: white;
  border-color: #214b3d;
}
:focus-visible {
  outline: 3px solid #c2a85d;
  outline-offset: 3px;
}
.brand {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 700;
}
.brand span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  padding-left: 10px;
}
.login {
  width: min(420px, 100%);
  margin: 10vh auto;
  padding: 25px;
}
h1 {
  font-size: 30px;
  font-weight: 500;
}
label {
  display: grid;
  gap: 7px;
}
input,
select {
  padding: 11px;
  border: 1px solid #b8c7bc;
  border-radius: 7px;
  background: white;
  color: inherit;
}
form {
  display: grid;
  gap: 18px;
}
#workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  height: 100dvh;
}
aside {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  border-right: 1px solid #dce4de;
  background: #fff;
  overflow: auto;
}
aside .brand {
  margin-top: 0;
}
#site-name {
  overflow-wrap: anywhere;
}
#state {
  font-size: 12px;
  color: #58715f;
  min-height: 32px;
}
nav {
  display: grid;
  gap: 10px;
}
nav button {
  text-align: left;
}
.identity {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 30px;
  overflow-wrap: anywhere;
}
.quiet {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font-size: 12px;
}
main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #e0e6e1;
  min-height: 60px;
}
header label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
header select {
  font-size: 12px;
  padding: 7px;
}
#status {
  font-size: 12px;
  flex: 1;
  margin: 0;
}
#viewport-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: auto;
}
iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
#viewport-wrap.mobile iframe {
  max-width: 390px;
}
#preview-note {
  padding: 10px 20px;
  background: #fff1c9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog {
  border: 1px solid #d5dfd8;
  border-radius: 14px;
  padding: 26px;
  width: min(520px, 94vw);
  max-height: 85dvh;
  color: inherit;
}
dialog::backdrop {
  background: #10291f66;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
h2 {
  font-weight: 500;
}
.history-item {
  border-top: 1px solid #dce4de;
  padding: 18px 0;
}
.history-item p {
  margin: 4px 0 12px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
#history-dialog {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  width: min(440px, 100vw);
}
@media (max-width: 700px) {
  #workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  aside {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid #dce4de;
  }
  aside .brand,
  .identity {
    display: none;
  }
  #site-name,
  #state {
    margin: 3px;
    min-height: 0;
    font-size: 11px;
  }
  nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
  }
  nav button {
    padding: 10px 7px;
    font-size: 11px;
  }
  header {
    padding: 8px;
  }
}

textarea {
  font: inherit;
  padding: 11px;
  min-height: 80px;
  border: 1px solid #b8c7bc;
  border-radius: 7px;
  resize: vertical;
}
