:root {
  color-scheme: light;
  --ink: #1e3036;
  --muted: #586a70;
  --line: #d9e1dc;
  --paper: #f4f6f2;
  --green: #155e49;
  --accent: #b5e8c3;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button:not(:disabled),
select {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #278b82;
  outline-offset: 2px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.052em;
  line-height: 1.08;
  font-weight: 650;
}
h2,
h3 {
  letter-spacing: -0.025em;
}
h2 {
  font-size: 1.26rem;
}
h3 {
  font-size: 1rem;
}
a {
  color: var(--green);
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
}
.rail {
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 25px 14px 12px;
  background: #1a2a2e;
  color: #e8f0ed;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.63rem;
  font-weight: 600;
  letter-spacing: -0.065em;
}
.rail .brand {
  padding: 0 11px;
}
.brand img {
  width: 34px;
  height: 34px;
}
.brand b {
  font-weight: 350;
  color: #a5c3ba;
}
.workspace-switch {
  margin: 27px 4px 15px;
  background: #24373a;
  border: 1px solid #3b5050;
  border-radius: 8px;
  padding: 8px 11px;
}
.workspace-switch span,
.rail nav h2 {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #a7b9b4;
  text-transform: uppercase;
}
.workspace-switch select {
  display: block;
  color: #e6f1e9;
  background: #24373a;
  font-weight: 600;
  width: 100%;
  border: 0;
  padding: 3px 0;
}
.rail nav {
  flex: 1;
}
.rail nav section {
  margin-bottom: 18px;
}
.rail nav h2 {
  margin: 12px 12px 5px;
  font-weight: 600;
}
.rail nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #d3dfda;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.91rem;
}
.rail nav a span {
  width: 19px;
  text-align: center;
  font:
    1.1rem 'Segoe UI Symbol',
    sans-serif;
}
.rail nav a:hover {
  background: #273e40;
}
.rail nav a[aria-current] {
  background: #c3e9c9;
  color: #173a30;
  font-weight: 650;
}
.account {
  border-top: 1px solid #34484a;
  padding: 14px 5px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.account strong,
.account small {
  display: block;
}
.account strong {
  font-size: 0.87rem;
}
.account small {
  color: #aebfba;
  margin-top: 3px;
  font-size: 0.74rem;
}
.avatar {
  background: #34544d;
  color: #d3e9d8;
  border-radius: 50%;
  padding: 9px 12px;
}
.icon-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  margin-left: auto;
}
.main {
  min-width: 0;
}
.top {
  height: 57px;
  background: #fcfdfa;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(16px, 3vw, 45px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.top i {
  color: #a3aca4;
}
.top strong {
  font-weight: 600;
  color: var(--ink);
}
#menu {
  display: none;
}
#content {
  padding: clamp(18px, 3vw, 45px);
  max-width: 1900px;
  margin: 0 auto;
  outline: none;
}
.btn {
  border: 1px solid #c4cfc8;
  border-radius: 7px;
  background: white;
  padding: 8px 13px;
  font-weight: 550;
  font-size: 0.88rem;
  line-height: 1.35;
}
.btn:hover {
  background: #eaf2eb;
}
.btn.primary,
.primary.btn {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.btn.primary:hover {
  background: #184b3c;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.field {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select,
.settings-form input,
.settings-form select {
  background: white;
  border: 1px solid #bccec3;
  border-radius: 6px;
  padding: 9px 10px;
  max-width: 100%;
}
.entry {
  display: grid;
  grid-template-columns: minmax(280px, 40%) 1fr;
  min-height: 100vh;
}
.entry-side {
  background: #1a2a2e;
  color: #fff;
  padding: clamp(30px, 5vw, 80px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.entry-graphic {
  display: flex;
  transform: rotate(-30deg);
  gap: 12px;
  align-items: center;
  margin-left: -30%;
  height: 50%;
}
.entry-graphic i {
  display: block;
  background: #b8e3c0;
  width: 24%;
  border-radius: 100px;
  height: 75%;
}
.entry-graphic i:nth-child(2) {
  height: 100%;
  background: #4b8570;
}
.entry-graphic i:nth-child(3) {
  height: 60%;
  background: #e2d4aa;
}
.entry-graphic i:nth-child(4) {
  height: 83%;
  background: #80aa95;
}
.entry-caption {
  color: #b6cdc1;
}
.entry-main {
  display: grid;
  place-items: center;
  padding: 25px;
}
.entry-card {
  width: min(100%, 380px);
  display: grid;
  gap: 19px;
}
.entry-card h1,
.entry-card p {
  margin: 0;
}
.entry-card .btn {
  padding: 12px;
}
.form-error {
  color: #943c30;
  min-height: 1em;
}
.admin-head {
  margin-bottom: 23px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 16px;
  align-items: start;
}
.admin-block {
  margin: 0 0 16px;
}
.admin-block h2 {
  margin-bottom: 13px;
}
.settings-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}
.settings-form .btn {
  justify-self: start;
}
.admin-row {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e7e2;
  flex-wrap: wrap;
}
.admin-row:last-child {
  border: none;
}
.admin-row > div:first-child {
  margin-right: auto;
}
.admin-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.badge {
  border-radius: 99px;
  background: #e9f1e8;
  padding: 4px 8px;
  color: #285240;
  font-size: 0.76rem;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.code-copy {
  width: 100%;
}
#notice {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: min(420px, 90vw);
  background: #1e3833;
  color: white;
  padding: 13px 18px;
  border-radius: 8px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#notice.show {
  opacity: 1;
}
@media (max-width: 830px) {
  .layout {
    display: block;
  }
  .rail {
    display: none;
  }
  .rail-open .rail {
    display: flex;
    position: fixed;
    inset: 56px auto 0 0;
    width: min(270px, 86vw);
    height: calc(100dvh - 56px);
    z-index: 20;
    box-shadow: 8px 8px 30px #17262233;
  }
  .top {
    position: sticky;
    top: 0;
    z-index: 15;
  }
  #menu {
    display: block;
  }
  .entry {
    grid-template-columns: 1fr;
  }
  .entry-side {
    min-height: 120px;
    padding: 25px;
  }
  .entry-graphic,
  .entry-caption {
    display: none;
  }
  .entry-main {
    align-items: start;
    padding-top: 9vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
