:root {
  color-scheme: light;
  --blue: #0069d9;
  --text: #1d2635;
  --muted: #526176;
  --line: #d9e2ed;
  --surface: rgba(255,255,255,.88);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at top right, #dbeeff 0, transparent 48%),
    linear-gradient(145deg, #f4f7fb, #eaf0f7);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #007aff;
  outline-offset: 4px;
}
.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 20px;
  background: rgba(245,249,255,.82);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(190,204,222,.55);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: white;
  font-weight: 700;
  background: linear-gradient(145deg, #409cff, #0063d1);
  box-shadow: 0 6px 18px #007aff26, inset 0 1px 0 #ffffff70;
}
.brand strong { display: block; font-size: 17px; letter-spacing: .03em; }
.brand small { color: var(--muted); }
.nav-label {
  margin: 22px 12px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sidebar nav a {
  display: block;
  margin: 5px 0;
  padding: 11px 14px;
  border-radius: 11px;
  color: #37465a;
  font-weight: 500;
}
.sidebar nav a:hover {
  background: #ffffffa8;
  text-decoration: none;
}
.sidebar nav a.active {
  color: #0057b8;
  background: linear-gradient(180deg, #e1efff, #d4e7ff);
  box-shadow: inset 0 1px 0 #ffffffb0;
}
.sidebar-note {
  margin-top: 34px;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}
.workspace { min-width: 0; padding: 26px 42px 64px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.topbar span { color: var(--muted); font-size: 13px; }
.environment {
  padding: 4px 10px;
  border-radius: 20px;
  background: #fff8e6;
  color: #775300 !important;
  border: 1px solid #e8d5a6;
}
.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid #ffffff;
  background: var(--surface);
  box-shadow: 0 14px 45px #334a6810, 0 2px 5px #334a6808;
}
h1 { margin: 0 0 14px; font-size: 29px; line-height: 1.25; letter-spacing: -.035em; }
h2 { margin: 30px 0 14px; font-size: 20px; letter-spacing: -.02em; }
h3 { margin: 22px 0 10px; font-size: 17px; }
h4 { font-size: 14px; margin: 20px 0 10px; }
p { margin: 10px 0; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
form {
  margin: 16px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f8faff;
}
form p { margin: 0 0 16px; font-size: 13px; color: #435168; }
input:not([type="hidden"]), select, textarea {
  display: block;
  width: 100%;
  max-width: 620px;
  margin-top: 7px;
  padding: 11px 13px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid #bdcada;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px #243b5510;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid #007aff26;
  border-color: #007aff;
}
button {
  margin-top: 10px;
  padding: 10px 18px;
  min-height: 42px;
  border: 1px solid #0064ce;
  border-radius: 10px;
  color: white;
  background: linear-gradient(180deg, #2489ff, #0068df);
  box-shadow: inset 0 1px 0 #ffffff50, 0 3px 8px #007aff20;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover { background: linear-gradient(180deg, #147cf0, #005dc8); }
button:active { box-shadow: inset 0 2px 4px #003a8030; }
details {
  margin: 18px 0;
  padding: 15px 18px;
  background: #f3f7fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
summary { cursor: pointer; font-weight: 600; color: #205a97; }
details[open] summary { margin-bottom: 14px; }
code { padding: 3px 6px; background: #eef3f9; border-radius: 5px; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; }
@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { margin-bottom: 14px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 5px; }
  .sidebar nav a { margin: 0; padding: 8px 10px; font-size: 13px; }
  .nav-label, .sidebar-note { display: none; }
  .workspace { padding: 20px 12px; }
  .content { padding: 22px 18px; border-radius: 16px; }
  h1 { font-size: 25px; }
}
@media print {
  .sidebar, .topbar { display: none; }
  .app-shell { display: block; }
  .workspace, .content { padding: 0; border: 0; box-shadow: none; }
  body, .content { background: white; }
}
